AWS SDK for C++  1.9.21
AWS SDK for C++
OriginShield.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
35  {
36  public:
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
50  inline bool GetEnabled() const{ return m_enabled; }
51 
58  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
59 
66  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
67 
74  inline OriginShield& WithEnabled(bool value) { SetEnabled(value); return *this;}
75 
76 
88  inline const Aws::String& GetOriginShieldRegion() const{ return m_originShieldRegion; }
89 
101  inline bool OriginShieldRegionHasBeenSet() const { return m_originShieldRegionHasBeenSet; }
102 
114  inline void SetOriginShieldRegion(const Aws::String& value) { m_originShieldRegionHasBeenSet = true; m_originShieldRegion = value; }
115 
127  inline void SetOriginShieldRegion(Aws::String&& value) { m_originShieldRegionHasBeenSet = true; m_originShieldRegion = std::move(value); }
128 
140  inline void SetOriginShieldRegion(const char* value) { m_originShieldRegionHasBeenSet = true; m_originShieldRegion.assign(value); }
141 
153  inline OriginShield& WithOriginShieldRegion(const Aws::String& value) { SetOriginShieldRegion(value); return *this;}
154 
166  inline OriginShield& WithOriginShieldRegion(Aws::String&& value) { SetOriginShieldRegion(std::move(value)); return *this;}
167 
179  inline OriginShield& WithOriginShieldRegion(const char* value) { SetOriginShieldRegion(value); return *this;}
180 
181  private:
182 
183  bool m_enabled;
184  bool m_enabledHasBeenSet;
185 
186  Aws::String m_originShieldRegion;
187  bool m_originShieldRegionHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace CloudFront
192 } // namespace Aws
Aws::CloudFront::Model::OriginShield::WithOriginShieldRegion
OriginShield & WithOriginShieldRegion(const Aws::String &value)
Definition: OriginShield.h:153
Aws::CloudFront::Model::OriginShield::OriginShield
OriginShield()
Aws::CloudFront::Model::OriginShield::OriginShieldRegionHasBeenSet
bool OriginShieldRegionHasBeenSet() const
Definition: OriginShield.h:101
Aws::CloudFront::Model::OriginShield::GetOriginShieldRegion
const Aws::String & GetOriginShieldRegion() const
Definition: OriginShield.h:88
Aws::CloudFront::Model::OriginShield::SetOriginShieldRegion
void SetOriginShieldRegion(const char *value)
Definition: OriginShield.h:140
Aws::CloudFront::Model::OriginShield::OriginShield
OriginShield(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginShield::GetEnabled
bool GetEnabled() const
Definition: OriginShield.h:50
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginShield::operator=
OriginShield & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginShield::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: OriginShield.h:58
Aws::CloudFront::Model::OriginShield::WithOriginShieldRegion
OriginShield & WithOriginShieldRegion(Aws::String &&value)
Definition: OriginShield.h:166
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginShield::SetEnabled
void SetEnabled(bool value)
Definition: OriginShield.h:66
Aws::CloudFront::Model::OriginShield::SetOriginShieldRegion
void SetOriginShieldRegion(const Aws::String &value)
Definition: OriginShield.h:114
Aws::CloudFront::Model::OriginShield::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginShield::WithOriginShieldRegion
OriginShield & WithOriginShieldRegion(const char *value)
Definition: OriginShield.h:179
Aws::CloudFront::Model::OriginShield
Definition: OriginShield.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::OriginShield::WithEnabled
OriginShield & WithEnabled(bool value)
Definition: OriginShield.h:74
Aws::CloudFront::Model::OriginShield::SetOriginShieldRegion
void SetOriginShieldRegion(Aws::String &&value)
Definition: OriginShield.h:127