AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GeneratorDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
34 public:
35 AWS_SECURITYHUB_API GeneratorDetails() = default;
36 AWS_SECURITYHUB_API GeneratorDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API GeneratorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 GeneratorDetails& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 GeneratorDetails& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
84 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
85 template <typename LabelsT = Aws::Vector<Aws::String>>
86 void SetLabels(LabelsT&& value) {
87 m_labelsHasBeenSet = true;
88 m_labels = std::forward<LabelsT>(value);
89 }
90 template <typename LabelsT = Aws::Vector<Aws::String>>
91 GeneratorDetails& WithLabels(LabelsT&& value) {
92 SetLabels(std::forward<LabelsT>(value));
93 return *this;
94 }
95 template <typename LabelsT = Aws::String>
96 GeneratorDetails& AddLabels(LabelsT&& value) {
97 m_labelsHasBeenSet = true;
98 m_labels.emplace_back(std::forward<LabelsT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_name;
104
105 Aws::String m_description;
106
108 bool m_nameHasBeenSet = false;
109 bool m_descriptionHasBeenSet = false;
110 bool m_labelsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace SecurityHub
115} // namespace Aws
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
GeneratorDetails & AddLabels(LabelsT &&value)
GeneratorDetails & WithName(NameT &&value)
AWS_SECURITYHUB_API GeneratorDetails(Aws::Utils::Json::JsonView jsonValue)
GeneratorDetails & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetLabels() const
AWS_SECURITYHUB_API GeneratorDetails()=default
AWS_SECURITYHUB_API GeneratorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
GeneratorDetails & WithLabels(LabelsT &&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