AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityGroupRuleUpdate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/SecurityGroupRuleRequest.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API SecurityGroupRuleUpdate() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetSecurityGroupRuleId() const { return m_securityGroupRuleId; }
42 inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
43 template <typename SecurityGroupRuleIdT = Aws::String>
44 void SetSecurityGroupRuleId(SecurityGroupRuleIdT&& value) {
45 m_securityGroupRuleIdHasBeenSet = true;
46 m_securityGroupRuleId = std::forward<SecurityGroupRuleIdT>(value);
47 }
48 template <typename SecurityGroupRuleIdT = Aws::String>
49 SecurityGroupRuleUpdate& WithSecurityGroupRuleId(SecurityGroupRuleIdT&& value) {
50 SetSecurityGroupRuleId(std::forward<SecurityGroupRuleIdT>(value));
51 return *this;
52 }
54
56
59 inline const SecurityGroupRuleRequest& GetSecurityGroupRule() const { return m_securityGroupRule; }
60 inline bool SecurityGroupRuleHasBeenSet() const { return m_securityGroupRuleHasBeenSet; }
61 template <typename SecurityGroupRuleT = SecurityGroupRuleRequest>
62 void SetSecurityGroupRule(SecurityGroupRuleT&& value) {
63 m_securityGroupRuleHasBeenSet = true;
64 m_securityGroupRule = std::forward<SecurityGroupRuleT>(value);
65 }
66 template <typename SecurityGroupRuleT = SecurityGroupRuleRequest>
67 SecurityGroupRuleUpdate& WithSecurityGroupRule(SecurityGroupRuleT&& value) {
68 SetSecurityGroupRule(std::forward<SecurityGroupRuleT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_securityGroupRuleId;
74
75 SecurityGroupRuleRequest m_securityGroupRule;
76 bool m_securityGroupRuleIdHasBeenSet = false;
77 bool m_securityGroupRuleHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
AWS_EC2_API SecurityGroupRuleUpdate(const Aws::Utils::Xml::XmlNode &xmlNode)
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(SecurityGroupRuleIdT &&value)
AWS_EC2_API SecurityGroupRuleUpdate()=default
void SetSecurityGroupRule(SecurityGroupRuleT &&value)
AWS_EC2_API SecurityGroupRuleUpdate & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
SecurityGroupRuleUpdate & WithSecurityGroupRule(SecurityGroupRuleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream