Class CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameSessionQueue.PlayerLatencyPolicyProperty>
- Enclosing interface:
CfnGameSessionQueue.PlayerLatencyPolicyProperty
@Stability(Stable)
public static final class CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameSessionQueue.PlayerLatencyPolicyProperty>
A builder for
CfnGameSessionQueue.PlayerLatencyPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumIndividualPlayerLatencyMilliseconds
(Number maximumIndividualPlayerLatencyMilliseconds) policyDurationSeconds
(Number policyDurationSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumIndividualPlayerLatencyMilliseconds
@Stability(Stable) public CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder maximumIndividualPlayerLatencyMilliseconds(Number maximumIndividualPlayerLatencyMilliseconds) Sets the value ofCfnGameSessionQueue.PlayerLatencyPolicyProperty.getMaximumIndividualPlayerLatencyMilliseconds()
- Parameters:
maximumIndividualPlayerLatencyMilliseconds
- The maximum latency value that is allowed for any player, in milliseconds. All policies must have a value set for this property.- Returns:
this
-
policyDurationSeconds
@Stability(Stable) public CfnGameSessionQueue.PlayerLatencyPolicyProperty.Builder policyDurationSeconds(Number policyDurationSeconds) - Parameters:
policyDurationSeconds
- The length of time, in seconds, that the policy is enforced while placing a new game session. A null value for this property means that the policy is enforced until the queue times out.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGameSessionQueue.PlayerLatencyPolicyProperty>
- Returns:
- a new instance of
CfnGameSessionQueue.PlayerLatencyPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-