AWS SDK for C++  1.9.16
AWS SDK for C++
OriginRequestPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
46  {
47  public:
51 
52  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53 
54 
58  inline const Aws::String& GetId() const{ return m_id; }
59 
63  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 
68  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
69 
73  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 
78  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
79 
83  inline OriginRequestPolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
84 
88  inline OriginRequestPolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
89 
93  inline OriginRequestPolicy& WithId(const char* value) { SetId(value); return *this;}
94 
95 
99  inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
100 
104  inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
105 
109  inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
110 
114  inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
115 
119  inline OriginRequestPolicy& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
120 
124  inline OriginRequestPolicy& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
125 
126 
130  inline const OriginRequestPolicyConfig& GetOriginRequestPolicyConfig() const{ return m_originRequestPolicyConfig; }
131 
135  inline bool OriginRequestPolicyConfigHasBeenSet() const { return m_originRequestPolicyConfigHasBeenSet; }
136 
140  inline void SetOriginRequestPolicyConfig(const OriginRequestPolicyConfig& value) { m_originRequestPolicyConfigHasBeenSet = true; m_originRequestPolicyConfig = value; }
141 
145  inline void SetOriginRequestPolicyConfig(OriginRequestPolicyConfig&& value) { m_originRequestPolicyConfigHasBeenSet = true; m_originRequestPolicyConfig = std::move(value); }
146 
150  inline OriginRequestPolicy& WithOriginRequestPolicyConfig(const OriginRequestPolicyConfig& value) { SetOriginRequestPolicyConfig(value); return *this;}
151 
155  inline OriginRequestPolicy& WithOriginRequestPolicyConfig(OriginRequestPolicyConfig&& value) { SetOriginRequestPolicyConfig(std::move(value)); return *this;}
156 
157  private:
158 
159  Aws::String m_id;
160  bool m_idHasBeenSet;
161 
162  Aws::Utils::DateTime m_lastModifiedTime;
163  bool m_lastModifiedTimeHasBeenSet;
164 
165  OriginRequestPolicyConfig m_originRequestPolicyConfig;
166  bool m_originRequestPolicyConfigHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace CloudFront
171 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudFront::Model::OriginRequestPolicy::WithId
OriginRequestPolicy & WithId(const Aws::String &value)
Definition: OriginRequestPolicy.h:83
Aws::CloudFront::Model::OriginRequestPolicy::WithOriginRequestPolicyConfig
OriginRequestPolicy & WithOriginRequestPolicyConfig(const OriginRequestPolicyConfig &value)
Definition: OriginRequestPolicy.h:150
Aws::CloudFront::Model::OriginRequestPolicy::WithId
OriginRequestPolicy & WithId(Aws::String &&value)
Definition: OriginRequestPolicy.h:88
Aws::CloudFront::Model::OriginRequestPolicy::WithLastModifiedTime
OriginRequestPolicy & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: OriginRequestPolicy.h:124
Aws::CloudFront::Model::OriginRequestPolicy::SetId
void SetId(Aws::String &&value)
Definition: OriginRequestPolicy.h:73
DateTime.h
Aws::CloudFront::Model::OriginRequestPolicy::SetId
void SetId(const char *value)
Definition: OriginRequestPolicy.h:78
Aws::CloudFront::Model::OriginRequestPolicy::GetLastModifiedTime
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: OriginRequestPolicy.h:99
Aws::CloudFront::Model::OriginRequestPolicy::OriginRequestPolicyConfigHasBeenSet
bool OriginRequestPolicyConfigHasBeenSet() const
Definition: OriginRequestPolicy.h:135
Aws::CloudFront::Model::OriginRequestPolicy::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginRequestPolicy::LastModifiedTimeHasBeenSet
bool LastModifiedTimeHasBeenSet() const
Definition: OriginRequestPolicy.h:104
Aws::CloudFront::Model::OriginRequestPolicy::SetOriginRequestPolicyConfig
void SetOriginRequestPolicyConfig(const OriginRequestPolicyConfig &value)
Definition: OriginRequestPolicy.h:140
Aws::CloudFront::Model::OriginRequestPolicy::OriginRequestPolicy
OriginRequestPolicy()
Aws::CloudFront::Model::OriginRequestPolicy
Definition: OriginRequestPolicy.h:46
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginRequestPolicy::OriginRequestPolicy
OriginRequestPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicy::operator=
OriginRequestPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::CloudFront::Model::OriginRequestPolicy::WithId
OriginRequestPolicy & WithId(const char *value)
Definition: OriginRequestPolicy.h:93
Aws::CloudFront::Model::OriginRequestPolicy::SetOriginRequestPolicyConfig
void SetOriginRequestPolicyConfig(OriginRequestPolicyConfig &&value)
Definition: OriginRequestPolicy.h:145
Aws::CloudFront::Model::OriginRequestPolicy::SetLastModifiedTime
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: OriginRequestPolicy.h:109
Aws::CloudFront::Model::OriginRequestPolicy::SetId
void SetId(const Aws::String &value)
Definition: OriginRequestPolicy.h:68
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginRequestPolicy::GetOriginRequestPolicyConfig
const OriginRequestPolicyConfig & GetOriginRequestPolicyConfig() const
Definition: OriginRequestPolicy.h:130
CloudFront_EXPORTS.h
Aws::CloudFront::Model::OriginRequestPolicy::WithLastModifiedTime
OriginRequestPolicy & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: OriginRequestPolicy.h:119
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::OriginRequestPolicy::WithOriginRequestPolicyConfig
OriginRequestPolicy & WithOriginRequestPolicyConfig(OriginRequestPolicyConfig &&value)
Definition: OriginRequestPolicy.h:155
Aws::CloudFront::Model::OriginRequestPolicy::IdHasBeenSet
bool IdHasBeenSet() const
Definition: OriginRequestPolicy.h:63
Aws::CloudFront::Model::OriginRequestPolicy::GetId
const Aws::String & GetId() const
Definition: OriginRequestPolicy.h:58
Aws::CloudFront::Model::OriginRequestPolicy::SetLastModifiedTime
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: OriginRequestPolicy.h:114
OriginRequestPolicyConfig.h
Aws::CloudFront::Model::OriginRequestPolicyConfig
Definition: OriginRequestPolicyConfig.h:47