AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
QueryStringObject.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
33 public:
34 AWS_LIGHTSAIL_API QueryStringObject() = default;
35 AWS_LIGHTSAIL_API QueryStringObject(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline bool GetOption() const { return m_option; }
45 inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
46 inline void SetOption(bool value) {
47 m_optionHasBeenSet = true;
48 m_option = value;
49 }
50 inline QueryStringObject& WithOption(bool value) {
51 SetOption(value);
52 return *this;
53 }
55
57
64 inline const Aws::Vector<Aws::String>& GetQueryStringsAllowList() const { return m_queryStringsAllowList; }
65 inline bool QueryStringsAllowListHasBeenSet() const { return m_queryStringsAllowListHasBeenSet; }
66 template <typename QueryStringsAllowListT = Aws::Vector<Aws::String>>
67 void SetQueryStringsAllowList(QueryStringsAllowListT&& value) {
68 m_queryStringsAllowListHasBeenSet = true;
69 m_queryStringsAllowList = std::forward<QueryStringsAllowListT>(value);
70 }
71 template <typename QueryStringsAllowListT = Aws::Vector<Aws::String>>
72 QueryStringObject& WithQueryStringsAllowList(QueryStringsAllowListT&& value) {
73 SetQueryStringsAllowList(std::forward<QueryStringsAllowListT>(value));
74 return *this;
75 }
76 template <typename QueryStringsAllowListT = Aws::String>
77 QueryStringObject& AddQueryStringsAllowList(QueryStringsAllowListT&& value) {
78 m_queryStringsAllowListHasBeenSet = true;
79 m_queryStringsAllowList.emplace_back(std::forward<QueryStringsAllowListT>(value));
80 return *this;
81 }
83 private:
84 bool m_option{false};
85
86 Aws::Vector<Aws::String> m_queryStringsAllowList;
87 bool m_optionHasBeenSet = false;
88 bool m_queryStringsAllowListHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Lightsail
93} // namespace Aws
void SetQueryStringsAllowList(QueryStringsAllowListT &&value)
QueryStringObject & WithQueryStringsAllowList(QueryStringsAllowListT &&value)
AWS_LIGHTSAIL_API QueryStringObject & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryStringObject & AddQueryStringsAllowList(QueryStringsAllowListT &&value)
QueryStringObject & WithOption(bool value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetQueryStringsAllowList() const
AWS_LIGHTSAIL_API QueryStringObject(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API QueryStringObject()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue