Interface CreateFleetResponse.Builder

    • Method Detail

      • fleetAttributes

        CreateFleetResponse.Builder fleetAttributes​(FleetAttributes 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 in NEW status on creation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locationStates

        CreateFleetResponse.Builder locationStates​(Collection<LocationState> 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 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locationStates

        CreateFleetResponse.Builder locationStates​(LocationState... 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 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locationStates

        CreateFleetResponse.Builder locationStates​(Consumer<LocationState.Builder>... 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.

        This is a convenience method that creates an instance of the LocationState.Builder avoiding the need to create one manually via LocationState.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #locationStates(List).

        Parameters:
        locationStates - a consumer that will call methods on LocationState.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #locationStates(java.util.Collection)