#[non_exhaustive]pub struct TrafficDistributionGroupBuilder { /* private fields */ }
Expand description
A builder for TrafficDistributionGroup
.
Implementations§
source§impl TrafficDistributionGroupBuilder
impl TrafficDistributionGroupBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the traffic distribution group. This can be the ID or the ARN if the API is being called in the Region where the traffic distribution group was created. The ARN must be provided if the call is from the replicated Region.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The identifier of the traffic distribution group. This can be the ID or the ARN if the API is being called in the Region where the traffic distribution group was created. The ARN must be provided if the call is from the replicated Region.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The identifier of the traffic distribution group. This can be the ID or the ARN if the API is being called in the Region where the traffic distribution group was created. The ARN must be provided if the call is from the replicated Region.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the traffic distribution group.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the traffic distribution group.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the traffic distribution group.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the traffic distribution group.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the traffic distribution group.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the traffic distribution group.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the traffic distribution group.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the traffic distribution group.
sourcepub fn instance_arn(self, input: impl Into<String>) -> Self
pub fn instance_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN).
sourcepub fn set_instance_arn(self, input: Option<String>) -> Self
pub fn set_instance_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN).
sourcepub fn get_instance_arn(&self) -> &Option<String>
pub fn get_instance_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN).
sourcepub fn status(self, input: TrafficDistributionGroupStatus) -> Self
pub fn status(self, input: TrafficDistributionGroupStatus) -> Self
The status of the traffic distribution group.
-
CREATION_IN_PROGRESS
means the previous CreateTrafficDistributionGroup operation is still in progress and has not yet completed. -
ACTIVE
means the previous CreateTrafficDistributionGroup operation has succeeded. -
CREATION_FAILED
indicates that the previous CreateTrafficDistributionGroup operation has failed. -
PENDING_DELETION
means the previous DeleteTrafficDistributionGroup operation is still in progress and has not yet completed. -
DELETION_FAILED
means the previous DeleteTrafficDistributionGroup operation has failed. -
UPDATE_IN_PROGRESS
means the previous UpdateTrafficDistribution operation is still in progress and has not yet completed.
sourcepub fn set_status(self, input: Option<TrafficDistributionGroupStatus>) -> Self
pub fn set_status(self, input: Option<TrafficDistributionGroupStatus>) -> Self
The status of the traffic distribution group.
-
CREATION_IN_PROGRESS
means the previous CreateTrafficDistributionGroup operation is still in progress and has not yet completed. -
ACTIVE
means the previous CreateTrafficDistributionGroup operation has succeeded. -
CREATION_FAILED
indicates that the previous CreateTrafficDistributionGroup operation has failed. -
PENDING_DELETION
means the previous DeleteTrafficDistributionGroup operation is still in progress and has not yet completed. -
DELETION_FAILED
means the previous DeleteTrafficDistributionGroup operation has failed. -
UPDATE_IN_PROGRESS
means the previous UpdateTrafficDistribution operation is still in progress and has not yet completed.
sourcepub fn get_status(&self) -> &Option<TrafficDistributionGroupStatus>
pub fn get_status(&self) -> &Option<TrafficDistributionGroupStatus>
The status of the traffic distribution group.
-
CREATION_IN_PROGRESS
means the previous CreateTrafficDistributionGroup operation is still in progress and has not yet completed. -
ACTIVE
means the previous CreateTrafficDistributionGroup operation has succeeded. -
CREATION_FAILED
indicates that the previous CreateTrafficDistributionGroup operation has failed. -
PENDING_DELETION
means the previous DeleteTrafficDistributionGroup operation is still in progress and has not yet completed. -
DELETION_FAILED
means the previous DeleteTrafficDistributionGroup operation has failed. -
UPDATE_IN_PROGRESS
means the previous UpdateTrafficDistribution operation is still in progress and has not yet completed.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
sourcepub fn is_default(self, input: bool) -> Self
pub fn is_default(self, input: bool) -> Self
Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup
API. The default traffic distribution group is deleted as part of the process for deleting a replica.
The SignInConfig
distribution is available only on a default TrafficDistributionGroup
(see the IsDefault
parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution
with a modified SignInConfig
and a non-default TrafficDistributionGroup
, an InvalidRequestException
is returned.
sourcepub fn set_is_default(self, input: Option<bool>) -> Self
pub fn set_is_default(self, input: Option<bool>) -> Self
Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup
API. The default traffic distribution group is deleted as part of the process for deleting a replica.
The SignInConfig
distribution is available only on a default TrafficDistributionGroup
(see the IsDefault
parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution
with a modified SignInConfig
and a non-default TrafficDistributionGroup
, an InvalidRequestException
is returned.
sourcepub fn get_is_default(&self) -> &Option<bool>
pub fn get_is_default(&self) -> &Option<bool>
Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup
API. The default traffic distribution group is deleted as part of the process for deleting a replica.
The SignInConfig
distribution is available only on a default TrafficDistributionGroup
(see the IsDefault
parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution
with a modified SignInConfig
and a non-default TrafficDistributionGroup
, an InvalidRequestException
is returned.
sourcepub fn build(self) -> TrafficDistributionGroup
pub fn build(self) -> TrafficDistributionGroup
Consumes the builder and constructs a TrafficDistributionGroup
.
Trait Implementations§
source§impl Clone for TrafficDistributionGroupBuilder
impl Clone for TrafficDistributionGroupBuilder
source§fn clone(&self) -> TrafficDistributionGroupBuilder
fn clone(&self) -> TrafficDistributionGroupBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TrafficDistributionGroupBuilder
impl Default for TrafficDistributionGroupBuilder
source§fn default() -> TrafficDistributionGroupBuilder
fn default() -> TrafficDistributionGroupBuilder
source§impl PartialEq for TrafficDistributionGroupBuilder
impl PartialEq for TrafficDistributionGroupBuilder
source§fn eq(&self, other: &TrafficDistributionGroupBuilder) -> bool
fn eq(&self, other: &TrafficDistributionGroupBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.