AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SecurityGroupReference.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_EC2_API SecurityGroupReference() = default;
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 Aws::String& GetGroupId() const { return m_groupId; }
48 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
49 template<typename GroupIdT = Aws::String>
50 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
51 template<typename GroupIdT = Aws::String>
52 SecurityGroupReference& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
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) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = std::forward<ReferencingVpcIdT>(value); }
63 template<typename ReferencingVpcIdT = Aws::String>
64 SecurityGroupReference& WithReferencingVpcId(ReferencingVpcIdT&& value) { SetReferencingVpcId(std::forward<ReferencingVpcIdT>(value)); return *this;}
66
68
75 inline const Aws::String& GetVpcPeeringConnectionId() const { return m_vpcPeeringConnectionId; }
76 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
77 template<typename VpcPeeringConnectionIdT = Aws::String>
78 void SetVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::forward<VpcPeeringConnectionIdT>(value); }
79 template<typename VpcPeeringConnectionIdT = Aws::String>
80 SecurityGroupReference& WithVpcPeeringConnectionId(VpcPeeringConnectionIdT&& value) { SetVpcPeeringConnectionId(std::forward<VpcPeeringConnectionIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetTransitGatewayId() const { return m_transitGatewayId; }
88 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
89 template<typename TransitGatewayIdT = Aws::String>
90 void SetTransitGatewayId(TransitGatewayIdT&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::forward<TransitGatewayIdT>(value); }
91 template<typename TransitGatewayIdT = Aws::String>
92 SecurityGroupReference& WithTransitGatewayId(TransitGatewayIdT&& value) { SetTransitGatewayId(std::forward<TransitGatewayIdT>(value)); return *this;}
94 private:
95
96 Aws::String m_groupId;
97 bool m_groupIdHasBeenSet = false;
98
99 Aws::String m_referencingVpcId;
100 bool m_referencingVpcIdHasBeenSet = false;
101
102 Aws::String m_vpcPeeringConnectionId;
103 bool m_vpcPeeringConnectionIdHasBeenSet = false;
104
105 Aws::String m_transitGatewayId;
106 bool m_transitGatewayIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace EC2
111} // 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