pub struct DescribeCommunications { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeCommunications
.
Returns communications and attachments for one or more support cases. Use the afterTime
and beforeTime
parameters to filter by date. You can use the caseId
parameter to restrict the results to a specific case.
Case data is available for 12 months after creation. If a case was created more than 12 months ago, a request for data might cause an error.
You can use the maxResults
and nextToken
parameters to control the pagination of the results. Set maxResults
to the number of cases that you want to display on each page, and use nextToken
to specify the resumption of pagination.
-
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
SubscriptionRequiredException
error message appears. For information about changing your support plan, see Amazon Web Services Support.
Implementations
sourceimpl DescribeCommunications
impl DescribeCommunications
sourcepub async fn send(
self
) -> Result<DescribeCommunicationsOutput, SdkError<DescribeCommunicationsError>>
pub async fn send(
self
) -> Result<DescribeCommunicationsOutput, SdkError<DescribeCommunicationsError>>
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) -> DescribeCommunicationsPaginator
pub fn into_paginator(self) -> DescribeCommunicationsPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn case_id(self, input: impl Into<String>) -> Self
pub fn case_id(self, input: impl Into<String>) -> Self
The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
sourcepub fn set_case_id(self, input: Option<String>) -> Self
pub fn set_case_id(self, input: Option<String>) -> Self
The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
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 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 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.
Trait Implementations
sourceimpl Clone for DescribeCommunications
impl Clone for DescribeCommunications
sourcefn clone(&self) -> DescribeCommunications
fn clone(&self) -> DescribeCommunications
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 DescribeCommunications
impl Send for DescribeCommunications
impl Sync for DescribeCommunications
impl Unpin for DescribeCommunications
impl !UnwindSafe for DescribeCommunications
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