Struct aws_sdk_ssm::operation::create_resource_data_sync::builders::CreateResourceDataSyncInputBuilder
source · #[non_exhaustive]pub struct CreateResourceDataSyncInputBuilder { /* private fields */ }
Expand description
A builder for CreateResourceDataSyncInput
.
Implementations§
source§impl CreateResourceDataSyncInputBuilder
impl CreateResourceDataSyncInputBuilder
sourcepub fn sync_name(self, input: impl Into<String>) -> Self
pub fn sync_name(self, input: impl Into<String>) -> Self
A name for the configuration.
This field is required.sourcepub fn set_sync_name(self, input: Option<String>) -> Self
pub fn set_sync_name(self, input: Option<String>) -> Self
A name for the configuration.
sourcepub fn get_sync_name(&self) -> &Option<String>
pub fn get_sync_name(&self) -> &Option<String>
A name for the configuration.
sourcepub fn s3_destination(self, input: ResourceDataSyncS3Destination) -> Self
pub fn s3_destination(self, input: ResourceDataSyncS3Destination) -> Self
Amazon S3 configuration details for the sync. This parameter is required if the SyncType
value is SyncToDestination.
sourcepub fn set_s3_destination(
self,
input: Option<ResourceDataSyncS3Destination>
) -> Self
pub fn set_s3_destination( self, input: Option<ResourceDataSyncS3Destination> ) -> Self
Amazon S3 configuration details for the sync. This parameter is required if the SyncType
value is SyncToDestination.
sourcepub fn get_s3_destination(&self) -> &Option<ResourceDataSyncS3Destination>
pub fn get_s3_destination(&self) -> &Option<ResourceDataSyncS3Destination>
Amazon S3 configuration details for the sync. This parameter is required if the SyncType
value is SyncToDestination.
sourcepub fn sync_type(self, input: impl Into<String>) -> Self
pub fn sync_type(self, input: impl Into<String>) -> Self
Specify SyncToDestination
to create a resource data sync that synchronizes data to an S3 bucket for Inventory. If you specify SyncToDestination
, you must provide a value for S3Destination
. Specify SyncFromSource
to synchronize data from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as listed in Organizations for Explorer. If you specify SyncFromSource
, you must provide a value for SyncSource
. The default value is SyncToDestination
.
sourcepub fn set_sync_type(self, input: Option<String>) -> Self
pub fn set_sync_type(self, input: Option<String>) -> Self
Specify SyncToDestination
to create a resource data sync that synchronizes data to an S3 bucket for Inventory. If you specify SyncToDestination
, you must provide a value for S3Destination
. Specify SyncFromSource
to synchronize data from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as listed in Organizations for Explorer. If you specify SyncFromSource
, you must provide a value for SyncSource
. The default value is SyncToDestination
.
sourcepub fn get_sync_type(&self) -> &Option<String>
pub fn get_sync_type(&self) -> &Option<String>
Specify SyncToDestination
to create a resource data sync that synchronizes data to an S3 bucket for Inventory. If you specify SyncToDestination
, you must provide a value for S3Destination
. Specify SyncFromSource
to synchronize data from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as listed in Organizations for Explorer. If you specify SyncFromSource
, you must provide a value for SyncSource
. The default value is SyncToDestination
.
sourcepub fn sync_source(self, input: ResourceDataSyncSource) -> Self
pub fn sync_source(self, input: ResourceDataSyncSource) -> Self
Specify information about the data sources to synchronize. This parameter is required if the SyncType
value is SyncFromSource.
sourcepub fn set_sync_source(self, input: Option<ResourceDataSyncSource>) -> Self
pub fn set_sync_source(self, input: Option<ResourceDataSyncSource>) -> Self
Specify information about the data sources to synchronize. This parameter is required if the SyncType
value is SyncFromSource.
sourcepub fn get_sync_source(&self) -> &Option<ResourceDataSyncSource>
pub fn get_sync_source(&self) -> &Option<ResourceDataSyncSource>
Specify information about the data sources to synchronize. This parameter is required if the SyncType
value is SyncFromSource.
sourcepub fn build(self) -> Result<CreateResourceDataSyncInput, BuildError>
pub fn build(self) -> Result<CreateResourceDataSyncInput, BuildError>
Consumes the builder and constructs a CreateResourceDataSyncInput
.
source§impl CreateResourceDataSyncInputBuilder
impl CreateResourceDataSyncInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateResourceDataSyncOutput, SdkError<CreateResourceDataSyncError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateResourceDataSyncOutput, SdkError<CreateResourceDataSyncError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateResourceDataSyncInputBuilder
impl Clone for CreateResourceDataSyncInputBuilder
source§fn clone(&self) -> CreateResourceDataSyncInputBuilder
fn clone(&self) -> CreateResourceDataSyncInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateResourceDataSyncInputBuilder
impl Default for CreateResourceDataSyncInputBuilder
source§fn default() -> CreateResourceDataSyncInputBuilder
fn default() -> CreateResourceDataSyncInputBuilder
source§impl PartialEq for CreateResourceDataSyncInputBuilder
impl PartialEq for CreateResourceDataSyncInputBuilder
source§fn eq(&self, other: &CreateResourceDataSyncInputBuilder) -> bool
fn eq(&self, other: &CreateResourceDataSyncInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.