AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const DocumentReviewAction& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const DocumentReviewAction& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(DocumentReviewAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline DocumentReviews& WithAction(const DocumentReviewAction& value) { SetAction(value); return *this;}
51 inline DocumentReviews& WithAction(DocumentReviewAction&& value) { SetAction(std::move(value)); return *this;}
53
55
59 inline const Aws::Vector<DocumentReviewCommentSource>& GetComment() const{ return m_comment; }
60 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
61 inline void SetComment(const Aws::Vector<DocumentReviewCommentSource>& value) { m_commentHasBeenSet = true; m_comment = value; }
62 inline void SetComment(Aws::Vector<DocumentReviewCommentSource>&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
64 inline DocumentReviews& WithComment(Aws::Vector<DocumentReviewCommentSource>&& value) { SetComment(std::move(value)); return *this;}
65 inline DocumentReviews& AddComment(const DocumentReviewCommentSource& value) { m_commentHasBeenSet = true; m_comment.push_back(value); return *this; }
66 inline DocumentReviews& AddComment(DocumentReviewCommentSource&& value) { m_commentHasBeenSet = true; m_comment.push_back(std::move(value)); return *this; }
68 private:
69
70 DocumentReviewAction m_action;
71 bool m_actionHasBeenSet = false;
72
74 bool m_commentHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SSM
79} // namespace Aws
const Aws::Vector< DocumentReviewCommentSource > & GetComment() const
DocumentReviews & WithAction(DocumentReviewAction &&value)
DocumentReviews & WithAction(const DocumentReviewAction &value)
DocumentReviews & WithComment(Aws::Vector< DocumentReviewCommentSource > &&value)
DocumentReviews & WithComment(const Aws::Vector< DocumentReviewCommentSource > &value)
void SetComment(const Aws::Vector< DocumentReviewCommentSource > &value)
void SetAction(const DocumentReviewAction &value)
AWS_SSM_API DocumentReviews(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentReviewAction & GetAction() const
DocumentReviews & AddComment(DocumentReviewCommentSource &&value)
AWS_SSM_API DocumentReviews & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComment(Aws::Vector< DocumentReviewCommentSource > &&value)
void SetAction(DocumentReviewAction &&value)
DocumentReviews & AddComment(const DocumentReviewCommentSource &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue