AWS SDK for C++  1.9.108
AWS SDK for C++
CookieObject.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
38  {
39  public:
44 
45 
52  inline const ForwardValues& GetOption() const{ return m_option; }
53 
60  inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
61 
68  inline void SetOption(const ForwardValues& value) { m_optionHasBeenSet = true; m_option = value; }
69 
76  inline void SetOption(ForwardValues&& value) { m_optionHasBeenSet = true; m_option = std::move(value); }
77 
84  inline CookieObject& WithOption(const ForwardValues& value) { SetOption(value); return *this;}
85 
92  inline CookieObject& WithOption(ForwardValues&& value) { SetOption(std::move(value)); return *this;}
93 
94 
98  inline const Aws::Vector<Aws::String>& GetCookiesAllowList() const{ return m_cookiesAllowList; }
99 
103  inline bool CookiesAllowListHasBeenSet() const { return m_cookiesAllowListHasBeenSet; }
104 
108  inline void SetCookiesAllowList(const Aws::Vector<Aws::String>& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList = value; }
109 
113  inline void SetCookiesAllowList(Aws::Vector<Aws::String>&& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList = std::move(value); }
114 
118  inline CookieObject& WithCookiesAllowList(const Aws::Vector<Aws::String>& value) { SetCookiesAllowList(value); return *this;}
119 
123  inline CookieObject& WithCookiesAllowList(Aws::Vector<Aws::String>&& value) { SetCookiesAllowList(std::move(value)); return *this;}
124 
128  inline CookieObject& AddCookiesAllowList(const Aws::String& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.push_back(value); return *this; }
129 
133  inline CookieObject& AddCookiesAllowList(Aws::String&& value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.push_back(std::move(value)); return *this; }
134 
138  inline CookieObject& AddCookiesAllowList(const char* value) { m_cookiesAllowListHasBeenSet = true; m_cookiesAllowList.push_back(value); return *this; }
139 
140  private:
141 
142  ForwardValues m_option;
143  bool m_optionHasBeenSet;
144 
145  Aws::Vector<Aws::String> m_cookiesAllowList;
146  bool m_cookiesAllowListHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace Lightsail
151 } // namespace Aws
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
ForwardValues.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
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::ForwardValues
ForwardValues
Definition: ForwardValues.h:17
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28