aws_sdk_codecommit/client/
update_comment.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateComment`](crate::operation::update_comment::builders::UpdateCommentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`comment_id(impl Into<String>)`](crate::operation::update_comment::builders::UpdateCommentFluentBuilder::comment_id) / [`set_comment_id(Option<String>)`](crate::operation::update_comment::builders::UpdateCommentFluentBuilder::set_comment_id):<br>required: **true**<br><p>The system-generated ID of the comment you want to update. To get this ID, use <code>GetCommentsForComparedCommit</code> or <code>GetCommentsForPullRequest</code>.</p><br>
7    ///   - [`content(impl Into<String>)`](crate::operation::update_comment::builders::UpdateCommentFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::update_comment::builders::UpdateCommentFluentBuilder::set_content):<br>required: **true**<br><p>The updated content to replace the existing content of the comment.</p><br>
8    /// - On success, responds with [`UpdateCommentOutput`](crate::operation::update_comment::UpdateCommentOutput) with field(s):
9    ///   - [`comment(Option<Comment>)`](crate::operation::update_comment::UpdateCommentOutput::comment): <p>Information about the updated comment.</p>
10    /// - On failure, responds with [`SdkError<UpdateCommentError>`](crate::operation::update_comment::UpdateCommentError)
11    pub fn update_comment(&self) -> crate::operation::update_comment::builders::UpdateCommentFluentBuilder {
12        crate::operation::update_comment::builders::UpdateCommentFluentBuilder::new(self.handle.clone())
13    }
14}