AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RuleGroupRuleOptionsPair.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/RuleOption.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API RuleGroupRuleOptionsPair() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetRuleGroupArn() const { return m_ruleGroupArn; }
50 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
51 template<typename RuleGroupArnT = Aws::String>
52 void SetRuleGroupArn(RuleGroupArnT&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::forward<RuleGroupArnT>(value); }
53 template<typename RuleGroupArnT = Aws::String>
54 RuleGroupRuleOptionsPair& WithRuleGroupArn(RuleGroupArnT&& value) { SetRuleGroupArn(std::forward<RuleGroupArnT>(value)); return *this;}
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) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::forward<RuleOptionsT>(value); }
65 template<typename RuleOptionsT = Aws::Vector<RuleOption>>
66 RuleGroupRuleOptionsPair& WithRuleOptions(RuleOptionsT&& value) { SetRuleOptions(std::forward<RuleOptionsT>(value)); return *this;}
67 template<typename RuleOptionsT = RuleOption>
68 RuleGroupRuleOptionsPair& AddRuleOptions(RuleOptionsT&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.emplace_back(std::forward<RuleOptionsT>(value)); return *this; }
70 private:
71
72 Aws::String m_ruleGroupArn;
73 bool m_ruleGroupArnHasBeenSet = false;
74
75 Aws::Vector<RuleOption> m_ruleOptions;
76 bool m_ruleOptionsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace EC2
81} // 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