AWS SDK for C++  1.9.123
AWS SDK for C++
PeeringAttachmentStatus.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetCode() const{ return m_code; }
47 
51  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 
56  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
57 
61  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
62 
66  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
67 
71  inline PeeringAttachmentStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
72 
76  inline PeeringAttachmentStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
77 
81  inline PeeringAttachmentStatus& WithCode(const char* value) { SetCode(value); return *this;}
82 
83 
87  inline const Aws::String& GetMessage() const{ return m_message; }
88 
92  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
93 
97  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
98 
102  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
103 
107  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
108 
112  inline PeeringAttachmentStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
113 
117  inline PeeringAttachmentStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
118 
122  inline PeeringAttachmentStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
123 
124  private:
125 
126  Aws::String m_code;
127  bool m_codeHasBeenSet;
128 
129  Aws::String m_message;
130  bool m_messageHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace EC2
135 } // namespace Aws
Aws::EC2::Model::PeeringAttachmentStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: PeeringAttachmentStatus.h:102
Aws::EC2::Model::PeeringAttachmentStatus::WithMessage
PeeringAttachmentStatus & WithMessage(const char *value)
Definition: PeeringAttachmentStatus.h:122
Aws::EC2::Model::PeeringAttachmentStatus::SetCode
void SetCode(Aws::String &&value)
Definition: PeeringAttachmentStatus.h:61
Aws::EC2::Model::PeeringAttachmentStatus::WithCode
PeeringAttachmentStatus & WithCode(const Aws::String &value)
Definition: PeeringAttachmentStatus.h:71
Aws::EC2::Model::PeeringAttachmentStatus::SetMessage
void SetMessage(const char *value)
Definition: PeeringAttachmentStatus.h:107
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PeeringAttachmentStatus::GetMessage
const Aws::String & GetMessage() const
Definition: PeeringAttachmentStatus.h:87
Aws::EC2::Model::PeeringAttachmentStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: PeeringAttachmentStatus.h:51
Aws::EC2::Model::PeeringAttachmentStatus::PeeringAttachmentStatus
PeeringAttachmentStatus()
Aws::EC2::Model::PeeringAttachmentStatus::SetCode
void SetCode(const Aws::String &value)
Definition: PeeringAttachmentStatus.h:56
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PeeringAttachmentStatus::GetCode
const Aws::String & GetCode() const
Definition: PeeringAttachmentStatus.h:46
Aws::EC2::Model::PeeringAttachmentStatus
Definition: PeeringAttachmentStatus.h:33
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PeeringAttachmentStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: PeeringAttachmentStatus.h:92
Aws::EC2::Model::PeeringAttachmentStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PeeringAttachmentStatus::WithMessage
PeeringAttachmentStatus & WithMessage(Aws::String &&value)
Definition: PeeringAttachmentStatus.h:117
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PeeringAttachmentStatus::WithMessage
PeeringAttachmentStatus & WithMessage(const Aws::String &value)
Definition: PeeringAttachmentStatus.h:112
Aws::EC2::Model::PeeringAttachmentStatus::PeeringAttachmentStatus
PeeringAttachmentStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PeeringAttachmentStatus::operator=
PeeringAttachmentStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::PeeringAttachmentStatus::WithCode
PeeringAttachmentStatus & WithCode(Aws::String &&value)
Definition: PeeringAttachmentStatus.h:76
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::PeeringAttachmentStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
EC2_EXPORTS.h
Aws::EC2::Model::PeeringAttachmentStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: PeeringAttachmentStatus.h:97
Aws::EC2::Model::PeeringAttachmentStatus::WithCode
PeeringAttachmentStatus & WithCode(const char *value)
Definition: PeeringAttachmentStatus.h:81
Aws::EC2::Model::PeeringAttachmentStatus::SetCode
void SetCode(const char *value)
Definition: PeeringAttachmentStatus.h:66