Struct aws_sdk_inspector::model::asset_attributes::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for AssetAttributes
Implementations
sourceimpl Builder
impl Builder
sourcepub fn schema_version(self, input: i32) -> Self
pub fn schema_version(self, input: i32) -> Self
The schema version of this data type.
sourcepub fn set_schema_version(self, input: Option<i32>) -> Self
pub fn set_schema_version(self, input: Option<i32>) -> Self
The schema version of this data type.
sourcepub fn agent_id(self, input: impl Into<String>) -> Self
pub fn agent_id(self, input: impl Into<String>) -> Self
The ID of the agent that is installed on the EC2 instance where the finding is generated.
sourcepub fn set_agent_id(self, input: Option<String>) -> Self
pub fn set_agent_id(self, input: Option<String>) -> Self
The ID of the agent that is installed on the EC2 instance where the finding is generated.
sourcepub fn auto_scaling_group(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group(self, input: impl Into<String>) -> Self
The Auto Scaling group of the EC2 instance where the finding is generated.
sourcepub fn set_auto_scaling_group(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group(self, input: Option<String>) -> Self
The Auto Scaling group of the EC2 instance where the finding is generated.
sourcepub fn ami_id(self, input: impl Into<String>) -> Self
pub fn ami_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
sourcepub fn set_ami_id(self, input: Option<String>) -> Self
pub fn set_ami_id(self, input: Option<String>) -> Self
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
sourcepub fn hostname(self, input: impl Into<String>) -> Self
pub fn hostname(self, input: impl Into<String>) -> Self
The hostname of the EC2 instance where the finding is generated.
sourcepub fn set_hostname(self, input: Option<String>) -> Self
pub fn set_hostname(self, input: Option<String>) -> Self
The hostname of the EC2 instance where the finding is generated.
sourcepub fn ipv4_addresses(self, input: impl Into<String>) -> Self
pub fn ipv4_addresses(self, input: impl Into<String>) -> Self
Appends an item to ipv4_addresses.
To override the contents of this collection use set_ipv4_addresses.
The list of IP v4 addresses of the EC2 instance where the finding is generated.
sourcepub fn set_ipv4_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_ipv4_addresses(self, input: Option<Vec<String>>) -> Self
The list of IP v4 addresses of the EC2 instance where the finding is generated.
Appends an item to tags.
To override the contents of this collection use set_tags.
The tags related to the EC2 instance where the finding is generated.
The tags related to the EC2 instance where the finding is generated.
sourcepub fn network_interfaces(self, input: NetworkInterface) -> Self
pub fn network_interfaces(self, input: NetworkInterface) -> Self
Appends an item to network_interfaces.
To override the contents of this collection use set_network_interfaces.
An array of the network interfaces interacting with the EC2 instance where the finding is generated.
sourcepub fn set_network_interfaces(
self,
input: Option<Vec<NetworkInterface>>
) -> Self
pub fn set_network_interfaces(
self,
input: Option<Vec<NetworkInterface>>
) -> Self
An array of the network interfaces interacting with the EC2 instance where the finding is generated.
sourcepub fn build(self) -> AssetAttributes
pub fn build(self) -> AssetAttributes
Consumes the builder and constructs a AssetAttributes
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more