Struct aws_sdk_redshift::model::pause_cluster_message::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for PauseClusterMessage.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The identifier of the cluster to be paused.
sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The identifier of the cluster to be paused.
Examples found in repository?
src/xml_deser.rs (line 17000)
16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007
pub fn deser_structure_crate_model_pause_cluster_message(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PauseClusterMessage, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PauseClusterMessage::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ClusterIdentifier") /* ClusterIdentifier com.amazonaws.redshift#PauseClusterMessage$ClusterIdentifier */ => {
let var_660 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_cluster_identifier(var_660);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> PauseClusterMessage
pub fn build(self) -> PauseClusterMessage
Consumes the builder and constructs a PauseClusterMessage.
Examples found in repository?
src/xml_deser.rs (line 17006)
16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007
pub fn deser_structure_crate_model_pause_cluster_message(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PauseClusterMessage, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PauseClusterMessage::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ClusterIdentifier") /* ClusterIdentifier com.amazonaws.redshift#PauseClusterMessage$ClusterIdentifier */ => {
let var_660 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_cluster_identifier(var_660);
}
,
_ => {}
}
}
Ok(builder.build())
}