AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityGroupRuleDescription.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
30 public:
31 AWS_EC2_API SecurityGroupRuleDescription() = default;
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetSecurityGroupRuleId() const { return m_securityGroupRuleId; }
43 inline bool SecurityGroupRuleIdHasBeenSet() const { return m_securityGroupRuleIdHasBeenSet; }
44 template <typename SecurityGroupRuleIdT = Aws::String>
45 void SetSecurityGroupRuleId(SecurityGroupRuleIdT&& value) {
46 m_securityGroupRuleIdHasBeenSet = true;
47 m_securityGroupRuleId = std::forward<SecurityGroupRuleIdT>(value);
48 }
49 template <typename SecurityGroupRuleIdT = Aws::String>
51 SetSecurityGroupRuleId(std::forward<SecurityGroupRuleIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_securityGroupRuleId;
75
76 Aws::String m_description;
77 bool m_securityGroupRuleIdHasBeenSet = false;
78 bool m_descriptionHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
void SetSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
AWS_EC2_API SecurityGroupRuleDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SecurityGroupRuleDescription()=default
SecurityGroupRuleDescription & WithSecurityGroupRuleId(SecurityGroupRuleIdT &&value)
AWS_EC2_API SecurityGroupRuleDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
SecurityGroupRuleDescription & WithDescription(DescriptionT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream