@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRepositoryRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of a create repository operation.
NOOP
Constructor and Description |
---|
CreateRepositoryRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRepositoryRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateRepositoryRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateRepositoryRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The ID of the encryption key.
|
String |
getRepositoryDescription()
A comment or description about the new repository.
|
String |
getRepositoryName()
The name of the new repository to be created.
|
Map<String,String> |
getTags()
One or more tag key-value pairs to use when tagging this repository.
|
int |
hashCode() |
void |
setKmsKeyId(String kmsKeyId)
The ID of the encryption key.
|
void |
setRepositoryDescription(String repositoryDescription)
A comment or description about the new repository.
|
void |
setRepositoryName(String repositoryName)
The name of the new repository to be created.
|
void |
setTags(Map<String,String> tags)
One or more tag key-value pairs to use when tagging this repository.
|
String |
toString()
Returns a string representation of this object.
|
CreateRepositoryRequest |
withKmsKeyId(String kmsKeyId)
The ID of the encryption key.
|
CreateRepositoryRequest |
withRepositoryDescription(String repositoryDescription)
A comment or description about the new repository.
|
CreateRepositoryRequest |
withRepositoryName(String repositoryName)
The name of the new repository to be created.
|
CreateRepositoryRequest |
withTags(Map<String,String> tags)
One or more tag key-value pairs to use when tagging this 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 setRepositoryName(String repositoryName)
The name of the new repository to be created.
The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide. The suffix .git is prohibited.
repositoryName
- The name of the new repository to be created. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide. The suffix .git is prohibited.
public String getRepositoryName()
The name of the new repository to be created.
The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide. The suffix .git is prohibited.
The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide. The suffix .git is prohibited.
public CreateRepositoryRequest withRepositoryName(String repositoryName)
The name of the new repository to be created.
The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide. The suffix .git is prohibited.
repositoryName
- The name of the new repository to be created. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide. The suffix .git is prohibited.
public void setRepositoryDescription(String repositoryDescription)
A comment or description about the new repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
repositoryDescription
- A comment or description about the new repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
public String getRepositoryDescription()
A comment or description about the new repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
public CreateRepositoryRequest withRepositoryDescription(String repositoryDescription)
A comment or description about the new repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
repositoryDescription
- A comment or description about the new repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
public Map<String,String> getTags()
One or more tag key-value pairs to use when tagging this repository.
public void setTags(Map<String,String> tags)
One or more tag key-value pairs to use when tagging this repository.
tags
- One or more tag key-value pairs to use when tagging this repository.public CreateRepositoryRequest withTags(Map<String,String> tags)
One or more tag key-value pairs to use when tagging this repository.
tags
- One or more tag key-value pairs to use when tagging this repository.public CreateRepositoryRequest addTagsEntry(String key, String value)
public CreateRepositoryRequest clearTagsEntries()
public void setKmsKeyId(String kmsKeyId)
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
If no key is specified, the default aws/codecommit
Amazon Web Services managed key is used.
kmsKeyId
- The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS
APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see
KeyId in the Decrypt API description in the Key Management Service API Reference.
If no key is specified, the default aws/codecommit
Amazon Web Services managed key is used.
public String getKmsKeyId()
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
If no key is specified, the default aws/codecommit
Amazon Web Services managed key is used.
If no key is specified, the default aws/codecommit
Amazon Web Services managed key is used.
public CreateRepositoryRequest withKmsKeyId(String kmsKeyId)
The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see KeyId in the Decrypt API description in the Key Management Service API Reference.
If no key is specified, the default aws/codecommit
Amazon Web Services managed key is used.
kmsKeyId
- The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS
APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see
KeyId in the Decrypt API description in the Key Management Service API Reference.
If no key is specified, the default aws/codecommit
Amazon Web Services managed key is used.
public String toString()
toString
in class Object
Object.toString()
public CreateRepositoryRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()