AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
33 public:
34 AWS_SECURITYHUB_API GeneratorDetails() = default;
35 AWS_SECURITYHUB_API GeneratorDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API GeneratorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 GeneratorDetails& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
70 GeneratorDetails& WithDescription(DescriptionT&& value) {
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
83 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
84 template <typename LabelsT = Aws::Vector<Aws::String>>
85 void SetLabels(LabelsT&& value) {
86 m_labelsHasBeenSet = true;
87 m_labels = std::forward<LabelsT>(value);
88 }
89 template <typename LabelsT = Aws::Vector<Aws::String>>
90 GeneratorDetails& WithLabels(LabelsT&& value) {
91 SetLabels(std::forward<LabelsT>(value));
92 return *this;
93 }
94 template <typename LabelsT = Aws::String>
95 GeneratorDetails& AddLabels(LabelsT&& value) {
96 m_labelsHasBeenSet = true;
97 m_labels.emplace_back(std::forward<LabelsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_name;
103
104 Aws::String m_description;
105
107 bool m_nameHasBeenSet = false;
108 bool m_descriptionHasBeenSet = false;
109 bool m_labelsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SecurityHub
114} // 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