AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CookieObject.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#include <aws/lightsail/model/ForwardValues.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail {
22namespace Model {
23
34 public:
35 AWS_LIGHTSAIL_API CookieObject() = default;
36 AWS_LIGHTSAIL_API CookieObject(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API CookieObject& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline ForwardValues GetOption() const { return m_option; }
48 inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
49 inline void SetOption(ForwardValues value) {
50 m_optionHasBeenSet = true;
51 m_option = value;
52 }
54 SetOption(value);
55 return *this;
56 }
58
60
63 inline const Aws::Vector<Aws::String>& GetCookiesAllowList() const { return m_cookiesAllowList; }
64 inline bool CookiesAllowListHasBeenSet() const { return m_cookiesAllowListHasBeenSet; }
65 template <typename CookiesAllowListT = Aws::Vector<Aws::String>>
66 void SetCookiesAllowList(CookiesAllowListT&& value) {
67 m_cookiesAllowListHasBeenSet = true;
68 m_cookiesAllowList = std::forward<CookiesAllowListT>(value);
69 }
70 template <typename CookiesAllowListT = Aws::Vector<Aws::String>>
71 CookieObject& WithCookiesAllowList(CookiesAllowListT&& value) {
72 SetCookiesAllowList(std::forward<CookiesAllowListT>(value));
73 return *this;
74 }
75 template <typename CookiesAllowListT = Aws::String>
76 CookieObject& AddCookiesAllowList(CookiesAllowListT&& value) {
77 m_cookiesAllowListHasBeenSet = true;
78 m_cookiesAllowList.emplace_back(std::forward<CookiesAllowListT>(value));
79 return *this;
80 }
82 private:
84 bool m_optionHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_cookiesAllowList;
87 bool m_cookiesAllowListHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Lightsail
92} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue