AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StaticIp.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_LIGHTSAIL_API StaticIp() = default;
38 AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API StaticIp& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 StaticIp& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template<typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 StaticIp& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
74 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
75 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
76 template<typename SupportCodeT = Aws::String>
77 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::forward<SupportCodeT>(value); }
78 template<typename SupportCodeT = Aws::String>
79 StaticIp& WithSupportCode(SupportCodeT&& value) { SetSupportCode(std::forward<SupportCodeT>(value)); return *this;}
81
83
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 template<typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
91 template<typename CreatedAtT = Aws::Utils::DateTime>
92 StaticIp& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
94
96
99 inline const ResourceLocation& GetLocation() const { return m_location; }
100 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
101 template<typename LocationT = ResourceLocation>
102 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
103 template<typename LocationT = ResourceLocation>
104 StaticIp& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
106
108
111 inline ResourceType GetResourceType() const { return m_resourceType; }
112 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
113 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
114 inline StaticIp& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
116
118
121 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
122 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
123 template<typename IpAddressT = Aws::String>
124 void SetIpAddress(IpAddressT&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::forward<IpAddressT>(value); }
125 template<typename IpAddressT = Aws::String>
126 StaticIp& WithIpAddress(IpAddressT&& value) { SetIpAddress(std::forward<IpAddressT>(value)); return *this;}
128
130
134 inline const Aws::String& GetAttachedTo() const { return m_attachedTo; }
135 inline bool AttachedToHasBeenSet() const { return m_attachedToHasBeenSet; }
136 template<typename AttachedToT = Aws::String>
137 void SetAttachedTo(AttachedToT&& value) { m_attachedToHasBeenSet = true; m_attachedTo = std::forward<AttachedToT>(value); }
138 template<typename AttachedToT = Aws::String>
139 StaticIp& WithAttachedTo(AttachedToT&& value) { SetAttachedTo(std::forward<AttachedToT>(value)); return *this;}
141
143
146 inline bool GetIsAttached() const { return m_isAttached; }
147 inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
148 inline void SetIsAttached(bool value) { m_isAttachedHasBeenSet = true; m_isAttached = value; }
149 inline StaticIp& WithIsAttached(bool value) { SetIsAttached(value); return *this;}
151 private:
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::String m_arn;
157 bool m_arnHasBeenSet = false;
158
159 Aws::String m_supportCode;
160 bool m_supportCodeHasBeenSet = false;
161
162 Aws::Utils::DateTime m_createdAt{};
163 bool m_createdAtHasBeenSet = false;
164
165 ResourceLocation m_location;
166 bool m_locationHasBeenSet = false;
167
168 ResourceType m_resourceType{ResourceType::NOT_SET};
169 bool m_resourceTypeHasBeenSet = false;
170
171 Aws::String m_ipAddress;
172 bool m_ipAddressHasBeenSet = false;
173
174 Aws::String m_attachedTo;
175 bool m_attachedToHasBeenSet = false;
176
177 bool m_isAttached{false};
178 bool m_isAttachedHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Lightsail
183} // namespace Aws
const Aws::String & GetSupportCode() const
Definition StaticIp.h:74
StaticIp & WithAttachedTo(AttachedToT &&value)
Definition StaticIp.h:139
StaticIp & WithIsAttached(bool value)
Definition StaticIp.h:149
void SetIpAddress(IpAddressT &&value)
Definition StaticIp.h:124
const Aws::String & GetAttachedTo() const
Definition StaticIp.h:134
void SetLocation(LocationT &&value)
Definition StaticIp.h:102
const Aws::String & GetArn() const
Definition StaticIp.h:60
const Aws::String & GetName() const
Definition StaticIp.h:47
StaticIp & WithResourceType(ResourceType value)
Definition StaticIp.h:114
void SetCreatedAt(CreatedAtT &&value)
Definition StaticIp.h:90
StaticIp & WithCreatedAt(CreatedAtT &&value)
Definition StaticIp.h:92
AWS_LIGHTSAIL_API StaticIp()=default
const ResourceLocation & GetLocation() const
Definition StaticIp.h:99
ResourceType GetResourceType() const
Definition StaticIp.h:111
StaticIp & WithIpAddress(IpAddressT &&value)
Definition StaticIp.h:126
bool SupportCodeHasBeenSet() const
Definition StaticIp.h:75
void SetName(NameT &&value)
Definition StaticIp.h:50
bool ResourceTypeHasBeenSet() const
Definition StaticIp.h:112
StaticIp & WithLocation(LocationT &&value)
Definition StaticIp.h:104
void SetResourceType(ResourceType value)
Definition StaticIp.h:113
StaticIp & WithArn(ArnT &&value)
Definition StaticIp.h:65
const Aws::Utils::DateTime & GetCreatedAt() const
Definition StaticIp.h:87
const Aws::String & GetIpAddress() const
Definition StaticIp.h:121
void SetAttachedTo(AttachedToT &&value)
Definition StaticIp.h:137
void SetArn(ArnT &&value)
Definition StaticIp.h:63
AWS_LIGHTSAIL_API StaticIp & operator=(Aws::Utils::Json::JsonView jsonValue)
StaticIp & WithName(NameT &&value)
Definition StaticIp.h:52
AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue)
void SetIsAttached(bool value)
Definition StaticIp.h:148
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
StaticIp & WithSupportCode(SupportCodeT &&value)
Definition StaticIp.h:79
void SetSupportCode(SupportCodeT &&value)
Definition StaticIp.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue