AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Byoasn.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/AsnState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 class Byoasn
34 {
35 public:
36 AWS_EC2_API Byoasn();
37 AWS_EC2_API Byoasn(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API Byoasn& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAsn() const{ return m_asn; }
49 inline bool AsnHasBeenSet() const { return m_asnHasBeenSet; }
50 inline void SetAsn(const Aws::String& value) { m_asnHasBeenSet = true; m_asn = value; }
51 inline void SetAsn(Aws::String&& value) { m_asnHasBeenSet = true; m_asn = std::move(value); }
52 inline void SetAsn(const char* value) { m_asnHasBeenSet = true; m_asn.assign(value); }
53 inline Byoasn& WithAsn(const Aws::String& value) { SetAsn(value); return *this;}
54 inline Byoasn& WithAsn(Aws::String&& value) { SetAsn(std::move(value)); return *this;}
55 inline Byoasn& WithAsn(const char* value) { SetAsn(value); return *this;}
57
59
62 inline const Aws::String& GetIpamId() const{ return m_ipamId; }
63 inline bool IpamIdHasBeenSet() const { return m_ipamIdHasBeenSet; }
64 inline void SetIpamId(const Aws::String& value) { m_ipamIdHasBeenSet = true; m_ipamId = value; }
65 inline void SetIpamId(Aws::String&& value) { m_ipamIdHasBeenSet = true; m_ipamId = std::move(value); }
66 inline void SetIpamId(const char* value) { m_ipamIdHasBeenSet = true; m_ipamId.assign(value); }
67 inline Byoasn& WithIpamId(const Aws::String& value) { SetIpamId(value); return *this;}
68 inline Byoasn& WithIpamId(Aws::String&& value) { SetIpamId(std::move(value)); return *this;}
69 inline Byoasn& WithIpamId(const char* value) { SetIpamId(value); return *this;}
71
73
76 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
77 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
78 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
79 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
80 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
81 inline Byoasn& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
82 inline Byoasn& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
83 inline Byoasn& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
85
87
90 inline const AsnState& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const AsnState& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(AsnState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline Byoasn& WithState(const AsnState& value) { SetState(value); return *this;}
95 inline Byoasn& WithState(AsnState&& value) { SetState(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_asn;
100 bool m_asnHasBeenSet = false;
101
102 Aws::String m_ipamId;
103 bool m_ipamIdHasBeenSet = false;
104
105 Aws::String m_statusMessage;
106 bool m_statusMessageHasBeenSet = false;
107
108 AsnState m_state;
109 bool m_stateHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
void SetAsn(Aws::String &&value)
Definition Byoasn.h:51
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetIpamId(const char *value)
Definition Byoasn.h:66
void SetAsn(const Aws::String &value)
Definition Byoasn.h:50
void SetState(AsnState &&value)
Definition Byoasn.h:93
bool AsnHasBeenSet() const
Definition Byoasn.h:49
Byoasn & WithStatusMessage(const char *value)
Definition Byoasn.h:83
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API Byoasn & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAsn(const char *value)
Definition Byoasn.h:52
Byoasn & WithStatusMessage(const Aws::String &value)
Definition Byoasn.h:81
Byoasn & WithState(const AsnState &value)
Definition Byoasn.h:94
bool IpamIdHasBeenSet() const
Definition Byoasn.h:63
Byoasn & WithIpamId(Aws::String &&value)
Definition Byoasn.h:68
const Aws::String & GetAsn() const
Definition Byoasn.h:48
Byoasn & WithAsn(const char *value)
Definition Byoasn.h:55
void SetStatusMessage(Aws::String &&value)
Definition Byoasn.h:79
Byoasn & WithState(AsnState &&value)
Definition Byoasn.h:95
void SetStatusMessage(const Aws::String &value)
Definition Byoasn.h:78
AWS_EC2_API Byoasn(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StatusMessageHasBeenSet() const
Definition Byoasn.h:77
Byoasn & WithIpamId(const Aws::String &value)
Definition Byoasn.h:67
Byoasn & WithAsn(const Aws::String &value)
Definition Byoasn.h:53
const AsnState & GetState() const
Definition Byoasn.h:90
void SetIpamId(Aws::String &&value)
Definition Byoasn.h:65
void SetStatusMessage(const char *value)
Definition Byoasn.h:80
const Aws::String & GetIpamId() const
Definition Byoasn.h:62
void SetIpamId(const Aws::String &value)
Definition Byoasn.h:64
void SetState(const AsnState &value)
Definition Byoasn.h:92
Byoasn & WithAsn(Aws::String &&value)
Definition Byoasn.h:54
Byoasn & WithStatusMessage(Aws::String &&value)
Definition Byoasn.h:82
const Aws::String & GetStatusMessage() const
Definition Byoasn.h:76
Byoasn & WithIpamId(const char *value)
Definition Byoasn.h:69
bool StateHasBeenSet() const
Definition Byoasn.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream