AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryStringObject.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_LIGHTSAIL_API QueryStringObject();
40 AWS_LIGHTSAIL_API QueryStringObject(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline bool GetOption() const{ return m_option; }
51 inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
52 inline void SetOption(bool value) { m_optionHasBeenSet = true; m_option = value; }
53 inline QueryStringObject& WithOption(bool value) { SetOption(value); return *this;}
55
57
64 inline const Aws::Vector<Aws::String>& GetQueryStringsAllowList() const{ return m_queryStringsAllowList; }
65 inline bool QueryStringsAllowListHasBeenSet() const { return m_queryStringsAllowListHasBeenSet; }
66 inline void SetQueryStringsAllowList(const Aws::Vector<Aws::String>& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList = value; }
67 inline void SetQueryStringsAllowList(Aws::Vector<Aws::String>&& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList = std::move(value); }
70 inline QueryStringObject& AddQueryStringsAllowList(const Aws::String& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(value); return *this; }
71 inline QueryStringObject& AddQueryStringsAllowList(Aws::String&& value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(std::move(value)); return *this; }
72 inline QueryStringObject& AddQueryStringsAllowList(const char* value) { m_queryStringsAllowListHasBeenSet = true; m_queryStringsAllowList.push_back(value); return *this; }
74 private:
75
76 bool m_option;
77 bool m_optionHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_queryStringsAllowList;
80 bool m_queryStringsAllowListHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Lightsail
85} // namespace Aws
void SetQueryStringsAllowList(const Aws::Vector< Aws::String > &value)
QueryStringObject & WithQueryStringsAllowList(Aws::Vector< Aws::String > &&value)
QueryStringObject & WithQueryStringsAllowList(const Aws::Vector< Aws::String > &value)
AWS_LIGHTSAIL_API QueryStringObject & operator=(Aws::Utils::Json::JsonView jsonValue)
QueryStringObject & AddQueryStringsAllowList(const Aws::String &value)
QueryStringObject & WithOption(bool value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
QueryStringObject & AddQueryStringsAllowList(const char *value)
const Aws::Vector< Aws::String > & GetQueryStringsAllowList() const
AWS_LIGHTSAIL_API QueryStringObject(Aws::Utils::Json::JsonView jsonValue)
QueryStringObject & AddQueryStringsAllowList(Aws::String &&value)
void SetQueryStringsAllowList(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue