Class ResourceCreationLimitPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.ResourceCreationLimitPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResourceCreationLimitPolicy>
- Enclosing interface:
ResourceCreationLimitPolicy
@Stability(Experimental)
public static final class ResourceCreationLimitPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<ResourceCreationLimitPolicy>
A builder for
ResourceCreationLimitPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.newGameSessionsPerCreator
(Number newGameSessionsPerCreator) Sets the value ofResourceCreationLimitPolicy.getNewGameSessionsPerCreator()
policyPeriod
(Duration policyPeriod) Sets the value ofResourceCreationLimitPolicy.getPolicyPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
newGameSessionsPerCreator
@Stability(Experimental) public ResourceCreationLimitPolicy.Builder newGameSessionsPerCreator(Number newGameSessionsPerCreator) Sets the value ofResourceCreationLimitPolicy.getNewGameSessionsPerCreator()
- Parameters:
newGameSessionsPerCreator
- The maximum number of game sessions that an individual can create during the policy period.- Returns:
this
-
policyPeriod
@Stability(Experimental) public ResourceCreationLimitPolicy.Builder policyPeriod(Duration policyPeriod) Sets the value ofResourceCreationLimitPolicy.getPolicyPeriod()
- Parameters:
policyPeriod
- The time span used in evaluating the resource creation limit policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResourceCreationLimitPolicy>
- Returns:
- a new instance of
ResourceCreationLimitPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-