org.jclouds.rds.domain
Class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>>

java.lang.Object
  extended by org.jclouds.rds.domain.SecurityGroup.Builder<T>
Enclosing class:
SecurityGroup

public abstract static class SecurityGroup.Builder<T extends SecurityGroup.Builder<T>>
extends Object


Field Summary
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 Summary
SecurityGroup.Builder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

description

protected String description

ec2SecurityGroups

protected com.google.common.collect.ImmutableSet.Builder<EC2SecurityGroup> ec2SecurityGroups

ipRanges

protected com.google.common.collect.ImmutableSet.Builder<IPRange> ipRanges

ownerId

protected String ownerId

vpcId

protected com.google.common.base.Optional<String> vpcId
Constructor Detail

SecurityGroup.Builder

public SecurityGroup.Builder()
Method Detail

self

protected abstract T self()

name

public T name(String name)
See Also:
SecurityGroup.getName()

description

public T description(String description)
See Also:
SecurityGroup.getDescription()

ec2SecurityGroups

public T ec2SecurityGroups(Iterable<EC2SecurityGroup> ec2SecurityGroups)
See Also:
SecurityGroup.getEC2SecurityGroups()

ec2SecurityGroup

public T ec2SecurityGroup(EC2SecurityGroup ec2SecurityGroup)
See Also:
SecurityGroup.getEC2SecurityGroups()

ipRanges

public T ipRanges(Iterable<IPRange> ipRanges)
See Also:
SecurityGroup.getEC2SecurityGroups()

ipRange

public T ipRange(IPRange ipRange)
See Also:
SecurityGroup.getEC2SecurityGroups()

ownerId

public T ownerId(String ownerId)
See Also:
SecurityGroup.getOwnerId()

vpcId

public T vpcId(String vpcId)
See Also:
SecurityGroupGroup#getVpcId()

build

public SecurityGroup build()

fromSecurityGroup

public T fromSecurityGroup(SecurityGroup in)


Copyright © 2009-2012 jclouds. All Rights Reserved.