AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnumConfigurationOptions.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 EnumConfigurationOptions();
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
47 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
48 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
49 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
50 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
51 inline EnumConfigurationOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
52 inline EnumConfigurationOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
53 inline EnumConfigurationOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
61 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
62 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
63 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
65 inline EnumConfigurationOptions& WithAllowedValues(Aws::Vector<Aws::String>&& value) { SetAllowedValues(std::move(value)); return *this;}
66 inline EnumConfigurationOptions& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
67 inline EnumConfigurationOptions& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
68 inline EnumConfigurationOptions& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
70 private:
71
72 Aws::String m_defaultValue;
73 bool m_defaultValueHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_allowedValues;
76 bool m_allowedValuesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SecurityHub
81} // namespace Aws
EnumConfigurationOptions & WithAllowedValues(Aws::Vector< Aws::String > &&value)
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAllowedValues() const
EnumConfigurationOptions & WithDefaultValue(const char *value)
AWS_SECURITYHUB_API EnumConfigurationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
EnumConfigurationOptions & AddAllowedValues(const Aws::String &value)
EnumConfigurationOptions & WithDefaultValue(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
EnumConfigurationOptions & AddAllowedValues(Aws::String &&value)
EnumConfigurationOptions & AddAllowedValues(const char *value)
void SetAllowedValues(Aws::Vector< Aws::String > &&value)
AWS_SECURITYHUB_API EnumConfigurationOptions(Aws::Utils::Json::JsonView jsonValue)
EnumConfigurationOptions & WithAllowedValues(const Aws::Vector< Aws::String > &value)
EnumConfigurationOptions & WithDefaultValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue