Struct aws_sdk_codecommit::operation::create_repository::builders::CreateRepositoryInputBuilder
source · #[non_exhaustive]pub struct CreateRepositoryInputBuilder { /* private fields */ }
Expand description
A builder for CreateRepositoryInput
.
Implementations§
source§impl CreateRepositoryInputBuilder
impl CreateRepositoryInputBuilder
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
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.
sourcepub fn repository_description(self, input: impl Into<String>) -> Self
pub fn repository_description(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_repository_description(self, input: Option<String>) -> Self
pub fn set_repository_description(self, input: Option<String>) -> Self
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.
sourcepub fn get_repository_description(&self) -> &Option<String>
pub fn get_repository_description(&self) -> &Option<String>
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.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
One or more tag key-value pairs to use when tagging this repository.
One or more tag key-value pairs to use when tagging this repository.
One or more tag key-value pairs to use when tagging this repository.
sourcepub fn build(self) -> Result<CreateRepositoryInput, BuildError>
pub fn build(self) -> Result<CreateRepositoryInput, BuildError>
Consumes the builder and constructs a CreateRepositoryInput
.
source§impl CreateRepositoryInputBuilder
impl CreateRepositoryInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateRepositoryOutput, SdkError<CreateRepositoryError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateRepositoryOutput, SdkError<CreateRepositoryError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateRepositoryInputBuilder
impl Clone for CreateRepositoryInputBuilder
source§fn clone(&self) -> CreateRepositoryInputBuilder
fn clone(&self) -> CreateRepositoryInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRepositoryInputBuilder
impl Debug for CreateRepositoryInputBuilder
source§impl Default for CreateRepositoryInputBuilder
impl Default for CreateRepositoryInputBuilder
source§fn default() -> CreateRepositoryInputBuilder
fn default() -> CreateRepositoryInputBuilder
source§impl PartialEq for CreateRepositoryInputBuilder
impl PartialEq for CreateRepositoryInputBuilder
source§fn eq(&self, other: &CreateRepositoryInputBuilder) -> bool
fn eq(&self, other: &CreateRepositoryInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.