AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnumListConfigurationOptions.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 EnumListConfigurationOptions();
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 EnumListConfigurationOptions& AddDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(value); return *this; }
54 inline EnumListConfigurationOptions& AddDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(std::move(value)); return *this; }
55 inline EnumListConfigurationOptions& AddDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.push_back(value); return *this; }
57
59
63 inline int GetMaxItems() const{ return m_maxItems; }
64 inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
65 inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
66 inline EnumListConfigurationOptions& WithMaxItems(int value) { SetMaxItems(value); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
74 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
75 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
76 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
79 inline EnumListConfigurationOptions& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
80 inline EnumListConfigurationOptions& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
81 inline EnumListConfigurationOptions& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
83 private:
84
85 Aws::Vector<Aws::String> m_defaultValue;
86 bool m_defaultValueHasBeenSet = false;
87
88 int m_maxItems;
89 bool m_maxItemsHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_allowedValues;
92 bool m_allowedValuesHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SecurityHub
97} // namespace Aws
EnumListConfigurationOptions & AddAllowedValues(const Aws::String &value)
EnumListConfigurationOptions & AddAllowedValues(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowedValues() const
EnumListConfigurationOptions & WithAllowedValues(const Aws::Vector< Aws::String > &value)
EnumListConfigurationOptions & AddDefaultValue(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EnumListConfigurationOptions & WithDefaultValue(const Aws::Vector< Aws::String > &value)
void SetDefaultValue(const Aws::Vector< Aws::String > &value)
EnumListConfigurationOptions & WithAllowedValues(Aws::Vector< Aws::String > &&value)
EnumListConfigurationOptions & WithDefaultValue(Aws::Vector< Aws::String > &&value)
AWS_SECURITYHUB_API EnumListConfigurationOptions(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetDefaultValue() const
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
EnumListConfigurationOptions & AddDefaultValue(const char *value)
EnumListConfigurationOptions & AddAllowedValues(const char *value)
EnumListConfigurationOptions & AddDefaultValue(const Aws::String &value)
AWS_SECURITYHUB_API EnumListConfigurationOptions & operator=(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