AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
ProxySummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
11#include <aws/elb-proxy/model/ProxyStatus.h>
12#include <aws/elb-proxy/model/ProxyType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace ELBProxy {
23namespace Model {
24
31 public:
32 AWS_ELBPROXY_API ProxySummary() = default;
33 AWS_ELBPROXY_API ProxySummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ELBPROXY_API ProxySummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 ProxySummary& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 ProxySummary& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline ProxyType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(ProxyType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDnsName() const { return m_dnsName; }
94 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
95 template <typename DnsNameT = Aws::String>
96 void SetDnsName(DnsNameT&& value) {
97 m_dnsNameHasBeenSet = true;
98 m_dnsName = std::forward<DnsNameT>(value);
99 }
100 template <typename DnsNameT = Aws::String>
101 ProxySummary& WithDnsName(DnsNameT&& value) {
102 SetDnsName(std::forward<DnsNameT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetVpcId() const { return m_vpcId; }
112 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
113 template <typename VpcIdT = Aws::String>
114 void SetVpcId(VpcIdT&& value) {
115 m_vpcIdHasBeenSet = true;
116 m_vpcId = std::forward<VpcIdT>(value);
117 }
118 template <typename VpcIdT = Aws::String>
119 ProxySummary& WithVpcId(VpcIdT&& value) {
120 SetVpcId(std::forward<VpcIdT>(value));
121 return *this;
122 }
124
126
129 inline const ProxyStatus& GetStatus() const { return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 template <typename StatusT = ProxyStatus>
132 void SetStatus(StatusT&& value) {
133 m_statusHasBeenSet = true;
134 m_status = std::forward<StatusT>(value);
135 }
136 template <typename StatusT = ProxyStatus>
137 ProxySummary& WithStatus(StatusT&& value) {
138 SetStatus(std::forward<StatusT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
148 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
149 template <typename CreatedAtT = Aws::Utils::DateTime>
150 void SetCreatedAt(CreatedAtT&& value) {
151 m_createdAtHasBeenSet = true;
152 m_createdAt = std::forward<CreatedAtT>(value);
153 }
154 template <typename CreatedAtT = Aws::Utils::DateTime>
155 ProxySummary& WithCreatedAt(CreatedAtT&& value) {
156 SetCreatedAt(std::forward<CreatedAtT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_arn;
162
163 Aws::String m_name;
164
166
167 Aws::String m_dnsName;
168
169 Aws::String m_vpcId;
170
171 ProxyStatus m_status;
172
173 Aws::Utils::DateTime m_createdAt{};
174 bool m_arnHasBeenSet = false;
175 bool m_nameHasBeenSet = false;
176 bool m_typeHasBeenSet = false;
177 bool m_dnsNameHasBeenSet = false;
178 bool m_vpcIdHasBeenSet = false;
179 bool m_statusHasBeenSet = false;
180 bool m_createdAtHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace ELBProxy
185} // namespace Aws
AWS_ELBPROXY_API ProxySummary()=default
ProxySummary & WithDnsName(DnsNameT &&value)
void SetStatus(StatusT &&value)
ProxySummary & WithVpcId(VpcIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_ELBPROXY_API ProxySummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetVpcId() const
ProxySummary & WithName(NameT &&value)
AWS_ELBPROXY_API ProxySummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetDnsName(DnsNameT &&value)
void SetType(ProxyType value)
const Aws::String & GetName() const
const Aws::String & GetDnsName() const
ProxySummary & WithArn(ArnT &&value)
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetArn() const
ProxySummary & WithType(ProxyType value)
const ProxyStatus & GetStatus() const
ProxySummary & WithStatus(StatusT &&value)
ProxySummary & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String