AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CustomPattern.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WorkSpacesWeb {
20namespace Model {
21
29 public:
30 AWS_WORKSPACESWEB_API CustomPattern() = default;
31 AWS_WORKSPACESWEB_API CustomPattern(Aws::Utils::Json::JsonView jsonValue);
32 AWS_WORKSPACESWEB_API CustomPattern& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetPatternName() const { return m_patternName; }
40 inline bool PatternNameHasBeenSet() const { return m_patternNameHasBeenSet; }
41 template <typename PatternNameT = Aws::String>
42 void SetPatternName(PatternNameT&& value) {
43 m_patternNameHasBeenSet = true;
44 m_patternName = std::forward<PatternNameT>(value);
45 }
46 template <typename PatternNameT = Aws::String>
47 CustomPattern& WithPatternName(PatternNameT&& value) {
48 SetPatternName(std::forward<PatternNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetPatternRegex() const { return m_patternRegex; }
60 inline bool PatternRegexHasBeenSet() const { return m_patternRegexHasBeenSet; }
61 template <typename PatternRegexT = Aws::String>
62 void SetPatternRegex(PatternRegexT&& value) {
63 m_patternRegexHasBeenSet = true;
64 m_patternRegex = std::forward<PatternRegexT>(value);
65 }
66 template <typename PatternRegexT = Aws::String>
67 CustomPattern& WithPatternRegex(PatternRegexT&& value) {
68 SetPatternRegex(std::forward<PatternRegexT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPatternDescription() const { return m_patternDescription; }
78 inline bool PatternDescriptionHasBeenSet() const { return m_patternDescriptionHasBeenSet; }
79 template <typename PatternDescriptionT = Aws::String>
80 void SetPatternDescription(PatternDescriptionT&& value) {
81 m_patternDescriptionHasBeenSet = true;
82 m_patternDescription = std::forward<PatternDescriptionT>(value);
83 }
84 template <typename PatternDescriptionT = Aws::String>
85 CustomPattern& WithPatternDescription(PatternDescriptionT&& value) {
86 SetPatternDescription(std::forward<PatternDescriptionT>(value));
87 return *this;
88 }
90
92
100 inline const Aws::String& GetKeywordRegex() const { return m_keywordRegex; }
101 inline bool KeywordRegexHasBeenSet() const { return m_keywordRegexHasBeenSet; }
102 template <typename KeywordRegexT = Aws::String>
103 void SetKeywordRegex(KeywordRegexT&& value) {
104 m_keywordRegexHasBeenSet = true;
105 m_keywordRegex = std::forward<KeywordRegexT>(value);
106 }
107 template <typename KeywordRegexT = Aws::String>
108 CustomPattern& WithKeywordRegex(KeywordRegexT&& value) {
109 SetKeywordRegex(std::forward<KeywordRegexT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_patternName;
115
116 Aws::String m_patternRegex;
117
118 Aws::String m_patternDescription;
119
120 Aws::String m_keywordRegex;
121 bool m_patternNameHasBeenSet = false;
122 bool m_patternRegexHasBeenSet = false;
123 bool m_patternDescriptionHasBeenSet = false;
124 bool m_keywordRegexHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace WorkSpacesWeb
129} // namespace Aws
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPatternName(PatternNameT &&value)
void SetPatternRegex(PatternRegexT &&value)
CustomPattern & WithPatternName(PatternNameT &&value)
AWS_WORKSPACESWEB_API CustomPattern()=default
CustomPattern & WithPatternRegex(PatternRegexT &&value)
void SetKeywordRegex(KeywordRegexT &&value)
AWS_WORKSPACESWEB_API CustomPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACESWEB_API CustomPattern(Aws::Utils::Json::JsonView jsonValue)
CustomPattern & WithPatternDescription(PatternDescriptionT &&value)
const Aws::String & GetPatternDescription() const
CustomPattern & WithKeywordRegex(KeywordRegexT &&value)
const Aws::String & GetKeywordRegex() const
const Aws::String & GetPatternRegex() const
const Aws::String & GetPatternName() const
void SetPatternDescription(PatternDescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue