AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DefaultValueT = Aws::Vector<Aws::String>>
50 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
51 template<typename DefaultValueT = Aws::Vector<Aws::String>>
52 StringListConfigurationOptions& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
53 template<typename DefaultValueT = Aws::String>
54 StringListConfigurationOptions& AddDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue.emplace_back(std::forward<DefaultValueT>(value)); return *this; }
56
58
62 inline const Aws::String& GetRe2Expression() const { return m_re2Expression; }
63 inline bool Re2ExpressionHasBeenSet() const { return m_re2ExpressionHasBeenSet; }
64 template<typename Re2ExpressionT = Aws::String>
65 void SetRe2Expression(Re2ExpressionT&& value) { m_re2ExpressionHasBeenSet = true; m_re2Expression = std::forward<Re2ExpressionT>(value); }
66 template<typename Re2ExpressionT = Aws::String>
67 StringListConfigurationOptions& WithRe2Expression(Re2ExpressionT&& value) { SetRe2Expression(std::forward<Re2ExpressionT>(value)); return *this;}
69
71
75 inline int GetMaxItems() const { return m_maxItems; }
76 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
77 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
78 inline StringListConfigurationOptions& WithMaxItems(int value) { SetMaxItems(value); return *this;}
80
82
85 inline const Aws::String& GetExpressionDescription() const { return m_expressionDescription; }
86 inline bool ExpressionDescriptionHasBeenSet() const { return m_expressionDescriptionHasBeenSet; }
87 template<typename ExpressionDescriptionT = Aws::String>
88 void SetExpressionDescription(ExpressionDescriptionT&& value) { m_expressionDescriptionHasBeenSet = true; m_expressionDescription = std::forward<ExpressionDescriptionT>(value); }
89 template<typename ExpressionDescriptionT = Aws::String>
90 StringListConfigurationOptions& WithExpressionDescription(ExpressionDescriptionT&& value) { SetExpressionDescription(std::forward<ExpressionDescriptionT>(value)); return *this;}
92 private:
93
94 Aws::Vector<Aws::String> m_defaultValue;
95 bool m_defaultValueHasBeenSet = false;
96
97 Aws::String m_re2Expression;
98 bool m_re2ExpressionHasBeenSet = false;
99
100 int m_maxItems{0};
101 bool m_maxItemsHasBeenSet = false;
102
103 Aws::String m_expressionDescription;
104 bool m_expressionDescriptionHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SecurityHub
109} // namespace Aws
StringListConfigurationOptions & AddDefaultValue(DefaultValueT &&value)
StringListConfigurationOptions & WithDefaultValue(DefaultValueT &&value)
AWS_SECURITYHUB_API StringListConfigurationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API StringListConfigurationOptions()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
StringListConfigurationOptions & WithRe2Expression(Re2ExpressionT &&value)
StringListConfigurationOptions & WithExpressionDescription(ExpressionDescriptionT &&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