Struct aws_sdk_drs::operation::create_source_network::builders::CreateSourceNetworkInputBuilder
source · #[non_exhaustive]pub struct CreateSourceNetworkInputBuilder { /* private fields */ }
Expand description
A builder for CreateSourceNetworkInput
.
Implementations§
source§impl CreateSourceNetworkInputBuilder
impl CreateSourceNetworkInputBuilder
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
Which VPC ID to protect.
This field is required.sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
Which VPC ID to protect.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
Which VPC ID to protect.
sourcepub fn origin_account_id(self, input: impl Into<String>) -> Self
pub fn origin_account_id(self, input: impl Into<String>) -> Self
Account containing the VPC to protect.
This field is required.sourcepub fn set_origin_account_id(self, input: Option<String>) -> Self
pub fn set_origin_account_id(self, input: Option<String>) -> Self
Account containing the VPC to protect.
sourcepub fn get_origin_account_id(&self) -> &Option<String>
pub fn get_origin_account_id(&self) -> &Option<String>
Account containing the VPC to protect.
sourcepub fn origin_region(self, input: impl Into<String>) -> Self
pub fn origin_region(self, input: impl Into<String>) -> Self
Region containing the VPC to protect.
This field is required.sourcepub fn set_origin_region(self, input: Option<String>) -> Self
pub fn set_origin_region(self, input: Option<String>) -> Self
Region containing the VPC to protect.
sourcepub fn get_origin_region(&self) -> &Option<String>
pub fn get_origin_region(&self) -> &Option<String>
Region containing the VPC to protect.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A set of tags to be associated with the Source Network resource.
A set of tags to be associated with the Source Network resource.
A set of tags to be associated with the Source Network resource.
sourcepub fn build(self) -> Result<CreateSourceNetworkInput, BuildError>
pub fn build(self) -> Result<CreateSourceNetworkInput, BuildError>
Consumes the builder and constructs a CreateSourceNetworkInput
.
source§impl CreateSourceNetworkInputBuilder
impl CreateSourceNetworkInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSourceNetworkOutput, SdkError<CreateSourceNetworkError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSourceNetworkOutput, SdkError<CreateSourceNetworkError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSourceNetworkInputBuilder
impl Clone for CreateSourceNetworkInputBuilder
source§fn clone(&self) -> CreateSourceNetworkInputBuilder
fn clone(&self) -> CreateSourceNetworkInputBuilder
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 CreateSourceNetworkInputBuilder
impl Default for CreateSourceNetworkInputBuilder
source§fn default() -> CreateSourceNetworkInputBuilder
fn default() -> CreateSourceNetworkInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateSourceNetworkInputBuilder
impl PartialEq for CreateSourceNetworkInputBuilder
source§fn eq(&self, other: &CreateSourceNetworkInputBuilder) -> bool
fn eq(&self, other: &CreateSourceNetworkInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateSourceNetworkInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateSourceNetworkInputBuilder
impl Send for CreateSourceNetworkInputBuilder
impl Sync for CreateSourceNetworkInputBuilder
impl Unpin for CreateSourceNetworkInputBuilder
impl UnwindSafe for CreateSourceNetworkInputBuilder
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.