AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
52 inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
53 inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
54 inline RuleGroupRuleOptionsPair& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
55 inline RuleGroupRuleOptionsPair& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
56 inline RuleGroupRuleOptionsPair& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
58
60
63 inline const Aws::Vector<RuleOption>& GetRuleOptions() const{ return m_ruleOptions; }
64 inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; }
65 inline void SetRuleOptions(const Aws::Vector<RuleOption>& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = value; }
66 inline void SetRuleOptions(Aws::Vector<RuleOption>&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::move(value); }
68 inline RuleGroupRuleOptionsPair& WithRuleOptions(Aws::Vector<RuleOption>&& value) { SetRuleOptions(std::move(value)); return *this;}
69 inline RuleGroupRuleOptionsPair& AddRuleOptions(const RuleOption& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(value); return *this; }
70 inline RuleGroupRuleOptionsPair& AddRuleOptions(RuleOption&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(std::move(value)); return *this; }
72 private:
73
74 Aws::String m_ruleGroupArn;
75 bool m_ruleGroupArnHasBeenSet = false;
76
77 Aws::Vector<RuleOption> m_ruleOptions;
78 bool m_ruleOptionsHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace EC2
83} // 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
RuleGroupRuleOptionsPair & AddRuleOptions(RuleOption &&value)
RuleGroupRuleOptionsPair & WithRuleOptions(const Aws::Vector< RuleOption > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RuleGroupRuleOptionsPair & WithRuleOptions(Aws::Vector< RuleOption > &&value)
RuleGroupRuleOptionsPair & AddRuleOptions(const RuleOption &value)
void SetRuleOptions(Aws::Vector< RuleOption > &&value)
RuleGroupRuleOptionsPair & WithRuleGroupArn(const char *value)
void SetRuleOptions(const Aws::Vector< RuleOption > &value)
RuleGroupRuleOptionsPair & WithRuleGroupArn(Aws::String &&value)
RuleGroupRuleOptionsPair & WithRuleGroupArn(const Aws::String &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