@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutPackageOriginConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutPackageOriginConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
PutPackageOriginConfigurationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDomain()
The name of the domain that contains the repository that contains the package.
|
String |
getDomainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
String |
getFormat()
A format that specifies the type of the package to be updated.
|
String |
getNamespace()
The namespace of the package to be updated.
|
String |
getPackage()
The name of the package to be updated.
|
String |
getRepository()
The name of the repository that contains the package.
|
PackageOriginRestrictions |
getRestrictions()
A
PackageOriginRestrictions object that contains information about the
upstream and
publish package origin restrictions. |
int |
hashCode() |
void |
setDomain(String domain)
The name of the domain that contains the repository that contains the package.
|
void |
setDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
void |
setFormat(String format)
A format that specifies the type of the package to be updated.
|
void |
setNamespace(String namespace)
The namespace of the package to be updated.
|
void |
setPackage(String packageValue)
The name of the package to be updated.
|
void |
setRepository(String repository)
The name of the repository that contains the package.
|
void |
setRestrictions(PackageOriginRestrictions restrictions)
A
PackageOriginRestrictions object that contains information about the
upstream and
publish package origin restrictions. |
String |
toString()
Returns a string representation of this object.
|
PutPackageOriginConfigurationRequest |
withDomain(String domain)
The name of the domain that contains the repository that contains the package.
|
PutPackageOriginConfigurationRequest |
withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain.
|
PutPackageOriginConfigurationRequest |
withFormat(PackageFormat format)
A format that specifies the type of the package to be updated.
|
PutPackageOriginConfigurationRequest |
withFormat(String format)
A format that specifies the type of the package to be updated.
|
PutPackageOriginConfigurationRequest |
withNamespace(String namespace)
The namespace of the package to be updated.
|
PutPackageOriginConfigurationRequest |
withPackage(String packageValue)
The name of the package to be updated.
|
PutPackageOriginConfigurationRequest |
withRepository(String repository)
The name of the repository that contains the package.
|
PutPackageOriginConfigurationRequest |
withRestrictions(PackageOriginRestrictions restrictions)
A
PackageOriginRestrictions object that contains information about the
upstream and
publish package origin restrictions. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public PutPackageOriginConfigurationRequest()
public void setDomain(String domain)
The name of the domain that contains the repository that contains the package.
domain
- The name of the domain that contains the repository that contains the package.public String getDomain()
The name of the domain that contains the repository that contains the package.
public PutPackageOriginConfigurationRequest withDomain(String domain)
The name of the domain that contains the repository that contains the package.
domain
- The name of the domain that contains the repository that contains the package.public void setDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
domainOwner
- 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()
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
public PutPackageOriginConfigurationRequest withDomainOwner(String domainOwner)
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
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 setRepository(String repository)
The name of the repository that contains the package.
repository
- The name of the repository that contains the package.public String getRepository()
The name of the repository that contains the package.
public PutPackageOriginConfigurationRequest withRepository(String repository)
The name of the repository that contains the package.
repository
- The name of the repository that contains the package.public void setFormat(String format)
A format that specifies the type of the package to be updated.
format
- A format that specifies the type of the package to be updated.PackageFormat
public String getFormat()
A format that specifies the type of the package to be updated.
PackageFormat
public PutPackageOriginConfigurationRequest withFormat(String format)
A format that specifies the type of the package to be updated.
format
- A format that specifies the type of the package to be updated.PackageFormat
public PutPackageOriginConfigurationRequest withFormat(PackageFormat format)
A format that specifies the type of the package to be updated.
format
- A format that specifies the type of the package to be updated.PackageFormat
public void setNamespace(String namespace)
The namespace of the package to be updated. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
namespace
- The namespace of the package to be updated. The package component that specifies its namespace depends on
its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
public String getNamespace()
The namespace of the package to be updated. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
public PutPackageOriginConfigurationRequest withNamespace(String namespace)
The namespace of the package to be updated. The package component that specifies its namespace depends on its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
namespace
- The namespace of the package to be updated. The package component that specifies its namespace depends on
its type. For example:
The namespace of a Maven package version is its groupId
.
The namespace of an npm or Swift package version is its scope
.
The namespace of a generic package is its namespace
.
Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
public void setPackage(String packageValue)
The name of the package to be updated.
packageValue
- The name of the package to be updated.public String getPackage()
The name of the package to be updated.
public PutPackageOriginConfigurationRequest withPackage(String packageValue)
The name of the package to be updated.
packageValue
- The name of the package to be updated.public void setRestrictions(PackageOriginRestrictions restrictions)
A
PackageOriginRestrictions object that contains information about the upstream
and
publish
package origin restrictions. The upstream
restriction determines if new package
versions can be ingested or retained from external connections or upstream repositories. The publish
restriction determines if new package versions can be published directly to the repository.
You must include both the desired upstream
and publish
restrictions.
restrictions
- A PackageOriginRestrictions object that contains information about the upstream
and
publish
package origin restrictions. The upstream
restriction determines if new
package versions can be ingested or retained from external connections or upstream repositories. The
publish
restriction determines if new package versions can be published directly to the
repository.
You must include both the desired upstream
and publish
restrictions.
public PackageOriginRestrictions getRestrictions()
A
PackageOriginRestrictions object that contains information about the upstream
and
publish
package origin restrictions. The upstream
restriction determines if new package
versions can be ingested or retained from external connections or upstream repositories. The publish
restriction determines if new package versions can be published directly to the repository.
You must include both the desired upstream
and publish
restrictions.
upstream
and
publish
package origin restrictions. The upstream
restriction determines if new
package versions can be ingested or retained from external connections or upstream repositories. The
publish
restriction determines if new package versions can be published directly to the
repository.
You must include both the desired upstream
and publish
restrictions.
public PutPackageOriginConfigurationRequest withRestrictions(PackageOriginRestrictions restrictions)
A
PackageOriginRestrictions object that contains information about the upstream
and
publish
package origin restrictions. The upstream
restriction determines if new package
versions can be ingested or retained from external connections or upstream repositories. The publish
restriction determines if new package versions can be published directly to the repository.
You must include both the desired upstream
and publish
restrictions.
restrictions
- A PackageOriginRestrictions object that contains information about the upstream
and
publish
package origin restrictions. The upstream
restriction determines if new
package versions can be ingested or retained from external connections or upstream repositories. The
publish
restriction determines if new package versions can be published directly to the
repository.
You must include both the desired upstream
and publish
restrictions.
public String toString()
toString
in class Object
Object.toString()
public PutPackageOriginConfigurationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()