AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
QueryInfo.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/FieldInfo.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
28class QueryInfo {
29 public:
30 AWS_CONFIGSERVICE_API QueryInfo() = default;
31 AWS_CONFIGSERVICE_API QueryInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONFIGSERVICE_API QueryInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<FieldInfo>& GetSelectFields() const { return m_selectFields; }
40 inline bool SelectFieldsHasBeenSet() const { return m_selectFieldsHasBeenSet; }
41 template <typename SelectFieldsT = Aws::Vector<FieldInfo>>
42 void SetSelectFields(SelectFieldsT&& value) {
43 m_selectFieldsHasBeenSet = true;
44 m_selectFields = std::forward<SelectFieldsT>(value);
45 }
46 template <typename SelectFieldsT = Aws::Vector<FieldInfo>>
47 QueryInfo& WithSelectFields(SelectFieldsT&& value) {
48 SetSelectFields(std::forward<SelectFieldsT>(value));
49 return *this;
50 }
51 template <typename SelectFieldsT = FieldInfo>
52 QueryInfo& AddSelectFields(SelectFieldsT&& value) {
53 m_selectFieldsHasBeenSet = true;
54 m_selectFields.emplace_back(std::forward<SelectFieldsT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<FieldInfo> m_selectFields;
60 bool m_selectFieldsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace ConfigService
65} // namespace Aws
QueryInfo & AddSelectFields(SelectFieldsT &&value)
Definition QueryInfo.h:52
const Aws::Vector< FieldInfo > & GetSelectFields() const
Definition QueryInfo.h:39
AWS_CONFIGSERVICE_API QueryInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API QueryInfo()=default
QueryInfo & WithSelectFields(SelectFieldsT &&value)
Definition QueryInfo.h:47
AWS_CONFIGSERVICE_API QueryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSelectFields(SelectFieldsT &&value)
Definition QueryInfo.h:42
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue