AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubnetCidrBlockState.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/SubnetCidrBlockStateCode.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
33 {
34 public:
35 AWS_EC2_API SubnetCidrBlockState();
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const SubnetCidrBlockStateCode& GetState() const{ return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(const SubnetCidrBlockStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
50 inline void SetState(SubnetCidrBlockStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
51 inline SubnetCidrBlockState& WithState(const SubnetCidrBlockStateCode& value) { SetState(value); return *this;}
52 inline SubnetCidrBlockState& WithState(SubnetCidrBlockStateCode&& value) { SetState(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
60 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
61 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
62 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
63 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
64 inline SubnetCidrBlockState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
65 inline SubnetCidrBlockState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
66 inline SubnetCidrBlockState& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
68 private:
69
71 bool m_stateHasBeenSet = false;
72
73 Aws::String m_statusMessage;
74 bool m_statusMessageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
AWS_EC2_API SubnetCidrBlockState(const Aws::Utils::Xml::XmlNode &xmlNode)
SubnetCidrBlockState & WithStatusMessage(Aws::String &&value)
SubnetCidrBlockState & WithState(SubnetCidrBlockStateCode &&value)
SubnetCidrBlockState & WithStatusMessage(const Aws::String &value)
void SetState(SubnetCidrBlockStateCode &&value)
SubnetCidrBlockState & WithStatusMessage(const char *value)
AWS_EC2_API SubnetCidrBlockState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatusMessage(const Aws::String &value)
SubnetCidrBlockState & WithState(const SubnetCidrBlockStateCode &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const SubnetCidrBlockStateCode & GetState() const
void SetState(const SubnetCidrBlockStateCode &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetStatusMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream