AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
55 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
56 inline IpamDiscoveredAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
57 inline IpamDiscoveredAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
58 inline IpamDiscoveredAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;}
60
62
67 inline const Aws::String& GetDiscoveryRegion() const{ return m_discoveryRegion; }
68 inline bool DiscoveryRegionHasBeenSet() const { return m_discoveryRegionHasBeenSet; }
69 inline void SetDiscoveryRegion(const Aws::String& value) { m_discoveryRegionHasBeenSet = true; m_discoveryRegion = value; }
70 inline void SetDiscoveryRegion(Aws::String&& value) { m_discoveryRegionHasBeenSet = true; m_discoveryRegion = std::move(value); }
71 inline void SetDiscoveryRegion(const char* value) { m_discoveryRegionHasBeenSet = true; m_discoveryRegion.assign(value); }
72 inline IpamDiscoveredAccount& WithDiscoveryRegion(const Aws::String& value) { SetDiscoveryRegion(value); return *this;}
73 inline IpamDiscoveredAccount& WithDiscoveryRegion(Aws::String&& value) { SetDiscoveryRegion(std::move(value)); return *this;}
74 inline IpamDiscoveredAccount& WithDiscoveryRegion(const char* value) { SetDiscoveryRegion(value); return *this;}
76
78
81 inline const IpamDiscoveryFailureReason& GetFailureReason() const{ return m_failureReason; }
82 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
83 inline void SetFailureReason(const IpamDiscoveryFailureReason& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
84 inline void SetFailureReason(IpamDiscoveryFailureReason&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
86 inline IpamDiscoveredAccount& WithFailureReason(IpamDiscoveryFailureReason&& value) { SetFailureReason(std::move(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetLastAttemptedDiscoveryTime() const{ return m_lastAttemptedDiscoveryTime; }
94 inline bool LastAttemptedDiscoveryTimeHasBeenSet() const { return m_lastAttemptedDiscoveryTimeHasBeenSet; }
95 inline void SetLastAttemptedDiscoveryTime(const Aws::Utils::DateTime& value) { m_lastAttemptedDiscoveryTimeHasBeenSet = true; m_lastAttemptedDiscoveryTime = value; }
96 inline void SetLastAttemptedDiscoveryTime(Aws::Utils::DateTime&& value) { m_lastAttemptedDiscoveryTimeHasBeenSet = true; m_lastAttemptedDiscoveryTime = std::move(value); }
100
102
105 inline const Aws::Utils::DateTime& GetLastSuccessfulDiscoveryTime() const{ return m_lastSuccessfulDiscoveryTime; }
106 inline bool LastSuccessfulDiscoveryTimeHasBeenSet() const { return m_lastSuccessfulDiscoveryTimeHasBeenSet; }
107 inline void SetLastSuccessfulDiscoveryTime(const Aws::Utils::DateTime& value) { m_lastSuccessfulDiscoveryTimeHasBeenSet = true; m_lastSuccessfulDiscoveryTime = value; }
108 inline void SetLastSuccessfulDiscoveryTime(Aws::Utils::DateTime&& value) { m_lastSuccessfulDiscoveryTimeHasBeenSet = true; m_lastSuccessfulDiscoveryTime = std::move(value); }
112 private:
113
114 Aws::String m_accountId;
115 bool m_accountIdHasBeenSet = false;
116
117 Aws::String m_discoveryRegion;
118 bool m_discoveryRegionHasBeenSet = false;
119
120 IpamDiscoveryFailureReason m_failureReason;
121 bool m_failureReasonHasBeenSet = false;
122
123 Aws::Utils::DateTime m_lastAttemptedDiscoveryTime;
124 bool m_lastAttemptedDiscoveryTimeHasBeenSet = false;
125
126 Aws::Utils::DateTime m_lastSuccessfulDiscoveryTime;
127 bool m_lastSuccessfulDiscoveryTimeHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
IpamDiscoveredAccount & WithAccountId(const char *value)
void SetFailureReason(IpamDiscoveryFailureReason &&value)
IpamDiscoveredAccount & WithLastAttemptedDiscoveryTime(const Aws::Utils::DateTime &value)
void SetLastAttemptedDiscoveryTime(const Aws::Utils::DateTime &value)
AWS_EC2_API IpamDiscoveredAccount(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLastSuccessfulDiscoveryTime(const Aws::Utils::DateTime &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IpamDiscoveredAccount & WithFailureReason(const IpamDiscoveryFailureReason &value)
IpamDiscoveredAccount & WithDiscoveryRegion(Aws::String &&value)
IpamDiscoveredAccount & WithFailureReason(IpamDiscoveryFailureReason &&value)
IpamDiscoveredAccount & WithLastSuccessfulDiscoveryTime(const Aws::Utils::DateTime &value)
void SetLastAttemptedDiscoveryTime(Aws::Utils::DateTime &&value)
IpamDiscoveredAccount & WithAccountId(Aws::String &&value)
IpamDiscoveredAccount & WithLastAttemptedDiscoveryTime(Aws::Utils::DateTime &&value)
void SetFailureReason(const IpamDiscoveryFailureReason &value)
IpamDiscoveredAccount & WithLastSuccessfulDiscoveryTime(Aws::Utils::DateTime &&value)
AWS_EC2_API IpamDiscoveredAccount & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDiscoveryRegion(const Aws::String &value)
void SetAccountId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastAttemptedDiscoveryTime() const
const Aws::Utils::DateTime & GetLastSuccessfulDiscoveryTime() const
const IpamDiscoveryFailureReason & GetFailureReason() const
IpamDiscoveredAccount & WithDiscoveryRegion(const Aws::String &value)
const Aws::String & GetDiscoveryRegion() const
IpamDiscoveredAccount & WithAccountId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IpamDiscoveredAccount & WithDiscoveryRegion(const char *value)
void SetLastSuccessfulDiscoveryTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream