org.jclouds.elb.domain
Class LoadBalancer.Builder<T extends LoadBalancer.Builder<T>>

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

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


Field Summary
protected  com.google.common.collect.ImmutableSet.Builder<String> availabilityZones
           
protected  Date createdTime
           
protected  String dnsName
           
protected  HealthCheck healthCheck
           
protected  com.google.common.base.Optional<String> hostedZoneId
           
protected  com.google.common.base.Optional<String> hostedZoneName
           
protected  com.google.common.collect.ImmutableSet.Builder<String> instanceIds
           
protected  com.google.common.collect.ImmutableSet.Builder<ListenerWithPolicies> listeners
           
protected  String name
           
protected  com.google.common.base.Optional<Scheme> scheme
           
protected  com.google.common.collect.ImmutableSet.Builder<String> securityGroups
           
protected  com.google.common.base.Optional<SecurityGroupAndOwner> sourceSecurityGroup
           
protected  com.google.common.collect.ImmutableSet.Builder<String> subnets
           
protected  com.google.common.base.Optional<String> VPCId
           
 
Constructor Summary
LoadBalancer.Builder()
           
 
Method Summary
 T availabilityZone(String availabilityZone)
           
 T availabilityZones(Iterable<String> availabilityZones)
           
 LoadBalancer build()
           
 T createdTime(Date createdTime)
           
 T dnsName(String dnsName)
           
 T fromLoadBalancer(LoadBalancer in)
           
 T healthCheck(HealthCheck healthCheck)
           
 T hostedZoneId(String hostedZoneId)
           
 T hostedZoneName(String hostedZoneName)
           
 T instanceId(String instanceId)
           
 T instanceIds(Iterable<String> instanceIds)
           
 T listener(ListenerWithPolicies listener)
           
 T listeners(Iterable<ListenerWithPolicies> listeners)
           
 T name(String name)
           
 T scheme(Scheme scheme)
           
 T securityGroup(String securityGroup)
           
 T securityGroups(Iterable<String> securityGroups)
           
protected abstract  T self()
           
 T sourceSecurityGroup(SecurityGroupAndOwner scheme)
           
 T subnet(String subnet)
           
 T subnets(Iterable<String> subnets)
           
 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

createdTime

protected Date createdTime

dnsName

protected String dnsName

healthCheck

protected HealthCheck healthCheck

instanceIds

protected com.google.common.collect.ImmutableSet.Builder<String> instanceIds

listeners

protected com.google.common.collect.ImmutableSet.Builder<ListenerWithPolicies> listeners

availabilityZones

protected com.google.common.collect.ImmutableSet.Builder<String> availabilityZones

scheme

protected com.google.common.base.Optional<Scheme> scheme

sourceSecurityGroup

protected com.google.common.base.Optional<SecurityGroupAndOwner> sourceSecurityGroup

VPCId

protected com.google.common.base.Optional<String> VPCId

securityGroups

protected com.google.common.collect.ImmutableSet.Builder<String> securityGroups

subnets

protected com.google.common.collect.ImmutableSet.Builder<String> subnets

hostedZoneName

protected com.google.common.base.Optional<String> hostedZoneName

hostedZoneId

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

LoadBalancer.Builder

public LoadBalancer.Builder()
Method Detail

self

protected abstract T self()

name

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

createdTime

public T createdTime(Date createdTime)
See Also:
LoadBalancer.getCreatedTime()

dnsName

public T dnsName(String dnsName)
See Also:
LoadBalancer.getDnsName()

healthCheck

public T healthCheck(HealthCheck healthCheck)
See Also:
LoadBalancer.getHealthCheck()

instanceIds

public T instanceIds(Iterable<String> instanceIds)
See Also:
LoadBalancer.getInstanceIds()

instanceId

public T instanceId(String instanceId)
See Also:
LoadBalancer.getInstanceIds()

listeners

public T listeners(Iterable<ListenerWithPolicies> listeners)
See Also:
LoadBalancer.getListeners()

listener

public T listener(ListenerWithPolicies listener)
See Also:
LoadBalancer.getListeners()

availabilityZones

public T availabilityZones(Iterable<String> availabilityZones)
See Also:
LoadBalancer.getAvailabilityZones()

availabilityZone

public T availabilityZone(String availabilityZone)
See Also:
LoadBalancer.getAvailabilityZones()

scheme

public T scheme(Scheme scheme)
See Also:
LoadBalancer.getScheme()

sourceSecurityGroup

public T sourceSecurityGroup(SecurityGroupAndOwner scheme)
See Also:
LoadBalancer.getSourceSecurityGroup()

VPCId

public T VPCId(String VPCId)
See Also:
LoadBalancer.getVPCId()

securityGroups

public T securityGroups(Iterable<String> securityGroups)
See Also:
LoadBalancer.getSecurityGroups()

securityGroup

public T securityGroup(String securityGroup)
See Also:
LoadBalancer.getSecurityGroups()

subnets

public T subnets(Iterable<String> subnets)
See Also:
LoadBalancer.getSubnets()

subnet

public T subnet(String subnet)
See Also:
LoadBalancer.getSubnets()

hostedZoneName

public T hostedZoneName(String hostedZoneName)
See Also:
LoadBalancer.getHostedZoneName()

hostedZoneId

public T hostedZoneId(String hostedZoneId)
See Also:
LoadBalancer.getHostedZoneId()

build

public LoadBalancer build()

fromLoadBalancer

public T fromLoadBalancer(LoadBalancer in)


Copyright © 2009-2012 jclouds. All Rights Reserved.