Struct aws_sdk_s3::model::inventory_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InventoryConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn destination(self, input: InventoryDestination) -> Self
pub fn destination(self, input: InventoryDestination) -> Self
Contains information about where to publish the inventory results.
sourcepub fn set_destination(self, input: Option<InventoryDestination>) -> Self
pub fn set_destination(self, input: Option<InventoryDestination>) -> Self
Contains information about where to publish the inventory results.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn is_enabled(self, input: bool) -> Self
pub fn is_enabled(self, input: bool) -> Self
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn set_is_enabled(self, input: Option<bool>) -> Self
pub fn set_is_enabled(self, input: Option<bool>) -> Self
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn filter(self, input: InventoryFilter) -> Self
pub fn filter(self, input: InventoryFilter) -> Self
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn set_filter(self, input: Option<InventoryFilter>) -> Self
pub fn set_filter(self, input: Option<InventoryFilter>) -> Self
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID used to identify the inventory configuration.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID used to identify the inventory configuration.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn included_object_versions(
self,
input: InventoryIncludedObjectVersions
) -> Self
pub fn included_object_versions(
self,
input: InventoryIncludedObjectVersions
) -> Self
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn set_included_object_versions(
self,
input: Option<InventoryIncludedObjectVersions>
) -> Self
pub fn set_included_object_versions(
self,
input: Option<InventoryIncludedObjectVersions>
) -> Self
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn optional_fields(self, input: InventoryOptionalField) -> Self
pub fn optional_fields(self, input: InventoryOptionalField) -> Self
Appends an item to optional_fields
.
To override the contents of this collection use set_optional_fields
.
Contains the optional fields that are included in the inventory results.
sourcepub fn set_optional_fields(
self,
input: Option<Vec<InventoryOptionalField>>
) -> Self
pub fn set_optional_fields(
self,
input: Option<Vec<InventoryOptionalField>>
) -> Self
Contains the optional fields that are included in the inventory results.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn schedule(self, input: InventorySchedule) -> Self
pub fn schedule(self, input: InventorySchedule) -> Self
Specifies the schedule for generating inventory results.
sourcepub fn set_schedule(self, input: Option<InventorySchedule>) -> Self
pub fn set_schedule(self, input: Option<InventorySchedule>) -> Self
Specifies the schedule for generating inventory results.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> InventoryConfiguration
pub fn build(self) -> InventoryConfiguration
Consumes the builder and constructs a InventoryConfiguration
.
Examples found in repository?
4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111
pub fn deser_structure_crate_model_inventory_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Destination") /* Destination com.amazonaws.s3#InventoryConfiguration$Destination */ => {
let var_222 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_destination(&mut tag)
?
)
;
builder = builder.set_destination(var_222);
}
,
s if s.matches("IsEnabled") /* IsEnabled com.amazonaws.s3#InventoryConfiguration$IsEnabled */ => {
let var_223 =
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.s3#IsEnabled`)"))
}
?
)
;
builder = builder.set_is_enabled(var_223);
}
,
s if s.matches("Filter") /* Filter com.amazonaws.s3#InventoryConfiguration$Filter */ => {
let var_224 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_filter(&mut tag)
?
)
;
builder = builder.set_filter(var_224);
}
,
s if s.matches("Id") /* Id com.amazonaws.s3#InventoryConfiguration$Id */ => {
let var_225 =
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_id(var_225);
}
,
s if s.matches("IncludedObjectVersions") /* IncludedObjectVersions com.amazonaws.s3#InventoryConfiguration$IncludedObjectVersions */ => {
let var_226 =
Some(
Result::<crate::model::InventoryIncludedObjectVersions, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InventoryIncludedObjectVersions::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_included_object_versions(var_226);
}
,
s if s.matches("OptionalFields") /* OptionalFields com.amazonaws.s3#InventoryConfiguration$OptionalFields */ => {
let var_227 =
Some(
crate::xml_deser::deser_list_com_amazonaws_s3_inventory_optional_fields(&mut tag)
?
)
;
builder = builder.set_optional_fields(var_227);
}
,
s if s.matches("Schedule") /* Schedule com.amazonaws.s3#InventoryConfiguration$Schedule */ => {
let var_228 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_schedule(&mut tag)
?
)
;
builder = builder.set_schedule(var_228);
}
,
_ => {}
}
}
Ok(builder.build())
}