AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IpamDiscoveredAccount.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/IpamDiscoveryFailureReason.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_EC2_API IpamDiscoveredAccount() = default;
42
43 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetAccountId() const { return m_accountId; }
52 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
53 template<typename AccountIdT = Aws::String>
54 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
55 template<typename AccountIdT = Aws::String>
56 IpamDiscoveredAccount& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_discoveryRegionHasBeenSet = true; m_discoveryRegion = std::forward<DiscoveryRegionT>(value); }
69 template<typename DiscoveryRegionT = Aws::String>
70 IpamDiscoveredAccount& WithDiscoveryRegion(DiscoveryRegionT&& value) { SetDiscoveryRegion(std::forward<DiscoveryRegionT>(value)); return *this;}
72
74
77 inline const IpamDiscoveryFailureReason& GetFailureReason() const { return m_failureReason; }
78 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
79 template<typename FailureReasonT = IpamDiscoveryFailureReason>
80 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
81 template<typename FailureReasonT = IpamDiscoveryFailureReason>
82 IpamDiscoveredAccount& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetLastAttemptedDiscoveryTime() const { return m_lastAttemptedDiscoveryTime; }
90 inline bool LastAttemptedDiscoveryTimeHasBeenSet() const { return m_lastAttemptedDiscoveryTimeHasBeenSet; }
91 template<typename LastAttemptedDiscoveryTimeT = Aws::Utils::DateTime>
92 void SetLastAttemptedDiscoveryTime(LastAttemptedDiscoveryTimeT&& value) { m_lastAttemptedDiscoveryTimeHasBeenSet = true; m_lastAttemptedDiscoveryTime = std::forward<LastAttemptedDiscoveryTimeT>(value); }
93 template<typename LastAttemptedDiscoveryTimeT = Aws::Utils::DateTime>
94 IpamDiscoveredAccount& WithLastAttemptedDiscoveryTime(LastAttemptedDiscoveryTimeT&& value) { SetLastAttemptedDiscoveryTime(std::forward<LastAttemptedDiscoveryTimeT>(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastSuccessfulDiscoveryTime() const { return m_lastSuccessfulDiscoveryTime; }
102 inline bool LastSuccessfulDiscoveryTimeHasBeenSet() const { return m_lastSuccessfulDiscoveryTimeHasBeenSet; }
103 template<typename LastSuccessfulDiscoveryTimeT = Aws::Utils::DateTime>
104 void SetLastSuccessfulDiscoveryTime(LastSuccessfulDiscoveryTimeT&& value) { m_lastSuccessfulDiscoveryTimeHasBeenSet = true; m_lastSuccessfulDiscoveryTime = std::forward<LastSuccessfulDiscoveryTimeT>(value); }
105 template<typename LastSuccessfulDiscoveryTimeT = Aws::Utils::DateTime>
106 IpamDiscoveredAccount& WithLastSuccessfulDiscoveryTime(LastSuccessfulDiscoveryTimeT&& value) { SetLastSuccessfulDiscoveryTime(std::forward<LastSuccessfulDiscoveryTimeT>(value)); return *this;}
108
110
113 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
114 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
115 template<typename OrganizationalUnitIdT = Aws::String>
116 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value); }
117 template<typename OrganizationalUnitIdT = Aws::String>
118 IpamDiscoveredAccount& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) { SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value)); return *this;}
120 private:
121
122 Aws::String m_accountId;
123 bool m_accountIdHasBeenSet = false;
124
125 Aws::String m_discoveryRegion;
126 bool m_discoveryRegionHasBeenSet = false;
127
128 IpamDiscoveryFailureReason m_failureReason;
129 bool m_failureReasonHasBeenSet = false;
130
131 Aws::Utils::DateTime m_lastAttemptedDiscoveryTime{};
132 bool m_lastAttemptedDiscoveryTimeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_lastSuccessfulDiscoveryTime{};
135 bool m_lastSuccessfulDiscoveryTimeHasBeenSet = false;
136
137 Aws::String m_organizationalUnitId;
138 bool m_organizationalUnitIdHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EC2
143} // 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