Struct aws_sdk_ec2::model::ElasticGpus
source · #[non_exhaustive]pub struct ElasticGpus { /* private fields */ }
Expand description
Describes an Elastic Graphics accelerator.
Implementations§
source§impl ElasticGpus
impl ElasticGpus
sourcepub fn elastic_gpu_id(&self) -> Option<&str>
pub fn elastic_gpu_id(&self) -> Option<&str>
The ID of the Elastic Graphics accelerator.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone in the which the Elastic Graphics accelerator resides.
sourcepub fn elastic_gpu_type(&self) -> Option<&str>
pub fn elastic_gpu_type(&self) -> Option<&str>
The type of Elastic Graphics accelerator.
sourcepub fn elastic_gpu_health(&self) -> Option<&ElasticGpuHealth>
pub fn elastic_gpu_health(&self) -> Option<&ElasticGpuHealth>
The status of the Elastic Graphics accelerator.
sourcepub fn elastic_gpu_state(&self) -> Option<&ElasticGpuState>
pub fn elastic_gpu_state(&self) -> Option<&ElasticGpuState>
The state of the Elastic Graphics accelerator.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance to which the Elastic Graphics accelerator is attached.
The tags assigned to the Elastic Graphics accelerator.
source§impl ElasticGpus
impl ElasticGpus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ElasticGpus
.
Examples found in repository?
src/xml_deser.rs (line 44203)
44199 44200 44201 44202 44203 44204 44205 44206 44207 44208 44209 44210 44211 44212 44213 44214 44215 44216 44217 44218 44219 44220 44221 44222 44223 44224 44225 44226 44227 44228 44229 44230 44231 44232 44233 44234 44235 44236 44237 44238 44239 44240 44241 44242 44243 44244 44245 44246 44247 44248 44249 44250 44251 44252 44253 44254 44255 44256 44257 44258 44259 44260 44261 44262 44263 44264 44265 44266 44267 44268 44269 44270 44271 44272 44273 44274 44275 44276 44277 44278 44279 44280 44281 44282 44283 44284 44285 44286 44287 44288 44289 44290 44291 44292 44293 44294 44295 44296
pub fn deser_structure_crate_model_elastic_gpus(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ElasticGpus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ElasticGpus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("elasticGpuId") /* ElasticGpuId com.amazonaws.ec2#ElasticGpus$ElasticGpuId */ => {
let var_1936 =
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_gpu_id(var_1936);
}
,
s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#ElasticGpus$AvailabilityZone */ => {
let var_1937 =
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_availability_zone(var_1937);
}
,
s if s.matches("elasticGpuType") /* ElasticGpuType com.amazonaws.ec2#ElasticGpus$ElasticGpuType */ => {
let var_1938 =
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_gpu_type(var_1938);
}
,
s if s.matches("elasticGpuHealth") /* ElasticGpuHealth com.amazonaws.ec2#ElasticGpus$ElasticGpuHealth */ => {
let var_1939 =
Some(
crate::xml_deser::deser_structure_crate_model_elastic_gpu_health(&mut tag)
?
)
;
builder = builder.set_elastic_gpu_health(var_1939);
}
,
s if s.matches("elasticGpuState") /* ElasticGpuState com.amazonaws.ec2#ElasticGpus$ElasticGpuState */ => {
let var_1940 =
Some(
Result::<crate::model::ElasticGpuState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ElasticGpuState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_elastic_gpu_state(var_1940);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#ElasticGpus$InstanceId */ => {
let var_1941 =
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_instance_id(var_1941);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ElasticGpus$Tags */ => {
let var_1942 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1942);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ElasticGpus
impl Clone for ElasticGpus
source§fn clone(&self) -> ElasticGpus
fn clone(&self) -> ElasticGpus
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