Struct aws_sdk_fms::operation::get_violation_details::builders::GetViolationDetailsInputBuilder
source · #[non_exhaustive]pub struct GetViolationDetailsInputBuilder { /* private fields */ }
Expand description
A builder for GetViolationDetailsInput
.
Implementations§
source§impl GetViolationDetailsInputBuilder
impl GetViolationDetailsInputBuilder
sourcepub fn policy_id(self, input: impl Into<String>) -> Self
pub fn policy_id(self, input: impl Into<String>) -> Self
The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
sourcepub fn member_account(self, input: impl Into<String>) -> Self
pub fn member_account(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID that you want the details for.
This field is required.sourcepub fn set_member_account(self, input: Option<String>) -> Self
pub fn set_member_account(self, input: Option<String>) -> Self
The Amazon Web Services account ID that you want the details for.
sourcepub fn get_member_account(&self) -> &Option<String>
pub fn get_member_account(&self) -> &Option<String>
The Amazon Web Services account ID that you want the details for.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource that has violations.
This field is required.sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource that has violations.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource that has violations.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance
, AWS::EC2::NetworkInterface
, AWS::EC2::SecurityGroup
, AWS::NetworkFirewall::FirewallPolicy
, and AWS::EC2::Subnet
.
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance
, AWS::EC2::NetworkInterface
, AWS::EC2::SecurityGroup
, AWS::NetworkFirewall::FirewallPolicy
, and AWS::EC2::Subnet
.
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance
, AWS::EC2::NetworkInterface
, AWS::EC2::SecurityGroup
, AWS::NetworkFirewall::FirewallPolicy
, and AWS::EC2::Subnet
.
sourcepub fn build(self) -> Result<GetViolationDetailsInput, BuildError>
pub fn build(self) -> Result<GetViolationDetailsInput, BuildError>
Consumes the builder and constructs a GetViolationDetailsInput
.
source§impl GetViolationDetailsInputBuilder
impl GetViolationDetailsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetViolationDetailsOutput, SdkError<GetViolationDetailsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetViolationDetailsOutput, SdkError<GetViolationDetailsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetViolationDetailsInputBuilder
impl Clone for GetViolationDetailsInputBuilder
source§fn clone(&self) -> GetViolationDetailsInputBuilder
fn clone(&self) -> GetViolationDetailsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetViolationDetailsInputBuilder
impl Default for GetViolationDetailsInputBuilder
source§fn default() -> GetViolationDetailsInputBuilder
fn default() -> GetViolationDetailsInputBuilder
source§impl PartialEq for GetViolationDetailsInputBuilder
impl PartialEq for GetViolationDetailsInputBuilder
source§fn eq(&self, other: &GetViolationDetailsInputBuilder) -> bool
fn eq(&self, other: &GetViolationDetailsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetViolationDetailsInputBuilder
Auto Trait Implementations§
impl Freeze for GetViolationDetailsInputBuilder
impl RefUnwindSafe for GetViolationDetailsInputBuilder
impl Send for GetViolationDetailsInputBuilder
impl Sync for GetViolationDetailsInputBuilder
impl Unpin for GetViolationDetailsInputBuilder
impl UnwindSafe for GetViolationDetailsInputBuilder
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
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>
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>
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 more