Class PriorityConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.PriorityConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PriorityConfiguration>
- Enclosing interface:
PriorityConfiguration
@Stability(Experimental)
public static final class PriorityConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<PriorityConfiguration>
A builder for
PriorityConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.locationOrder
(List<String> locationOrder) Sets the value ofPriorityConfiguration.getLocationOrder()
priorityOrder
(List<? extends PriorityType> priorityOrder) Sets the value ofPriorityConfiguration.getPriorityOrder()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
locationOrder
@Stability(Experimental) public PriorityConfiguration.Builder locationOrder(List<String> locationOrder) Sets the value ofPriorityConfiguration.getLocationOrder()
- Parameters:
locationOrder
- The prioritization order to use for fleet locations, when the PriorityOrder property includes LOCATION. This parameter is required. Locations are identified by AWS Region codes such as `us-west-2.Each location can only be listed once.
- Returns:
this
-
priorityOrder
@Stability(Experimental) public PriorityConfiguration.Builder priorityOrder(List<? extends PriorityType> priorityOrder) Sets the value ofPriorityConfiguration.getPriorityOrder()
- Parameters:
priorityOrder
- The recommended sequence to use when prioritizing where to place new game sessions. This parameter is required. Each type can only be listed once.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PriorityConfiguration>
- Returns:
- a new instance of
PriorityConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-