AWS SDK for C++  1.9.103
AWS SDK for C++
SecurityGroupRuleDescription.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetSecurityGroupRuleId() const{ return m_securityGroupRuleId; }
48 
52  inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
53 
57  inline void SetSecurityGroupRuleId(const Aws::String& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = value; }
58 
62  inline void SetSecurityGroupRuleId(Aws::String&& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = std::move(value); }
63 
67  inline void SetSecurityGroupRuleId(const char* value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId.assign(value); }
68 
72  inline SecurityGroupRuleDescription& WithSecurityGroupRuleId(const Aws::String& value) { SetSecurityGroupRuleId(value); return *this;}
73 
77  inline SecurityGroupRuleDescription& WithSecurityGroupRuleId(Aws::String&& value) { SetSecurityGroupRuleId(std::move(value)); return *this;}
78 
82  inline SecurityGroupRuleDescription& WithSecurityGroupRuleId(const char* value) { SetSecurityGroupRuleId(value); return *this;}
83 
84 
88  inline const Aws::String& GetDescription() const{ return m_description; }
89 
93  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 
98  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 
103  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 
108  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 
113  inline SecurityGroupRuleDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 
118  inline SecurityGroupRuleDescription& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
119 
123  inline SecurityGroupRuleDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
124 
125  private:
126 
127  Aws::String m_securityGroupRuleId;
128  bool m_securityGroupRuleIdHasBeenSet;
129 
130  Aws::String m_description;
131  bool m_descriptionHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace EC2
136 } // namespace Aws
Aws::EC2::Model::SecurityGroupRuleDescription::WithDescription
SecurityGroupRuleDescription & WithDescription(Aws::String &&value)
Definition: SecurityGroupRuleDescription.h:118
Aws::EC2::Model::SecurityGroupRuleDescription::SecurityGroupRuleIdHasBeenSet
bool SecurityGroupRuleIdHasBeenSet() const
Definition: SecurityGroupRuleDescription.h:52
Aws::EC2::Model::SecurityGroupRuleDescription::SetSecurityGroupRuleId
void SetSecurityGroupRuleId(const Aws::String &value)
Definition: SecurityGroupRuleDescription.h:57
Aws::EC2::Model::SecurityGroupRuleDescription::SecurityGroupRuleDescription
SecurityGroupRuleDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SecurityGroupRuleDescription::SetDescription
void SetDescription(Aws::String &&value)
Definition: SecurityGroupRuleDescription.h:103
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SecurityGroupRuleDescription::operator=
SecurityGroupRuleDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SecurityGroupRuleDescription::WithSecurityGroupRuleId
SecurityGroupRuleDescription & WithSecurityGroupRuleId(Aws::String &&value)
Definition: SecurityGroupRuleDescription.h:77
AWSStreamFwd.h
Aws::EC2::Model::SecurityGroupRuleDescription::SetSecurityGroupRuleId
void SetSecurityGroupRuleId(const char *value)
Definition: SecurityGroupRuleDescription.h:67
Aws::EC2::Model::SecurityGroupRuleDescription::SecurityGroupRuleDescription
SecurityGroupRuleDescription()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SecurityGroupRuleDescription::SetSecurityGroupRuleId
void SetSecurityGroupRuleId(Aws::String &&value)
Definition: SecurityGroupRuleDescription.h:62
AWSString.h
Aws::EC2::Model::SecurityGroupRuleDescription::SetDescription
void SetDescription(const char *value)
Definition: SecurityGroupRuleDescription.h:108
Aws::EC2::Model::SecurityGroupRuleDescription::GetDescription
const Aws::String & GetDescription() const
Definition: SecurityGroupRuleDescription.h:88
Aws::EC2::Model::SecurityGroupRuleDescription::WithDescription
SecurityGroupRuleDescription & WithDescription(const Aws::String &value)
Definition: SecurityGroupRuleDescription.h:113
Aws::EC2::Model::SecurityGroupRuleDescription::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SecurityGroupRuleDescription::SetDescription
void SetDescription(const Aws::String &value)
Definition: SecurityGroupRuleDescription.h:98
Aws::EC2::Model::SecurityGroupRuleDescription::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: SecurityGroupRuleDescription.h:93
Aws::EC2::Model::SecurityGroupRuleDescription
Definition: SecurityGroupRuleDescription.h:34
Aws::EC2::Model::SecurityGroupRuleDescription::GetSecurityGroupRuleId
const Aws::String & GetSecurityGroupRuleId() const
Definition: SecurityGroupRuleDescription.h:47
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SecurityGroupRuleDescription::WithDescription
SecurityGroupRuleDescription & WithDescription(const char *value)
Definition: SecurityGroupRuleDescription.h:123
Aws::EC2::Model::SecurityGroupRuleDescription::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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::SecurityGroupRuleDescription::WithSecurityGroupRuleId
SecurityGroupRuleDescription & WithSecurityGroupRuleId(const char *value)
Definition: SecurityGroupRuleDescription.h:82
EC2_EXPORTS.h
Aws::EC2::Model::SecurityGroupRuleDescription::WithSecurityGroupRuleId
SecurityGroupRuleDescription & WithSecurityGroupRuleId(const Aws::String &value)
Definition: SecurityGroupRuleDescription.h:72