AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
StoredQuery.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConfigService {
20namespace Model {
21
28 public:
29 AWS_CONFIGSERVICE_API StoredQuery() = default;
30 AWS_CONFIGSERVICE_API StoredQuery(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CONFIGSERVICE_API StoredQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetQueryId() const { return m_queryId; }
39 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
40 template <typename QueryIdT = Aws::String>
41 void SetQueryId(QueryIdT&& value) {
42 m_queryIdHasBeenSet = true;
43 m_queryId = std::forward<QueryIdT>(value);
44 }
45 template <typename QueryIdT = Aws::String>
46 StoredQuery& WithQueryId(QueryIdT&& value) {
47 SetQueryId(std::forward<QueryIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetQueryArn() const { return m_queryArn; }
58 inline bool QueryArnHasBeenSet() const { return m_queryArnHasBeenSet; }
59 template <typename QueryArnT = Aws::String>
60 void SetQueryArn(QueryArnT&& value) {
61 m_queryArnHasBeenSet = true;
62 m_queryArn = std::forward<QueryArnT>(value);
63 }
64 template <typename QueryArnT = Aws::String>
65 StoredQuery& WithQueryArn(QueryArnT&& value) {
66 SetQueryArn(std::forward<QueryArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetQueryName() const { return m_queryName; }
76 inline bool QueryNameHasBeenSet() const { return m_queryNameHasBeenSet; }
77 template <typename QueryNameT = Aws::String>
78 void SetQueryName(QueryNameT&& value) {
79 m_queryNameHasBeenSet = true;
80 m_queryName = std::forward<QueryNameT>(value);
81 }
82 template <typename QueryNameT = Aws::String>
83 StoredQuery& WithQueryName(QueryNameT&& value) {
84 SetQueryName(std::forward<QueryNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 StoredQuery& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
115 inline const Aws::String& GetExpression() const { return m_expression; }
116 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
117 template <typename ExpressionT = Aws::String>
118 void SetExpression(ExpressionT&& value) {
119 m_expressionHasBeenSet = true;
120 m_expression = std::forward<ExpressionT>(value);
121 }
122 template <typename ExpressionT = Aws::String>
123 StoredQuery& WithExpression(ExpressionT&& value) {
124 SetExpression(std::forward<ExpressionT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_queryId;
130
131 Aws::String m_queryArn;
132
133 Aws::String m_queryName;
134
135 Aws::String m_description;
136
137 Aws::String m_expression;
138 bool m_queryIdHasBeenSet = false;
139 bool m_queryArnHasBeenSet = false;
140 bool m_queryNameHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_expressionHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace ConfigService
147} // namespace Aws
StoredQuery & WithQueryId(QueryIdT &&value)
Definition StoredQuery.h:46
AWS_CONFIGSERVICE_API StoredQuery()=default
const Aws::String & GetExpression() const
void SetExpression(ExpressionT &&value)
const Aws::String & GetQueryArn() const
Definition StoredQuery.h:57
void SetQueryId(QueryIdT &&value)
Definition StoredQuery.h:41
const Aws::String & GetQueryId() const
Definition StoredQuery.h:38
StoredQuery & WithDescription(DescriptionT &&value)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
Definition StoredQuery.h:93
void SetQueryName(QueryNameT &&value)
Definition StoredQuery.h:78
const Aws::String & GetQueryName() const
Definition StoredQuery.h:75
StoredQuery & WithQueryArn(QueryArnT &&value)
Definition StoredQuery.h:65
StoredQuery & WithExpression(ExpressionT &&value)
StoredQuery & WithQueryName(QueryNameT &&value)
Definition StoredQuery.h:83
void SetQueryArn(QueryArnT &&value)
Definition StoredQuery.h:60
AWS_CONFIGSERVICE_API StoredQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API StoredQuery(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition StoredQuery.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue