Interface CreateComponentRequest.Builder

    • Method Detail

      • clientToken

        CreateComponentRequest.Builder clientToken​(String clientToken)

        The client token for the created component.

        Parameters:
        clientToken - The client token for the created component.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        CreateComponentRequest.Builder description​(String description)

        An optional customer-provided description of the component.

        Parameters:
        description - An optional customer-provided description of the component.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • environmentName

        CreateComponentRequest.Builder environmentName​(String environmentName)

        The name of the Proton environment that you want to associate this component with. You must specify this when you don't specify serviceInstanceName and serviceName.

        Parameters:
        environmentName - The name of the Proton environment that you want to associate this component with. You must specify this when you don't specify serviceInstanceName and serviceName.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • manifest

        CreateComponentRequest.Builder manifest​(String manifest)

        A path to a manifest file that lists the Infrastructure as Code (IaC) file, template language, and rendering engine for infrastructure that a custom component provisions.

        Parameters:
        manifest - A path to a manifest file that lists the Infrastructure as Code (IaC) file, template language, and rendering engine for infrastructure that a custom component provisions.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        CreateComponentRequest.Builder name​(String name)

        The customer-provided name of the component.

        Parameters:
        name - The customer-provided name of the component.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceInstanceName

        CreateComponentRequest.Builder serviceInstanceName​(String serviceInstanceName)

        The name of the service instance that you want to attach this component to. If you don't specify this, the component isn't attached to any service instance. Specify both serviceInstanceName and serviceName or neither of them.

        Parameters:
        serviceInstanceName - The name of the service instance that you want to attach this component to. If you don't specify this, the component isn't attached to any service instance. Specify both serviceInstanceName and serviceName or neither of them.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceName

        CreateComponentRequest.Builder serviceName​(String serviceName)

        The name of the service that serviceInstanceName is associated with. If you don't specify this, the component isn't attached to any service instance. Specify both serviceInstanceName and serviceName or neither of them.

        Parameters:
        serviceName - The name of the service that serviceInstanceName is associated with. If you don't specify this, the component isn't attached to any service instance. Specify both serviceInstanceName and serviceName or neither of them.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceSpec

        CreateComponentRequest.Builder serviceSpec​(String serviceSpec)

        The service spec that you want the component to use to access service inputs. Set this only when you attach the component to a service instance.

        Parameters:
        serviceSpec - The service spec that you want the component to use to access service inputs. Set this only when you attach the component to a service instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        An optional list of metadata items that you can associate with the Proton component. 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 component. 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

        CreateComponentRequest.Builder tags​(Tag... tags)

        An optional list of metadata items that you can associate with the Proton component. 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 component. 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

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

        An optional list of metadata items that you can associate with the Proton component. 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)
      • templateFile

        CreateComponentRequest.Builder templateFile​(String templateFile)

        A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.

        Components support a single IaC file, even if you use Terraform as your template language.

        Parameters:
        templateFile - A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.

        Components support a single IaC file, even if you use Terraform as your template language.

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