AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EksMetadata.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.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 Batch
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_BATCH_API EksMetadata() = default;
41 AWS_BATCH_API EksMetadata(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::Map<Aws::String, Aws::String>& GetLabels() const { return m_labels; }
54 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
55 template<typename LabelsT = Aws::Map<Aws::String, Aws::String>>
56 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
57 template<typename LabelsT = Aws::Map<Aws::String, Aws::String>>
58 EksMetadata& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
59 template<typename LabelsKeyT = Aws::String, typename LabelsValueT = Aws::String>
60 EksMetadata& AddLabels(LabelsKeyT&& key, LabelsValueT&& value) {
61 m_labelsHasBeenSet = true; m_labels.emplace(std::forward<LabelsKeyT>(key), std::forward<LabelsValueT>(value)); return *this;
62 }
64
66
79 inline const Aws::Map<Aws::String, Aws::String>& GetAnnotations() const { return m_annotations; }
80 inline bool AnnotationsHasBeenSet() const { return m_annotationsHasBeenSet; }
81 template<typename AnnotationsT = Aws::Map<Aws::String, Aws::String>>
82 void SetAnnotations(AnnotationsT&& value) { m_annotationsHasBeenSet = true; m_annotations = std::forward<AnnotationsT>(value); }
83 template<typename AnnotationsT = Aws::Map<Aws::String, Aws::String>>
84 EksMetadata& WithAnnotations(AnnotationsT&& value) { SetAnnotations(std::forward<AnnotationsT>(value)); return *this;}
85 template<typename AnnotationsKeyT = Aws::String, typename AnnotationsValueT = Aws::String>
86 EksMetadata& AddAnnotations(AnnotationsKeyT&& key, AnnotationsValueT&& value) {
87 m_annotationsHasBeenSet = true; m_annotations.emplace(std::forward<AnnotationsKeyT>(key), std::forward<AnnotationsValueT>(value)); return *this;
88 }
90
92
110 inline const Aws::String& GetNamespace() const { return m_namespace; }
111 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
112 template<typename NamespaceT = Aws::String>
113 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
114 template<typename NamespaceT = Aws::String>
115 EksMetadata& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
117 private:
118
120 bool m_labelsHasBeenSet = false;
121
123 bool m_annotationsHasBeenSet = false;
124
125 Aws::String m_namespace;
126 bool m_namespaceHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Batch
131} // namespace Aws
EksMetadata & AddAnnotations(AnnotationsKeyT &&key, AnnotationsValueT &&value)
Definition EksMetadata.h:86
const Aws::Map< Aws::String, Aws::String > & GetLabels() const
Definition EksMetadata.h:53
EksMetadata & WithNamespace(NamespaceT &&value)
EksMetadata & WithAnnotations(AnnotationsT &&value)
Definition EksMetadata.h:84
EksMetadata & AddLabels(LabelsKeyT &&key, LabelsValueT &&value)
Definition EksMetadata.h:60
const Aws::Map< Aws::String, Aws::String > & GetAnnotations() const
Definition EksMetadata.h:79
AWS_BATCH_API EksMetadata()=default
const Aws::String & GetNamespace() const
void SetNamespace(NamespaceT &&value)
AWS_BATCH_API EksMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API EksMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetLabels(LabelsT &&value)
Definition EksMetadata.h:56
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksMetadata & WithLabels(LabelsT &&value)
Definition EksMetadata.h:58
void SetAnnotations(AnnotationsT &&value)
Definition EksMetadata.h:82
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue