1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/config/ConfigService_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace ConfigService 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Provides the details of a stored query.</p><p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StoredQuery">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_CONFIGSERVICE_API StoredQuery 32 { 33 public: 34 StoredQuery(); 35 StoredQuery(Aws::Utils::Json::JsonView jsonValue); 36 StoredQuery& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The ID of the query.</p> 42 */ GetQueryId()43 inline const Aws::String& GetQueryId() const{ return m_queryId; } 44 45 /** 46 * <p>The ID of the query.</p> 47 */ QueryIdHasBeenSet()48 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; } 49 50 /** 51 * <p>The ID of the query.</p> 52 */ SetQueryId(const Aws::String & value)53 inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; } 54 55 /** 56 * <p>The ID of the query.</p> 57 */ SetQueryId(Aws::String && value)58 inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); } 59 60 /** 61 * <p>The ID of the query.</p> 62 */ SetQueryId(const char * value)63 inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); } 64 65 /** 66 * <p>The ID of the query.</p> 67 */ WithQueryId(const Aws::String & value)68 inline StoredQuery& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;} 69 70 /** 71 * <p>The ID of the query.</p> 72 */ WithQueryId(Aws::String && value)73 inline StoredQuery& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;} 74 75 /** 76 * <p>The ID of the query.</p> 77 */ WithQueryId(const char * value)78 inline StoredQuery& WithQueryId(const char* value) { SetQueryId(value); return *this;} 79 80 81 /** 82 * <p>Amazon Resource Name (ARN) of the query. For example, 83 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 84 */ GetQueryArn()85 inline const Aws::String& GetQueryArn() const{ return m_queryArn; } 86 87 /** 88 * <p>Amazon Resource Name (ARN) of the query. For example, 89 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 90 */ QueryArnHasBeenSet()91 inline bool QueryArnHasBeenSet() const { return m_queryArnHasBeenSet; } 92 93 /** 94 * <p>Amazon Resource Name (ARN) of the query. For example, 95 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 96 */ SetQueryArn(const Aws::String & value)97 inline void SetQueryArn(const Aws::String& value) { m_queryArnHasBeenSet = true; m_queryArn = value; } 98 99 /** 100 * <p>Amazon Resource Name (ARN) of the query. For example, 101 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 102 */ SetQueryArn(Aws::String && value)103 inline void SetQueryArn(Aws::String&& value) { m_queryArnHasBeenSet = true; m_queryArn = std::move(value); } 104 105 /** 106 * <p>Amazon Resource Name (ARN) of the query. For example, 107 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 108 */ SetQueryArn(const char * value)109 inline void SetQueryArn(const char* value) { m_queryArnHasBeenSet = true; m_queryArn.assign(value); } 110 111 /** 112 * <p>Amazon Resource Name (ARN) of the query. For example, 113 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 114 */ WithQueryArn(const Aws::String & value)115 inline StoredQuery& WithQueryArn(const Aws::String& value) { SetQueryArn(value); return *this;} 116 117 /** 118 * <p>Amazon Resource Name (ARN) of the query. For example, 119 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 120 */ WithQueryArn(Aws::String && value)121 inline StoredQuery& WithQueryArn(Aws::String&& value) { SetQueryArn(std::move(value)); return *this;} 122 123 /** 124 * <p>Amazon Resource Name (ARN) of the query. For example, 125 * arn:partition:service:region:account-id:resource-type/resource-name/resource-id.</p> 126 */ WithQueryArn(const char * value)127 inline StoredQuery& WithQueryArn(const char* value) { SetQueryArn(value); return *this;} 128 129 130 /** 131 * <p>The name of the query.</p> 132 */ GetQueryName()133 inline const Aws::String& GetQueryName() const{ return m_queryName; } 134 135 /** 136 * <p>The name of the query.</p> 137 */ QueryNameHasBeenSet()138 inline bool QueryNameHasBeenSet() const { return m_queryNameHasBeenSet; } 139 140 /** 141 * <p>The name of the query.</p> 142 */ SetQueryName(const Aws::String & value)143 inline void SetQueryName(const Aws::String& value) { m_queryNameHasBeenSet = true; m_queryName = value; } 144 145 /** 146 * <p>The name of the query.</p> 147 */ SetQueryName(Aws::String && value)148 inline void SetQueryName(Aws::String&& value) { m_queryNameHasBeenSet = true; m_queryName = std::move(value); } 149 150 /** 151 * <p>The name of the query.</p> 152 */ SetQueryName(const char * value)153 inline void SetQueryName(const char* value) { m_queryNameHasBeenSet = true; m_queryName.assign(value); } 154 155 /** 156 * <p>The name of the query.</p> 157 */ WithQueryName(const Aws::String & value)158 inline StoredQuery& WithQueryName(const Aws::String& value) { SetQueryName(value); return *this;} 159 160 /** 161 * <p>The name of the query.</p> 162 */ WithQueryName(Aws::String && value)163 inline StoredQuery& WithQueryName(Aws::String&& value) { SetQueryName(std::move(value)); return *this;} 164 165 /** 166 * <p>The name of the query.</p> 167 */ WithQueryName(const char * value)168 inline StoredQuery& WithQueryName(const char* value) { SetQueryName(value); return *this;} 169 170 171 /** 172 * <p>A unique description for the query.</p> 173 */ GetDescription()174 inline const Aws::String& GetDescription() const{ return m_description; } 175 176 /** 177 * <p>A unique description for the query.</p> 178 */ DescriptionHasBeenSet()179 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } 180 181 /** 182 * <p>A unique description for the query.</p> 183 */ SetDescription(const Aws::String & value)184 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } 185 186 /** 187 * <p>A unique description for the query.</p> 188 */ SetDescription(Aws::String && value)189 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } 190 191 /** 192 * <p>A unique description for the query.</p> 193 */ SetDescription(const char * value)194 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } 195 196 /** 197 * <p>A unique description for the query.</p> 198 */ WithDescription(const Aws::String & value)199 inline StoredQuery& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} 200 201 /** 202 * <p>A unique description for the query.</p> 203 */ WithDescription(Aws::String && value)204 inline StoredQuery& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} 205 206 /** 207 * <p>A unique description for the query.</p> 208 */ WithDescription(const char * value)209 inline StoredQuery& WithDescription(const char* value) { SetDescription(value); return *this;} 210 211 212 /** 213 * <p>The expression of the query. For example, <code>SELECT resourceId, 214 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 215 * WHERE resourceType = 'AWS::S3::Bucket' AND 216 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 217 * </p> 218 */ GetExpression()219 inline const Aws::String& GetExpression() const{ return m_expression; } 220 221 /** 222 * <p>The expression of the query. For example, <code>SELECT resourceId, 223 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 224 * WHERE resourceType = 'AWS::S3::Bucket' AND 225 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 226 * </p> 227 */ ExpressionHasBeenSet()228 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; } 229 230 /** 231 * <p>The expression of the query. For example, <code>SELECT resourceId, 232 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 233 * WHERE resourceType = 'AWS::S3::Bucket' AND 234 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 235 * </p> 236 */ SetExpression(const Aws::String & value)237 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; } 238 239 /** 240 * <p>The expression of the query. For example, <code>SELECT resourceId, 241 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 242 * WHERE resourceType = 'AWS::S3::Bucket' AND 243 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 244 * </p> 245 */ SetExpression(Aws::String && value)246 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); } 247 248 /** 249 * <p>The expression of the query. For example, <code>SELECT resourceId, 250 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 251 * WHERE resourceType = 'AWS::S3::Bucket' AND 252 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 253 * </p> 254 */ SetExpression(const char * value)255 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); } 256 257 /** 258 * <p>The expression of the query. For example, <code>SELECT resourceId, 259 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 260 * WHERE resourceType = 'AWS::S3::Bucket' AND 261 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 262 * </p> 263 */ WithExpression(const Aws::String & value)264 inline StoredQuery& WithExpression(const Aws::String& value) { SetExpression(value); return *this;} 265 266 /** 267 * <p>The expression of the query. For example, <code>SELECT resourceId, 268 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 269 * WHERE resourceType = 'AWS::S3::Bucket' AND 270 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 271 * </p> 272 */ WithExpression(Aws::String && value)273 inline StoredQuery& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;} 274 275 /** 276 * <p>The expression of the query. For example, <code>SELECT resourceId, 277 * resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status 278 * WHERE resourceType = 'AWS::S3::Bucket' AND 279 * supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.</code> 280 * </p> 281 */ WithExpression(const char * value)282 inline StoredQuery& WithExpression(const char* value) { SetExpression(value); return *this;} 283 284 private: 285 286 Aws::String m_queryId; 287 bool m_queryIdHasBeenSet; 288 289 Aws::String m_queryArn; 290 bool m_queryArnHasBeenSet; 291 292 Aws::String m_queryName; 293 bool m_queryNameHasBeenSet; 294 295 Aws::String m_description; 296 bool m_descriptionHasBeenSet; 297 298 Aws::String m_expression; 299 bool m_expressionHasBeenSet; 300 }; 301 302 } // namespace Model 303 } // namespace ConfigService 304 } // namespace Aws 305