AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginAccessControlConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/OriginAccessControlSigningProtocols.h>
10#include <aws/cloudfront/model/OriginAccessControlSigningBehaviors.h>
11#include <aws/cloudfront/model/OriginAccessControlOriginTypes.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFront
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDFRONT_API OriginAccessControlConfig();
38 AWS_CLOUDFRONT_API OriginAccessControlConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline OriginAccessControlConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline OriginAccessControlConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline OriginAccessControlConfig& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline OriginAccessControlConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline OriginAccessControlConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline OriginAccessControlConfig& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
79 inline const OriginAccessControlSigningProtocols& GetSigningProtocol() const{ return m_signingProtocol; }
80 inline bool SigningProtocolHasBeenSet() const { return m_signingProtocolHasBeenSet; }
81 inline void SetSigningProtocol(const OriginAccessControlSigningProtocols& value) { m_signingProtocolHasBeenSet = true; m_signingProtocol = value; }
82 inline void SetSigningProtocol(OriginAccessControlSigningProtocols&& value) { m_signingProtocolHasBeenSet = true; m_signingProtocol = std::move(value); }
86
88
111 inline const OriginAccessControlSigningBehaviors& GetSigningBehavior() const{ return m_signingBehavior; }
112 inline bool SigningBehaviorHasBeenSet() const { return m_signingBehaviorHasBeenSet; }
113 inline void SetSigningBehavior(const OriginAccessControlSigningBehaviors& value) { m_signingBehaviorHasBeenSet = true; m_signingBehavior = value; }
114 inline void SetSigningBehavior(OriginAccessControlSigningBehaviors&& value) { m_signingBehaviorHasBeenSet = true; m_signingBehavior = std::move(value); }
118
120
123 inline const OriginAccessControlOriginTypes& GetOriginAccessControlOriginType() const{ return m_originAccessControlOriginType; }
124 inline bool OriginAccessControlOriginTypeHasBeenSet() const { return m_originAccessControlOriginTypeHasBeenSet; }
125 inline void SetOriginAccessControlOriginType(const OriginAccessControlOriginTypes& value) { m_originAccessControlOriginTypeHasBeenSet = true; m_originAccessControlOriginType = value; }
126 inline void SetOriginAccessControlOriginType(OriginAccessControlOriginTypes&& value) { m_originAccessControlOriginTypeHasBeenSet = true; m_originAccessControlOriginType = std::move(value); }
130 private:
131
132 Aws::String m_name;
133 bool m_nameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 OriginAccessControlSigningProtocols m_signingProtocol;
139 bool m_signingProtocolHasBeenSet = false;
140
141 OriginAccessControlSigningBehaviors m_signingBehavior;
142 bool m_signingBehaviorHasBeenSet = false;
143
144 OriginAccessControlOriginTypes m_originAccessControlOriginType;
145 bool m_originAccessControlOriginTypeHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace CloudFront
150} // namespace Aws
OriginAccessControlConfig & WithName(Aws::String &&value)
OriginAccessControlConfig & WithName(const char *value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginAccessControlConfig & WithSigningProtocol(const OriginAccessControlSigningProtocols &value)
AWS_CLOUDFRONT_API OriginAccessControlConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSigningProtocol(OriginAccessControlSigningProtocols &&value)
OriginAccessControlConfig & WithOriginAccessControlOriginType(const OriginAccessControlOriginTypes &value)
void SetSigningBehavior(const OriginAccessControlSigningBehaviors &value)
void SetOriginAccessControlOriginType(OriginAccessControlOriginTypes &&value)
OriginAccessControlConfig & WithOriginAccessControlOriginType(OriginAccessControlOriginTypes &&value)
OriginAccessControlConfig & WithDescription(Aws::String &&value)
void SetSigningBehavior(OriginAccessControlSigningBehaviors &&value)
OriginAccessControlConfig & WithSigningProtocol(OriginAccessControlSigningProtocols &&value)
const OriginAccessControlOriginTypes & GetOriginAccessControlOriginType() const
const OriginAccessControlSigningProtocols & GetSigningProtocol() const
OriginAccessControlConfig & WithDescription(const char *value)
OriginAccessControlConfig & WithDescription(const Aws::String &value)
OriginAccessControlConfig & WithSigningBehavior(const OriginAccessControlSigningBehaviors &value)
OriginAccessControlConfig & WithName(const Aws::String &value)
const OriginAccessControlSigningBehaviors & GetSigningBehavior() const
AWS_CLOUDFRONT_API OriginAccessControlConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSigningProtocol(const OriginAccessControlSigningProtocols &value)
void SetOriginAccessControlOriginType(const OriginAccessControlOriginTypes &value)
OriginAccessControlConfig & WithSigningBehavior(OriginAccessControlSigningBehaviors &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String