aws_sdk_codecommit/client/
get_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 [`GetComment`](crate::operation::get_comment::builders::GetCommentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`comment_id(impl Into<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::comment_id) / [`set_comment_id(Option<String>)`](crate::operation::get_comment::builders::GetCommentFluentBuilder::set_comment_id):<br>required: **true**<br><p>The unique, system-generated ID of the comment. To get this ID, use <code>GetCommentsForComparedCommit</code> or <code>GetCommentsForPullRequest</code>.</p><br>
7    /// - On success, responds with [`GetCommentOutput`](crate::operation::get_comment::GetCommentOutput) with field(s):
8    ///   - [`comment(Option<Comment>)`](crate::operation::get_comment::GetCommentOutput::comment): <p>The contents of the comment.</p>
9    /// - On failure, responds with [`SdkError<GetCommentError>`](crate::operation::get_comment::GetCommentError)
10    pub fn get_comment(&self) -> crate::operation::get_comment::builders::GetCommentFluentBuilder {
11        crate::operation::get_comment::builders::GetCommentFluentBuilder::new(self.handle.clone())
12    }
13}