AWS SDK for C++  1.9.71
AWS SDK for C++
SubnetCidrBlockState.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 
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 SubnetCidrBlockStateCode& GetState() const{ return m_state; }
47 
51  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
52 
56  inline void SetState(const SubnetCidrBlockStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
57 
61  inline void SetState(SubnetCidrBlockStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
62 
66  inline SubnetCidrBlockState& WithState(const SubnetCidrBlockStateCode& value) { SetState(value); return *this;}
67 
71  inline SubnetCidrBlockState& WithState(SubnetCidrBlockStateCode&& value) { SetState(std::move(value)); return *this;}
72 
73 
77  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
78 
82  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
83 
87  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
88 
92  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
93 
97  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
98 
102  inline SubnetCidrBlockState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
103 
107  inline SubnetCidrBlockState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
108 
112  inline SubnetCidrBlockState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
113 
114  private:
115 
116  SubnetCidrBlockStateCode m_state;
117  bool m_stateHasBeenSet;
118 
119  Aws::String m_statusMessage;
120  bool m_statusMessageHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace EC2
125 } // namespace Aws
Aws::EC2::Model::SubnetCidrBlockState::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: SubnetCidrBlockState.h:77
Aws::EC2::Model::SubnetCidrBlockState::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SubnetCidrBlockState::SetState
void SetState(const SubnetCidrBlockStateCode &value)
Definition: SubnetCidrBlockState.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::SubnetCidrBlockState::operator=
SubnetCidrBlockState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SubnetCidrBlockState::SubnetCidrBlockState
SubnetCidrBlockState()
Aws::EC2::Model::SubnetCidrBlockState::WithState
SubnetCidrBlockState & WithState(SubnetCidrBlockStateCode &&value)
Definition: SubnetCidrBlockState.h:71
Aws::EC2::Model::SubnetCidrBlockState::WithStatusMessage
SubnetCidrBlockState & WithStatusMessage(const Aws::String &value)
Definition: SubnetCidrBlockState.h:102
Aws::EC2::Model::SubnetCidrBlockState::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: SubnetCidrBlockState.h:92
Aws::EC2::Model::SubnetCidrBlockState
Definition: SubnetCidrBlockState.h:33
Aws::EC2::Model::SubnetCidrBlockState::SetState
void SetState(SubnetCidrBlockStateCode &&value)
Definition: SubnetCidrBlockState.h:61
Aws::EC2::Model::SubnetCidrBlockState::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::EC2::Model::SubnetCidrBlockStateCode
SubnetCidrBlockStateCode
Definition: SubnetCidrBlockStateCode.h:17
Aws::EC2::Model::SubnetCidrBlockState::WithStatusMessage
SubnetCidrBlockState & WithStatusMessage(Aws::String &&value)
Definition: SubnetCidrBlockState.h:107
Aws::EC2::Model::SubnetCidrBlockState::StateHasBeenSet
bool StateHasBeenSet() const
Definition: SubnetCidrBlockState.h:51
Aws::EC2::Model::SubnetCidrBlockState::SubnetCidrBlockState
SubnetCidrBlockState(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SubnetCidrBlockState::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: SubnetCidrBlockState.h:97
Aws::EC2::Model::SubnetCidrBlockState::GetState
const SubnetCidrBlockStateCode & GetState() const
Definition: SubnetCidrBlockState.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::SubnetCidrBlockState::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: SubnetCidrBlockState.h:82
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SubnetCidrBlockState::WithState
SubnetCidrBlockState & WithState(const SubnetCidrBlockStateCode &value)
Definition: SubnetCidrBlockState.h:66
Aws::EC2::Model::SubnetCidrBlockState::WithStatusMessage
SubnetCidrBlockState & WithStatusMessage(const char *value)
Definition: SubnetCidrBlockState.h:112
EC2_EXPORTS.h
SubnetCidrBlockStateCode.h
Aws::EC2::Model::SubnetCidrBlockState::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: SubnetCidrBlockState.h:87