#[non_exhaustive]pub struct ElasticInferenceAcceleratorAssociation { /* private fields */ }
Expand description
Describes the association between an instance and an elastic inference accelerator.
Implementations§
source§impl ElasticInferenceAcceleratorAssociation
impl ElasticInferenceAcceleratorAssociation
sourcepub fn elastic_inference_accelerator_arn(&self) -> Option<&str>
pub fn elastic_inference_accelerator_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the elastic inference accelerator.
sourcepub fn elastic_inference_accelerator_association_id(&self) -> Option<&str>
pub fn elastic_inference_accelerator_association_id(&self) -> Option<&str>
The ID of the association.
sourcepub fn elastic_inference_accelerator_association_state(&self) -> Option<&str>
pub fn elastic_inference_accelerator_association_state(&self) -> Option<&str>
The state of the elastic inference accelerator.
sourcepub fn elastic_inference_accelerator_association_time(
&self
) -> Option<&DateTime>
pub fn elastic_inference_accelerator_association_time(
&self
) -> Option<&DateTime>
The time at which the elastic inference accelerator is associated with an instance.
source§impl ElasticInferenceAcceleratorAssociation
impl ElasticInferenceAcceleratorAssociation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ElasticInferenceAcceleratorAssociation
.
Examples found in repository?
src/xml_deser.rs (line 67163)
67156 67157 67158 67159 67160 67161 67162 67163 67164 67165 67166 67167 67168 67169 67170 67171 67172 67173 67174 67175 67176 67177 67178 67179 67180 67181 67182 67183 67184 67185 67186 67187 67188 67189 67190 67191 67192 67193 67194 67195 67196 67197 67198 67199 67200 67201 67202 67203 67204 67205 67206 67207 67208 67209 67210 67211 67212 67213 67214 67215 67216 67217 67218 67219 67220 67221 67222 67223
pub fn deser_structure_crate_model_elastic_inference_accelerator_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::ElasticInferenceAcceleratorAssociation,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::ElasticInferenceAcceleratorAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("elasticInferenceAcceleratorArn") /* ElasticInferenceAcceleratorArn com.amazonaws.ec2#ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorArn */ => {
let var_3303 =
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_elastic_inference_accelerator_arn(var_3303);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationId") /* ElasticInferenceAcceleratorAssociationId com.amazonaws.ec2#ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorAssociationId */ => {
let var_3304 =
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_elastic_inference_accelerator_association_id(var_3304);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationState") /* ElasticInferenceAcceleratorAssociationState com.amazonaws.ec2#ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorAssociationState */ => {
let var_3305 =
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_elastic_inference_accelerator_association_state(var_3305);
}
,
s if s.matches("elasticInferenceAcceleratorAssociationTime") /* ElasticInferenceAcceleratorAssociationTime com.amazonaws.ec2#ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorAssociationTime */ => {
let var_3306 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_elastic_inference_accelerator_association_time(var_3306);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ElasticInferenceAcceleratorAssociation
impl Clone for ElasticInferenceAcceleratorAssociation
source§fn clone(&self) -> ElasticInferenceAcceleratorAssociation
fn clone(&self) -> ElasticInferenceAcceleratorAssociation
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