Struct aws_sdk_codecommit::operation::put_repository_triggers::builders::PutRepositoryTriggersInputBuilder
source · #[non_exhaustive]pub struct PutRepositoryTriggersInputBuilder { /* private fields */ }Expand description
A builder for PutRepositoryTriggersInput.
Implementations§
source§impl PutRepositoryTriggersInputBuilder
impl PutRepositoryTriggersInputBuilder
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository where you want to create or update the trigger.
This field is required.sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository where you want to create or update the trigger.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository where you want to create or update the trigger.
sourcepub fn triggers(self, input: RepositoryTrigger) -> Self
pub fn triggers(self, input: RepositoryTrigger) -> Self
Appends an item to triggers.
To override the contents of this collection use set_triggers.
The JSON block of configuration information for each trigger.
sourcepub fn set_triggers(self, input: Option<Vec<RepositoryTrigger>>) -> Self
pub fn set_triggers(self, input: Option<Vec<RepositoryTrigger>>) -> Self
The JSON block of configuration information for each trigger.
sourcepub fn get_triggers(&self) -> &Option<Vec<RepositoryTrigger>>
pub fn get_triggers(&self) -> &Option<Vec<RepositoryTrigger>>
The JSON block of configuration information for each trigger.
sourcepub fn build(self) -> Result<PutRepositoryTriggersInput, BuildError>
pub fn build(self) -> Result<PutRepositoryTriggersInput, BuildError>
Consumes the builder and constructs a PutRepositoryTriggersInput.
source§impl PutRepositoryTriggersInputBuilder
impl PutRepositoryTriggersInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutRepositoryTriggersOutput, SdkError<PutRepositoryTriggersError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutRepositoryTriggersOutput, SdkError<PutRepositoryTriggersError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutRepositoryTriggersInputBuilder
impl Clone for PutRepositoryTriggersInputBuilder
source§fn clone(&self) -> PutRepositoryTriggersInputBuilder
fn clone(&self) -> PutRepositoryTriggersInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for PutRepositoryTriggersInputBuilder
impl Default for PutRepositoryTriggersInputBuilder
source§fn default() -> PutRepositoryTriggersInputBuilder
fn default() -> PutRepositoryTriggersInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PutRepositoryTriggersInputBuilder
impl PartialEq for PutRepositoryTriggersInputBuilder
source§fn eq(&self, other: &PutRepositoryTriggersInputBuilder) -> bool
fn eq(&self, other: &PutRepositoryTriggersInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PutRepositoryTriggersInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PutRepositoryTriggersInputBuilder
impl Send for PutRepositoryTriggersInputBuilder
impl Sync for PutRepositoryTriggersInputBuilder
impl Unpin for PutRepositoryTriggersInputBuilder
impl UnwindSafe for PutRepositoryTriggersInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.