AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginRequestPolicySummary.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/OriginRequestPolicyType.h>
9#include <aws/cloudfront/model/OriginRequestPolicy.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
32 {
33 public:
34 AWS_CLOUDFRONT_API OriginRequestPolicySummary();
35 AWS_CLOUDFRONT_API OriginRequestPolicySummary(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
47 inline const OriginRequestPolicyType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const OriginRequestPolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(OriginRequestPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline OriginRequestPolicySummary& WithType(const OriginRequestPolicyType& value) { SetType(value); return *this;}
52 inline OriginRequestPolicySummary& WithType(OriginRequestPolicyType&& value) { SetType(std::move(value)); return *this;}
54
56
59 inline const OriginRequestPolicy& GetOriginRequestPolicy() const{ return m_originRequestPolicy; }
60 inline bool OriginRequestPolicyHasBeenSet() const { return m_originRequestPolicyHasBeenSet; }
61 inline void SetOriginRequestPolicy(const OriginRequestPolicy& value) { m_originRequestPolicyHasBeenSet = true; m_originRequestPolicy = value; }
62 inline void SetOriginRequestPolicy(OriginRequestPolicy&& value) { m_originRequestPolicyHasBeenSet = true; m_originRequestPolicy = std::move(value); }
66 private:
67
69 bool m_typeHasBeenSet = false;
70
71 OriginRequestPolicy m_originRequestPolicy;
72 bool m_originRequestPolicyHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CloudFront
77} // namespace Aws
void SetType(const OriginRequestPolicyType &value)
AWS_CLOUDFRONT_API OriginRequestPolicySummary(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginRequestPolicySummary & WithOriginRequestPolicy(OriginRequestPolicy &&value)
AWS_CLOUDFRONT_API OriginRequestPolicySummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginRequestPolicySummary & WithType(const OriginRequestPolicyType &value)
void SetOriginRequestPolicy(const OriginRequestPolicy &value)
OriginRequestPolicySummary & WithOriginRequestPolicy(const OriginRequestPolicy &value)
OriginRequestPolicySummary & WithType(OriginRequestPolicyType &&value)