public abstract static class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected com.google.common.collect.ImmutableSet.Builder<EC2SecurityGroup> |
ec2SecurityGroups |
protected com.google.common.collect.ImmutableSet.Builder<IPRange> |
ipRanges |
protected String |
name |
protected String |
ownerId |
protected com.google.common.base.Optional<String> |
vpcId |
Constructor and Description |
---|
SecurityGroup.Builder() |
Modifier and Type | Method and Description |
---|---|
SecurityGroup |
build() |
T |
description(String description) |
T |
ec2SecurityGroup(EC2SecurityGroup ec2SecurityGroup) |
T |
ec2SecurityGroups(Iterable<EC2SecurityGroup> ec2SecurityGroups) |
T |
fromSecurityGroup(SecurityGroup in) |
T |
ipRange(IPRange ipRange) |
T |
ipRanges(Iterable<IPRange> ipRanges) |
T |
name(String name) |
T |
ownerId(String ownerId) |
protected abstract T |
self() |
T |
vpcId(String vpcId) |
protected String name
protected String description
protected com.google.common.collect.ImmutableSet.Builder<EC2SecurityGroup> ec2SecurityGroups
protected com.google.common.collect.ImmutableSet.Builder<IPRange> ipRanges
protected String ownerId
protected com.google.common.base.Optional<String> vpcId
protected abstract T self()
public T name(String name)
SecurityGroup.getName()
public T description(String description)
SecurityGroup.getDescription()
public T ec2SecurityGroups(Iterable<EC2SecurityGroup> ec2SecurityGroups)
SecurityGroup.getEC2SecurityGroups()
public T ec2SecurityGroup(EC2SecurityGroup ec2SecurityGroup)
SecurityGroup.getEC2SecurityGroups()
public T ipRanges(Iterable<IPRange> ipRanges)
SecurityGroup.getEC2SecurityGroups()
public T ipRange(IPRange ipRange)
SecurityGroup.getEC2SecurityGroups()
public T ownerId(String ownerId)
SecurityGroup.getOwnerId()
public SecurityGroup build()
public T fromSecurityGroup(SecurityGroup in)
Copyright © 2009-2013 jclouds. All Rights Reserved.