AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VpcCidrBlockAssociation.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/VpcCidrBlockState.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 Aws::String& GetAssociationId() const{ return m_associationId; }
49 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
50 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
51 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
52 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
53 inline VpcCidrBlockAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
54 inline VpcCidrBlockAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
55 inline VpcCidrBlockAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
57
59
62 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
63 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
64 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
65 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
66 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
67 inline VpcCidrBlockAssociation& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
68 inline VpcCidrBlockAssociation& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
69 inline VpcCidrBlockAssociation& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
71
73
76 inline const VpcCidrBlockState& GetCidrBlockState() const{ return m_cidrBlockState; }
77 inline bool CidrBlockStateHasBeenSet() const { return m_cidrBlockStateHasBeenSet; }
78 inline void SetCidrBlockState(const VpcCidrBlockState& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = value; }
79 inline void SetCidrBlockState(VpcCidrBlockState&& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = std::move(value); }
81 inline VpcCidrBlockAssociation& WithCidrBlockState(VpcCidrBlockState&& value) { SetCidrBlockState(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_associationId;
86 bool m_associationIdHasBeenSet = false;
87
88 Aws::String m_cidrBlock;
89 bool m_cidrBlockHasBeenSet = false;
90
91 VpcCidrBlockState m_cidrBlockState;
92 bool m_cidrBlockStateHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
VpcCidrBlockAssociation & WithCidrBlockState(VpcCidrBlockState &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAssociationId(const Aws::String &value)
VpcCidrBlockAssociation & WithCidrBlock(Aws::String &&value)
AWS_EC2_API VpcCidrBlockAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCidrBlockState(const VpcCidrBlockState &value)
VpcCidrBlockAssociation & WithAssociationId(const char *value)
void SetCidrBlockState(VpcCidrBlockState &&value)
AWS_EC2_API VpcCidrBlockAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VpcCidrBlockAssociation & WithAssociationId(Aws::String &&value)
const VpcCidrBlockState & GetCidrBlockState() const
VpcCidrBlockAssociation & WithAssociationId(const Aws::String &value)
VpcCidrBlockAssociation & WithCidrBlock(const Aws::String &value)
VpcCidrBlockAssociation & WithCidrBlockState(const VpcCidrBlockState &value)
VpcCidrBlockAssociation & WithCidrBlock(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream