AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteTableAssociationState.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/RouteTableAssociationStateCode.h>
10#include <aws/core/utils/memory/stl/AWSString.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:
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 RouteTableAssociationStateCode& GetState() const{ return m_state; }
49 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
50 inline void SetState(const RouteTableAssociationStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
51 inline void SetState(RouteTableAssociationStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
52 inline RouteTableAssociationState& WithState(const RouteTableAssociationStateCode& value) { SetState(value); return *this;}
53 inline RouteTableAssociationState& WithState(RouteTableAssociationStateCode&& value) { SetState(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
61 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
62 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
63 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
64 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
65 inline RouteTableAssociationState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
66 inline RouteTableAssociationState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
67 inline RouteTableAssociationState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
69 private:
70
72 bool m_stateHasBeenSet = false;
73
74 Aws::String m_statusMessage;
75 bool m_statusMessageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
const RouteTableAssociationStateCode & GetState() const
RouteTableAssociationState & WithState(RouteTableAssociationStateCode &&value)
RouteTableAssociationState & WithStatusMessage(const char *value)
void SetState(RouteTableAssociationStateCode &&value)
RouteTableAssociationState & WithState(const RouteTableAssociationStateCode &value)
AWS_EC2_API RouteTableAssociationState(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API RouteTableAssociationState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RouteTableAssociationState & WithStatusMessage(const Aws::String &value)
RouteTableAssociationState & WithStatusMessage(Aws::String &&value)
void SetState(const RouteTableAssociationStateCode &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream