Struct aws_sdk_proton::operation::create_template_sync_config::builders::CreateTemplateSyncConfigFluentBuilder
source · pub struct CreateTemplateSyncConfigFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateTemplateSyncConfig
.
Set up a template to create new template versions automatically by tracking a linked repository. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository
.
When a commit is pushed to your linked repository, Proton checks for changes to your repository template bundles. If it detects a template bundle change, a new major or minor version of its template is created, if the version doesn’t already exist. For more information, see Template sync configurations in the Proton User Guide.
Implementations§
source§impl CreateTemplateSyncConfigFluentBuilder
impl CreateTemplateSyncConfigFluentBuilder
sourcepub fn as_input(&self) -> &CreateTemplateSyncConfigInputBuilder
pub fn as_input(&self) -> &CreateTemplateSyncConfigInputBuilder
Access the CreateTemplateSyncConfig as a reference.
sourcepub async fn send(
self
) -> Result<CreateTemplateSyncConfigOutput, SdkError<CreateTemplateSyncConfigError, HttpResponse>>
pub async fn send( self ) -> Result<CreateTemplateSyncConfigOutput, SdkError<CreateTemplateSyncConfigError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateTemplateSyncConfigOutput, CreateTemplateSyncConfigError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateTemplateSyncConfigOutput, CreateTemplateSyncConfigError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of your registered template.
sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The name of your registered template.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of your registered template.
sourcepub fn template_type(self, input: TemplateType) -> Self
pub fn template_type(self, input: TemplateType) -> Self
The type of the registered template.
sourcepub fn set_template_type(self, input: Option<TemplateType>) -> Self
pub fn set_template_type(self, input: Option<TemplateType>) -> Self
The type of the registered template.
sourcepub fn get_template_type(&self) -> &Option<TemplateType>
pub fn get_template_type(&self) -> &Option<TemplateType>
The type of the registered template.
sourcepub fn repository_provider(self, input: RepositoryProvider) -> Self
pub fn repository_provider(self, input: RepositoryProvider) -> Self
The provider type for your repository.
sourcepub fn set_repository_provider(self, input: Option<RepositoryProvider>) -> Self
pub fn set_repository_provider(self, input: Option<RepositoryProvider>) -> Self
The provider type for your repository.
sourcepub fn get_repository_provider(&self) -> &Option<RepositoryProvider>
pub fn get_repository_provider(&self) -> &Option<RepositoryProvider>
The provider type for your repository.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The repository name (for example, myrepos/myrepo
).
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The repository name (for example, myrepos/myrepo
).
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The repository name (for example, myrepos/myrepo
).
sourcepub fn set_branch(self, input: Option<String>) -> Self
pub fn set_branch(self, input: Option<String>) -> Self
The repository branch for your template.
sourcepub fn get_branch(&self) -> &Option<String>
pub fn get_branch(&self) -> &Option<String>
The repository branch for your template.
sourcepub fn subdirectory(self, input: impl Into<String>) -> Self
pub fn subdirectory(self, input: impl Into<String>) -> Self
A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
sourcepub fn set_subdirectory(self, input: Option<String>) -> Self
pub fn set_subdirectory(self, input: Option<String>) -> Self
A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
sourcepub fn get_subdirectory(&self) -> &Option<String>
pub fn get_subdirectory(&self) -> &Option<String>
A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
Trait Implementations§
source§impl Clone for CreateTemplateSyncConfigFluentBuilder
impl Clone for CreateTemplateSyncConfigFluentBuilder
source§fn clone(&self) -> CreateTemplateSyncConfigFluentBuilder
fn clone(&self) -> CreateTemplateSyncConfigFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more