public static class NovaSecGroupExtension.SecurityGroupRule.RuleConcreteBuilder extends Object implements SecurityGroupRuleBuilder
Modifier and Type | Method and Description |
---|---|
SecGroupExtension.Rule |
build()
Creates and return the Model Entity M
|
SecurityGroupRuleBuilder |
cidr(String cidr)
Destination IP address(es) in CIDR notation
|
SecurityGroupRuleBuilder |
from(SecGroupExtension.Rule in)
Creates a Builder using the param M as the default values
|
SecurityGroupRuleBuilder |
groupId(String groupId)
Security group id
|
SecurityGroupRuleBuilder |
parentGroupId(String parentGroupId)
Parent security group id
|
SecurityGroupRuleBuilder |
protocol(IPProtocol protocol)
IP protocol, one of TCP, UDP or ICMP
|
SecurityGroupRuleBuilder |
range(int fromPort,
int toPort)
Port range which consists of a starting and destination port
|
public SecurityGroupRuleBuilder protocol(IPProtocol protocol)
SecurityGroupRuleBuilder
protocol
in interface SecurityGroupRuleBuilder
protocol
- the protocolpublic SecurityGroupRuleBuilder range(int fromPort, int toPort)
SecurityGroupRuleBuilder
range
in interface SecurityGroupRuleBuilder
fromPort
- the source porttoPort
- the destination portpublic SecurityGroupRuleBuilder cidr(String cidr)
SecurityGroupRuleBuilder
cidr
in interface SecurityGroupRuleBuilder
cidr
- the CIDR notationpublic SecurityGroupRuleBuilder groupId(String groupId)
SecurityGroupRuleBuilder
groupId
in interface SecurityGroupRuleBuilder
groupId
- the group idpublic SecurityGroupRuleBuilder parentGroupId(String parentGroupId)
SecurityGroupRuleBuilder
parentGroupId
in interface SecurityGroupRuleBuilder
parentGroupId
- the parent group idpublic SecGroupExtension.Rule build()
Buildable.Builder
build
in interface Buildable.Builder<SecurityGroupRuleBuilder,SecGroupExtension.Rule>
public SecurityGroupRuleBuilder from(SecGroupExtension.Rule in)
Buildable.Builder
from
in interface Buildable.Builder<SecurityGroupRuleBuilder,SecGroupExtension.Rule>
Copyright © 2017. All rights reserved.