This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codecommit/include/aws/codecommit/model/GetCommentRequest.h

94 lines
3.4 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codecommit/CodeCommit_EXPORTS.h>
#include <aws/codecommit/CodeCommitRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeCommit
{
namespace Model
{
/**
*/
class AWS_CODECOMMIT_API GetCommentRequest : public CodeCommitRequest
{
public:
GetCommentRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetComment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline const Aws::String& GetCommentId() const{ return m_commentId; }
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline GetCommentRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline GetCommentRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
/**
* <p>The unique, system-generated ID of the comment. To get this ID, use
* <a>GetCommentsForComparedCommit</a> or <a>GetCommentsForPullRequest</a>.</p>
*/
inline GetCommentRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;}
private:
Aws::String m_commentId;
bool m_commentIdHasBeenSet;
};
} // namespace Model
} // namespace CodeCommit
} // namespace Aws