AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HeaderObject.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/lightsail/model/HeaderEnum.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
42 {
43 public:
44 AWS_LIGHTSAIL_API HeaderObject();
45 AWS_LIGHTSAIL_API HeaderObject(Aws::Utils::Json::JsonView jsonValue);
46 AWS_LIGHTSAIL_API HeaderObject& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
60 inline const ForwardValues& GetOption() const{ return m_option; }
61 inline bool OptionHasBeenSet() const { return m_optionHasBeenSet; }
62 inline void SetOption(const ForwardValues& value) { m_optionHasBeenSet = true; m_option = value; }
63 inline void SetOption(ForwardValues&& value) { m_optionHasBeenSet = true; m_option = std::move(value); }
64 inline HeaderObject& WithOption(const ForwardValues& value) { SetOption(value); return *this;}
65 inline HeaderObject& WithOption(ForwardValues&& value) { SetOption(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<HeaderEnum>& GetHeadersAllowList() const{ return m_headersAllowList; }
73 inline bool HeadersAllowListHasBeenSet() const { return m_headersAllowListHasBeenSet; }
74 inline void SetHeadersAllowList(const Aws::Vector<HeaderEnum>& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList = value; }
75 inline void SetHeadersAllowList(Aws::Vector<HeaderEnum>&& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList = std::move(value); }
77 inline HeaderObject& WithHeadersAllowList(Aws::Vector<HeaderEnum>&& value) { SetHeadersAllowList(std::move(value)); return *this;}
78 inline HeaderObject& AddHeadersAllowList(const HeaderEnum& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList.push_back(value); return *this; }
79 inline HeaderObject& AddHeadersAllowList(HeaderEnum&& value) { m_headersAllowListHasBeenSet = true; m_headersAllowList.push_back(std::move(value)); return *this; }
81 private:
82
83 ForwardValues m_option;
84 bool m_optionHasBeenSet = false;
85
86 Aws::Vector<HeaderEnum> m_headersAllowList;
87 bool m_headersAllowListHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Lightsail
92} // namespace Aws
HeaderObject & WithHeadersAllowList(Aws::Vector< HeaderEnum > &&value)
HeaderObject & WithHeadersAllowList(const Aws::Vector< HeaderEnum > &value)
void SetOption(const ForwardValues &value)
void SetHeadersAllowList(Aws::Vector< HeaderEnum > &&value)
HeaderObject & AddHeadersAllowList(HeaderEnum &&value)
AWS_LIGHTSAIL_API HeaderObject(Aws::Utils::Json::JsonView jsonValue)
HeaderObject & WithOption(const ForwardValues &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
HeaderObject & AddHeadersAllowList(const HeaderEnum &value)
const ForwardValues & GetOption() const
const Aws::Vector< HeaderEnum > & GetHeadersAllowList() const
HeaderObject & WithOption(ForwardValues &&value)
AWS_LIGHTSAIL_API HeaderObject & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOption(ForwardValues &&value)
void SetHeadersAllowList(const Aws::Vector< HeaderEnum > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue