AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseHeadersPolicy.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/ResponseHeadersPolicyConfig.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
43 {
44 public:
45 AWS_CLOUDFRONT_API ResponseHeadersPolicy();
46 AWS_CLOUDFRONT_API ResponseHeadersPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_CLOUDFRONT_API ResponseHeadersPolicy& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50
51
53
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 inline ResponseHeadersPolicy& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline ResponseHeadersPolicy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline ResponseHeadersPolicy& WithId(const char* value) { SetId(value); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
71 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
72 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
73 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
75 inline ResponseHeadersPolicy& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
77
79
82 inline const ResponseHeadersPolicyConfig& GetResponseHeadersPolicyConfig() const{ return m_responseHeadersPolicyConfig; }
83 inline bool ResponseHeadersPolicyConfigHasBeenSet() const { return m_responseHeadersPolicyConfigHasBeenSet; }
84 inline void SetResponseHeadersPolicyConfig(const ResponseHeadersPolicyConfig& value) { m_responseHeadersPolicyConfigHasBeenSet = true; m_responseHeadersPolicyConfig = value; }
85 inline void SetResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig&& value) { m_responseHeadersPolicyConfigHasBeenSet = true; m_responseHeadersPolicyConfig = std::move(value); }
89 private:
90
91 Aws::String m_id;
92 bool m_idHasBeenSet = false;
93
94 Aws::Utils::DateTime m_lastModifiedTime;
95 bool m_lastModifiedTimeHasBeenSet = false;
96
97 ResponseHeadersPolicyConfig m_responseHeadersPolicyConfig;
98 bool m_responseHeadersPolicyConfigHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CloudFront
103} // namespace Aws
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
void SetResponseHeadersPolicyConfig(const ResponseHeadersPolicyConfig &value)
ResponseHeadersPolicy & WithLastModifiedTime(Aws::Utils::DateTime &&value)
ResponseHeadersPolicy & WithResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig &&value)
ResponseHeadersPolicy & WithId(const Aws::String &value)
ResponseHeadersPolicy & WithId(const char *value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ResponseHeadersPolicy & WithLastModifiedTime(const Aws::Utils::DateTime &value)
AWS_CLOUDFRONT_API ResponseHeadersPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
const ResponseHeadersPolicyConfig & GetResponseHeadersPolicyConfig() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API ResponseHeadersPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResponseHeadersPolicy & WithResponseHeadersPolicyConfig(const ResponseHeadersPolicyConfig &value)
ResponseHeadersPolicy & WithId(Aws::String &&value)
void SetResponseHeadersPolicyConfig(ResponseHeadersPolicyConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String