AWS SDK for C++  1.9.71
AWS SDK for C++
RouteTableAssociationState.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const RouteTableAssociationStateCode& GetState() const{ return m_state; }
48 
52  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
53 
57  inline void SetState(const RouteTableAssociationStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
58 
62  inline void SetState(RouteTableAssociationStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
63 
67  inline RouteTableAssociationState& WithState(const RouteTableAssociationStateCode& value) { SetState(value); return *this;}
68 
72  inline RouteTableAssociationState& WithState(RouteTableAssociationStateCode&& value) { SetState(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
79 
83  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
84 
88  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
89 
93  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
94 
98  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
99 
103  inline RouteTableAssociationState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
104 
108  inline RouteTableAssociationState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
109 
113  inline RouteTableAssociationState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
114 
115  private:
116 
118  bool m_stateHasBeenSet;
119 
120  Aws::String m_statusMessage;
121  bool m_statusMessageHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::RouteTableAssociationState::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: RouteTableAssociationState.h:98
Aws::EC2::Model::RouteTableAssociationState::WithStatusMessage
RouteTableAssociationState & WithStatusMessage(Aws::String &&value)
Definition: RouteTableAssociationState.h:108
Aws::EC2::Model::RouteTableAssociationState::SetState
void SetState(RouteTableAssociationStateCode &&value)
Definition: RouteTableAssociationState.h:62
RouteTableAssociationStateCode.h
Aws::EC2::Model::RouteTableAssociationState::WithStatusMessage
RouteTableAssociationState & WithStatusMessage(const Aws::String &value)
Definition: RouteTableAssociationState.h:103
Aws::EC2::Model::RouteTableAssociationState::operator=
RouteTableAssociationState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::RouteTableAssociationState::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::RouteTableAssociationState::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: RouteTableAssociationState.h:88
Aws::EC2::Model::RouteTableAssociationState::WithState
RouteTableAssociationState & WithState(RouteTableAssociationStateCode &&value)
Definition: RouteTableAssociationState.h:72
Aws::EC2::Model::RouteTableAssociationState::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: RouteTableAssociationState.h:78
Aws::EC2::Model::RouteTableAssociationState::WithStatusMessage
RouteTableAssociationState & WithStatusMessage(const char *value)
Definition: RouteTableAssociationState.h:113
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::RouteTableAssociationState::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::RouteTableAssociationState::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: RouteTableAssociationState.h:93
AWSString.h
Aws::EC2::Model::RouteTableAssociationStateCode
RouteTableAssociationStateCode
Definition: RouteTableAssociationStateCode.h:17
Aws::EC2::Model::RouteTableAssociationState::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: RouteTableAssociationState.h:83
Aws::EC2::Model::RouteTableAssociationState
Definition: RouteTableAssociationState.h:34
Aws::EC2::Model::RouteTableAssociationState::WithState
RouteTableAssociationState & WithState(const RouteTableAssociationStateCode &value)
Definition: RouteTableAssociationState.h:67
Aws::EC2::Model::RouteTableAssociationState::SetState
void SetState(const RouteTableAssociationStateCode &value)
Definition: RouteTableAssociationState.h:57
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RouteTableAssociationState::GetState
const RouteTableAssociationStateCode & GetState() const
Definition: RouteTableAssociationState.h:47
Aws::EC2::Model::RouteTableAssociationState::RouteTableAssociationState
RouteTableAssociationState()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::RouteTableAssociationState::StateHasBeenSet
bool StateHasBeenSet() const
Definition: RouteTableAssociationState.h:52
EC2_EXPORTS.h
Aws::EC2::Model::RouteTableAssociationState::RouteTableAssociationState
RouteTableAssociationState(const Aws::Utils::Xml::XmlNode &xmlNode)