AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyword(const Aws::String& value) { m_keywordHasBeenSet = true; m_keyword = value; }
50 inline void SetKeyword(Aws::String&& value) { m_keywordHasBeenSet = true; m_keyword = std::move(value); }
51 inline void SetKeyword(const char* value) { m_keywordHasBeenSet = true; m_keyword.assign(value); }
52 inline RuleOption& WithKeyword(const Aws::String& value) { SetKeyword(value); return *this;}
53 inline RuleOption& WithKeyword(Aws::String&& value) { SetKeyword(std::move(value)); return *this;}
54 inline RuleOption& WithKeyword(const char* value) { SetKeyword(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetSettings() const{ return m_settings; }
62 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
63 inline void SetSettings(const Aws::Vector<Aws::String>& value) { m_settingsHasBeenSet = true; m_settings = value; }
64 inline void SetSettings(Aws::Vector<Aws::String>&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
65 inline RuleOption& WithSettings(const Aws::Vector<Aws::String>& value) { SetSettings(value); return *this;}
66 inline RuleOption& WithSettings(Aws::Vector<Aws::String>&& value) { SetSettings(std::move(value)); return *this;}
67 inline RuleOption& AddSettings(const Aws::String& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
68 inline RuleOption& AddSettings(Aws::String&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; }
69 inline RuleOption& AddSettings(const char* value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; }
71 private:
72
73 Aws::String m_keyword;
74 bool m_keywordHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_settings;
77 bool m_settingsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
void SetKeyword(Aws::String &&value)
Definition RuleOption.h:50
RuleOption & AddSettings(const char *value)
Definition RuleOption.h:69
RuleOption & AddSettings(Aws::String &&value)
Definition RuleOption.h:68
RuleOption & AddSettings(const Aws::String &value)
Definition RuleOption.h:67
RuleOption & WithSettings(const Aws::Vector< Aws::String > &value)
Definition RuleOption.h:65
bool KeywordHasBeenSet() const
Definition RuleOption.h:48
RuleOption & WithKeyword(const char *value)
Definition RuleOption.h:54
void SetSettings(Aws::Vector< Aws::String > &&value)
Definition RuleOption.h:64
const Aws::Vector< Aws::String > & GetSettings() const
Definition RuleOption.h:61
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetKeyword(const Aws::String &value)
Definition RuleOption.h:49
const Aws::String & GetKeyword() const
Definition RuleOption.h:47
void SetKeyword(const char *value)
Definition RuleOption.h:51
AWS_EC2_API RuleOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RuleOption & WithKeyword(const Aws::String &value)
Definition RuleOption.h:52
RuleOption & WithSettings(Aws::Vector< Aws::String > &&value)
Definition RuleOption.h:66
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)
void SetSettings(const Aws::Vector< Aws::String > &value)
Definition RuleOption.h:63
bool SettingsHasBeenSet() const
Definition RuleOption.h:62
RuleOption & WithKeyword(Aws::String &&value)
Definition RuleOption.h:53
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