AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnycastIpList.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/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.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
36 {
37 public:
38 AWS_CLOUDFRONT_API AnycastIpList() = default;
39 AWS_CLOUDFRONT_API AnycastIpList(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFRONT_API AnycastIpList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 AnycastIpList& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template<typename NameT = Aws::String>
64 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 AnycastIpList& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template<typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
78 template<typename StatusT = Aws::String>
79 AnycastIpList& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
81
83
86 inline const Aws::String& GetArn() const { return m_arn; }
87 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
88 template<typename ArnT = Aws::String>
89 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
90 template<typename ArnT = Aws::String>
91 AnycastIpList& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
93
95
98 inline const Aws::Vector<Aws::String>& GetAnycastIps() const { return m_anycastIps; }
99 inline bool AnycastIpsHasBeenSet() const { return m_anycastIpsHasBeenSet; }
100 template<typename AnycastIpsT = Aws::Vector<Aws::String>>
101 void SetAnycastIps(AnycastIpsT&& value) { m_anycastIpsHasBeenSet = true; m_anycastIps = std::forward<AnycastIpsT>(value); }
102 template<typename AnycastIpsT = Aws::Vector<Aws::String>>
103 AnycastIpList& WithAnycastIps(AnycastIpsT&& value) { SetAnycastIps(std::forward<AnycastIpsT>(value)); return *this;}
104 template<typename AnycastIpsT = Aws::String>
105 AnycastIpList& AddAnycastIps(AnycastIpsT&& value) { m_anycastIpsHasBeenSet = true; m_anycastIps.emplace_back(std::forward<AnycastIpsT>(value)); return *this; }
107
109
112 inline int GetIpCount() const { return m_ipCount; }
113 inline bool IpCountHasBeenSet() const { return m_ipCountHasBeenSet; }
114 inline void SetIpCount(int value) { m_ipCountHasBeenSet = true; m_ipCount = value; }
115 inline AnycastIpList& WithIpCount(int value) { SetIpCount(value); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
123 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
124 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
125 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
126 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
127 AnycastIpList& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
129 private:
130
131 Aws::String m_id;
132 bool m_idHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 Aws::String m_status;
138 bool m_statusHasBeenSet = false;
139
140 Aws::String m_arn;
141 bool m_arnHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_anycastIps;
144 bool m_anycastIpsHasBeenSet = false;
145
146 int m_ipCount{0};
147 bool m_ipCountHasBeenSet = false;
148
149 Aws::Utils::DateTime m_lastModifiedTime{};
150 bool m_lastModifiedTimeHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace CloudFront
155} // namespace Aws
AnycastIpList & AddAnycastIps(AnycastIpsT &&value)
AnycastIpList & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetArn() const
AWS_CLOUDFRONT_API AnycastIpList()=default
AnycastIpList & WithAnycastIps(AnycastIpsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AnycastIpList & WithArn(ArnT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AWS_CLOUDFRONT_API AnycastIpList(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
const Aws::Vector< Aws::String > & GetAnycastIps() const
AnycastIpList & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetStatus() const
const Aws::String & GetId() const
void SetAnycastIps(AnycastIpsT &&value)
AWS_CLOUDFRONT_API AnycastIpList & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnycastIpList & WithId(IdT &&value)
AnycastIpList & WithStatus(StatusT &&value)
AnycastIpList & WithIpCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector