AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReferencedSecurityGroup.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 ReferencedSecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
53 inline ReferencedSecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
54 inline ReferencedSecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
56
58
61 inline const Aws::String& GetPeeringStatus() const{ return m_peeringStatus; }
62 inline bool PeeringStatusHasBeenSet() const { return m_peeringStatusHasBeenSet; }
63 inline void SetPeeringStatus(const Aws::String& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = value; }
64 inline void SetPeeringStatus(Aws::String&& value) { m_peeringStatusHasBeenSet = true; m_peeringStatus = std::move(value); }
65 inline void SetPeeringStatus(const char* value) { m_peeringStatusHasBeenSet = true; m_peeringStatus.assign(value); }
66 inline ReferencedSecurityGroup& WithPeeringStatus(const Aws::String& value) { SetPeeringStatus(value); return *this;}
67 inline ReferencedSecurityGroup& WithPeeringStatus(Aws::String&& value) { SetPeeringStatus(std::move(value)); return *this;}
68 inline ReferencedSecurityGroup& WithPeeringStatus(const char* value) { SetPeeringStatus(value); return *this;}
70
72
75 inline const Aws::String& GetUserId() const{ return m_userId; }
76 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
77 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
78 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
79 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
80 inline ReferencedSecurityGroup& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
81 inline ReferencedSecurityGroup& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
82 inline ReferencedSecurityGroup& WithUserId(const char* value) { SetUserId(value); return *this;}
84
86
89 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
90 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
91 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
92 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
93 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
94 inline ReferencedSecurityGroup& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
95 inline ReferencedSecurityGroup& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
96 inline ReferencedSecurityGroup& WithVpcId(const char* value) { SetVpcId(value); return *this;}
98
100
103 inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
104 inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; }
105 inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
106 inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); }
107 inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
110 inline ReferencedSecurityGroup& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
112 private:
113
114 Aws::String m_groupId;
115 bool m_groupIdHasBeenSet = false;
116
117 Aws::String m_peeringStatus;
118 bool m_peeringStatusHasBeenSet = false;
119
120 Aws::String m_userId;
121 bool m_userIdHasBeenSet = false;
122
123 Aws::String m_vpcId;
124 bool m_vpcIdHasBeenSet = false;
125
126 Aws::String m_vpcPeeringConnectionId;
127 bool m_vpcPeeringConnectionIdHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace EC2
132} // namespace Aws
ReferencedSecurityGroup & WithVpcPeeringConnectionId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReferencedSecurityGroup & WithPeeringStatus(const char *value)
void SetVpcPeeringConnectionId(const Aws::String &value)
ReferencedSecurityGroup & WithVpcId(const char *value)
ReferencedSecurityGroup & WithGroupId(Aws::String &&value)
ReferencedSecurityGroup & WithUserId(const char *value)
ReferencedSecurityGroup & WithVpcId(const Aws::String &value)
ReferencedSecurityGroup & WithPeeringStatus(Aws::String &&value)
ReferencedSecurityGroup & WithUserId(Aws::String &&value)
AWS_EC2_API ReferencedSecurityGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetVpcPeeringConnectionId() const
ReferencedSecurityGroup & WithUserId(const Aws::String &value)
ReferencedSecurityGroup & WithVpcPeeringConnectionId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ReferencedSecurityGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
ReferencedSecurityGroup & WithVpcId(Aws::String &&value)
ReferencedSecurityGroup & WithVpcPeeringConnectionId(const Aws::String &value)
ReferencedSecurityGroup & WithPeeringStatus(const Aws::String &value)
void SetPeeringStatus(const Aws::String &value)
ReferencedSecurityGroup & WithGroupId(const Aws::String &value)
ReferencedSecurityGroup & WithGroupId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream