AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DocumentReviews.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/DocumentReviewAction.h>
10#include <aws/ssm/model/DocumentReviewCommentSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
30 public:
31 AWS_SSM_API DocumentReviews() = default;
35
37
40 inline DocumentReviewAction GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 inline void SetAction(DocumentReviewAction value) {
43 m_actionHasBeenSet = true;
44 m_action = value;
45 }
47 SetAction(value);
48 return *this;
49 }
51
53
57 inline const Aws::Vector<DocumentReviewCommentSource>& GetComment() const { return m_comment; }
58 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
59 template <typename CommentT = Aws::Vector<DocumentReviewCommentSource>>
60 void SetComment(CommentT&& value) {
61 m_commentHasBeenSet = true;
62 m_comment = std::forward<CommentT>(value);
63 }
64 template <typename CommentT = Aws::Vector<DocumentReviewCommentSource>>
65 DocumentReviews& WithComment(CommentT&& value) {
66 SetComment(std::forward<CommentT>(value));
67 return *this;
68 }
69 template <typename CommentT = DocumentReviewCommentSource>
70 DocumentReviews& AddComment(CommentT&& value) {
71 m_commentHasBeenSet = true;
72 m_comment.emplace_back(std::forward<CommentT>(value));
73 return *this;
74 }
76 private:
78
80 bool m_actionHasBeenSet = false;
81 bool m_commentHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace SSM
86} // namespace Aws
DocumentReviewAction GetAction() const
const Aws::Vector< DocumentReviewCommentSource > & GetComment() const
DocumentReviews & WithComment(CommentT &&value)
void SetAction(DocumentReviewAction value)
void SetComment(CommentT &&value)
AWS_SSM_API DocumentReviews(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API DocumentReviews & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentReviews & AddComment(CommentT &&value)
DocumentReviews & WithAction(DocumentReviewAction value)
AWS_SSM_API DocumentReviews()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue