AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CookieObject.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/ForwardValues.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_LIGHTSAIL_API CookieObject() = default;
41 AWS_LIGHTSAIL_API CookieObject(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API CookieObject& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline ForwardValues GetOption() const { return m_option; }
54 inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
55 inline void SetOption(ForwardValues value) { m_optionHasBeenSet = true; m_option = value; }
56 inline CookieObject& WithOption(ForwardValues value) { SetOption(value); return *this;}
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) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList = std::forward<CookiesAllowListT>(value); }
67 template<typename CookiesAllowListT = Aws::Vector<Aws::String>>
68 CookieObject& WithCookiesAllowList(CookiesAllowListT&& value) { SetCookiesAllowList(std::forward<CookiesAllowListT>(value)); return *this;}
69 template<typename CookiesAllowListT = Aws::String>
70 CookieObject& AddCookiesAllowList(CookiesAllowListT&& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.emplace_back(std::forward<CookiesAllowListT>(value)); return *this; }
72 private:
73
75 bool m_optionHasBeenSet = false;
76
77 Aws::Vector<Aws::String> m_cookiesAllowList;
78 bool m_cookiesAllowListHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Lightsail
83} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue