Package org.jclouds.ec2.domain
Class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>>
- java.lang.Object
-
- org.jclouds.ec2.domain.SecurityGroup.Builder<T>
-
- Enclosing class:
- SecurityGroup
public abstract static class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected String
id
protected com.google.common.collect.ImmutableSet.Builder<IpPermission>
ipPermissions
protected String
name
protected String
ownerId
protected String
region
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SecurityGroup
build()
T
description(String description)
T
fromSecurityGroup(SecurityGroup in)
T
id(String id)
T
ipPermission(IpPermission ipPermission)
T
ipPermissions(Iterable<IpPermission> ipPermissions)
T
name(String name)
T
ownerId(String ownerId)
T
region(String region)
T
role(IpPermission role)
protected abstract T
self()
-
-
-
Method Detail
-
self
protected abstract T self()
-
region
public T region(String region)
- See Also:
SecurityGroup.getRegion()
-
id
public T id(String id)
- See Also:
SecurityGroup.getId()
-
name
public T name(String name)
- See Also:
SecurityGroup.getName()
-
ownerId
public T ownerId(String ownerId)
- See Also:
SecurityGroup.getOwnerId()
-
description
public T description(String description)
- See Also:
SecurityGroup.getDescription()
-
role
public T role(IpPermission role)
- See Also:
SecurityGroup.delegate()
-
ipPermissions
public T ipPermissions(Iterable<IpPermission> ipPermissions)
- See Also:
SecurityGroup.delegate()
-
ipPermission
public T ipPermission(IpPermission ipPermission)
- See Also:
SecurityGroup.delegate()
-
build
public SecurityGroup build()
-
fromSecurityGroup
public T fromSecurityGroup(SecurityGroup in)
-
-