/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codeartifact.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetPackageVersionAssetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the domain that contains the repository that contains the package version with the requested asset. *

*/ private String domain; /** *

* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes * or spaces. *

*/ private String domainOwner; /** *

* The repository that contains the package version with the requested asset. *

*/ private String repository; /** *

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

*/ private String format; /** *

* The namespace of the package version with the requested asset file. The package version component that specifies * its namespace depends on its type. For example: *

* */ private String namespace; /** *

* The name of the package that contains the requested asset. *

*/ private String packageValue; /** *

* A string that contains the package version (for example, 3.5.2). *

*/ private String packageVersion; /** *

* The name of the requested asset. *

*/ private String asset; /** *

* The name of the package version revision that contains the requested asset. *

*/ private String packageVersionRevision; /** *

* The name of the domain that contains the repository that contains the package version with the requested asset. *

* * @param domain * The name of the domain that contains the repository that contains the package version with the requested * asset. */ public void setDomain(String domain) { this.domain = domain; } /** *

* The name of the domain that contains the repository that contains the package version with the requested asset. *

* * @return The name of the domain that contains the repository that contains the package version with the requested * asset. */ public String getDomain() { return this.domain; } /** *

* The name of the domain that contains the repository that contains the package version with the requested asset. *

* * @param domain * The name of the domain that contains the repository that contains the package version with the requested * asset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPackageVersionAssetRequest withDomain(String domain) { setDomain(domain); return this; } /** *

* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes * or spaces. *

* * @param domainOwner * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include * dashes or spaces. */ public void setDomainOwner(String domainOwner) { this.domainOwner = domainOwner; } /** *

* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes * or spaces. *

* * @return The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include * dashes or spaces. */ public String getDomainOwner() { return this.domainOwner; } /** *

* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes * or spaces. *

* * @param domainOwner * The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include * dashes or spaces. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPackageVersionAssetRequest withDomainOwner(String domainOwner) { setDomainOwner(domainOwner); return this; } /** *

* The repository that contains the package version with the requested asset. *

* * @param repository * The repository that contains the package version with the requested asset. */ public void setRepository(String repository) { this.repository = repository; } /** *

* The repository that contains the package version with the requested asset. *

* * @return The repository that contains the package version with the requested asset. */ public String getRepository() { return this.repository; } /** *

* The repository that contains the package version with the requested asset. *

* * @param repository * The repository that contains the package version with the requested asset. * @return Returns a reference to this object so that method calls can be chained together. */ public GetPackageVersionAssetRequest withRepository(String repository) { setRepository(repository); return this; } /** *

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

* * @param format * A format that specifies the type of the package version with the requested asset file. * @see PackageFormat */ public void setFormat(String format) { this.format = format; } /** *

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

* * @return A format that specifies the type of the package version with the requested asset file. * @see PackageFormat */ public String getFormat() { return this.format; } /** *

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

* * @param format * A format that specifies the type of the package version with the requested asset file. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageFormat */ public GetPackageVersionAssetRequest withFormat(String format) { setFormat(format); return this; } /** *

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

* * @param format * A format that specifies the type of the package version with the requested asset file. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageFormat */ public GetPackageVersionAssetRequest withFormat(PackageFormat format) { this.format = format.toString(); return this; } /** *

* The namespace of the package version with the requested asset file. The package version component that specifies * its namespace depends on its type. For example: *

* * * @param namespace * The namespace of the package version with the requested asset file. The package version component that * specifies its namespace depends on its type. For example:

*