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.BuilderfleetAttributes(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
copyMethods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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
NEWstatus on creation.- Parameters:
fleetAttributes- The properties for the new fleet, including the current status. All fleets are placed inNEWstatus 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 theNEWstatus on creation.FleetAttributes.Builderavoiding the need to create one manually viaFleetAttributes.builder().When the
Consumercompletes,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 Servers 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 Servers 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 Servers 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 Servers 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 Servers 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.Builderavoiding the need to create one manually viaLocationState.builder().When the
Consumercompletes,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:
-