Struct aws_sdk_support::client::fluent_builders::DescribeCases
source · [−]pub struct DescribeCases { /* private fields */ }Expand description
Fluent builder constructing a request to DescribeCases.
Returns a list of cases that you specify by passing one or more case IDs. You can use the afterTime and beforeTime parameters to filter the cases by date. You can set values for the includeResolvedCases and includeCommunications parameters to specify how much information to return.
The response returns the following in JSON format:
-
One or more CaseDetails data types.
-
One or more
nextTokenvalues, which specify where to paginate the returned records represented by theCaseDetailsobjects.
Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request might return an error.
-
You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the Amazon Web Services Support API.
-
If you call the Amazon Web Services Support API from an account that does not have a Business, Enterprise On-Ramp, or Enterprise Support plan, the
SubscriptionRequiredExceptionerror message appears. For information about changing your support plan, see Amazon Web Services Support.
Implementations
sourceimpl DescribeCases
impl DescribeCases
sourcepub async fn send(
self
) -> Result<DescribeCasesOutput, SdkError<DescribeCasesError>>
pub async fn send(
self
) -> Result<DescribeCasesOutput, SdkError<DescribeCasesError>>
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 into_paginator(self) -> DescribeCasesPaginator
pub fn into_paginator(self) -> DescribeCasesPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn case_id_list(self, input: impl Into<String>) -> Self
pub fn case_id_list(self, input: impl Into<String>) -> Self
Appends an item to caseIdList.
To override the contents of this collection use set_case_id_list.
A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
sourcepub fn set_case_id_list(self, input: Option<Vec<String>>) -> Self
pub fn set_case_id_list(self, input: Option<Vec<String>>) -> Self
A list of ID numbers of the support cases you want returned. The maximum number of cases is 100.
sourcepub fn display_id(self, input: impl Into<String>) -> Self
pub fn display_id(self, input: impl Into<String>) -> Self
The ID displayed for a case in the Amazon Web Services Support Center user interface.
sourcepub fn set_display_id(self, input: Option<String>) -> Self
pub fn set_display_id(self, input: Option<String>) -> Self
The ID displayed for a case in the Amazon Web Services Support Center user interface.
sourcepub fn after_time(self, input: impl Into<String>) -> Self
pub fn after_time(self, input: impl Into<String>) -> Self
The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
sourcepub fn set_after_time(self, input: Option<String>) -> Self
pub fn set_after_time(self, input: Option<String>) -> Self
The start date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
sourcepub fn before_time(self, input: impl Into<String>) -> Self
pub fn before_time(self, input: impl Into<String>) -> Self
The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
sourcepub fn set_before_time(self, input: Option<String>) -> Self
pub fn set_before_time(self, input: Option<String>) -> Self
The end date for a filtered date search on support case communications. Case communications are available for 12 months after creation.
sourcepub fn include_resolved_cases(self, input: bool) -> Self
pub fn include_resolved_cases(self, input: bool) -> Self
Specifies whether to include resolved support cases in the DescribeCases response. By default, resolved cases aren't included.
sourcepub fn set_include_resolved_cases(self, input: Option<bool>) -> Self
pub fn set_include_resolved_cases(self, input: Option<bool>) -> Self
Specifies whether to include resolved support cases in the DescribeCases response. By default, resolved cases aren't included.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
A resumption point for pagination.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
A resumption point for pagination.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results to return before paginating.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results to return before paginating.
sourcepub fn language(self, input: impl Into<String>) -> Self
pub fn language(self, input: impl Into<String>) -> Self
The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
sourcepub fn set_language(self, input: Option<String>) -> Self
pub fn set_language(self, input: Option<String>) -> Self
The ISO 639-1 code for the language in which Amazon Web Services provides support. Amazon Web Services Support currently supports English ("en") and Japanese ("ja"). Language parameters must be passed explicitly for operations that take them.
sourcepub fn include_communications(self, input: bool) -> Self
pub fn include_communications(self, input: bool) -> Self
Specifies whether to include communications in the DescribeCases response. By default, communications are included.
sourcepub fn set_include_communications(self, input: Option<bool>) -> Self
pub fn set_include_communications(self, input: Option<bool>) -> Self
Specifies whether to include communications in the DescribeCases response. By default, communications are included.
Trait Implementations
sourceimpl Clone for DescribeCases
impl Clone for DescribeCases
sourcefn clone(&self) -> DescribeCases
fn clone(&self) -> DescribeCases
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DescribeCases
impl Send for DescribeCases
impl Sync for DescribeCases
impl Unpin for DescribeCases
impl !UnwindSafe for DescribeCases
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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> 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