AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ScriptRuleStatement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/license-manager/LicenseManager_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LicenseManager {
20namespace Model {
21
29 public:
30 AWS_LICENSEMANAGER_API ScriptRuleStatement() = default;
31 AWS_LICENSEMANAGER_API ScriptRuleStatement(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LICENSEMANAGER_API ScriptRuleStatement& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetKeyToMatch() const { return m_keyToMatch; }
40 inline bool KeyToMatchHasBeenSet() const { return m_keyToMatchHasBeenSet; }
41 template <typename KeyToMatchT = Aws::String>
42 void SetKeyToMatch(KeyToMatchT&& value) {
43 m_keyToMatchHasBeenSet = true;
44 m_keyToMatch = std::forward<KeyToMatchT>(value);
45 }
46 template <typename KeyToMatchT = Aws::String>
47 ScriptRuleStatement& WithKeyToMatch(KeyToMatchT&& value) {
48 SetKeyToMatch(std::forward<KeyToMatchT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetScript() const { return m_script; }
58 inline bool ScriptHasBeenSet() const { return m_scriptHasBeenSet; }
59 template <typename ScriptT = Aws::String>
60 void SetScript(ScriptT&& value) {
61 m_scriptHasBeenSet = true;
62 m_script = std::forward<ScriptT>(value);
63 }
64 template <typename ScriptT = Aws::String>
65 ScriptRuleStatement& WithScript(ScriptT&& value) {
66 SetScript(std::forward<ScriptT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_keyToMatch;
72
73 Aws::String m_script;
74 bool m_keyToMatchHasBeenSet = false;
75 bool m_scriptHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace LicenseManager
80} // namespace Aws
ScriptRuleStatement & WithKeyToMatch(KeyToMatchT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API ScriptRuleStatement()=default
AWS_LICENSEMANAGER_API ScriptRuleStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
ScriptRuleStatement & WithScript(ScriptT &&value)
AWS_LICENSEMANAGER_API ScriptRuleStatement(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue