AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RuleGroupRuleOptionsPair.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/RuleOption.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API RuleGroupRuleOptionsPair() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetRuleGroupArn() const { return m_ruleGroupArn; }
44 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
45 template <typename RuleGroupArnT = Aws::String>
46 void SetRuleGroupArn(RuleGroupArnT&& value) {
47 m_ruleGroupArnHasBeenSet = true;
48 m_ruleGroupArn = std::forward<RuleGroupArnT>(value);
49 }
50 template <typename RuleGroupArnT = Aws::String>
52 SetRuleGroupArn(std::forward<RuleGroupArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<RuleOption>& GetRuleOptions() const { return m_ruleOptions; }
62 inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; }
63 template <typename RuleOptionsT = Aws::Vector<RuleOption>>
64 void SetRuleOptions(RuleOptionsT&& value) {
65 m_ruleOptionsHasBeenSet = true;
66 m_ruleOptions = std::forward<RuleOptionsT>(value);
67 }
68 template <typename RuleOptionsT = Aws::Vector<RuleOption>>
70 SetRuleOptions(std::forward<RuleOptionsT>(value));
71 return *this;
72 }
73 template <typename RuleOptionsT = RuleOption>
75 m_ruleOptionsHasBeenSet = true;
76 m_ruleOptions.emplace_back(std::forward<RuleOptionsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_ruleGroupArn;
82
83 Aws::Vector<RuleOption> m_ruleOptions;
84 bool m_ruleGroupArnHasBeenSet = false;
85 bool m_ruleOptionsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace EC2
90} // namespace Aws
AWS_EC2_API RuleGroupRuleOptionsPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API RuleGroupRuleOptionsPair(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< RuleOption > & GetRuleOptions() const
AWS_EC2_API RuleGroupRuleOptionsPair()=default
RuleGroupRuleOptionsPair & AddRuleOptions(RuleOptionsT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RuleGroupRuleOptionsPair & WithRuleOptions(RuleOptionsT &&value)
RuleGroupRuleOptionsPair & WithRuleGroupArn(RuleGroupArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream