Interface CreateAppRequest.Builder

    • Method Detail

      • name

        CreateAppRequest.Builder name​(String name)

        The name of the new application.

        Parameters:
        name - The name of the new application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateAppRequest.Builder description​(String description)

        The description of the new application

        Parameters:
        description - The description of the new application
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleName

        CreateAppRequest.Builder roleName​(String roleName)

        The name of the service role in the customer's account to be used by Server Migration Service.

        Parameters:
        roleName - The name of the service role in the customer's account to be used by Server Migration Service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clientToken

        CreateAppRequest.Builder clientToken​(String clientToken)

        A unique, case-sensitive identifier that you provide to ensure the idempotency of application creation.

        Parameters:
        clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of application creation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serverGroups

        CreateAppRequest.Builder serverGroups​(Collection<ServerGroup> serverGroups)

        The server groups to include in the application.

        Parameters:
        serverGroups - The server groups to include in the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serverGroups

        CreateAppRequest.Builder serverGroups​(ServerGroup... serverGroups)

        The server groups to include in the application.

        Parameters:
        serverGroups - The server groups to include in the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateAppRequest.Builder tags​(Collection<Tag> tags)

        The tags to be associated with the application.

        Parameters:
        tags - The tags to be associated with the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateAppRequest.Builder tags​(Tag... tags)

        The tags to be associated with the application.

        Parameters:
        tags - The tags to be associated with the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateAppRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The tags to be associated with the application.

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

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

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