AWS SDK for C++  1.9.16
AWS SDK for C++
OriginRequestPolicySummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
45  inline const OriginRequestPolicyType& GetType() const{ return m_type; }
46 
51  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 
57  inline void SetType(const OriginRequestPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
58 
63  inline void SetType(OriginRequestPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 
69  inline OriginRequestPolicySummary& WithType(const OriginRequestPolicyType& value) { SetType(value); return *this;}
70 
75  inline OriginRequestPolicySummary& WithType(OriginRequestPolicyType&& value) { SetType(std::move(value)); return *this;}
76 
77 
81  inline const OriginRequestPolicy& GetOriginRequestPolicy() const{ return m_originRequestPolicy; }
82 
86  inline bool OriginRequestPolicyHasBeenSet() const { return m_originRequestPolicyHasBeenSet; }
87 
91  inline void SetOriginRequestPolicy(const OriginRequestPolicy& value) { m_originRequestPolicyHasBeenSet = true; m_originRequestPolicy = value; }
92 
96  inline void SetOriginRequestPolicy(OriginRequestPolicy&& value) { m_originRequestPolicyHasBeenSet = true; m_originRequestPolicy = std::move(value); }
97 
101  inline OriginRequestPolicySummary& WithOriginRequestPolicy(const OriginRequestPolicy& value) { SetOriginRequestPolicy(value); return *this;}
102 
106  inline OriginRequestPolicySummary& WithOriginRequestPolicy(OriginRequestPolicy&& value) { SetOriginRequestPolicy(std::move(value)); return *this;}
107 
108  private:
109 
111  bool m_typeHasBeenSet;
112 
113  OriginRequestPolicy m_originRequestPolicy;
114  bool m_originRequestPolicyHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CloudFront
119 } // namespace Aws
Aws::CloudFront::Model::OriginRequestPolicySummary::SetOriginRequestPolicy
void SetOriginRequestPolicy(OriginRequestPolicy &&value)
Definition: OriginRequestPolicySummary.h:96
Aws::CloudFront::Model::OriginRequestPolicySummary::OriginRequestPolicyHasBeenSet
bool OriginRequestPolicyHasBeenSet() const
Definition: OriginRequestPolicySummary.h:86
Aws::CloudFront::Model::OriginRequestPolicySummary::SetType
void SetType(OriginRequestPolicyType &&value)
Definition: OriginRequestPolicySummary.h:63
Aws::CloudFront::Model::OriginRequestPolicySummary::WithOriginRequestPolicy
OriginRequestPolicySummary & WithOriginRequestPolicy(OriginRequestPolicy &&value)
Definition: OriginRequestPolicySummary.h:106
Aws::CloudFront::Model::OriginRequestPolicySummary::WithType
OriginRequestPolicySummary & WithType(OriginRequestPolicyType &&value)
Definition: OriginRequestPolicySummary.h:75
OriginRequestPolicy.h
Aws::CloudFront::Model::OriginRequestPolicySummary::GetType
const OriginRequestPolicyType & GetType() const
Definition: OriginRequestPolicySummary.h:45
Aws::CloudFront::Model::OriginRequestPolicy
Definition: OriginRequestPolicy.h:46
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginRequestPolicySummary::operator=
OriginRequestPolicySummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyType
OriginRequestPolicyType
Definition: OriginRequestPolicyType.h:17
Aws::CloudFront::Model::OriginRequestPolicySummary::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: OriginRequestPolicySummary.h:51
Aws::CloudFront::Model::OriginRequestPolicySummary::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginRequestPolicySummary::WithType
OriginRequestPolicySummary & WithType(const OriginRequestPolicyType &value)
Definition: OriginRequestPolicySummary.h:69
OriginRequestPolicyType.h
Aws::CloudFront::Model::OriginRequestPolicySummary::SetOriginRequestPolicy
void SetOriginRequestPolicy(const OriginRequestPolicy &value)
Definition: OriginRequestPolicySummary.h:91
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginRequestPolicySummary::SetType
void SetType(const OriginRequestPolicyType &value)
Definition: OriginRequestPolicySummary.h:57
CloudFront_EXPORTS.h
Aws::CloudFront::Model::OriginRequestPolicySummary::OriginRequestPolicySummary
OriginRequestPolicySummary(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginRequestPolicySummary::GetOriginRequestPolicy
const OriginRequestPolicy & GetOriginRequestPolicy() const
Definition: OriginRequestPolicySummary.h:81
Aws::CloudFront::Model::OriginRequestPolicySummary::WithOriginRequestPolicy
OriginRequestPolicySummary & WithOriginRequestPolicy(const OriginRequestPolicy &value)
Definition: OriginRequestPolicySummary.h:101
Aws::CloudFront::Model::OriginRequestPolicySummary::OriginRequestPolicySummary
OriginRequestPolicySummary()
Aws::CloudFront::Model::OriginRequestPolicySummary
Definition: OriginRequestPolicySummary.h:32