Struct aws_sdk_ec2::model::TransitGatewayConnectOptions
source · #[non_exhaustive]pub struct TransitGatewayConnectOptions { /* private fields */ }
Expand description
Describes the Connect attachment options.
Implementations§
source§impl TransitGatewayConnectOptions
impl TransitGatewayConnectOptions
sourcepub fn protocol(&self) -> Option<&ProtocolValue>
pub fn protocol(&self) -> Option<&ProtocolValue>
The tunnel protocol.
source§impl TransitGatewayConnectOptions
impl TransitGatewayConnectOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayConnectOptions
.
Examples found in repository?
src/xml_deser.rs (line 41683)
41679 41680 41681 41682 41683 41684 41685 41686 41687 41688 41689 41690 41691 41692 41693 41694 41695 41696 41697 41698 41699 41700 41701 41702 41703 41704
pub fn deser_structure_crate_model_transit_gateway_connect_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayConnectOptions, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayConnectOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("protocol") /* Protocol com.amazonaws.ec2#TransitGatewayConnectOptions$Protocol */ => {
let var_1782 =
Some(
Result::<crate::model::ProtocolValue, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ProtocolValue::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_protocol(var_1782);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayConnectOptions
impl Clone for TransitGatewayConnectOptions
source§fn clone(&self) -> TransitGatewayConnectOptions
fn clone(&self) -> TransitGatewayConnectOptions
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 more