Class GroupConfiguration.Builder
- java.lang.Object
-
- org.jclouds.rackspace.autoscale.v1.domain.GroupConfiguration.Builder
-
- Enclosing class:
- GroupConfiguration
public static class GroupConfiguration.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
cooldown
protected int
maxEntities
protected Map<String,String>
metadata
protected int
minEntities
protected String
name
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupConfiguration
build()
GroupConfiguration.Builder
cooldown(int cooldown)
Required.GroupConfiguration.Builder
fromGroupConfiguration(GroupConfiguration in)
GroupConfiguration.Builder
maxEntities(int maxEntities)
Optional.GroupConfiguration.Builder
metadata(Map<String,String> metadata)
Optional.GroupConfiguration.Builder
minEntities(int minEntities)
Required.GroupConfiguration.Builder
name(String name)
Required.
-
-
-
Method Detail
-
name
public GroupConfiguration.Builder name(String name)
Required. The name of the scaling group, does not need to be unique.- Parameters:
name
- The name of this GroupConfiguration.- Returns:
- The builder object.
- See Also:
GroupConfiguration.getName()
-
cooldown
public GroupConfiguration.Builder cooldown(int cooldown)
Required. The period of time, in seconds, that must pass before any scaling can occur after the previous scaling. Must be an integer between 0 and 86400 (24 hrs).- Parameters:
cooldown
- The cooldown for this GroupConfiguration.- Returns:
- The builder object.
- See Also:
GroupConfiguration.getCooldown()
-
minEntities
public GroupConfiguration.Builder minEntities(int minEntities)
Required. The minimum number of entities in the scaling group. This number must be an integer between 0 and 1000.- Parameters:
minEntities
- The cooldown for this GroupConfiguration.- Returns:
- The builder object.
- See Also:
GroupConfiguration.getCooldown()
-
maxEntities
public GroupConfiguration.Builder maxEntities(int maxEntities)
Optional. The maximum number of entities that are allowed in the scaling group. If unconfigured, defaults to 1000. If this parameter is provided it must be set to an integer between 0 and 1000.- Parameters:
maxEntities
- The maxEntities for this GroupConfiguration.- Returns:
- The builder object.
- See Also:
GroupConfiguration.getCooldown()
-
metadata
public GroupConfiguration.Builder metadata(Map<String,String> metadata)
Optional. This optional parameter specifies custom metadata for your group configuration. You can use the metadata parameter for customer automation, but it does not change any functionality in Auto Scale. There currently is no limitation on depth.- Parameters:
metadata
- The metadata for this GroupConfiguration.- Returns:
- The builder object.
- See Also:
GroupConfiguration.getMetadata()
-
build
public GroupConfiguration build()
- Returns:
- A new GroupConfiguration object.
-
fromGroupConfiguration
public GroupConfiguration.Builder fromGroupConfiguration(GroupConfiguration in)
-
-