AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SecurityGroupRuleUpdate.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 <aws/ec2/model/SecurityGroupRuleRequest.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
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& GetSecurityGroupRuleId() const{ return m_securityGroupRuleId; }
48 inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
49 inline void SetSecurityGroupRuleId(const Aws::String& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = value; }
50 inline void SetSecurityGroupRuleId(Aws::String&& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = std::move(value); }
51 inline void SetSecurityGroupRuleId(const char* value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId.assign(value); }
53 inline SecurityGroupRuleUpdate& WithSecurityGroupRuleId(Aws::String&& value) { SetSecurityGroupRuleId(std::move(value)); return *this;}
54 inline SecurityGroupRuleUpdate& WithSecurityGroupRuleId(const char* value) { SetSecurityGroupRuleId(value); return *this;}
56
58
61 inline const SecurityGroupRuleRequest& GetSecurityGroupRule() const{ return m_securityGroupRule; }
62 inline bool SecurityGroupRuleHasBeenSet() const { return m_securityGroupRuleHasBeenSet; }
63 inline void SetSecurityGroupRule(const SecurityGroupRuleRequest& value) { m_securityGroupRuleHasBeenSet = true; m_securityGroupRule = value; }
64 inline void SetSecurityGroupRule(SecurityGroupRuleRequest&& value) { m_securityGroupRuleHasBeenSet = true; m_securityGroupRule = std::move(value); }
68 private:
69
70 Aws::String m_securityGroupRuleId;
71 bool m_securityGroupRuleIdHasBeenSet = false;
72
73 SecurityGroupRuleRequest m_securityGroupRule;
74 bool m_securityGroupRuleHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
void SetSecurityGroupRule(const SecurityGroupRuleRequest &value)
AWS_EC2_API SecurityGroupRuleUpdate(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSecurityGroupRuleId(const Aws::String &value)
SecurityGroupRuleUpdate & WithSecurityGroupRuleId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const SecurityGroupRuleRequest & GetSecurityGroupRule() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SecurityGroupRuleUpdate & WithSecurityGroupRuleId(Aws::String &&value)
SecurityGroupRuleUpdate & WithSecurityGroupRule(SecurityGroupRuleRequest &&value)
void SetSecurityGroupRule(SecurityGroupRuleRequest &&value)
SecurityGroupRuleUpdate & WithSecurityGroupRuleId(const Aws::String &value)
AWS_EC2_API SecurityGroupRuleUpdate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SecurityGroupRuleUpdate & WithSecurityGroupRule(const SecurityGroupRuleRequest &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream