AWS SDK for C++  1.9.73
AWS SDK for C++
SecurityGroupIdentifier.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetGroupId() const{ return m_groupId; }
46 
50  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
51 
55  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
56 
60  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
61 
65  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
66 
70  inline SecurityGroupIdentifier& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
71 
75  inline SecurityGroupIdentifier& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
76 
80  inline SecurityGroupIdentifier& WithGroupId(const char* value) { SetGroupId(value); return *this;}
81 
82 
86  inline const Aws::String& GetGroupName() const{ return m_groupName; }
87 
91  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
92 
96  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
97 
101  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
102 
106  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
107 
111  inline SecurityGroupIdentifier& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
112 
116  inline SecurityGroupIdentifier& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
117 
121  inline SecurityGroupIdentifier& WithGroupName(const char* value) { SetGroupName(value); return *this;}
122 
123  private:
124 
125  Aws::String m_groupId;
126  bool m_groupIdHasBeenSet;
127 
128  Aws::String m_groupName;
129  bool m_groupNameHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace EC2
134 } // namespace Aws
Aws::EC2::Model::SecurityGroupIdentifier::WithGroupName
SecurityGroupIdentifier & WithGroupName(const char *value)
Definition: SecurityGroupIdentifier.h:121
Aws::EC2::Model::SecurityGroupIdentifier::WithGroupId
SecurityGroupIdentifier & WithGroupId(Aws::String &&value)
Definition: SecurityGroupIdentifier.h:75
Aws::EC2::Model::SecurityGroupIdentifier::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: SecurityGroupIdentifier.h:96
Aws::EC2::Model::SecurityGroupIdentifier::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: SecurityGroupIdentifier.h:55
Aws::EC2::Model::SecurityGroupIdentifier::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SecurityGroupIdentifier::SecurityGroupIdentifier
SecurityGroupIdentifier()
AWSStreamFwd.h
Aws::EC2::Model::SecurityGroupIdentifier::SetGroupId
void SetGroupId(const char *value)
Definition: SecurityGroupIdentifier.h:65
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SecurityGroupIdentifier::SetGroupName
void SetGroupName(const char *value)
Definition: SecurityGroupIdentifier.h:106
Aws::EC2::Model::SecurityGroupIdentifier::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: SecurityGroupIdentifier.h:101
Aws::EC2::Model::SecurityGroupIdentifier::WithGroupName
SecurityGroupIdentifier & WithGroupName(Aws::String &&value)
Definition: SecurityGroupIdentifier.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SecurityGroupIdentifier::WithGroupId
SecurityGroupIdentifier & WithGroupId(const Aws::String &value)
Definition: SecurityGroupIdentifier.h:70
Aws::EC2::Model::SecurityGroupIdentifier::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: SecurityGroupIdentifier.h:50
Aws::EC2::Model::SecurityGroupIdentifier::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: SecurityGroupIdentifier.h:60
Aws::EC2::Model::SecurityGroupIdentifier::GetGroupId
const Aws::String & GetGroupId() const
Definition: SecurityGroupIdentifier.h:45
Aws::EC2::Model::SecurityGroupIdentifier::SecurityGroupIdentifier
SecurityGroupIdentifier(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::SecurityGroupIdentifier
Definition: SecurityGroupIdentifier.h:32
Aws::EC2::Model::SecurityGroupIdentifier::WithGroupName
SecurityGroupIdentifier & WithGroupName(const Aws::String &value)
Definition: SecurityGroupIdentifier.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SecurityGroupIdentifier::WithGroupId
SecurityGroupIdentifier & WithGroupId(const char *value)
Definition: SecurityGroupIdentifier.h:80
Aws::EC2::Model::SecurityGroupIdentifier::operator=
SecurityGroupIdentifier & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SecurityGroupIdentifier::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::SecurityGroupIdentifier::GetGroupName
const Aws::String & GetGroupName() const
Definition: SecurityGroupIdentifier.h:86
Aws::EC2::Model::SecurityGroupIdentifier::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: SecurityGroupIdentifier.h:91