AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ActionReview.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/ActionReviewPayloadField.h>
11#include <aws/qbusiness/model/PluginType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness {
23namespace Model {
24
34 public:
35 AWS_QBUSINESS_API ActionReview() = default;
36 AWS_QBUSINESS_API ActionReview(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QBUSINESS_API ActionReview& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetPluginId() const { return m_pluginId; }
45 inline bool PluginIdHasBeenSet() const { return m_pluginIdHasBeenSet; }
46 template <typename PluginIdT = Aws::String>
47 void SetPluginId(PluginIdT&& value) {
48 m_pluginIdHasBeenSet = true;
49 m_pluginId = std::forward<PluginIdT>(value);
50 }
51 template <typename PluginIdT = Aws::String>
52 ActionReview& WithPluginId(PluginIdT&& value) {
53 SetPluginId(std::forward<PluginIdT>(value));
54 return *this;
55 }
57
59
62 inline PluginType GetPluginType() const { return m_pluginType; }
63 inline bool PluginTypeHasBeenSet() const { return m_pluginTypeHasBeenSet; }
64 inline void SetPluginType(PluginType value) {
65 m_pluginTypeHasBeenSet = true;
66 m_pluginType = value;
67 }
69 SetPluginType(value);
70 return *this;
71 }
73
75
79 inline const Aws::Map<Aws::String, ActionReviewPayloadField>& GetPayload() const { return m_payload; }
80 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
81 template <typename PayloadT = Aws::Map<Aws::String, ActionReviewPayloadField>>
82 void SetPayload(PayloadT&& value) {
83 m_payloadHasBeenSet = true;
84 m_payload = std::forward<PayloadT>(value);
85 }
86 template <typename PayloadT = Aws::Map<Aws::String, ActionReviewPayloadField>>
87 ActionReview& WithPayload(PayloadT&& value) {
88 SetPayload(std::forward<PayloadT>(value));
89 return *this;
90 }
91 template <typename PayloadKeyT = Aws::String, typename PayloadValueT = ActionReviewPayloadField>
92 ActionReview& AddPayload(PayloadKeyT&& key, PayloadValueT&& value) {
93 m_payloadHasBeenSet = true;
94 m_payload.emplace(std::forward<PayloadKeyT>(key), std::forward<PayloadValueT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetPayloadFieldNameSeparator() const { return m_payloadFieldNameSeparator; }
105 inline bool PayloadFieldNameSeparatorHasBeenSet() const { return m_payloadFieldNameSeparatorHasBeenSet; }
106 template <typename PayloadFieldNameSeparatorT = Aws::String>
107 void SetPayloadFieldNameSeparator(PayloadFieldNameSeparatorT&& value) {
108 m_payloadFieldNameSeparatorHasBeenSet = true;
109 m_payloadFieldNameSeparator = std::forward<PayloadFieldNameSeparatorT>(value);
110 }
111 template <typename PayloadFieldNameSeparatorT = Aws::String>
112 ActionReview& WithPayloadFieldNameSeparator(PayloadFieldNameSeparatorT&& value) {
113 SetPayloadFieldNameSeparator(std::forward<PayloadFieldNameSeparatorT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_pluginId;
119
120 PluginType m_pluginType{PluginType::NOT_SET};
121
123
124 Aws::String m_payloadFieldNameSeparator;
125 bool m_pluginIdHasBeenSet = false;
126 bool m_pluginTypeHasBeenSet = false;
127 bool m_payloadHasBeenSet = false;
128 bool m_payloadFieldNameSeparatorHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace QBusiness
133} // namespace Aws
const Aws::Map< Aws::String, ActionReviewPayloadField > & GetPayload() const
ActionReview & WithPluginId(PluginIdT &&value)
void SetPayloadFieldNameSeparator(PayloadFieldNameSeparatorT &&value)
const Aws::String & GetPayloadFieldNameSeparator() const
ActionReview & AddPayload(PayloadKeyT &&key, PayloadValueT &&value)
const Aws::String & GetPluginId() const
void SetPluginId(PluginIdT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ActionReview & WithPluginType(PluginType value)
AWS_QBUSINESS_API ActionReview()=default
AWS_QBUSINESS_API ActionReview & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPayload(PayloadT &&value)
ActionReview & WithPayload(PayloadT &&value)
ActionReview & WithPayloadFieldNameSeparator(PayloadFieldNameSeparatorT &&value)
AWS_QBUSINESS_API ActionReview(Aws::Utils::Json::JsonView jsonValue)
void SetPluginType(PluginType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue