Struct aws_sdk_securityhub::model::aws_api_call_action::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsApiCallAction
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_api(self, input: Option<String>) -> Self
pub fn set_api(self, input: Option<String>) -> Self
The name of the API method that was issued.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the Amazon Web Services service that the API method belongs to.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the Amazon Web Services service that the API method belongs to.
sourcepub fn caller_type(self, input: impl Into<String>) -> Self
pub fn caller_type(self, input: impl Into<String>) -> Self
Indicates whether the API call originated from a remote IP address (remoteip
) or from a DNS domain (domain
).
sourcepub fn set_caller_type(self, input: Option<String>) -> Self
pub fn set_caller_type(self, input: Option<String>) -> Self
Indicates whether the API call originated from a remote IP address (remoteip
) or from a DNS domain (domain
).
sourcepub fn remote_ip_details(self, input: ActionRemoteIpDetails) -> Self
pub fn remote_ip_details(self, input: ActionRemoteIpDetails) -> Self
Provided if CallerType
is remoteIp
. Provides information about the remote IP address that the API call originated from.
sourcepub fn set_remote_ip_details(self, input: Option<ActionRemoteIpDetails>) -> Self
pub fn set_remote_ip_details(self, input: Option<ActionRemoteIpDetails>) -> Self
Provided if CallerType
is remoteIp
. Provides information about the remote IP address that the API call originated from.
sourcepub fn domain_details(self, input: AwsApiCallActionDomainDetails) -> Self
pub fn domain_details(self, input: AwsApiCallActionDomainDetails) -> Self
Provided if CallerType
is domain
. Provides information about the DNS domain that the API call originated from.
sourcepub fn set_domain_details(
self,
input: Option<AwsApiCallActionDomainDetails>
) -> Self
pub fn set_domain_details(
self,
input: Option<AwsApiCallActionDomainDetails>
) -> Self
Provided if CallerType
is domain
. Provides information about the DNS domain that the API call originated from.
sourcepub fn affected_resources(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn affected_resources(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to affected_resources
.
To override the contents of this collection use set_affected_resources
.
Identifies the resources that were affected by the API call.
sourcepub fn set_affected_resources(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_affected_resources(
self,
input: Option<HashMap<String, String>>
) -> Self
Identifies the resources that were affected by the API call.
sourcepub fn first_seen(self, input: impl Into<String>) -> Self
pub fn first_seen(self, input: impl Into<String>) -> Self
An ISO8601-formatted timestamp that indicates when the API call was first observed.
sourcepub fn set_first_seen(self, input: Option<String>) -> Self
pub fn set_first_seen(self, input: Option<String>) -> Self
An ISO8601-formatted timestamp that indicates when the API call was first observed.
sourcepub fn last_seen(self, input: impl Into<String>) -> Self
pub fn last_seen(self, input: impl Into<String>) -> Self
An ISO8601-formatted timestamp that indicates when the API call was most recently observed.
sourcepub fn set_last_seen(self, input: Option<String>) -> Self
pub fn set_last_seen(self, input: Option<String>) -> Self
An ISO8601-formatted timestamp that indicates when the API call was most recently observed.
sourcepub fn build(self) -> AwsApiCallAction
pub fn build(self) -> AwsApiCallAction
Consumes the builder and constructs a AwsApiCallAction
.