AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginRequestPolicy.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudfront/model/OriginRequestPolicyConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
46 {
47 public:
48 AWS_CLOUDFRONT_API OriginRequestPolicy();
49 AWS_CLOUDFRONT_API OriginRequestPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
50 AWS_CLOUDFRONT_API OriginRequestPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51
52 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53
54
56
59 inline const Aws::String& GetId() const{ return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 inline OriginRequestPolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
65 inline OriginRequestPolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
66 inline OriginRequestPolicy& WithId(const char* value) { SetId(value); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
74 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
75 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
76 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
78 inline OriginRequestPolicy& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
80
82
85 inline const OriginRequestPolicyConfig& GetOriginRequestPolicyConfig() const{ return m_originRequestPolicyConfig; }
86 inline bool OriginRequestPolicyConfigHasBeenSet() const { return m_originRequestPolicyConfigHasBeenSet; }
87 inline void SetOriginRequestPolicyConfig(const OriginRequestPolicyConfig& value) { m_originRequestPolicyConfigHasBeenSet = true; m_originRequestPolicyConfig = value; }
88 inline void SetOriginRequestPolicyConfig(OriginRequestPolicyConfig&& value) { m_originRequestPolicyConfigHasBeenSet = true; m_originRequestPolicyConfig = std::move(value); }
92 private:
93
94 Aws::String m_id;
95 bool m_idHasBeenSet = false;
96
97 Aws::Utils::DateTime m_lastModifiedTime;
98 bool m_lastModifiedTimeHasBeenSet = false;
99
100 OriginRequestPolicyConfig m_originRequestPolicyConfig;
101 bool m_originRequestPolicyConfigHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudFront
106} // namespace Aws
void SetOriginRequestPolicyConfig(OriginRequestPolicyConfig &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API OriginRequestPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginRequestPolicy & WithLastModifiedTime(const Aws::Utils::DateTime &value)
OriginRequestPolicy & WithOriginRequestPolicyConfig(OriginRequestPolicyConfig &&value)
void SetOriginRequestPolicyConfig(const OriginRequestPolicyConfig &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const OriginRequestPolicyConfig & GetOriginRequestPolicyConfig() const
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
AWS_CLOUDFRONT_API OriginRequestPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginRequestPolicy & WithId(const char *value)
OriginRequestPolicy & WithLastModifiedTime(Aws::Utils::DateTime &&value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
OriginRequestPolicy & WithOriginRequestPolicyConfig(const OriginRequestPolicyConfig &value)
OriginRequestPolicy & WithId(const Aws::String &value)
OriginRequestPolicy & WithId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String