AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IpamDiscoveredAccount.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/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/IpamDiscoveryFailureReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
33 public:
34 AWS_EC2_API IpamDiscoveredAccount() = default;
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template <typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) {
49 m_accountIdHasBeenSet = true;
50 m_accountId = std::forward<AccountIdT>(value);
51 }
52 template <typename AccountIdT = Aws::String>
53 IpamDiscoveredAccount& WithAccountId(AccountIdT&& value) {
54 SetAccountId(std::forward<AccountIdT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetDiscoveryRegion() const { return m_discoveryRegion; }
66 inline bool DiscoveryRegionHasBeenSet() const { return m_discoveryRegionHasBeenSet; }
67 template <typename DiscoveryRegionT = Aws::String>
68 void SetDiscoveryRegion(DiscoveryRegionT&& value) {
69 m_discoveryRegionHasBeenSet = true;
70 m_discoveryRegion = std::forward<DiscoveryRegionT>(value);
71 }
72 template <typename DiscoveryRegionT = Aws::String>
73 IpamDiscoveredAccount& WithDiscoveryRegion(DiscoveryRegionT&& value) {
74 SetDiscoveryRegion(std::forward<DiscoveryRegionT>(value));
75 return *this;
76 }
78
80
83 inline const IpamDiscoveryFailureReason& GetFailureReason() const { return m_failureReason; }
84 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
85 template <typename FailureReasonT = IpamDiscoveryFailureReason>
86 void SetFailureReason(FailureReasonT&& value) {
87 m_failureReasonHasBeenSet = true;
88 m_failureReason = std::forward<FailureReasonT>(value);
89 }
90 template <typename FailureReasonT = IpamDiscoveryFailureReason>
91 IpamDiscoveredAccount& WithFailureReason(FailureReasonT&& value) {
92 SetFailureReason(std::forward<FailureReasonT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetLastAttemptedDiscoveryTime() const { return m_lastAttemptedDiscoveryTime; }
102 inline bool LastAttemptedDiscoveryTimeHasBeenSet() const { return m_lastAttemptedDiscoveryTimeHasBeenSet; }
103 template <typename LastAttemptedDiscoveryTimeT = Aws::Utils::DateTime>
104 void SetLastAttemptedDiscoveryTime(LastAttemptedDiscoveryTimeT&& value) {
105 m_lastAttemptedDiscoveryTimeHasBeenSet = true;
106 m_lastAttemptedDiscoveryTime = std::forward<LastAttemptedDiscoveryTimeT>(value);
107 }
108 template <typename LastAttemptedDiscoveryTimeT = Aws::Utils::DateTime>
109 IpamDiscoveredAccount& WithLastAttemptedDiscoveryTime(LastAttemptedDiscoveryTimeT&& value) {
110 SetLastAttemptedDiscoveryTime(std::forward<LastAttemptedDiscoveryTimeT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetLastSuccessfulDiscoveryTime() const { return m_lastSuccessfulDiscoveryTime; }
120 inline bool LastSuccessfulDiscoveryTimeHasBeenSet() const { return m_lastSuccessfulDiscoveryTimeHasBeenSet; }
121 template <typename LastSuccessfulDiscoveryTimeT = Aws::Utils::DateTime>
122 void SetLastSuccessfulDiscoveryTime(LastSuccessfulDiscoveryTimeT&& value) {
123 m_lastSuccessfulDiscoveryTimeHasBeenSet = true;
124 m_lastSuccessfulDiscoveryTime = std::forward<LastSuccessfulDiscoveryTimeT>(value);
125 }
126 template <typename LastSuccessfulDiscoveryTimeT = Aws::Utils::DateTime>
127 IpamDiscoveredAccount& WithLastSuccessfulDiscoveryTime(LastSuccessfulDiscoveryTimeT&& value) {
128 SetLastSuccessfulDiscoveryTime(std::forward<LastSuccessfulDiscoveryTimeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
138 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
139 template <typename OrganizationalUnitIdT = Aws::String>
140 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
141 m_organizationalUnitIdHasBeenSet = true;
142 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
143 }
144 template <typename OrganizationalUnitIdT = Aws::String>
145 IpamDiscoveredAccount& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
146 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_accountId;
152
153 Aws::String m_discoveryRegion;
154
155 IpamDiscoveryFailureReason m_failureReason;
156
157 Aws::Utils::DateTime m_lastAttemptedDiscoveryTime{};
158
159 Aws::Utils::DateTime m_lastSuccessfulDiscoveryTime{};
160
161 Aws::String m_organizationalUnitId;
162 bool m_accountIdHasBeenSet = false;
163 bool m_discoveryRegionHasBeenSet = false;
164 bool m_failureReasonHasBeenSet = false;
165 bool m_lastAttemptedDiscoveryTimeHasBeenSet = false;
166 bool m_lastSuccessfulDiscoveryTimeHasBeenSet = false;
167 bool m_organizationalUnitIdHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace EC2
172} // namespace Aws
IpamDiscoveredAccount & WithDiscoveryRegion(DiscoveryRegionT &&value)
void SetFailureReason(FailureReasonT &&value)
AWS_EC2_API IpamDiscoveredAccount(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamDiscoveredAccount & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
IpamDiscoveredAccount & WithLastSuccessfulDiscoveryTime(LastSuccessfulDiscoveryTimeT &&value)
AWS_EC2_API IpamDiscoveredAccount & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDiscoveryRegion(DiscoveryRegionT &&value)
AWS_EC2_API IpamDiscoveredAccount()=default
void SetLastSuccessfulDiscoveryTime(LastSuccessfulDiscoveryTimeT &&value)
const Aws::Utils::DateTime & GetLastAttemptedDiscoveryTime() const
const Aws::Utils::DateTime & GetLastSuccessfulDiscoveryTime() const
IpamDiscoveredAccount & WithLastAttemptedDiscoveryTime(LastAttemptedDiscoveryTimeT &&value)
IpamDiscoveredAccount & WithAccountId(AccountIdT &&value)
const IpamDiscoveryFailureReason & GetFailureReason() const
const Aws::String & GetDiscoveryRegion() const
void SetOrganizationalUnitId(OrganizationalUnitIdT &&value)
const Aws::String & GetOrganizationalUnitId() const
IpamDiscoveredAccount & WithFailureReason(FailureReasonT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetLastAttemptedDiscoveryTime(LastAttemptedDiscoveryTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream