Struct aws_sdk_workdocs::client::fluent_builders::CreateComment
source · pub struct CreateComment { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateComment
.
Adds a new comment to the specified document version.
Implementations§
source§impl CreateComment
impl CreateComment
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateComment, AwsResponseRetryClassifier>, SdkError<CreateCommentError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateComment, AwsResponseRetryClassifier>, SdkError<CreateCommentError>>
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<CreateCommentOutput, SdkError<CreateCommentError>>
pub async fn send(
self
) -> Result<CreateCommentOutput, SdkError<CreateCommentError>>
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 authentication_token(self, input: impl Into<String>) -> Self
pub fn authentication_token(self, input: impl Into<String>) -> Self
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
sourcepub fn set_authentication_token(self, input: Option<String>) -> Self
pub fn set_authentication_token(self, input: Option<String>) -> Self
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
sourcepub fn document_id(self, input: impl Into<String>) -> Self
pub fn document_id(self, input: impl Into<String>) -> Self
The ID of the document.
sourcepub fn set_document_id(self, input: Option<String>) -> Self
pub fn set_document_id(self, input: Option<String>) -> Self
The ID of the document.
sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
The ID of the document version.
sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
The ID of the document version.
sourcepub fn set_parent_id(self, input: Option<String>) -> Self
pub fn set_parent_id(self, input: Option<String>) -> Self
The ID of the parent comment.
sourcepub fn thread_id(self, input: impl Into<String>) -> Self
pub fn thread_id(self, input: impl Into<String>) -> Self
The ID of the root comment in the thread.
sourcepub fn set_thread_id(self, input: Option<String>) -> Self
pub fn set_thread_id(self, input: Option<String>) -> Self
The ID of the root comment in the thread.
sourcepub fn visibility(self, input: CommentVisibilityType) -> Self
pub fn visibility(self, input: CommentVisibilityType) -> Self
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
sourcepub fn set_visibility(self, input: Option<CommentVisibilityType>) -> Self
pub fn set_visibility(self, input: Option<CommentVisibilityType>) -> Self
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
sourcepub fn notify_collaborators(self, input: bool) -> Self
pub fn notify_collaborators(self, input: bool) -> Self
Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.
sourcepub fn set_notify_collaborators(self, input: Option<bool>) -> Self
pub fn set_notify_collaborators(self, input: Option<bool>) -> Self
Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.
Trait Implementations§
source§impl Clone for CreateComment
impl Clone for CreateComment
source§fn clone(&self) -> CreateComment
fn clone(&self) -> CreateComment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more