pub struct Builder { /* private fields */ }
Expand description
A builder for ReplicaAutoScalingDescription
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn region_name(self, input: impl Into<String>) -> Self
pub fn region_name(self, input: impl Into<String>) -> Self
The Region where the replica exists.
sourcepub fn set_region_name(self, input: Option<String>) -> Self
pub fn set_region_name(self, input: Option<String>) -> Self
The Region where the replica exists.
Examples found in repository?
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066
pub(crate) fn deser_structure_crate_model_replica_auto_scaling_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaAutoScalingDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_auto_scaling_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_auto_scaling_description_list(tokens)?
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn global_secondary_indexes(
self,
input: ReplicaGlobalSecondaryIndexAutoScalingDescription
) -> Self
pub fn global_secondary_indexes(
self,
input: ReplicaGlobalSecondaryIndexAutoScalingDescription
) -> Self
Appends an item to global_secondary_indexes
.
To override the contents of this collection use set_global_secondary_indexes
.
Replica-specific global secondary index auto scaling settings.
sourcepub fn set_global_secondary_indexes(
self,
input: Option<Vec<ReplicaGlobalSecondaryIndexAutoScalingDescription>>
) -> Self
pub fn set_global_secondary_indexes(
self,
input: Option<Vec<ReplicaGlobalSecondaryIndexAutoScalingDescription>>
) -> Self
Replica-specific global secondary index auto scaling settings.
Examples found in repository?
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066
pub(crate) fn deser_structure_crate_model_replica_auto_scaling_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaAutoScalingDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_auto_scaling_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_auto_scaling_description_list(tokens)?
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
pub fn replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
Represents the auto scaling settings for a global table or global secondary index.
sourcepub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
pub fn set_replica_provisioned_read_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
Represents the auto scaling settings for a global table or global secondary index.
Examples found in repository?
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066
pub(crate) fn deser_structure_crate_model_replica_auto_scaling_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaAutoScalingDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_auto_scaling_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_auto_scaling_description_list(tokens)?
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
pub fn replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: AutoScalingSettingsDescription
) -> Self
Represents the auto scaling settings for a global table or global secondary index.
sourcepub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
pub fn set_replica_provisioned_write_capacity_auto_scaling_settings(
self,
input: Option<AutoScalingSettingsDescription>
) -> Self
Represents the auto scaling settings for a global table or global secondary index.
Examples found in repository?
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066
pub(crate) fn deser_structure_crate_model_replica_auto_scaling_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaAutoScalingDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_auto_scaling_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_auto_scaling_description_list(tokens)?
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn replica_status(self, input: ReplicaStatus) -> Self
pub fn replica_status(self, input: ReplicaStatus) -> Self
The current state of the replica:
-
CREATING
- The replica is being created. -
UPDATING
- The replica is being updated. -
DELETING
- The replica is being deleted. -
ACTIVE
- The replica is ready for use.
sourcepub fn set_replica_status(self, input: Option<ReplicaStatus>) -> Self
pub fn set_replica_status(self, input: Option<ReplicaStatus>) -> Self
The current state of the replica:
-
CREATING
- The replica is being created. -
UPDATING
- The replica is being updated. -
DELETING
- The replica is being deleted. -
ACTIVE
- The replica is ready for use.
Examples found in repository?
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066
pub(crate) fn deser_structure_crate_model_replica_auto_scaling_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaAutoScalingDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_auto_scaling_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_auto_scaling_description_list(tokens)?
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> ReplicaAutoScalingDescription
pub fn build(self) -> ReplicaAutoScalingDescription
Consumes the builder and constructs a ReplicaAutoScalingDescription
.
Examples found in repository?
10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066
pub(crate) fn deser_structure_crate_model_replica_auto_scaling_description<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ReplicaAutoScalingDescription>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::replica_auto_scaling_description::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"RegionName" => {
builder = builder.set_region_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"GlobalSecondaryIndexes" => {
builder = builder.set_global_secondary_indexes(
crate::json_deser::deser_list_com_amazonaws_dynamodb_replica_global_secondary_index_auto_scaling_description_list(tokens)?
);
}
"ReplicaProvisionedReadCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_read_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaProvisionedWriteCapacityAutoScalingSettings" => {
builder = builder.set_replica_provisioned_write_capacity_auto_scaling_settings(
crate::json_deser::deser_structure_crate_model_auto_scaling_settings_description(tokens)?
);
}
"ReplicaStatus" => {
builder = builder.set_replica_status(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped()
.map(|u| crate::model::ReplicaStatus::from(u.as_ref()))
})
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}