AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
50 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
51 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
52 inline SecurityGroupReference& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
53 inline SecurityGroupReference& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
54 inline SecurityGroupReference& WithGroupId(const char* value) { SetGroupId(value); return *this;}
56
58
61 inline const Aws::String& GetReferencingVpcId() const{ return m_referencingVpcId; }
62 inline bool ReferencingVpcIdHasBeenSet() const { return m_referencingVpcIdHasBeenSet; }
63 inline void SetReferencingVpcId(const Aws::String& value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = value; }
64 inline void SetReferencingVpcId(Aws::String&& value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = std::move(value); }
65 inline void SetReferencingVpcId(const char* value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId.assign(value); }
66 inline SecurityGroupReference& WithReferencingVpcId(const Aws::String& value) { SetReferencingVpcId(value); return *this;}
67 inline SecurityGroupReference& WithReferencingVpcId(Aws::String&& value) { SetReferencingVpcId(std::move(value)); return *this;}
68 inline SecurityGroupReference& WithReferencingVpcId(const char* value) { SetReferencingVpcId(value); return *this;}
70
72
79 inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
80 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
81 inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
82 inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
83 inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
86 inline SecurityGroupReference& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
88
90
94 inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; }
95 inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; }
96 inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; }
97 inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); }
98 inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); }
99 inline SecurityGroupReference& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;}
100 inline SecurityGroupReference& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;}
101 inline SecurityGroupReference& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;}
103 private:
104
105 Aws::String m_groupId;
106 bool m_groupIdHasBeenSet = false;
107
108 Aws::String m_referencingVpcId;
109 bool m_referencingVpcIdHasBeenSet = false;
110
111 Aws::String m_vpcPeeringConnectionId;
112 bool m_vpcPeeringConnectionIdHasBeenSet = false;
113
114 Aws::String m_transitGatewayId;
115 bool m_transitGatewayIdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace EC2
120} // namespace Aws
void SetVpcPeeringConnectionId(Aws::String &&value)
void SetVpcPeeringConnectionId(const Aws::String &value)
SecurityGroupReference & WithVpcPeeringConnectionId(Aws::String &&value)
SecurityGroupReference & WithGroupId(Aws::String &&value)
void SetTransitGatewayId(const Aws::String &value)
void SetGroupId(const Aws::String &value)
SecurityGroupReference & WithTransitGatewayId(Aws::String &&value)
void SetReferencingVpcId(const Aws::String &value)
SecurityGroupReference & WithVpcPeeringConnectionId(const char *value)
const Aws::String & GetTransitGatewayId() const
AWS_EC2_API SecurityGroupReference(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupReference & WithReferencingVpcId(const Aws::String &value)
SecurityGroupReference & WithTransitGatewayId(const Aws::String &value)
const Aws::String & GetVpcPeeringConnectionId() const
SecurityGroupReference & WithTransitGatewayId(const char *value)
SecurityGroupReference & WithGroupId(const char *value)
const Aws::String & GetReferencingVpcId() const
SecurityGroupReference & WithReferencingVpcId(Aws::String &&value)
AWS_EC2_API SecurityGroupReference & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupReference & WithReferencingVpcId(const char *value)
SecurityGroupReference & WithGroupId(const Aws::String &value)
SecurityGroupReference & WithVpcPeeringConnectionId(const Aws::String &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