AWS SDK for C++  1.9.104
AWS SDK for C++
HeaderObject.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 
42  {
43  public:
48 
49 
59  inline const ForwardValues& GetOption() const{ return m_option; }
60 
70  inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
71 
81  inline void SetOption(const ForwardValues& value) { m_optionHasBeenSet = true; m_option = value; }
82 
92  inline void SetOption(ForwardValues&& value) { m_optionHasBeenSet = true; m_option = std::move(value); }
93 
103  inline HeaderObject& WithOption(const ForwardValues& value) { SetOption(value); return *this;}
104 
114  inline HeaderObject& WithOption(ForwardValues&& value) { SetOption(std::move(value)); return *this;}
115 
116 
120  inline const Aws::Vector<HeaderEnum>& GetHeadersAllowList() const{ return m_headersAllowList; }
121 
125  inline bool HeadersAllowListHasBeenSet() const { return m_headersAllowListHasBeenSet; }
126 
130  inline void SetHeadersAllowList(const Aws::Vector<HeaderEnum>& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList = value; }
131 
135  inline void SetHeadersAllowList(Aws::Vector<HeaderEnum>&& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList = std::move(value); }
136 
140  inline HeaderObject& WithHeadersAllowList(const Aws::Vector<HeaderEnum>& value) { SetHeadersAllowList(value); return *this;}
141 
145  inline HeaderObject& WithHeadersAllowList(Aws::Vector<HeaderEnum>&& value) { SetHeadersAllowList(std::move(value)); return *this;}
146 
150  inline HeaderObject& AddHeadersAllowList(const HeaderEnum& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList.push_back(value); return *this; }
151 
155  inline HeaderObject& AddHeadersAllowList(HeaderEnum&& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList.push_back(std::move(value)); return *this; }
156 
157  private:
158 
159  ForwardValues m_option;
160  bool m_optionHasBeenSet;
161 
162  Aws::Vector<HeaderEnum> m_headersAllowList;
163  bool m_headersAllowListHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace Lightsail
168 } // namespace Aws
Aws::Lightsail::Model::HeaderObject::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::HeaderObject::AddHeadersAllowList
HeaderObject & AddHeadersAllowList(const HeaderEnum &value)
Definition: HeaderObject.h:150
Aws::Lightsail::Model::HeaderObject::WithOption
HeaderObject & WithOption(const ForwardValues &value)
Definition: HeaderObject.h:103
Aws::Lightsail::Model::HeaderObject::operator=
HeaderObject & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::HeaderObject::OptionHasBeenSet
bool OptionHasBeenSet() const
Definition: HeaderObject.h:70
Aws::Lightsail::Model::HeaderObject::GetOption
const ForwardValues & GetOption() const
Definition: HeaderObject.h:59
ForwardValues.h
Aws::Lightsail::Model::HeaderObject::WithHeadersAllowList
HeaderObject & WithHeadersAllowList(Aws::Vector< HeaderEnum > &&value)
Definition: HeaderObject.h:145
Aws::Lightsail::Model::HeaderObject::WithOption
HeaderObject & WithOption(ForwardValues &&value)
Definition: HeaderObject.h:114
Aws::Lightsail::Model::HeaderObject
Definition: HeaderObject.h:42
Aws::Lightsail::Model::HeaderObject::HeaderObject
HeaderObject(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::HeaderObject::SetHeadersAllowList
void SetHeadersAllowList(const Aws::Vector< HeaderEnum > &value)
Definition: HeaderObject.h:130
Lightsail_EXPORTS.h
Aws::Lightsail::Model::HeaderObject::SetOption
void SetOption(ForwardValues &&value)
Definition: HeaderObject.h:92
HeaderEnum.h
Aws::Lightsail::Model::HeaderObject::HeaderObject
HeaderObject()
Aws::Lightsail::Model::HeaderObject::HeadersAllowListHasBeenSet
bool HeadersAllowListHasBeenSet() const
Definition: HeaderObject.h:125
Aws::Lightsail::Model::HeaderEnum
HeaderEnum
Definition: HeaderEnum.h:17
Aws::Lightsail::Model::HeaderObject::SetHeadersAllowList
void SetHeadersAllowList(Aws::Vector< HeaderEnum > &&value)
Definition: HeaderObject.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::HeaderObject::AddHeadersAllowList
HeaderObject & AddHeadersAllowList(HeaderEnum &&value)
Definition: HeaderObject.h:155
Aws::Lightsail::Model::HeaderObject::GetHeadersAllowList
const Aws::Vector< HeaderEnum > & GetHeadersAllowList() const
Definition: HeaderObject.h:120
Aws::Lightsail::Model::ForwardValues
ForwardValues
Definition: ForwardValues.h:17
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::HeaderObject::SetOption
void SetOption(const ForwardValues &value)
Definition: HeaderObject.h:81
Aws::Lightsail::Model::HeaderObject::WithHeadersAllowList
HeaderObject & WithHeadersAllowList(const Aws::Vector< HeaderEnum > &value)
Definition: HeaderObject.h:140