@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRepositoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateRepositoryRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRepositoryRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A description of the created repository.
|
String |
getDomain()
The name of the domain that contains the created repository.
|
String |
getDomainOwner()
The 12-digit account number of the AWS account that owns the domain.
|
String |
getRepository()
The name of the repository to create.
|
List<Tag> |
getTags()
One or more tag key-value pairs for the repository.
|
List<UpstreamRepository> |
getUpstreams()
A list of upstream repositories to associate with the repository.
|
int |
hashCode() |
void |
setDescription(String description)
A description of the created repository.
|
void |
setDomain(String domain)
The name of the domain that contains the created repository.
|
void |
setDomainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain.
|
void |
setRepository(String repository)
The name of the repository to create.
|
void |
setTags(Collection<Tag> tags)
One or more tag key-value pairs for the repository.
|
void |
setUpstreams(Collection<UpstreamRepository> upstreams)
A list of upstream repositories to associate with the repository.
|
String |
toString()
Returns a string representation of this object.
|
CreateRepositoryRequest |
withDescription(String description)
A description of the created repository.
|
CreateRepositoryRequest |
withDomain(String domain)
The name of the domain that contains the created repository.
|
CreateRepositoryRequest |
withDomainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain.
|
CreateRepositoryRequest |
withRepository(String repository)
The name of the repository to create.
|
CreateRepositoryRequest |
withTags(Collection<Tag> tags)
One or more tag key-value pairs for the repository.
|
CreateRepositoryRequest |
withTags(Tag... tags)
One or more tag key-value pairs for the repository.
|
CreateRepositoryRequest |
withUpstreams(Collection<UpstreamRepository> upstreams)
A list of upstream repositories to associate with the repository.
|
CreateRepositoryRequest |
withUpstreams(UpstreamRepository... upstreams)
A list of upstream repositories to associate with the repository.
|
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 void setDomain(String domain)
The name of the domain that contains the created repository.
domain
- The name of the domain that contains the created repository.public String getDomain()
The name of the domain that contains the created repository.
public CreateRepositoryRequest withDomain(String domain)
The name of the domain that contains the created repository.
domain
- The name of the domain that contains the created repository.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.
domainOwner
- The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.public String getDomainOwner()
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
public CreateRepositoryRequest withDomainOwner(String domainOwner)
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
domainOwner
- The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.public void setRepository(String repository)
The name of the repository to create.
repository
- The name of the repository to create.public String getRepository()
The name of the repository to create.
public CreateRepositoryRequest withRepository(String repository)
The name of the repository to create.
repository
- The name of the repository to create.public void setDescription(String description)
A description of the created repository.
description
- A description of the created repository.public String getDescription()
A description of the created repository.
public CreateRepositoryRequest withDescription(String description)
A description of the created repository.
description
- A description of the created repository.public List<UpstreamRepository> getUpstreams()
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
public void setUpstreams(Collection<UpstreamRepository> upstreams)
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
upstreams
- A list of upstream repositories to associate with the repository. The order of the upstream repositories
in the list determines their priority order when AWS CodeArtifact looks for a requested package version.
For more information, see Working with upstream
repositories.public CreateRepositoryRequest withUpstreams(UpstreamRepository... upstreams)
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
NOTE: This method appends the values to the existing list (if any). Use
setUpstreams(java.util.Collection)
or withUpstreams(java.util.Collection)
if you want to
override the existing values.
upstreams
- A list of upstream repositories to associate with the repository. The order of the upstream repositories
in the list determines their priority order when AWS CodeArtifact looks for a requested package version.
For more information, see Working with upstream
repositories.public CreateRepositoryRequest withUpstreams(Collection<UpstreamRepository> upstreams)
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
upstreams
- A list of upstream repositories to associate with the repository. The order of the upstream repositories
in the list determines their priority order when AWS CodeArtifact looks for a requested package version.
For more information, see Working with upstream
repositories.public List<Tag> getTags()
One or more tag key-value pairs for the repository.
public void setTags(Collection<Tag> tags)
One or more tag key-value pairs for the repository.
tags
- One or more tag key-value pairs for the repository.public CreateRepositoryRequest withTags(Tag... tags)
One or more tag key-value pairs for the repository.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- One or more tag key-value pairs for the repository.public CreateRepositoryRequest withTags(Collection<Tag> tags)
One or more tag key-value pairs for the repository.
tags
- One or more tag key-value pairs for the repository.public String toString()
toString
in class Object
Object.toString()
public CreateRepositoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()