AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
35 AWS_EC2_API SecurityGroupRuleUpdate() = default;
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 template<typename SecurityGroupRuleIdT = Aws::String>
50 void SetSecurityGroupRuleId(SecurityGroupRuleIdT&& value) { m_securityGroupRuleIdHasBeenSet = true; m_securityGroupRuleId = std::forward<SecurityGroupRuleIdT>(value); }
51 template<typename SecurityGroupRuleIdT = Aws::String>
52 SecurityGroupRuleUpdate& WithSecurityGroupRuleId(SecurityGroupRuleIdT&& value) { SetSecurityGroupRuleId(std::forward<SecurityGroupRuleIdT>(value)); return *this;}
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) { m_securityGroupRuleHasBeenSet = true; m_securityGroupRule = std::forward<SecurityGroupRuleT>(value); }
63 template<typename SecurityGroupRuleT = SecurityGroupRuleRequest>
64 SecurityGroupRuleUpdate& WithSecurityGroupRule(SecurityGroupRuleT&& value) { SetSecurityGroupRule(std::forward<SecurityGroupRuleT>(value)); return *this;}
66 private:
67
68 Aws::String m_securityGroupRuleId;
69 bool m_securityGroupRuleIdHasBeenSet = false;
70
71 SecurityGroupRuleRequest m_securityGroupRule;
72 bool m_securityGroupRuleHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace EC2
77} // 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