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()onDemandCapacity(Number onDemandCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getOnDemandCapacity()
-
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- the value to be set. This parameter is required.- Returns:
this
-
alwaysOnCapacity
@Stability(Stable) public CfnStreamGroup.LocationConfigurationProperty.Builder alwaysOnCapacity(Number alwaysOnCapacity) Sets the value ofCfnStreamGroup.LocationConfigurationProperty.getAlwaysOnCapacity()- Parameters:
alwaysOnCapacity- 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- 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
-