Struct aws_sdk_ssmsap::types::AssociatedHost
source · #[non_exhaustive]pub struct AssociatedHost {
pub hostname: Option<String>,
pub ec2_instance_id: Option<String>,
pub ip_addresses: Option<Vec<IpAddressMember>>,
pub os_version: Option<String>,
}Expand description
Describes the properties of the associated host.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hostname: Option<String>The name of the host.
ec2_instance_id: Option<String>The ID of the Amazon EC2 instance.
ip_addresses: Option<Vec<IpAddressMember>>The IP addresses of the associated host.
os_version: Option<String>The version of the operating system.
Implementations§
source§impl AssociatedHost
impl AssociatedHost
sourcepub fn ec2_instance_id(&self) -> Option<&str>
pub fn ec2_instance_id(&self) -> Option<&str>
The ID of the Amazon EC2 instance.
sourcepub fn ip_addresses(&self) -> &[IpAddressMember]
pub fn ip_addresses(&self) -> &[IpAddressMember]
The IP addresses of the associated host.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .ip_addresses.is_none().
sourcepub fn os_version(&self) -> Option<&str>
pub fn os_version(&self) -> Option<&str>
The version of the operating system.
source§impl AssociatedHost
impl AssociatedHost
sourcepub fn builder() -> AssociatedHostBuilder
pub fn builder() -> AssociatedHostBuilder
Creates a new builder-style object to manufacture AssociatedHost.
Trait Implementations§
source§impl Clone for AssociatedHost
impl Clone for AssociatedHost
source§fn clone(&self) -> AssociatedHost
fn clone(&self) -> AssociatedHost
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 moresource§impl Debug for AssociatedHost
impl Debug for AssociatedHost
source§impl PartialEq for AssociatedHost
impl PartialEq for AssociatedHost
source§fn eq(&self, other: &AssociatedHost) -> bool
fn eq(&self, other: &AssociatedHost) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssociatedHost
Auto Trait Implementations§
impl Freeze for AssociatedHost
impl RefUnwindSafe for AssociatedHost
impl Send for AssociatedHost
impl Sync for AssociatedHost
impl Unpin for AssociatedHost
impl UnwindSafe for AssociatedHost
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.