AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcCidrBlockState.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/VpcCidrBlockStateCode.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 VpcCidrBlockState();
36 AWS_EC2_API VpcCidrBlockState(const Aws::Utils::Xml::XmlNode& xmlNode);
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 VpcCidrBlockStateCode& GetState() const{ return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(const VpcCidrBlockStateCode& value) { m_stateHasBeenSet = true; m_state = value; }
50 inline void SetState(VpcCidrBlockStateCode&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
51 inline VpcCidrBlockState& WithState(const VpcCidrBlockStateCode& value) { SetState(value); return *this;}
52 inline VpcCidrBlockState& WithState(VpcCidrBlockStateCode&& 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 VpcCidrBlockState& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
65 inline VpcCidrBlockState& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
66 inline VpcCidrBlockState& 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 void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VpcCidrBlockState & WithState(VpcCidrBlockStateCode &&value)
void SetStatusMessage(Aws::String &&value)
const VpcCidrBlockStateCode & GetState() const
VpcCidrBlockState & WithStatusMessage(Aws::String &&value)
void SetStatusMessage(const char *value)
void SetState(VpcCidrBlockStateCode &&value)
const Aws::String & GetStatusMessage() const
AWS_EC2_API VpcCidrBlockState & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatusMessage(const Aws::String &value)
VpcCidrBlockState & WithStatusMessage(const Aws::String &value)
AWS_EC2_API VpcCidrBlockState(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(const VpcCidrBlockStateCode &value)
VpcCidrBlockState & WithState(const VpcCidrBlockStateCode &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VpcCidrBlockState & WithStatusMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream