AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ForwardValues& GetOption() const{ return m_option; }
54 inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
55 inline void SetOption(const ForwardValues& value) { m_optionHasBeenSet = true; m_option = value; }
56 inline void SetOption(ForwardValues&& value) { m_optionHasBeenSet = true; m_option = std::move(value); }
57 inline CookieObject& WithOption(const ForwardValues& value) { SetOption(value); return *this;}
58 inline CookieObject& WithOption(ForwardValues&& value) { SetOption(std::move(value)); return *this;}
60
62
65 inline const Aws::Vector<Aws::String>& GetCookiesAllowList() const{ return m_cookiesAllowList; }
66 inline bool CookiesAllowListHasBeenSet() const { return m_cookiesAllowListHasBeenSet; }
67 inline void SetCookiesAllowList(const Aws::Vector<Aws::String>& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList = value; }
68 inline void SetCookiesAllowList(Aws::Vector<Aws::String>&& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList = std::move(value); }
70 inline CookieObject& WithCookiesAllowList(Aws::Vector<Aws::String>&& value) { SetCookiesAllowList(std::move(value)); return *this;}
71 inline CookieObject& AddCookiesAllowList(const Aws::String& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.push_back(value); return *this; }
72 inline CookieObject& AddCookiesAllowList(Aws::String&& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.push_back(std::move(value)); return *this; }
73 inline CookieObject& AddCookiesAllowList(const char* value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.push_back(value); return *this; }
75 private:
76
77 ForwardValues m_option;
78 bool m_optionHasBeenSet = false;
79
80 Aws::Vector<Aws::String> m_cookiesAllowList;
81 bool m_cookiesAllowListHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Lightsail
86} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue