@Generated(value="software.amazon.awssdk:codegen") public final class CreateRepositoryRequest extends CodeCommitRequest implements ToCopyableBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>
Represents the input of a create repository operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateRepositoryRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateRepositoryRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
repositoryDescription()
A comment or description about the new repository.
|
String |
repositoryName()
The name of the new repository to be created.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateRepositoryRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
One or more tag key-value pairs to use when tagging this repository.
|
CreateRepositoryRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String repositoryName()
The name of the new repository to be created.
The repository name must be unique across the calling AWS 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 Limits in the AWS CodeCommit User Guide. The suffix .git is prohibited.
The repository name must be unique across the calling AWS 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 Limits in the AWS CodeCommit User Guide. The suffix .git is prohibited.
public 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.
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 boolean hasTags()
public Map<String,String> tags()
One or more tag key-value pairs to use when tagging this repository.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public CreateRepositoryRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateRepositoryRequest.Builder,CreateRepositoryRequest>toBuilder in class CodeCommitRequestpublic static CreateRepositoryRequest.Builder builder()
public static Class<? extends CreateRepositoryRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.