Class PlayerLatencyPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.PlayerLatencyPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PlayerLatencyPolicy>
- Enclosing interface:
PlayerLatencyPolicy
@Stability(Experimental)
public static final class PlayerLatencyPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<PlayerLatencyPolicy>
A builder for
PlayerLatencyPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maximumIndividualPlayerLatency
(Duration maximumIndividualPlayerLatency) Sets the value ofPlayerLatencyPolicy.getMaximumIndividualPlayerLatency()
policyDuration
(Duration policyDuration) Sets the value ofPlayerLatencyPolicy.getPolicyDuration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maximumIndividualPlayerLatency
@Stability(Experimental) public PlayerLatencyPolicy.Builder maximumIndividualPlayerLatency(Duration maximumIndividualPlayerLatency) Sets the value ofPlayerLatencyPolicy.getMaximumIndividualPlayerLatency()
- Parameters:
maximumIndividualPlayerLatency
- The maximum latency value that is allowed for any player, in milliseconds. This parameter is required. All policies must have a value set for this property.- Returns:
this
-
policyDuration
Sets the value ofPlayerLatencyPolicy.getPolicyDuration()
- Parameters:
policyDuration
- The length of time, in seconds, that the policy is enforced while placing a new game session.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PlayerLatencyPolicy>
- Returns:
- a new instance of
PlayerLatencyPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-