Struct aws_sdk_ec2::model::authorization_rule::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AuthorizationRule
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
pub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
The ID of the Client VPN endpoint with which the authorization rule is associated.
sourcepub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
pub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
The ID of the Client VPN endpoint with which the authorization rule is associated.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the authorization rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the authorization rule.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn group_id(self, input: impl Into<String>) -> Self
pub fn group_id(self, input: impl Into<String>) -> Self
The ID of the Active Directory group to which the authorization rule grants access.
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The ID of the Active Directory group to which the authorization rule grants access.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn access_all(self, input: bool) -> Self
pub fn access_all(self, input: bool) -> Self
Indicates whether the authorization rule grants access to all clients.
sourcepub fn set_access_all(self, input: Option<bool>) -> Self
pub fn set_access_all(self, input: Option<bool>) -> Self
Indicates whether the authorization rule grants access to all clients.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn destination_cidr(self, input: impl Into<String>) -> Self
pub fn destination_cidr(self, input: impl Into<String>) -> Self
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
sourcepub fn set_destination_cidr(self, input: Option<String>) -> Self
pub fn set_destination_cidr(self, input: Option<String>) -> Self
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn status(self, input: ClientVpnAuthorizationRuleStatus) -> Self
pub fn status(self, input: ClientVpnAuthorizationRuleStatus) -> Self
The current state of the authorization rule.
sourcepub fn set_status(self, input: Option<ClientVpnAuthorizationRuleStatus>) -> Self
pub fn set_status(self, input: Option<ClientVpnAuthorizationRuleStatus>) -> Self
The current state of the authorization rule.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AuthorizationRule
pub fn build(self) -> AuthorizationRule
Consumes the builder and constructs a AuthorizationRule
.
Examples found in repository?
43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529
pub fn deser_structure_crate_model_authorization_rule(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AuthorizationRule, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AuthorizationRule::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientVpnEndpointId") /* ClientVpnEndpointId com.amazonaws.ec2#AuthorizationRule$ClientVpnEndpointId */ => {
let var_1880 =
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_client_vpn_endpoint_id(var_1880);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#AuthorizationRule$Description */ => {
let var_1881 =
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_description(var_1881);
}
,
s if s.matches("groupId") /* GroupId com.amazonaws.ec2#AuthorizationRule$GroupId */ => {
let var_1882 =
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_group_id(var_1882);
}
,
s if s.matches("accessAll") /* AccessAll com.amazonaws.ec2#AuthorizationRule$AccessAll */ => {
let var_1883 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_access_all(var_1883);
}
,
s if s.matches("destinationCidr") /* DestinationCidr com.amazonaws.ec2#AuthorizationRule$DestinationCidr */ => {
let var_1884 =
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_destination_cidr(var_1884);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#AuthorizationRule$Status */ => {
let var_1885 =
Some(
crate::xml_deser::deser_structure_crate_model_client_vpn_authorization_rule_status(&mut tag)
?
)
;
builder = builder.set_status(var_1885);
}
,
_ => {}
}
}
Ok(builder.build())
}