AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/RuleType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudDirectory
24{
25namespace Model
26{
27
34 class Rule
35 {
36 public:
37 AWS_CLOUDDIRECTORY_API Rule();
38 AWS_CLOUDDIRECTORY_API Rule(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDDIRECTORY_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const RuleType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const RuleType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(RuleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline Rule& WithType(const RuleType& value) { SetType(value); return *this;}
52 inline Rule& WithType(RuleType&& value) { SetType(std::move(value)); return *this;}
54
56
59 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
60 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
61 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
62 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
63 inline Rule& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
64 inline Rule& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
65 inline Rule& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
66 inline Rule& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
67 inline Rule& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
68 inline Rule& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
69 inline Rule& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
70 inline Rule& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
71 inline Rule& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
73 private:
74
75 RuleType m_type;
76 bool m_typeHasBeenSet = false;
77
79 bool m_parametersHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CloudDirectory
84} // namespace Aws
Rule & AddParameters(Aws::String &&key, const Aws::String &value)
Definition Rule.h:66
AWS_CLOUDDIRECTORY_API Rule()
Rule & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Rule.h:63
Rule & AddParameters(Aws::String &&key, Aws::String &&value)
Definition Rule.h:68
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition Rule.h:59
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Rule.h:62
Rule & AddParameters(Aws::String &&key, const char *value)
Definition Rule.h:70
Rule & AddParameters(const Aws::String &key, const Aws::String &value)
Definition Rule.h:65
void SetType(RuleType &&value)
Definition Rule.h:50
Rule & WithType(const RuleType &value)
Definition Rule.h:51
Rule & AddParameters(const char *key, const char *value)
Definition Rule.h:71
Rule & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition Rule.h:64
bool TypeHasBeenSet() const
Definition Rule.h:48
void SetType(const RuleType &value)
Definition Rule.h:49
bool ParametersHasBeenSet() const
Definition Rule.h:60
Rule & AddParameters(const Aws::String &key, Aws::String &&value)
Definition Rule.h:67
Rule & WithType(RuleType &&value)
Definition Rule.h:52
AWS_CLOUDDIRECTORY_API Rule(Aws::Utils::Json::JsonView jsonValue)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition Rule.h:61
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
Rule & AddParameters(const char *key, Aws::String &&value)
Definition Rule.h:69
AWS_CLOUDDIRECTORY_API Rule & operator=(Aws::Utils::Json::JsonView jsonValue)
const RuleType & GetType() const
Definition Rule.h:47
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue