AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RegisteredInstance.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/HaStatus.h>
13#include <aws/ec2/model/SqlServerLicenseUsage.h>
14#include <aws/ec2/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
34 public:
35 AWS_EC2_API RegisteredInstance() = default;
36 AWS_EC2_API RegisteredInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
47 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 template <typename InstanceIdT = Aws::String>
49 void SetInstanceId(InstanceIdT&& value) {
50 m_instanceIdHasBeenSet = true;
51 m_instanceId = std::forward<InstanceIdT>(value);
52 }
53 template <typename InstanceIdT = Aws::String>
54 RegisteredInstance& WithInstanceId(InstanceIdT&& value) {
55 SetInstanceId(std::forward<InstanceIdT>(value));
56 return *this;
57 }
59
61
68 inline SqlServerLicenseUsage GetSqlServerLicenseUsage() const { return m_sqlServerLicenseUsage; }
69 inline bool SqlServerLicenseUsageHasBeenSet() const { return m_sqlServerLicenseUsageHasBeenSet; }
71 m_sqlServerLicenseUsageHasBeenSet = true;
72 m_sqlServerLicenseUsage = value;
73 }
76 return *this;
77 }
79
81
94 inline HaStatus GetHaStatus() const { return m_haStatus; }
95 inline bool HaStatusHasBeenSet() const { return m_haStatusHasBeenSet; }
96 inline void SetHaStatus(HaStatus value) {
97 m_haStatusHasBeenSet = true;
98 m_haStatus = value;
99 }
101 SetHaStatus(value);
102 return *this;
103 }
105
107
112 inline const Aws::String& GetProcessingStatus() const { return m_processingStatus; }
113 inline bool ProcessingStatusHasBeenSet() const { return m_processingStatusHasBeenSet; }
114 template <typename ProcessingStatusT = Aws::String>
115 void SetProcessingStatus(ProcessingStatusT&& value) {
116 m_processingStatusHasBeenSet = true;
117 m_processingStatus = std::forward<ProcessingStatusT>(value);
118 }
119 template <typename ProcessingStatusT = Aws::String>
120 RegisteredInstance& WithProcessingStatus(ProcessingStatusT&& value) {
121 SetProcessingStatus(std::forward<ProcessingStatusT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
133 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
134 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
135 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
136 m_lastUpdatedTimeHasBeenSet = true;
137 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
138 }
139 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
140 RegisteredInstance& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
141 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
142 return *this;
143 }
145
147
153 inline const Aws::String& GetSqlServerCredentials() const { return m_sqlServerCredentials; }
154 inline bool SqlServerCredentialsHasBeenSet() const { return m_sqlServerCredentialsHasBeenSet; }
155 template <typename SqlServerCredentialsT = Aws::String>
156 void SetSqlServerCredentials(SqlServerCredentialsT&& value) {
157 m_sqlServerCredentialsHasBeenSet = true;
158 m_sqlServerCredentials = std::forward<SqlServerCredentialsT>(value);
159 }
160 template <typename SqlServerCredentialsT = Aws::String>
161 RegisteredInstance& WithSqlServerCredentials(SqlServerCredentialsT&& value) {
162 SetSqlServerCredentials(std::forward<SqlServerCredentialsT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template <typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) {
175 m_tagsHasBeenSet = true;
176 m_tags = std::forward<TagsT>(value);
177 }
178 template <typename TagsT = Aws::Vector<Tag>>
179 RegisteredInstance& WithTags(TagsT&& value) {
180 SetTags(std::forward<TagsT>(value));
181 return *this;
182 }
183 template <typename TagsT = Tag>
184 RegisteredInstance& AddTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags.emplace_back(std::forward<TagsT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_instanceId;
192
194
195 HaStatus m_haStatus{HaStatus::NOT_SET};
196
197 Aws::String m_processingStatus;
198
199 Aws::Utils::DateTime m_lastUpdatedTime{};
200
201 Aws::String m_sqlServerCredentials;
202
203 Aws::Vector<Tag> m_tags;
204 bool m_instanceIdHasBeenSet = false;
205 bool m_sqlServerLicenseUsageHasBeenSet = false;
206 bool m_haStatusHasBeenSet = false;
207 bool m_processingStatusHasBeenSet = false;
208 bool m_lastUpdatedTimeHasBeenSet = false;
209 bool m_sqlServerCredentialsHasBeenSet = false;
210 bool m_tagsHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace EC2
215} // namespace Aws
void SetProcessingStatus(ProcessingStatusT &&value)
RegisteredInstance & WithSqlServerCredentials(SqlServerCredentialsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSqlServerLicenseUsage(SqlServerLicenseUsage value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetInstanceId(InstanceIdT &&value)
AWS_EC2_API RegisteredInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetInstanceId() const
AWS_EC2_API RegisteredInstance()=default
RegisteredInstance & WithProcessingStatus(ProcessingStatusT &&value)
RegisteredInstance & WithTags(TagsT &&value)
const Aws::String & GetSqlServerCredentials() const
AWS_EC2_API RegisteredInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSqlServerCredentials(SqlServerCredentialsT &&value)
RegisteredInstance & AddTags(TagsT &&value)
RegisteredInstance & WithLastUpdatedTime(LastUpdatedTimeT &&value)
SqlServerLicenseUsage GetSqlServerLicenseUsage() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
RegisteredInstance & WithInstanceId(InstanceIdT &&value)
const Aws::String & GetProcessingStatus() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
RegisteredInstance & WithHaStatus(HaStatus value)
RegisteredInstance & WithSqlServerLicenseUsage(SqlServerLicenseUsage value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream