Class CfnStreamGroup.LocationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gameliftstreams.CfnStreamGroup.LocationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamGroup.LocationConfigurationProperty>
- Enclosing interface:
CfnStreamGroup.LocationConfigurationProperty
@Stability(Stable)
public static final class CfnStreamGroup.LocationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamGroup.LocationConfigurationProperty>
A builder for
CfnStreamGroup.LocationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalwaysOnCapacity(Number alwaysOnCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getAlwaysOnCapacity()build()Builds the configured instance.locationName(String locationName) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getLocationName()maximumCapacity(Number maximumCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getMaximumCapacity()onDemandCapacity(Number onDemandCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getOnDemandCapacity()targetIdleCapacity(Number targetIdleCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getTargetIdleCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
locationName
@Stability(Stable) public CfnStreamGroup.LocationConfigurationProperty.Builder locationName(String locationName) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getLocationName()- Parameters:
locationName- A location's name. This parameter is required. For example,us-east-1. For a complete list of locations that Amazon GameLift Streams supports, refer to Regions, quotas, and limitations in the Amazon GameLift Streams Developer Guide .- Returns:
this
-
alwaysOnCapacity
@Stability(Stable) public CfnStreamGroup.LocationConfigurationProperty.Builder alwaysOnCapacity(Number alwaysOnCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getAlwaysOnCapacity()- Parameters:
alwaysOnCapacity- This setting, if non-zero, indicates minimum streaming capacity which is allocated to you and is never released back to the service. You pay for this base level of capacity at all times, whether used or idle.- Returns:
this
-
maximumCapacity
@Stability(Stable) public CfnStreamGroup.LocationConfigurationProperty.Builder maximumCapacity(Number maximumCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getMaximumCapacity()- Parameters:
maximumCapacity- the value to be set.- Returns:
this
-
onDemandCapacity
@Stability(Stable) public CfnStreamGroup.LocationConfigurationProperty.Builder onDemandCapacity(Number onDemandCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getOnDemandCapacity()- Parameters:
onDemandCapacity- This field is deprecated. Use MaximumCapacity instead. This parameter is ignored when MaximumCapacity is specified. The streaming capacity that Amazon GameLift Streams can allocate in response to stream requests, and then de-allocate when the session has terminated. This offers a cost control measure at the expense of a greater startup time (typically under 5 minutes). Default is 0 when you create a stream group or add a location.- Returns:
this
-
targetIdleCapacity
@Stability(Stable) public CfnStreamGroup.LocationConfigurationProperty.Builder targetIdleCapacity(Number targetIdleCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getTargetIdleCapacity()- Parameters:
targetIdleCapacity- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamGroup.LocationConfigurationProperty>- Returns:
- a new instance of
CfnStreamGroup.LocationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-