pub struct CreateRelatedItem { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRelatedItem
.
Creates a related item (comments, tasks, and contacts) and associates it with a case.
A Related Item is a resource that is associated with a case. It may or may not have an external identifier linking it to an external resource (for example, a contactArn
). All Related Items have their own internal identifier, the relatedItemArn
. Examples of related items include comments
and contacts
.
Implementations
sourceimpl CreateRelatedItem
impl CreateRelatedItem
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateRelatedItem, AwsResponseRetryClassifier>, SdkError<CreateRelatedItemError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateRelatedItem, AwsResponseRetryClassifier>, SdkError<CreateRelatedItemError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateRelatedItemOutput, SdkError<CreateRelatedItemError>>
pub async fn send(
self
) -> Result<CreateRelatedItemOutput, SdkError<CreateRelatedItemError>>
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 domain_id(self, input: impl Into<String>) -> Self
pub fn domain_id(self, input: impl Into<String>) -> Self
The unique identifier of the Cases domain.
sourcepub fn set_domain_id(self, input: Option<String>) -> Self
pub fn set_domain_id(self, input: Option<String>) -> Self
The unique identifier of the Cases domain.
sourcepub fn set_case_id(self, input: Option<String>) -> Self
pub fn set_case_id(self, input: Option<String>) -> Self
A unique identifier of the case.
sourcepub fn type(self, input: RelatedItemType) -> Self
pub fn type(self, input: RelatedItemType) -> Self
The type of a related item.
sourcepub fn set_type(self, input: Option<RelatedItemType>) -> Self
pub fn set_type(self, input: Option<RelatedItemType>) -> Self
The type of a related item.
sourcepub fn content(self, input: RelatedItemInputContent) -> Self
pub fn content(self, input: RelatedItemInputContent) -> Self
The content of a related item to be created.
sourcepub fn set_content(self, input: Option<RelatedItemInputContent>) -> Self
pub fn set_content(self, input: Option<RelatedItemInputContent>) -> Self
The content of a related item to be created.
Trait Implementations
sourceimpl Clone for CreateRelatedItem
impl Clone for CreateRelatedItem
sourcefn clone(&self) -> CreateRelatedItem
fn clone(&self) -> CreateRelatedItem
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more