Package org.jclouds.net.domain
Class IpPermission.Builder
- java.lang.Object
-
- org.jclouds.net.domain.IpPermission.Builder
-
- Enclosing class:
- IpPermission
public static class IpPermission.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IpPermission
build()
IpPermission.Builder
cidrBlock(String cidrBlock)
IpPermission.Builder
cidrBlocks(Iterable<String> cidrBlocks)
IpPermission.Builder
exclusionCidrBlock(String exclusionCidrBlock)
IpPermission.Builder
exclusionCidrBlocks(Iterable<String> exclusionCidrBlocks)
IpPermission.Builder
fromPermission(IpPermission permission)
Creates a builder initialized from an existing permission.IpPermission.Builder
fromPort(int fromPort)
IpPermission.Builder
groupId(String groupId)
IpPermission.Builder
groupIds(Iterable<String> groupIds)
IpPermission.Builder
ipProtocol(IpProtocol ipProtocol)
IpPermission.Builder
tenantIdGroupNamePair(String tenantId, String groupName)
IpPermission.Builder
tenantIdGroupNamePairs(com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs)
IpPermission.Builder
toPort(int toPort)
-
-
-
Method Detail
-
fromPermission
public IpPermission.Builder fromPermission(IpPermission permission)
Creates a builder initialized from an existing permission.- Parameters:
permission
- The existing permission.- Returns:
- the builder.
-
ipProtocol
public IpPermission.Builder ipProtocol(IpProtocol ipProtocol)
- See Also:
IpPermission.getIpProtocol()
-
fromPort
public IpPermission.Builder fromPort(int fromPort)
- See Also:
IpPermission.getFromPort()
-
toPort
public IpPermission.Builder toPort(int toPort)
- See Also:
IpPermission.getToPort()
-
tenantIdGroupNamePair
public IpPermission.Builder tenantIdGroupNamePair(String tenantId, String groupName)
- See Also:
IpPermission.getTenantIdGroupNamePairs()
-
tenantIdGroupNamePairs
public IpPermission.Builder tenantIdGroupNamePairs(com.google.common.collect.Multimap<String,String> tenantIdGroupNamePairs)
- See Also:
IpPermission.getTenantIdGroupNamePairs()
-
cidrBlock
public IpPermission.Builder cidrBlock(String cidrBlock)
- See Also:
IpPermission.getCidrBlocks()
-
cidrBlocks
public IpPermission.Builder cidrBlocks(Iterable<String> cidrBlocks)
- See Also:
IpPermission.getCidrBlocks()
-
exclusionCidrBlock
@Beta public IpPermission.Builder exclusionCidrBlock(String exclusionCidrBlock)
- See Also:
IpPermission.getExclusionCidrBlocks()
-
exclusionCidrBlocks
@Beta public IpPermission.Builder exclusionCidrBlocks(Iterable<String> exclusionCidrBlocks)
- See Also:
IpPermission.getExclusionCidrBlocks()
-
groupId
public IpPermission.Builder groupId(String groupId)
- See Also:
IpPermission.getGroupIds()
-
groupIds
public IpPermission.Builder groupIds(Iterable<String> groupIds)
- See Also:
IpPermission.getGroupIds()
-
build
public IpPermission build()
-
-