Class CfnFleet.ContainerGroupsPerInstanceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.ContainerGroupsPerInstanceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.ContainerGroupsPerInstanceProperty>
- Enclosing interface:
CfnFleet.ContainerGroupsPerInstanceProperty
@Stability(Stable)
public static final class CfnFleet.ContainerGroupsPerInstanceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.ContainerGroupsPerInstanceProperty>
A builder for
CfnFleet.ContainerGroupsPerInstanceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.desiredReplicaContainerGroupsPerInstance
(Number desiredReplicaContainerGroupsPerInstance) maxReplicaContainerGroupsPerInstance
(Number maxReplicaContainerGroupsPerInstance)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredReplicaContainerGroupsPerInstance
@Stability(Stable) public CfnFleet.ContainerGroupsPerInstanceProperty.Builder desiredReplicaContainerGroupsPerInstance(Number desiredReplicaContainerGroupsPerInstance) Sets the value ofCfnFleet.ContainerGroupsPerInstanceProperty.getDesiredReplicaContainerGroupsPerInstance()
- Parameters:
desiredReplicaContainerGroupsPerInstance
- The desired number of replica container groups to place on each fleet instance.- Returns:
this
-
maxReplicaContainerGroupsPerInstance
@Stability(Stable) public CfnFleet.ContainerGroupsPerInstanceProperty.Builder maxReplicaContainerGroupsPerInstance(Number maxReplicaContainerGroupsPerInstance) Sets the value ofCfnFleet.ContainerGroupsPerInstanceProperty.getMaxReplicaContainerGroupsPerInstance()
- Parameters:
maxReplicaContainerGroupsPerInstance
- The maximum possible number of replica container groups that each fleet instance can have.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.ContainerGroupsPerInstanceProperty>
- Returns:
- a new instance of
CfnFleet.ContainerGroupsPerInstanceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-