Interface CreateServiceRequest.Builder

    • Method Detail

      • branchName

        CreateServiceRequest.Builder branchName​(String branchName)

        The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.

        Parameters:
        branchName - The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateServiceRequest.Builder description​(String description)

        A description of the Proton service.

        Parameters:
        description - A description of the Proton service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CreateServiceRequest.Builder name​(String name)

        The service name.

        Parameters:
        name - The service name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repositoryConnectionArn

        CreateServiceRequest.Builder repositoryConnectionArn​(String repositoryConnectionArn)

        The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.

        Parameters:
        repositoryConnectionArn - The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repositoryId

        CreateServiceRequest.Builder repositoryId​(String repositoryId)

        The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.

        Parameters:
        repositoryId - The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • spec

        CreateServiceRequest.Builder spec​(String spec)

        A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.

        Parameters:
        spec - A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.

        For more information, see Proton resources and tagging in the Proton User Guide.

        Parameters:
        tags - An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.

        For more information, see Proton resources and tagging in the Proton User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateServiceRequest.Builder tags​(Tag... tags)

        An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.

        For more information, see Proton resources and tagging in the Proton User Guide.

        Parameters:
        tags - An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.

        For more information, see Proton resources and tagging in the Proton User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.

        For more information, see Proton resources and tagging in the Proton User Guide.

        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)
      • templateMajorVersion

        CreateServiceRequest.Builder templateMajorVersion​(String templateMajorVersion)

        The major version of the service template that was used to create the service.

        Parameters:
        templateMajorVersion - The major version of the service template that was used to create the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • templateMinorVersion

        CreateServiceRequest.Builder templateMinorVersion​(String templateMinorVersion)

        The minor version of the service template that was used to create the service.

        Parameters:
        templateMinorVersion - The minor version of the service template that was used to create the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • templateName

        CreateServiceRequest.Builder templateName​(String templateName)

        The name of the service template that's used to create the service.

        Parameters:
        templateName - The name of the service template that's used to create the service.
        Returns:
        Returns a reference to this object so that method calls can be chained together.