Struct aws_sdk_s3control::model::async_error_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AsyncErrorDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
A string that uniquely identifies the error condition.
sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
A string that uniquely identifies the error condition.
Examples found in repository?
src/xml_deser.rs (line 5190)
5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236
pub fn deser_structure_crate_model_async_error_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncErrorDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncErrorDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Code") /* Code com.amazonaws.s3control#AsyncErrorDetails$Code */ => {
let var_243 =
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_code(var_243);
}
,
s if s.matches("Message") /* Message com.amazonaws.s3control#AsyncErrorDetails$Message */ => {
let var_244 =
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_message(var_244);
}
,
s if s.matches("Resource") /* Resource com.amazonaws.s3control#AsyncErrorDetails$Resource */ => {
let var_245 =
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_resource(var_245);
}
,
s if s.matches("RequestId") /* RequestId com.amazonaws.s3control#AsyncErrorDetails$RequestId */ => {
let var_246 =
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_request_id(var_246);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
A generic description of the error condition in English.
sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
A generic description of the error condition in English.
Examples found in repository?
src/xml_deser.rs (line 5203)
5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236
pub fn deser_structure_crate_model_async_error_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncErrorDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncErrorDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Code") /* Code com.amazonaws.s3control#AsyncErrorDetails$Code */ => {
let var_243 =
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_code(var_243);
}
,
s if s.matches("Message") /* Message com.amazonaws.s3control#AsyncErrorDetails$Message */ => {
let var_244 =
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_message(var_244);
}
,
s if s.matches("Resource") /* Resource com.amazonaws.s3control#AsyncErrorDetails$Resource */ => {
let var_245 =
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_resource(var_245);
}
,
s if s.matches("RequestId") /* RequestId com.amazonaws.s3control#AsyncErrorDetails$RequestId */ => {
let var_246 =
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_request_id(var_246);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn resource(self, input: impl Into<String>) -> Self
pub fn resource(self, input: impl Into<String>) -> Self
The identifier of the resource associated with the error.
sourcepub fn set_resource(self, input: Option<String>) -> Self
pub fn set_resource(self, input: Option<String>) -> Self
The identifier of the resource associated with the error.
Examples found in repository?
src/xml_deser.rs (line 5216)
5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236
pub fn deser_structure_crate_model_async_error_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncErrorDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncErrorDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Code") /* Code com.amazonaws.s3control#AsyncErrorDetails$Code */ => {
let var_243 =
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_code(var_243);
}
,
s if s.matches("Message") /* Message com.amazonaws.s3control#AsyncErrorDetails$Message */ => {
let var_244 =
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_message(var_244);
}
,
s if s.matches("Resource") /* Resource com.amazonaws.s3control#AsyncErrorDetails$Resource */ => {
let var_245 =
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_resource(var_245);
}
,
s if s.matches("RequestId") /* RequestId com.amazonaws.s3control#AsyncErrorDetails$RequestId */ => {
let var_246 =
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_request_id(var_246);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn request_id(self, input: impl Into<String>) -> Self
pub fn request_id(self, input: impl Into<String>) -> Self
The ID of the request associated with the error.
sourcepub fn set_request_id(self, input: Option<String>) -> Self
pub fn set_request_id(self, input: Option<String>) -> Self
The ID of the request associated with the error.
Examples found in repository?
src/xml_deser.rs (line 5229)
5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236
pub fn deser_structure_crate_model_async_error_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncErrorDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncErrorDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Code") /* Code com.amazonaws.s3control#AsyncErrorDetails$Code */ => {
let var_243 =
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_code(var_243);
}
,
s if s.matches("Message") /* Message com.amazonaws.s3control#AsyncErrorDetails$Message */ => {
let var_244 =
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_message(var_244);
}
,
s if s.matches("Resource") /* Resource com.amazonaws.s3control#AsyncErrorDetails$Resource */ => {
let var_245 =
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_resource(var_245);
}
,
s if s.matches("RequestId") /* RequestId com.amazonaws.s3control#AsyncErrorDetails$RequestId */ => {
let var_246 =
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_request_id(var_246);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AsyncErrorDetails
pub fn build(self) -> AsyncErrorDetails
Consumes the builder and constructs a AsyncErrorDetails
.
Examples found in repository?
src/xml_deser.rs (line 5235)
5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236
pub fn deser_structure_crate_model_async_error_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncErrorDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncErrorDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Code") /* Code com.amazonaws.s3control#AsyncErrorDetails$Code */ => {
let var_243 =
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_code(var_243);
}
,
s if s.matches("Message") /* Message com.amazonaws.s3control#AsyncErrorDetails$Message */ => {
let var_244 =
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_message(var_244);
}
,
s if s.matches("Resource") /* Resource com.amazonaws.s3control#AsyncErrorDetails$Resource */ => {
let var_245 =
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_resource(var_245);
}
,
s if s.matches("RequestId") /* RequestId com.amazonaws.s3control#AsyncErrorDetails$RequestId */ => {
let var_246 =
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_request_id(var_246);
}
,
_ => {}
}
}
Ok(builder.build())
}