AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SecurityGroupVpcAssociation.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/SecurityGroupVpcAssociationState.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
35 {
36 public:
37 AWS_EC2_API SecurityGroupVpcAssociation() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetGroupId() const { return m_groupId; }
50 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
51 template<typename GroupIdT = Aws::String>
52 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
53 template<typename GroupIdT = Aws::String>
54 SecurityGroupVpcAssociation& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetVpcId() const { return m_vpcId; }
62 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
63 template<typename VpcIdT = Aws::String>
64 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
65 template<typename VpcIdT = Aws::String>
66 SecurityGroupVpcAssociation& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetVpcOwnerId() const { return m_vpcOwnerId; }
74 inline bool VpcOwnerIdHasBeenSet() const { return m_vpcOwnerIdHasBeenSet; }
75 template<typename VpcOwnerIdT = Aws::String>
76 void SetVpcOwnerId(VpcOwnerIdT&& value) { m_vpcOwnerIdHasBeenSet = true; m_vpcOwnerId = std::forward<VpcOwnerIdT>(value); }
77 template<typename VpcOwnerIdT = Aws::String>
78 SecurityGroupVpcAssociation& WithVpcOwnerId(VpcOwnerIdT&& value) { SetVpcOwnerId(std::forward<VpcOwnerIdT>(value)); return *this;}
80
82
85 inline SecurityGroupVpcAssociationState GetState() const { return m_state; }
86 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
87 inline void SetState(SecurityGroupVpcAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
90
92
95 inline const Aws::String& GetStateReason() const { return m_stateReason; }
96 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
97 template<typename StateReasonT = Aws::String>
98 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
99 template<typename StateReasonT = Aws::String>
100 SecurityGroupVpcAssociation& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
102
104
107 inline const Aws::String& GetGroupOwnerId() const { return m_groupOwnerId; }
108 inline bool GroupOwnerIdHasBeenSet() const { return m_groupOwnerIdHasBeenSet; }
109 template<typename GroupOwnerIdT = Aws::String>
110 void SetGroupOwnerId(GroupOwnerIdT&& value) { m_groupOwnerIdHasBeenSet = true; m_groupOwnerId = std::forward<GroupOwnerIdT>(value); }
111 template<typename GroupOwnerIdT = Aws::String>
112 SecurityGroupVpcAssociation& WithGroupOwnerId(GroupOwnerIdT&& value) { SetGroupOwnerId(std::forward<GroupOwnerIdT>(value)); return *this;}
114 private:
115
116 Aws::String m_groupId;
117 bool m_groupIdHasBeenSet = false;
118
119 Aws::String m_vpcId;
120 bool m_vpcIdHasBeenSet = false;
121
122 Aws::String m_vpcOwnerId;
123 bool m_vpcOwnerIdHasBeenSet = false;
124
126 bool m_stateHasBeenSet = false;
127
128 Aws::String m_stateReason;
129 bool m_stateReasonHasBeenSet = false;
130
131 Aws::String m_groupOwnerId;
132 bool m_groupOwnerIdHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace EC2
137} // namespace Aws
SecurityGroupVpcAssociation & WithGroupOwnerId(GroupOwnerIdT &&value)
SecurityGroupVpcAssociationState GetState() const
AWS_EC2_API SecurityGroupVpcAssociation()=default
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupVpcAssociation & WithState(SecurityGroupVpcAssociationState value)
SecurityGroupVpcAssociation & WithGroupId(GroupIdT &&value)
SecurityGroupVpcAssociation & WithStateReason(StateReasonT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API SecurityGroupVpcAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupVpcAssociation & WithVpcId(VpcIdT &&value)
SecurityGroupVpcAssociation & WithVpcOwnerId(VpcOwnerIdT &&value)
void SetState(SecurityGroupVpcAssociationState value)
AWS_EC2_API SecurityGroupVpcAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream