AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StringListConfigurationOptions.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API StringListConfigurationOptions();
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetDefaultValue() const{ return m_defaultValue; }
48 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
49 inline void SetDefaultValue(const Aws::Vector<Aws::String>& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
50 inline void SetDefaultValue(Aws::Vector<Aws::String>&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
53 inline StringListConfigurationOptions& AddDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(value); return *this; }
54 inline StringListConfigurationOptions& AddDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(std::move(value)); return *this; }
55 inline StringListConfigurationOptions& AddDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(value); return *this; }
57
59
63 inline const Aws::String& GetRe2Expression() const{ return m_re2Expression; }
64 inline bool Re2ExpressionHasBeenSet() const { return m_re2ExpressionHasBeenSet; }
65 inline void SetRe2Expression(const Aws::String& value) { m_re2ExpressionHasBeenSet = true; m_re2Expression = value; }
66 inline void SetRe2Expression(Aws::String&& value) { m_re2ExpressionHasBeenSet = true; m_re2Expression = std::move(value); }
67 inline void SetRe2Expression(const char* value) { m_re2ExpressionHasBeenSet = true; m_re2Expression.assign(value); }
69 inline StringListConfigurationOptions& WithRe2Expression(Aws::String&& value) { SetRe2Expression(std::move(value)); return *this;}
70 inline StringListConfigurationOptions& WithRe2Expression(const char* value) { SetRe2Expression(value); return *this;}
72
74
78 inline int GetMaxItems() const{ return m_maxItems; }
79 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
80 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
81 inline StringListConfigurationOptions& WithMaxItems(int value) { SetMaxItems(value); return *this;}
83
85
88 inline const Aws::String& GetExpressionDescription() const{ return m_expressionDescription; }
89 inline bool ExpressionDescriptionHasBeenSet() const { return m_expressionDescriptionHasBeenSet; }
90 inline void SetExpressionDescription(const Aws::String& value) { m_expressionDescriptionHasBeenSet = true; m_expressionDescription = value; }
91 inline void SetExpressionDescription(Aws::String&& value) { m_expressionDescriptionHasBeenSet = true; m_expressionDescription = std::move(value); }
92 inline void SetExpressionDescription(const char* value) { m_expressionDescriptionHasBeenSet = true; m_expressionDescription.assign(value); }
95 inline StringListConfigurationOptions& WithExpressionDescription(const char* value) { SetExpressionDescription(value); return *this;}
97 private:
98
99 Aws::Vector<Aws::String> m_defaultValue;
100 bool m_defaultValueHasBeenSet = false;
101
102 Aws::String m_re2Expression;
103 bool m_re2ExpressionHasBeenSet = false;
104
105 int m_maxItems;
106 bool m_maxItemsHasBeenSet = false;
107
108 Aws::String m_expressionDescription;
109 bool m_expressionDescriptionHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SecurityHub
114} // namespace Aws
StringListConfigurationOptions & WithExpressionDescription(Aws::String &&value)
StringListConfigurationOptions & WithExpressionDescription(const char *value)
AWS_SECURITYHUB_API StringListConfigurationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
StringListConfigurationOptions & WithRe2Expression(const char *value)
void SetDefaultValue(const Aws::Vector< Aws::String > &value)
StringListConfigurationOptions & WithRe2Expression(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
StringListConfigurationOptions & WithExpressionDescription(const Aws::String &value)
StringListConfigurationOptions & WithDefaultValue(const Aws::Vector< Aws::String > &value)
StringListConfigurationOptions & WithDefaultValue(Aws::Vector< Aws::String > &&value)
StringListConfigurationOptions & AddDefaultValue(const Aws::String &value)
StringListConfigurationOptions & WithRe2Expression(Aws::String &&value)
StringListConfigurationOptions & AddDefaultValue(Aws::String &&value)
StringListConfigurationOptions & AddDefaultValue(const char *value)
AWS_SECURITYHUB_API StringListConfigurationOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue