Class CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gameliftstreams.CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamGroupPropsMixin.LocationConfigurationProperty>
- Enclosing interface:
CfnStreamGroupPropsMixin.LocationConfigurationProperty
@Stability(Stable)
public static final class CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamGroupPropsMixin.LocationConfigurationProperty>
A builder for
CfnStreamGroupPropsMixin.LocationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalwaysOnCapacity(Number alwaysOnCapacity) build()Builds the configured instance.locationName(String locationName) Sets the value ofCfnStreamGroupPropsMixin.LocationConfigurationProperty.getLocationName()maximumCapacity(Number maximumCapacity) onDemandCapacity(Number onDemandCapacity) targetIdleCapacity(Number targetIdleCapacity)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alwaysOnCapacity
@Stability(Stable) public CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder alwaysOnCapacity(Number alwaysOnCapacity) - 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
-
locationName
@Stability(Stable) public CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder locationName(String locationName) Sets the value ofCfnStreamGroupPropsMixin.LocationConfigurationProperty.getLocationName()- Parameters:
locationName- A location's name. 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
-
maximumCapacity
@Stability(Stable) public CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder maximumCapacity(Number maximumCapacity) - Parameters:
maximumCapacity- the value to be set.- Returns:
this
-
onDemandCapacity
@Stability(Stable) public CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder onDemandCapacity(Number onDemandCapacity) - 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 CfnStreamGroupPropsMixin.LocationConfigurationProperty.Builder targetIdleCapacity(Number targetIdleCapacity) - Parameters:
targetIdleCapacity- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamGroupPropsMixin.LocationConfigurationProperty>- Returns:
- a new instance of
CfnStreamGroupPropsMixin.LocationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-