Interface CreateFleetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateFleetResponse.Builder,
,CreateFleetResponse> GameLiftResponse.Builder
,SdkBuilder<CreateFleetResponse.Builder,
,CreateFleetResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateFleetResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateFleetResponse.Builder
fleetAttributes
(Consumer<FleetAttributes.Builder> fleetAttributes) The properties for the new fleet, including the current status.fleetAttributes
(FleetAttributes fleetAttributes) The properties for the new fleet, including the current status.locationStates
(Collection<LocationState> locationStates) The fleet's locations and life-cycle status of each location.locationStates
(Consumer<LocationState.Builder>... locationStates) The fleet's locations and life-cycle status of each location.locationStates
(LocationState... locationStates) The fleet's locations and life-cycle status of each location.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
fleetAttributes
The properties for the new fleet, including the current status. All fleets are placed in
NEW
status on creation.- Parameters:
fleetAttributes
- The properties for the new fleet, including the current status. All fleets are placed inNEW
status on creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetAttributes
default CreateFleetResponse.Builder fleetAttributes(Consumer<FleetAttributes.Builder> fleetAttributes) The properties for the new fleet, including the current status. All fleets are placed in
This is a convenience method that creates an instance of theNEW
status on creation.FleetAttributes.Builder
avoiding the need to create one manually viaFleetAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofleetAttributes(FleetAttributes)
.- Parameters:
fleetAttributes
- a consumer that will call methods onFleetAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
locationStates
The fleet's locations and life-cycle status of each location. For new fleets, the status of all locations is set to
NEW
. During fleet creation, Amazon GameLift updates each location status as instances are deployed there and prepared for game hosting. This list includes an entry for the fleet's home Region. For fleets with no remote locations, only one entry, representing the home Region, is returned.- Parameters:
locationStates
- The fleet's locations and life-cycle status of each location. For new fleets, the status of all locations is set toNEW
. During fleet creation, Amazon GameLift updates each location status as instances are deployed there and prepared for game hosting. This list includes an entry for the fleet's home Region. For fleets with no remote locations, only one entry, representing the home Region, is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locationStates
The fleet's locations and life-cycle status of each location. For new fleets, the status of all locations is set to
NEW
. During fleet creation, Amazon GameLift updates each location status as instances are deployed there and prepared for game hosting. This list includes an entry for the fleet's home Region. For fleets with no remote locations, only one entry, representing the home Region, is returned.- Parameters:
locationStates
- The fleet's locations and life-cycle status of each location. For new fleets, the status of all locations is set toNEW
. During fleet creation, Amazon GameLift updates each location status as instances are deployed there and prepared for game hosting. This list includes an entry for the fleet's home Region. For fleets with no remote locations, only one entry, representing the home Region, is returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locationStates
The fleet's locations and life-cycle status of each location. For new fleets, the status of all locations is set to
This is a convenience method that creates an instance of theNEW
. During fleet creation, Amazon GameLift updates each location status as instances are deployed there and prepared for game hosting. This list includes an entry for the fleet's home Region. For fleets with no remote locations, only one entry, representing the home Region, is returned.LocationState.Builder
avoiding the need to create one manually viaLocationState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocationStates(List<LocationState>)
.- Parameters:
locationStates
- a consumer that will call methods onLocationState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-