AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityGroupReference.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API SecurityGroupReference() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetGroupId() const { return m_groupId; }
42 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
43 template <typename GroupIdT = Aws::String>
44 void SetGroupId(GroupIdT&& value) {
45 m_groupIdHasBeenSet = true;
46 m_groupId = std::forward<GroupIdT>(value);
47 }
48 template <typename GroupIdT = Aws::String>
50 SetGroupId(std::forward<GroupIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetReferencingVpcId() const { return m_referencingVpcId; }
60 inline bool ReferencingVpcIdHasBeenSet() const { return m_referencingVpcIdHasBeenSet; }
61 template <typename ReferencingVpcIdT = Aws::String>
62 void SetReferencingVpcId(ReferencingVpcIdT&& value) {
63 m_referencingVpcIdHasBeenSet = true;
64 m_referencingVpcId = std::forward<ReferencingVpcIdT>(value);
65 }
66 template <typename ReferencingVpcIdT = Aws::String>
67 SecurityGroupReference& WithReferencingVpcId(ReferencingVpcIdT&& value) {
68 SetReferencingVpcId(std::forward<ReferencingVpcIdT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
82 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
83 template <typename VpcPeeringConnectionIdT = Aws::String>
84 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
85 m_vpcPeeringConnectionIdHasBeenSet = true;
86 m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value);
87 }
88 template <typename VpcPeeringConnectionIdT = Aws::String>
89 SecurityGroupReference& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) {
90 SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
100 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
101 template <typename TransitGatewayIdT = Aws::String>
102 void SetTransitGatewayId(TransitGatewayIdT&& value) {
103 m_transitGatewayIdHasBeenSet = true;
104 m_transitGatewayId = std::forward<TransitGatewayIdT>(value);
105 }
106 template <typename TransitGatewayIdT = Aws::String>
107 SecurityGroupReference& WithTransitGatewayId(TransitGatewayIdT&& value) {
108 SetTransitGatewayId(std::forward<TransitGatewayIdT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_groupId;
114
115 Aws::String m_referencingVpcId;
116
117 Aws::String m_vpcPeeringConnectionId;
118
119 Aws::String m_transitGatewayId;
120 bool m_groupIdHasBeenSet = false;
121 bool m_referencingVpcIdHasBeenSet = false;
122 bool m_vpcPeeringConnectionIdHasBeenSet = false;
123 bool m_transitGatewayIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace EC2
128} // namespace Aws
void SetReferencingVpcId(ReferencingVpcIdT &&value)
SecurityGroupReference & WithReferencingVpcId(ReferencingVpcIdT &&value)
SecurityGroupReference & WithTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API SecurityGroupReference()=default
const Aws::String & GetTransitGatewayId() const
AWS_EC2_API SecurityGroupReference(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetVpcPeeringConnectionId() const
const Aws::String & GetReferencingVpcId() const
SecurityGroupReference & WithGroupId(GroupIdT &&value)
void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
void SetTransitGatewayId(TransitGatewayIdT &&value)
AWS_EC2_API SecurityGroupReference & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupReference & WithVpcPeeringConnectionId(VpcPeeringConnectionIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream