AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcCidrBlockAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/VpcCidrBlockState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API VpcCidrBlockAssociation() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetAssociationId() const { return m_associationId; }
43 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
44 template <typename AssociationIdT = Aws::String>
45 void SetAssociationId(AssociationIdT&& value) {
46 m_associationIdHasBeenSet = true;
47 m_associationId = std::forward<AssociationIdT>(value);
48 }
49 template <typename AssociationIdT = Aws::String>
50 VpcCidrBlockAssociation& WithAssociationId(AssociationIdT&& value) {
51 SetAssociationId(std::forward<AssociationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
61 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
62 template <typename CidrBlockT = Aws::String>
63 void SetCidrBlock(CidrBlockT&& value) {
64 m_cidrBlockHasBeenSet = true;
65 m_cidrBlock = std::forward<CidrBlockT>(value);
66 }
67 template <typename CidrBlockT = Aws::String>
69 SetCidrBlock(std::forward<CidrBlockT>(value));
70 return *this;
71 }
73
75
78 inline const VpcCidrBlockState& GetCidrBlockState() const { return m_cidrBlockState; }
79 inline bool CidrBlockStateHasBeenSet() const { return m_cidrBlockStateHasBeenSet; }
80 template <typename CidrBlockStateT = VpcCidrBlockState>
81 void SetCidrBlockState(CidrBlockStateT&& value) {
82 m_cidrBlockStateHasBeenSet = true;
83 m_cidrBlockState = std::forward<CidrBlockStateT>(value);
84 }
85 template <typename CidrBlockStateT = VpcCidrBlockState>
86 VpcCidrBlockAssociation& WithCidrBlockState(CidrBlockStateT&& value) {
87 SetCidrBlockState(std::forward<CidrBlockStateT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_associationId;
93
94 Aws::String m_cidrBlock;
95
96 VpcCidrBlockState m_cidrBlockState;
97 bool m_associationIdHasBeenSet = false;
98 bool m_cidrBlockHasBeenSet = false;
99 bool m_cidrBlockStateHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VpcCidrBlockAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcCidrBlockAssociation & WithCidrBlockState(CidrBlockStateT &&value)
AWS_EC2_API VpcCidrBlockAssociation()=default
VpcCidrBlockAssociation & WithAssociationId(AssociationIdT &&value)
VpcCidrBlockAssociation & WithCidrBlock(CidrBlockT &&value)
void SetCidrBlockState(CidrBlockStateT &&value)
AWS_EC2_API VpcCidrBlockAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const VpcCidrBlockState & GetCidrBlockState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream