JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.codeartifact.model

Class PublishPackageVersionRequest

    • Constructor Detail

      • PublishPackageVersionRequest

        public PublishPackageVersionRequest()
    • Method Detail

      • setDomain

        public void setDomain(String domain)

        The name of the domain that contains the repository that contains the package version to publish.

        Parameters:
        domain - The name of the domain that contains the repository that contains the package version to publish.
      • getDomain

        public String getDomain()

        The name of the domain that contains the repository that contains the package version to publish.

        Returns:
        The name of the domain that contains the repository that contains the package version to publish.
      • withDomain

        public PublishPackageVersionRequest withDomain(String domain)

        The name of the domain that contains the repository that contains the package version to publish.

        Parameters:
        domain - The name of the domain that contains the repository that contains the package version to publish.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDomainOwner

        public void setDomainOwner(String domainOwner)

        The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

        Parameters:
        domainOwner - The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
      • getDomainOwner

        public String getDomainOwner()

        The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

        Returns:
        The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
      • withDomainOwner

        public PublishPackageVersionRequest withDomainOwner(String domainOwner)

        The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.

        Parameters:
        domainOwner - The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRepository

        public void setRepository(String repository)

        The name of the repository that the package version will be published to.

        Parameters:
        repository - The name of the repository that the package version will be published to.
      • getRepository

        public String getRepository()

        The name of the repository that the package version will be published to.

        Returns:
        The name of the repository that the package version will be published to.
      • withRepository

        public PublishPackageVersionRequest withRepository(String repository)

        The name of the repository that the package version will be published to.

        Parameters:
        repository - The name of the repository that the package version will be published to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setFormat

        public void setFormat(String format)

        A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        Parameters:
        format - A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        See Also:
        PackageFormat
      • getFormat

        public String getFormat()

        A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        Returns:
        A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        See Also:
        PackageFormat
      • withFormat

        public PublishPackageVersionRequest withFormat(String format)

        A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        Parameters:
        format - A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PackageFormat
      • withFormat

        public PublishPackageVersionRequest withFormat(PackageFormat format)

        A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        Parameters:
        format - A format that specifies the type of the package version with the requested asset file.

        The only supported value is generic.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PackageFormat
      • setNamespace

        public void setNamespace(String namespace)

        The namespace of the package version to publish.

        Parameters:
        namespace - The namespace of the package version to publish.
      • getNamespace

        public String getNamespace()

        The namespace of the package version to publish.

        Returns:
        The namespace of the package version to publish.
      • withNamespace

        public PublishPackageVersionRequest withNamespace(String namespace)

        The namespace of the package version to publish.

        Parameters:
        namespace - The namespace of the package version to publish.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPackage

        public void setPackage(String packageValue)

        The name of the package version to publish.

        Parameters:
        packageValue - The name of the package version to publish.
      • getPackage

        public String getPackage()

        The name of the package version to publish.

        Returns:
        The name of the package version to publish.
      • withPackage

        public PublishPackageVersionRequest withPackage(String packageValue)

        The name of the package version to publish.

        Parameters:
        packageValue - The name of the package version to publish.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPackageVersion

        public void setPackageVersion(String packageVersion)

        The package version to publish (for example, 3.5.2).

        Parameters:
        packageVersion - The package version to publish (for example, 3.5.2).
      • getPackageVersion

        public String getPackageVersion()

        The package version to publish (for example, 3.5.2).

        Returns:
        The package version to publish (for example, 3.5.2).
      • withPackageVersion

        public PublishPackageVersionRequest withPackageVersion(String packageVersion)

        The package version to publish (for example, 3.5.2).

        Parameters:
        packageVersion - The package version to publish (for example, 3.5.2).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAssetContent

        public void setAssetContent(InputStream assetContent)

        The content of the asset to publish.

        Parameters:
        assetContent - The content of the asset to publish.
      • getAssetContent

        public InputStream getAssetContent()

        The content of the asset to publish.

        Returns:
        The content of the asset to publish.
      • withAssetContent

        public PublishPackageVersionRequest withAssetContent(InputStream assetContent)

        The content of the asset to publish.

        Parameters:
        assetContent - The content of the asset to publish.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAssetName

        public void setAssetName(String assetName)

        The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `

        Parameters:
        assetName - The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `
      • getAssetName

        public String getAssetName()

        The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `

        Returns:
        The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `
      • withAssetName

        public PublishPackageVersionRequest withAssetName(String assetName)

        The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `

        Parameters:
        assetName - The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAssetSHA256

        public void setAssetSHA256(String assetSHA256)

        The SHA256 hash of the assetContent to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).

        This value is used as an integrity check to verify that the assetContent has not changed after it was originally sent.

        Parameters:
        assetSHA256 - The SHA256 hash of the assetContent to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).

        This value is used as an integrity check to verify that the assetContent has not changed after it was originally sent.

      • getAssetSHA256

        public String getAssetSHA256()

        The SHA256 hash of the assetContent to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).

        This value is used as an integrity check to verify that the assetContent has not changed after it was originally sent.

        Returns:
        The SHA256 hash of the assetContent to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).

        This value is used as an integrity check to verify that the assetContent has not changed after it was originally sent.

      • withAssetSHA256

        public PublishPackageVersionRequest withAssetSHA256(String assetSHA256)

        The SHA256 hash of the assetContent to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).

        This value is used as an integrity check to verify that the assetContent has not changed after it was originally sent.

        Parameters:
        assetSHA256 - The SHA256 hash of the assetContent to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).

        This value is used as an integrity check to verify that the assetContent has not changed after it was originally sent.

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

        public void setUnfinished(Boolean unfinished)

        Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

        Parameters:
        unfinished - Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

      • getUnfinished

        public Boolean getUnfinished()

        Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

        Returns:
        Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

      • withUnfinished

        public PublishPackageVersionRequest withUnfinished(Boolean unfinished)

        Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

        Parameters:
        unfinished - Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

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

        public Boolean isUnfinished()

        Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

        Returns:
        Specifies whether the package version should remain in the unfinished state. If omitted, the package version status will be set to Published (see Package version status in the CodeArtifact User Guide).

        Valid values: unfinished

      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /