pub struct CreateCaseFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCase
.
Creates a new case.
Implementations§
Source§impl CreateCaseFluentBuilder
impl CreateCaseFluentBuilder
Sourcepub fn as_input(&self) -> &CreateCaseInputBuilder
pub fn as_input(&self) -> &CreateCaseInputBuilder
Access the CreateCase as a reference.
Sourcepub async fn send(
self,
) -> Result<CreateCaseOutput, SdkError<CreateCaseError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateCaseOutput, SdkError<CreateCaseError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<CreateCaseOutput, CreateCaseError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateCaseOutput, CreateCaseError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The clientToken
field is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided.
Sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The clientToken
field is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided.
Sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
The clientToken
field is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided.
Sourcepub fn resolver_type(self, input: ResolverType) -> Self
pub fn resolver_type(self, input: ResolverType) -> Self
Required element used in combination with CreateCase to identify the resolver type.
Sourcepub fn set_resolver_type(self, input: Option<ResolverType>) -> Self
pub fn set_resolver_type(self, input: Option<ResolverType>) -> Self
Required element used in combination with CreateCase to identify the resolver type.
Sourcepub fn get_resolver_type(&self) -> &Option<ResolverType>
pub fn get_resolver_type(&self) -> &Option<ResolverType>
Required element used in combination with CreateCase to identify the resolver type.
Sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
Required element used in combination with CreateCase to provide a title for the new case.
Sourcepub fn set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
Required element used in combination with CreateCase to provide a title for the new case.
Sourcepub fn get_title(&self) -> &Option<String>
pub fn get_title(&self) -> &Option<String>
Required element used in combination with CreateCase to provide a title for the new case.
Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Required element used in combination with CreateCase
to provide a description for the new case.
Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Required element used in combination with CreateCase
to provide a description for the new case.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Required element used in combination with CreateCase
to provide a description for the new case.
Sourcepub fn engagement_type(self, input: EngagementType) -> Self
pub fn engagement_type(self, input: EngagementType) -> Self
Required element used in combination with CreateCase to provide an engagement type for the new cases. Available engagement types include Security Incident | Investigation
Sourcepub fn set_engagement_type(self, input: Option<EngagementType>) -> Self
pub fn set_engagement_type(self, input: Option<EngagementType>) -> Self
Required element used in combination with CreateCase to provide an engagement type for the new cases. Available engagement types include Security Incident | Investigation
Sourcepub fn get_engagement_type(&self) -> &Option<EngagementType>
pub fn get_engagement_type(&self) -> &Option<EngagementType>
Required element used in combination with CreateCase to provide an engagement type for the new cases. Available engagement types include Security Incident | Investigation
Sourcepub fn reported_incident_start_date(self, input: DateTime) -> Self
pub fn reported_incident_start_date(self, input: DateTime) -> Self
Required element used in combination with CreateCase to provide an initial start date for the unauthorized activity.
Sourcepub fn set_reported_incident_start_date(self, input: Option<DateTime>) -> Self
pub fn set_reported_incident_start_date(self, input: Option<DateTime>) -> Self
Required element used in combination with CreateCase to provide an initial start date for the unauthorized activity.
Sourcepub fn get_reported_incident_start_date(&self) -> &Option<DateTime>
pub fn get_reported_incident_start_date(&self) -> &Option<DateTime>
Required element used in combination with CreateCase to provide an initial start date for the unauthorized activity.
Sourcepub fn impacted_accounts(self, input: impl Into<String>) -> Self
pub fn impacted_accounts(self, input: impl Into<String>) -> Self
Appends an item to impactedAccounts
.
To override the contents of this collection use set_impacted_accounts
.
Required element used in combination with CreateCase to provide a list of impacted accounts.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be 123123123
which is nine digits, and with zero-prepend would be 000123123123
. Not zero-prepending to 12 digits could result in errors.
Sourcepub fn set_impacted_accounts(self, input: Option<Vec<String>>) -> Self
pub fn set_impacted_accounts(self, input: Option<Vec<String>>) -> Self
Required element used in combination with CreateCase to provide a list of impacted accounts.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be 123123123
which is nine digits, and with zero-prepend would be 000123123123
. Not zero-prepending to 12 digits could result in errors.
Sourcepub fn get_impacted_accounts(&self) -> &Option<Vec<String>>
pub fn get_impacted_accounts(&self) -> &Option<Vec<String>>
Required element used in combination with CreateCase to provide a list of impacted accounts.
AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be 123123123
which is nine digits, and with zero-prepend would be 000123123123
. Not zero-prepending to 12 digits could result in errors.
Sourcepub fn watchers(self, input: Watcher) -> Self
pub fn watchers(self, input: Watcher) -> Self
Appends an item to watchers
.
To override the contents of this collection use set_watchers
.
Required element used in combination with CreateCase to provide a list of entities to receive notifications for case updates.
Sourcepub fn set_watchers(self, input: Option<Vec<Watcher>>) -> Self
pub fn set_watchers(self, input: Option<Vec<Watcher>>) -> Self
Required element used in combination with CreateCase to provide a list of entities to receive notifications for case updates.
Sourcepub fn get_watchers(&self) -> &Option<Vec<Watcher>>
pub fn get_watchers(&self) -> &Option<Vec<Watcher>>
Required element used in combination with CreateCase to provide a list of entities to receive notifications for case updates.
Sourcepub fn threat_actor_ip_addresses(self, input: ThreatActorIp) -> Self
pub fn threat_actor_ip_addresses(self, input: ThreatActorIp) -> Self
Appends an item to threatActorIpAddresses
.
To override the contents of this collection use set_threat_actor_ip_addresses
.
An optional element used in combination with CreateCase to provide a list of suspicious internet protocol addresses associated with unauthorized activity.
Sourcepub fn set_threat_actor_ip_addresses(
self,
input: Option<Vec<ThreatActorIp>>,
) -> Self
pub fn set_threat_actor_ip_addresses( self, input: Option<Vec<ThreatActorIp>>, ) -> Self
An optional element used in combination with CreateCase to provide a list of suspicious internet protocol addresses associated with unauthorized activity.
Sourcepub fn get_threat_actor_ip_addresses(&self) -> &Option<Vec<ThreatActorIp>>
pub fn get_threat_actor_ip_addresses(&self) -> &Option<Vec<ThreatActorIp>>
An optional element used in combination with CreateCase to provide a list of suspicious internet protocol addresses associated with unauthorized activity.
Sourcepub fn impacted_services(self, input: impl Into<String>) -> Self
pub fn impacted_services(self, input: impl Into<String>) -> Self
Appends an item to impactedServices
.
To override the contents of this collection use set_impacted_services
.
An optional element used in combination with CreateCase to provide a list of services impacted.
Sourcepub fn set_impacted_services(self, input: Option<Vec<String>>) -> Self
pub fn set_impacted_services(self, input: Option<Vec<String>>) -> Self
An optional element used in combination with CreateCase to provide a list of services impacted.
Sourcepub fn get_impacted_services(&self) -> &Option<Vec<String>>
pub fn get_impacted_services(&self) -> &Option<Vec<String>>
An optional element used in combination with CreateCase to provide a list of services impacted.
Sourcepub fn impacted_aws_regions(self, input: ImpactedAwsRegion) -> Self
pub fn impacted_aws_regions(self, input: ImpactedAwsRegion) -> Self
Appends an item to impactedAwsRegions
.
To override the contents of this collection use set_impacted_aws_regions
.
An optional element used in combination with CreateCase to provide a list of impacted regions.
Sourcepub fn set_impacted_aws_regions(
self,
input: Option<Vec<ImpactedAwsRegion>>,
) -> Self
pub fn set_impacted_aws_regions( self, input: Option<Vec<ImpactedAwsRegion>>, ) -> Self
An optional element used in combination with CreateCase to provide a list of impacted regions.
Sourcepub fn get_impacted_aws_regions(&self) -> &Option<Vec<ImpactedAwsRegion>>
pub fn get_impacted_aws_regions(&self) -> &Option<Vec<ImpactedAwsRegion>>
An optional element used in combination with CreateCase to provide a list of impacted regions.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
An optional element used in combination with CreateCase to add customer specified tags to a case.
An optional element used in combination with CreateCase to add customer specified tags to a case.
An optional element used in combination with CreateCase to add customer specified tags to a case.
Trait Implementations§
Source§impl Clone for CreateCaseFluentBuilder
impl Clone for CreateCaseFluentBuilder
Source§fn clone(&self) -> CreateCaseFluentBuilder
fn clone(&self) -> CreateCaseFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateCaseFluentBuilder
impl !RefUnwindSafe for CreateCaseFluentBuilder
impl Send for CreateCaseFluentBuilder
impl Sync for CreateCaseFluentBuilder
impl Unpin for CreateCaseFluentBuilder
impl !UnwindSafe for CreateCaseFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);