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
sourceimpl CreateComment
impl CreateComment
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
sourceimpl Clone for CreateComment
impl Clone for CreateComment
sourcefn clone(&self) -> CreateComment
fn clone(&self) -> CreateComment
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 CreateComment
impl Send for CreateComment
impl Sync for CreateComment
impl Unpin for CreateComment
impl !UnwindSafe for CreateComment
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