AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AsnAssociation.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/AsnAssociationState.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
34 {
35 public:
36 AWS_EC2_API AsnAssociation();
37 AWS_EC2_API AsnAssociation(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 AsnAssociation& WithAsn(const Aws::String& value) { SetAsn(value); return *this;}
54 inline AsnAssociation& WithAsn(Aws::String&& value) { SetAsn(std::move(value)); return *this;}
55 inline AsnAssociation& WithAsn(const char* value) { SetAsn(value); return *this;}
57
59
62 inline const Aws::String& GetCidr() const{ return m_cidr; }
63 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
64 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
65 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
66 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
67 inline AsnAssociation& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
68 inline AsnAssociation& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
69 inline AsnAssociation& WithCidr(const char* value) { SetCidr(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 AsnAssociation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
82 inline AsnAssociation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
83 inline AsnAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
85
87
90 inline const AsnAssociationState& GetState() const{ return m_state; }
91 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
92 inline void SetState(const AsnAssociationState& value) { m_stateHasBeenSet = true; m_state = value; }
93 inline void SetState(AsnAssociationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
94 inline AsnAssociation& WithState(const AsnAssociationState& value) { SetState(value); return *this;}
95 inline AsnAssociation& WithState(AsnAssociationState&& 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_cidr;
103 bool m_cidrHasBeenSet = false;
104
105 Aws::String m_statusMessage;
106 bool m_statusMessageHasBeenSet = false;
107
108 AsnAssociationState m_state;
109 bool m_stateHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
AsnAssociation & WithStatusMessage(Aws::String &&value)
AsnAssociation & WithCidr(Aws::String &&value)
AWS_EC2_API AsnAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(AsnAssociationState &&value)
void SetAsn(const Aws::String &value)
void SetAsn(const char *value)
void SetCidr(const Aws::String &value)
const AsnAssociationState & GetState() const
AsnAssociation & WithCidr(const char *value)
const Aws::String & GetAsn() const
AsnAssociation & WithAsn(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStatusMessage(const Aws::String &value)
const Aws::String & GetCidr() const
AsnAssociation & WithAsn(Aws::String &&value)
AsnAssociation & WithAsn(const char *value)
AsnAssociation & WithStatusMessage(const char *value)
AsnAssociation & WithCidr(const Aws::String &value)
void SetState(const AsnAssociationState &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatusMessage(const char *value)
AsnAssociation & WithState(const AsnAssociationState &value)
void SetStatusMessage(Aws::String &&value)
const Aws::String & GetStatusMessage() const
void SetCidr(Aws::String &&value)
void SetAsn(Aws::String &&value)
AWS_EC2_API AsnAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AsnAssociation & WithStatusMessage(const Aws::String &value)
AsnAssociation & WithState(AsnAssociationState &&value)
void SetCidr(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream