AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RuleOption.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 <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 RuleOption() = default;
36 AWS_EC2_API RuleOption(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API RuleOption& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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& GetKeyword() const { return m_keyword; }
48 inline bool KeywordHasBeenSet() const { return m_keywordHasBeenSet; }
49 template<typename KeywordT = Aws::String>
50 void SetKeyword(KeywordT&& value) { m_keywordHasBeenSet = true; m_keyword = std::forward<KeywordT>(value); }
51 template<typename KeywordT = Aws::String>
52 RuleOption& WithKeyword(KeywordT&& value) { SetKeyword(std::forward<KeywordT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetSettings() const { return m_settings; }
60 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
61 template<typename SettingsT = Aws::Vector<Aws::String>>
62 void SetSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings = std::forward<SettingsT>(value); }
63 template<typename SettingsT = Aws::Vector<Aws::String>>
64 RuleOption& WithSettings(SettingsT&& value) { SetSettings(std::forward<SettingsT>(value)); return *this;}
65 template<typename SettingsT = Aws::String>
66 RuleOption& AddSettings(SettingsT&& value) { m_settingsHasBeenSet = true; m_settings.emplace_back(std::forward<SettingsT>(value)); return *this; }
68 private:
69
70 Aws::String m_keyword;
71 bool m_keywordHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_settings;
74 bool m_settingsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
void SetSettings(SettingsT &&value)
Definition RuleOption.h:62
RuleOption & WithSettings(SettingsT &&value)
Definition RuleOption.h:64
bool KeywordHasBeenSet() const
Definition RuleOption.h:48
const Aws::Vector< Aws::String > & GetSettings() const
Definition RuleOption.h:59
RuleOption & AddSettings(SettingsT &&value)
Definition RuleOption.h:66
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetKeyword() const
Definition RuleOption.h:47
AWS_EC2_API RuleOption()=default
AWS_EC2_API RuleOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKeyword(KeywordT &&value)
Definition RuleOption.h:50
RuleOption & WithKeyword(KeywordT &&value)
Definition RuleOption.h:52
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API RuleOption(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SettingsHasBeenSet() const
Definition RuleOption.h:60
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