public static class NeutronSecurityGroupRule.SecurityGroupRuleConcreteBuilder extends Object implements NetSecurityGroupRuleBuilder
Constructor and Description |
---|
SecurityGroupRuleConcreteBuilder()
Instantiates a new security group rule concrete builder.
|
SecurityGroupRuleConcreteBuilder(SecurityGroupRule rule)
Instantiates a new security group rule concrete builder.
|
Modifier and Type | Method and Description |
---|---|
SecurityGroupRule |
build()
Creates and return the Model Entity M
|
NetSecurityGroupRuleBuilder |
direction(String direction) |
NetSecurityGroupRuleBuilder |
ethertype(String ethertype) |
NetSecurityGroupRuleBuilder |
from(SecurityGroupRule in)
Creates a Builder using the param M as the default values
|
NetSecurityGroupRuleBuilder |
id(String id) |
NetSecurityGroupRuleBuilder |
portRangeMax(int max) |
NetSecurityGroupRuleBuilder |
portRangeMin(int min) |
NetSecurityGroupRuleBuilder |
protocol(String protocol) |
NetSecurityGroupRuleBuilder |
remoteGroupId(String remoteGroupId) |
NetSecurityGroupRuleBuilder |
remoteIpPrefix(String prefix) |
NetSecurityGroupRuleBuilder |
securityGroupId(String groupId) |
NetSecurityGroupRuleBuilder |
tenantId(String tenantId) |
public SecurityGroupRuleConcreteBuilder()
public SecurityGroupRuleConcreteBuilder(SecurityGroupRule rule)
rule
- the rulepublic SecurityGroupRule build()
build
in interface Buildable.Builder<NetSecurityGroupRuleBuilder,SecurityGroupRule>
public NetSecurityGroupRuleBuilder from(SecurityGroupRule in)
from
in interface Buildable.Builder<NetSecurityGroupRuleBuilder,SecurityGroupRule>
public NetSecurityGroupRuleBuilder id(String id)
id
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getId()
public NetSecurityGroupRuleBuilder tenantId(String tenantId)
tenantId
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getTenantId()
public NetSecurityGroupRuleBuilder securityGroupId(String groupId)
securityGroupId
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getSecurityGroupId()
public NetSecurityGroupRuleBuilder direction(String direction)
direction
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getDirection()
public NetSecurityGroupRuleBuilder ethertype(String ethertype)
ethertype
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule#getEthertype()
public NetSecurityGroupRuleBuilder portRangeMax(int max)
portRangeMax
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getPortRangeMax()
public NetSecurityGroupRuleBuilder portRangeMin(int min)
portRangeMin
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getPortRangeMin()
public NetSecurityGroupRuleBuilder protocol(String protocol)
protocol
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getProtocol()
public NetSecurityGroupRuleBuilder remoteGroupId(String remoteGroupId)
remoteGroupId
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getRemoteGroupId()
public NetSecurityGroupRuleBuilder remoteIpPrefix(String prefix)
remoteIpPrefix
in interface NetSecurityGroupRuleBuilder
SecurityGroupRule.getRemoteIpPrefix()
Copyright © 2017. All rights reserved.