AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VpcOrigin.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/VpcOriginEndpointConfig.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
33 {
34 public:
35 AWS_CLOUDFRONT_API VpcOrigin() = default;
36 AWS_CLOUDFRONT_API VpcOrigin(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API VpcOrigin& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template<typename IdT = Aws::String>
49 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
50 template<typename IdT = Aws::String>
51 VpcOrigin& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template<typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 VpcOrigin& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 template<typename StatusT = Aws::String>
73 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
74 template<typename StatusT = Aws::String>
75 VpcOrigin& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
83 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
84 template<typename CreatedTimeT = Aws::Utils::DateTime>
85 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
86 template<typename CreatedTimeT = Aws::Utils::DateTime>
87 VpcOrigin& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
95 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
96 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
97 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
98 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
99 VpcOrigin& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
101
103
106 inline const VpcOriginEndpointConfig& GetVpcOriginEndpointConfig() const { return m_vpcOriginEndpointConfig; }
107 inline bool VpcOriginEndpointConfigHasBeenSet() const { return m_vpcOriginEndpointConfigHasBeenSet; }
108 template<typename VpcOriginEndpointConfigT = VpcOriginEndpointConfig>
109 void SetVpcOriginEndpointConfig(VpcOriginEndpointConfigT&& value) { m_vpcOriginEndpointConfigHasBeenSet = true; m_vpcOriginEndpointConfig = std::forward<VpcOriginEndpointConfigT>(value); }
110 template<typename VpcOriginEndpointConfigT = VpcOriginEndpointConfig>
111 VpcOrigin& WithVpcOriginEndpointConfig(VpcOriginEndpointConfigT&& value) { SetVpcOriginEndpointConfig(std::forward<VpcOriginEndpointConfigT>(value)); return *this;}
113 private:
114
115 Aws::String m_id;
116 bool m_idHasBeenSet = false;
117
118 Aws::String m_arn;
119 bool m_arnHasBeenSet = false;
120
121 Aws::String m_status;
122 bool m_statusHasBeenSet = false;
123
124 Aws::Utils::DateTime m_createdTime{};
125 bool m_createdTimeHasBeenSet = false;
126
127 Aws::Utils::DateTime m_lastModifiedTime{};
128 bool m_lastModifiedTimeHasBeenSet = false;
129
130 VpcOriginEndpointConfig m_vpcOriginEndpointConfig;
131 bool m_vpcOriginEndpointConfigHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudFront
136} // namespace Aws
void SetCreatedTime(CreatedTimeT &&value)
Definition VpcOrigin.h:85
const VpcOriginEndpointConfig & GetVpcOriginEndpointConfig() const
Definition VpcOrigin.h:106
void SetVpcOriginEndpointConfig(VpcOriginEndpointConfigT &&value)
Definition VpcOrigin.h:109
void SetStatus(StatusT &&value)
Definition VpcOrigin.h:73
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API VpcOrigin()=default
VpcOrigin & WithVpcOriginEndpointConfig(VpcOriginEndpointConfigT &&value)
Definition VpcOrigin.h:111
VpcOrigin & WithArn(ArnT &&value)
Definition VpcOrigin.h:63
AWS_CLOUDFRONT_API VpcOrigin & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API VpcOrigin(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetArn() const
Definition VpcOrigin.h:58
bool VpcOriginEndpointConfigHasBeenSet() const
Definition VpcOrigin.h:107
bool LastModifiedTimeHasBeenSet() const
Definition VpcOrigin.h:95
const Aws::Utils::DateTime & GetCreatedTime() const
Definition VpcOrigin.h:82
VpcOrigin & WithId(IdT &&value)
Definition VpcOrigin.h:51
const Aws::String & GetId() const
Definition VpcOrigin.h:46
VpcOrigin & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition VpcOrigin.h:99
VpcOrigin & WithCreatedTime(CreatedTimeT &&value)
Definition VpcOrigin.h:87
VpcOrigin & WithStatus(StatusT &&value)
Definition VpcOrigin.h:75
const Aws::String & GetStatus() const
Definition VpcOrigin.h:70
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition VpcOrigin.h:97
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition VpcOrigin.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String