AWS SDK for C++  1.9.104
AWS SDK for C++
QueryStringObject.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
49  inline bool GetOption() const{ return m_option; }
50 
55  inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
56 
61  inline void SetOption(bool value) { m_optionHasBeenSet = true; m_option = value; }
62 
67  inline QueryStringObject& WithOption(bool value) { SetOption(value); return *this;}
68 
69 
77  inline const Aws::Vector<Aws::String>& GetQueryStringsAllowList() const{ return m_queryStringsAllowList; }
78 
86  inline bool QueryStringsAllowListHasBeenSet() const { return m_queryStringsAllowListHasBeenSet; }
87 
95  inline void SetQueryStringsAllowList(const Aws::Vector<Aws::String>& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList = value; }
96 
104  inline void SetQueryStringsAllowList(Aws::Vector<Aws::String>&& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList = std::move(value); }
105 
113  inline QueryStringObject& WithQueryStringsAllowList(const Aws::Vector<Aws::String>& value) { SetQueryStringsAllowList(value); return *this;}
114 
122  inline QueryStringObject& WithQueryStringsAllowList(Aws::Vector<Aws::String>&& value) { SetQueryStringsAllowList(std::move(value)); return *this;}
123 
131  inline QueryStringObject& AddQueryStringsAllowList(const Aws::String& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(value); return *this; }
132 
140  inline QueryStringObject& AddQueryStringsAllowList(Aws::String&& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(std::move(value)); return *this; }
141 
149  inline QueryStringObject& AddQueryStringsAllowList(const char* value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(value); return *this; }
150 
151  private:
152 
153  bool m_option;
154  bool m_optionHasBeenSet;
155 
156  Aws::Vector<Aws::String> m_queryStringsAllowList;
157  bool m_queryStringsAllowListHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace Lightsail
162 } // namespace Aws
Aws::Lightsail::Model::QueryStringObject::AddQueryStringsAllowList
QueryStringObject & AddQueryStringsAllowList(const char *value)
Definition: QueryStringObject.h:149
Aws::Lightsail::Model::QueryStringObject::operator=
QueryStringObject & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::QueryStringObject::OptionHasBeenSet
bool OptionHasBeenSet() const
Definition: QueryStringObject.h:55
Aws::Lightsail::Model::QueryStringObject
Definition: QueryStringObject.h:37
Aws::Lightsail::Model::QueryStringObject::AddQueryStringsAllowList
QueryStringObject & AddQueryStringsAllowList(const Aws::String &value)
Definition: QueryStringObject.h:131
Aws::Lightsail::Model::QueryStringObject::QueryStringsAllowListHasBeenSet
bool QueryStringsAllowListHasBeenSet() const
Definition: QueryStringObject.h:86
Aws::Lightsail::Model::QueryStringObject::SetQueryStringsAllowList
void SetQueryStringsAllowList(Aws::Vector< Aws::String > &&value)
Definition: QueryStringObject.h:104
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::QueryStringObject::SetQueryStringsAllowList
void SetQueryStringsAllowList(const Aws::Vector< Aws::String > &value)
Definition: QueryStringObject.h:95
Aws::Lightsail::Model::QueryStringObject::AddQueryStringsAllowList
QueryStringObject & AddQueryStringsAllowList(Aws::String &&value)
Definition: QueryStringObject.h:140
Aws::Lightsail::Model::QueryStringObject::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::QueryStringObject::WithOption
QueryStringObject & WithOption(bool value)
Definition: QueryStringObject.h:67
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::QueryStringObject::GetQueryStringsAllowList
const Aws::Vector< Aws::String > & GetQueryStringsAllowList() const
Definition: QueryStringObject.h:77
AWSString.h
Aws::Lightsail::Model::QueryStringObject::SetOption
void SetOption(bool value)
Definition: QueryStringObject.h:61
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::QueryStringObject::QueryStringObject
QueryStringObject()
Aws::Lightsail::Model::QueryStringObject::GetOption
bool GetOption() const
Definition: QueryStringObject.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::QueryStringObject::WithQueryStringsAllowList
QueryStringObject & WithQueryStringsAllowList(Aws::Vector< Aws::String > &&value)
Definition: QueryStringObject.h:122
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::QueryStringObject::QueryStringObject
QueryStringObject(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::QueryStringObject::WithQueryStringsAllowList
QueryStringObject & WithQueryStringsAllowList(const Aws::Vector< Aws::String > &value)
Definition: QueryStringObject.h:113