AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobTemplate.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/emr-containers/model/JobTemplateData.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMRContainers
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_EMRCONTAINERS_API JobTemplate();
42 AWS_EMRCONTAINERS_API JobTemplate(Aws::Utils::Json::JsonView jsonValue);
43 AWS_EMRCONTAINERS_API JobTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline JobTemplate& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline JobTemplate& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline JobTemplate& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetId() const{ return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
68 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 inline JobTemplate& WithId(const Aws::String& value) { SetId(value); return *this;}
71 inline JobTemplate& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 inline JobTemplate& WithId(const char* value) { SetId(value); return *this;}
74
76
79 inline const Aws::String& GetArn() const{ return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
82 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
83 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
84 inline JobTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;}
85 inline JobTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
86 inline JobTemplate& WithArn(const char* value) { SetArn(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
96 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
97 inline JobTemplate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
98 inline JobTemplate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
106 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
107 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
108 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
109 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
110 inline JobTemplate& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
111 inline JobTemplate& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
112 inline JobTemplate& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
114
116
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
122 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
123 inline JobTemplate& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
124 inline JobTemplate& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
125 inline JobTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
126 inline JobTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
127 inline JobTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
128 inline JobTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
129 inline JobTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
130 inline JobTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
131 inline JobTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
133
135
138 inline const JobTemplateData& GetJobTemplateData() const{ return m_jobTemplateData; }
139 inline bool JobTemplateDataHasBeenSet() const { return m_jobTemplateDataHasBeenSet; }
140 inline void SetJobTemplateData(const JobTemplateData& value) { m_jobTemplateDataHasBeenSet = true; m_jobTemplateData = value; }
141 inline void SetJobTemplateData(JobTemplateData&& value) { m_jobTemplateDataHasBeenSet = true; m_jobTemplateData = std::move(value); }
142 inline JobTemplate& WithJobTemplateData(const JobTemplateData& value) { SetJobTemplateData(value); return *this;}
143 inline JobTemplate& WithJobTemplateData(JobTemplateData&& value) { SetJobTemplateData(std::move(value)); return *this;}
145
147
150 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
151 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
152 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
153 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
154 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
155 inline JobTemplate& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
156 inline JobTemplate& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
157 inline JobTemplate& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
159
161
164 inline const Aws::String& GetDecryptionError() const{ return m_decryptionError; }
165 inline bool DecryptionErrorHasBeenSet() const { return m_decryptionErrorHasBeenSet; }
166 inline void SetDecryptionError(const Aws::String& value) { m_decryptionErrorHasBeenSet = true; m_decryptionError = value; }
167 inline void SetDecryptionError(Aws::String&& value) { m_decryptionErrorHasBeenSet = true; m_decryptionError = std::move(value); }
168 inline void SetDecryptionError(const char* value) { m_decryptionErrorHasBeenSet = true; m_decryptionError.assign(value); }
169 inline JobTemplate& WithDecryptionError(const Aws::String& value) { SetDecryptionError(value); return *this;}
170 inline JobTemplate& WithDecryptionError(Aws::String&& value) { SetDecryptionError(std::move(value)); return *this;}
171 inline JobTemplate& WithDecryptionError(const char* value) { SetDecryptionError(value); return *this;}
173 private:
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 Aws::String m_id;
179 bool m_idHasBeenSet = false;
180
181 Aws::String m_arn;
182 bool m_arnHasBeenSet = false;
183
184 Aws::Utils::DateTime m_createdAt;
185 bool m_createdAtHasBeenSet = false;
186
187 Aws::String m_createdBy;
188 bool m_createdByHasBeenSet = false;
189
191 bool m_tagsHasBeenSet = false;
192
193 JobTemplateData m_jobTemplateData;
194 bool m_jobTemplateDataHasBeenSet = false;
195
196 Aws::String m_kmsKeyArn;
197 bool m_kmsKeyArnHasBeenSet = false;
198
199 Aws::String m_decryptionError;
200 bool m_decryptionErrorHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace EMRContainers
205} // namespace Aws
void SetDecryptionError(Aws::String &&value)
void SetName(const Aws::String &value)
Definition JobTemplate.h:53
AWS_EMRCONTAINERS_API JobTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
JobTemplate & WithId(const char *value)
Definition JobTemplate.h:72
JobTemplate & WithJobTemplateData(JobTemplateData &&value)
JobTemplate & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition JobTemplate.h:98
void SetKmsKeyArn(const Aws::String &value)
void SetArn(const Aws::String &value)
Definition JobTemplate.h:81
JobTemplate & AddTags(Aws::String &&key, const Aws::String &value)
JobTemplate & AddTags(Aws::String &&key, Aws::String &&value)
JobTemplate & WithArn(Aws::String &&value)
Definition JobTemplate.h:85
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition JobTemplate.h:95
JobTemplate & WithName(Aws::String &&value)
Definition JobTemplate.h:57
void SetDecryptionError(const char *value)
void SetCreatedBy(Aws::String &&value)
AWS_EMRCONTAINERS_API JobTemplate(Aws::Utils::Json::JsonView jsonValue)
JobTemplate & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetId(const Aws::String &value)
Definition JobTemplate.h:67
JobTemplate & WithJobTemplateData(const JobTemplateData &value)
void SetCreatedBy(const Aws::String &value)
void SetName(Aws::String &&value)
Definition JobTemplate.h:54
JobTemplate & AddTags(Aws::String &&key, const char *value)
const Aws::String & GetName() const
Definition JobTemplate.h:51
const JobTemplateData & GetJobTemplateData() const
void SetDecryptionError(const Aws::String &value)
JobTemplate & AddTags(const char *key, const char *value)
JobTemplate & WithDecryptionError(Aws::String &&value)
void SetJobTemplateData(const JobTemplateData &value)
JobTemplate & AddTags(const Aws::String &key, const Aws::String &value)
JobTemplate & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition JobTemplate.h:96
const Aws::String & GetCreatedBy() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetDecryptionError() const
void SetCreatedBy(const char *value)
void SetName(const char *value)
Definition JobTemplate.h:55
JobTemplate & WithName(const char *value)
Definition JobTemplate.h:58
void SetKmsKeyArn(const char *value)
AWS_EMRCONTAINERS_API JobTemplate()
JobTemplate & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetId(Aws::String &&value)
Definition JobTemplate.h:68
const Aws::String & GetId() const
Definition JobTemplate.h:65
JobTemplate & WithDecryptionError(const Aws::String &value)
void SetArn(Aws::String &&value)
Definition JobTemplate.h:82
JobTemplate & WithCreatedBy(Aws::String &&value)
JobTemplate & WithId(const Aws::String &value)
Definition JobTemplate.h:70
void SetKmsKeyArn(Aws::String &&value)
JobTemplate & WithKmsKeyArn(const Aws::String &value)
JobTemplate & WithArn(const char *value)
Definition JobTemplate.h:86
const Aws::String & GetKmsKeyArn() const
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobTemplate.h:93
JobTemplate & WithDecryptionError(const char *value)
JobTemplate & WithKmsKeyArn(Aws::String &&value)
JobTemplate & WithKmsKeyArn(const char *value)
JobTemplate & WithArn(const Aws::String &value)
Definition JobTemplate.h:84
JobTemplate & WithCreatedBy(const char *value)
JobTemplate & AddTags(const Aws::String &key, Aws::String &&value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
JobTemplate & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition JobTemplate.h:97
JobTemplate & WithId(Aws::String &&value)
Definition JobTemplate.h:71
const Aws::String & GetArn() const
Definition JobTemplate.h:79
JobTemplate & WithCreatedBy(const Aws::String &value)
JobTemplate & WithName(const Aws::String &value)
Definition JobTemplate.h:56
void SetJobTemplateData(JobTemplateData &&value)
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