AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginAccessControl.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/OriginAccessControlConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDFRONT_API OriginAccessControl();
36 AWS_CLOUDFRONT_API OriginAccessControl(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API OriginAccessControl& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline OriginAccessControl& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline OriginAccessControl& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline OriginAccessControl& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const OriginAccessControlConfig& GetOriginAccessControlConfig() const{ return m_originAccessControlConfig; }
61 inline bool OriginAccessControlConfigHasBeenSet() const { return m_originAccessControlConfigHasBeenSet; }
62 inline void SetOriginAccessControlConfig(const OriginAccessControlConfig& value) { m_originAccessControlConfigHasBeenSet = true; m_originAccessControlConfig = value; }
63 inline void SetOriginAccessControlConfig(OriginAccessControlConfig&& value) { m_originAccessControlConfigHasBeenSet = true; m_originAccessControlConfig = std::move(value); }
67 private:
68
69 Aws::String m_id;
70 bool m_idHasBeenSet = false;
71
72 OriginAccessControlConfig m_originAccessControlConfig;
73 bool m_originAccessControlConfigHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudFront
78} // namespace Aws
AWS_CLOUDFRONT_API OriginAccessControl & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginAccessControl & WithOriginAccessControlConfig(const OriginAccessControlConfig &value)
void SetOriginAccessControlConfig(const OriginAccessControlConfig &value)
OriginAccessControl & WithId(const char *value)
OriginAccessControl & WithId(Aws::String &&value)
OriginAccessControl & WithOriginAccessControlConfig(OriginAccessControlConfig &&value)
OriginAccessControl & WithId(const Aws::String &value)
AWS_CLOUDFRONT_API OriginAccessControl(const Aws::Utils::Xml::XmlNode &xmlNode)
const OriginAccessControlConfig & GetOriginAccessControlConfig() const
void SetOriginAccessControlConfig(OriginAccessControlConfig &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String