Package org.jclouds.compute.domain
Class SecurityGroupBuilder
- java.lang.Object
-
- org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
-
- org.jclouds.compute.domain.ComputeMetadataBuilder
-
- org.jclouds.compute.domain.SecurityGroupBuilder
-
public class SecurityGroupBuilder extends ComputeMetadataBuilder
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
id, tags, type
-
Fields inherited from class org.jclouds.domain.ResourceMetadataBuilder
location, name, providerId, uri, userMetadata
-
-
Constructor Summary
Constructors Constructor Description SecurityGroupBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroup
build()
static SecurityGroupBuilder
fromSecurityGroup(SecurityGroup group)
SecurityGroupBuilder
id(String id)
SecurityGroupBuilder
ids(String id)
set id and providerId to the same value;SecurityGroupBuilder
ipPermission(IpPermission ipPermission)
SecurityGroupBuilder
ipPermissions()
SecurityGroupBuilder
ipPermissions(Iterable<IpPermission> ipPermissions)
SecurityGroupBuilder
location(Location location)
SecurityGroupBuilder
name(String name)
SecurityGroupBuilder
ownerId(String ownerId)
SecurityGroupBuilder
providerId(String providerId)
SecurityGroupBuilder
tags(Iterable<String> tags)
SecurityGroupBuilder
uri(URI uri)
SecurityGroupBuilder
userMetadata(Map<String,String> userMetadata)
-
Methods inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
fromComputeMetadata
-
-
-
-
Method Detail
-
ipPermissions
public SecurityGroupBuilder ipPermissions()
-
ipPermissions
public SecurityGroupBuilder ipPermissions(Iterable<IpPermission> ipPermissions)
-
ipPermission
public SecurityGroupBuilder ipPermission(IpPermission ipPermission)
-
ownerId
public SecurityGroupBuilder ownerId(String ownerId)
-
id
public SecurityGroupBuilder id(String id)
- Overrides:
id
in classComputeMetadataBuilder
-
tags
public SecurityGroupBuilder tags(Iterable<String> tags)
- Overrides:
tags
in classComputeMetadataBuilder
-
ids
public SecurityGroupBuilder ids(String id)
Description copied from class:ComputeMetadataBuilder
set id and providerId to the same value;- Overrides:
ids
in classComputeMetadataBuilder
-
providerId
public SecurityGroupBuilder providerId(String providerId)
- Overrides:
providerId
in classComputeMetadataBuilder
-
name
public SecurityGroupBuilder name(String name)
- Overrides:
name
in classComputeMetadataBuilder
-
location
public SecurityGroupBuilder location(Location location)
- Overrides:
location
in classComputeMetadataBuilder
-
uri
public SecurityGroupBuilder uri(URI uri)
- Overrides:
uri
in classComputeMetadataBuilder
-
userMetadata
public SecurityGroupBuilder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in classComputeMetadataBuilder
-
build
public SecurityGroup build()
- Overrides:
build
in classComputeMetadataBuilder
-
fromSecurityGroup
public static SecurityGroupBuilder fromSecurityGroup(SecurityGroup group)
-
-