AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginShield.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
35 {
36 public:
37 AWS_CLOUDFRONT_API OriginShield();
38 AWS_CLOUDFRONT_API OriginShield(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFRONT_API OriginShield& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
51 inline bool GetEnabled() const{ return m_enabled; }
52 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
53 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
54 inline OriginShield& WithEnabled(bool value) { SetEnabled(value); return *this;}
56
58
70 inline const Aws::String& GetOriginShieldRegion() const{ return m_originShieldRegion; }
71 inline bool OriginShieldRegionHasBeenSet() const { return m_originShieldRegionHasBeenSet; }
72 inline void SetOriginShieldRegion(const Aws::String& value) { m_originShieldRegionHasBeenSet = true; m_originShieldRegion = value; }
73 inline void SetOriginShieldRegion(Aws::String&& value) { m_originShieldRegionHasBeenSet = true; m_originShieldRegion = std::move(value); }
74 inline void SetOriginShieldRegion(const char* value) { m_originShieldRegionHasBeenSet = true; m_originShieldRegion.assign(value); }
75 inline OriginShield& WithOriginShieldRegion(const Aws::String& value) { SetOriginShieldRegion(value); return *this;}
76 inline OriginShield& WithOriginShieldRegion(Aws::String&& value) { SetOriginShieldRegion(std::move(value)); return *this;}
77 inline OriginShield& WithOriginShieldRegion(const char* value) { SetOriginShieldRegion(value); return *this;}
79 private:
80
81 bool m_enabled;
82 bool m_enabledHasBeenSet = false;
83
84 Aws::String m_originShieldRegion;
85 bool m_originShieldRegionHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudFront
90} // namespace Aws
OriginShield & WithEnabled(bool value)
OriginShield & WithOriginShieldRegion(Aws::String &&value)
OriginShield & WithOriginShieldRegion(const char *value)
void SetOriginShieldRegion(const Aws::String &value)
AWS_CLOUDFRONT_API OriginShield & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOriginShieldRegion(const char *value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginShield & WithOriginShieldRegion(const Aws::String &value)
void SetOriginShieldRegion(Aws::String &&value)
AWS_CLOUDFRONT_API OriginShield(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetOriginShieldRegion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String