AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DocumentReviews.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/DocumentReviewAction.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/model/DocumentReviewCommentSource.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SSM_API DocumentReviews() = default;
40
41
43
46 inline DocumentReviewAction GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(DocumentReviewAction value) { m_actionHasBeenSet = true; m_action = value; }
49 inline DocumentReviews& WithAction(DocumentReviewAction value) { SetAction(value); return *this;}
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) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
61 template<typename CommentT = Aws::Vector<DocumentReviewCommentSource>>
62 DocumentReviews& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
63 template<typename CommentT = DocumentReviewCommentSource>
64 DocumentReviews& AddComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment.emplace_back(std::forward<CommentT>(value)); return *this; }
66 private:
67
69 bool m_actionHasBeenSet = false;
70
72 bool m_commentHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SSM
77} // 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