/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This entity describes a job template. Job template stores values of
* StartJobRun API request in a template and can be used to start a job run. Job
* template allows two use cases: avoid repeating recurring StartJobRun API request
* values, enforcing certain values in StartJobRun API request.See
* Also:
AWS
* API Reference
The name of the job template.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the job template.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the job template.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the job template.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the job template.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the job template.
*/ inline JobTemplate& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the job template.
*/ inline JobTemplate& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the job template.
*/ inline JobTemplate& WithName(const char* value) { SetName(value); return *this;} /** *The ID of the job template.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the job template.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the job template.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the job template.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the job template.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the job template.
*/ inline JobTemplate& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the job template.
*/ inline JobTemplate& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the job template.
*/ inline JobTemplate& WithId(const char* value) { SetId(value); return *this;} /** *The ARN of the job template.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the job template.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the job template.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the job template.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the job template.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the job template.
*/ inline JobTemplate& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the job template.
*/ inline JobTemplate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the job template.
*/ inline JobTemplate& WithArn(const char* value) { SetArn(value); return *this;} /** *The date and time when the job template was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time when the job template was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time when the job template was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time when the job template was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time when the job template was created.
*/ inline JobTemplate& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time when the job template was created.
*/ inline JobTemplate& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The user who created the job template.
*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *The user who created the job template.
*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *The user who created the job template.
*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *The user who created the job template.
*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *The user who created the job template.
*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *The user who created the job template.
*/ inline JobTemplate& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *The user who created the job template.
*/ inline JobTemplate& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *The user who created the job template.
*/ inline JobTemplate& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *The tags assigned to the job template.
*/ inline const Aws::MapThe tags assigned to the job template.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags assigned to the job template.
*/ inline void SetTags(const Aws::MapThe tags assigned to the job template.
*/ inline void SetTags(Aws::MapThe tags assigned to the job template.
*/ inline JobTemplate& WithTags(const Aws::MapThe tags assigned to the job template.
*/ inline JobTemplate& WithTags(Aws::MapThe tags assigned to the job template.
*/ inline JobTemplate& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags assigned to the job template.
*/ inline JobTemplate& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags assigned to the job template.
*/ inline JobTemplate& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags assigned to the job template.
*/ inline JobTemplate& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags assigned to the job template.
*/ inline JobTemplate& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags assigned to the job template.
*/ inline JobTemplate& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags assigned to the job template.
*/ inline JobTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The job template data which holds values of StartJobRun API request.
*/ inline const JobTemplateData& GetJobTemplateData() const{ return m_jobTemplateData; } /** *The job template data which holds values of StartJobRun API request.
*/ inline bool JobTemplateDataHasBeenSet() const { return m_jobTemplateDataHasBeenSet; } /** *The job template data which holds values of StartJobRun API request.
*/ inline void SetJobTemplateData(const JobTemplateData& value) { m_jobTemplateDataHasBeenSet = true; m_jobTemplateData = value; } /** *The job template data which holds values of StartJobRun API request.
*/ inline void SetJobTemplateData(JobTemplateData&& value) { m_jobTemplateDataHasBeenSet = true; m_jobTemplateData = std::move(value); } /** *The job template data which holds values of StartJobRun API request.
*/ inline JobTemplate& WithJobTemplateData(const JobTemplateData& value) { SetJobTemplateData(value); return *this;} /** *The job template data which holds values of StartJobRun API request.
*/ inline JobTemplate& WithJobTemplateData(JobTemplateData&& value) { SetJobTemplateData(std::move(value)); return *this;} /** *The KMS key ARN used to encrypt the job template.
*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *The KMS key ARN used to encrypt the job template.
*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *The KMS key ARN used to encrypt the job template.
*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *The KMS key ARN used to encrypt the job template.
*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *The KMS key ARN used to encrypt the job template.
*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *The KMS key ARN used to encrypt the job template.
*/ inline JobTemplate& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *The KMS key ARN used to encrypt the job template.
*/ inline JobTemplate& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *The KMS key ARN used to encrypt the job template.
*/ inline JobTemplate& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *The error message in case the decryption of job template fails.
*/ inline const Aws::String& GetDecryptionError() const{ return m_decryptionError; } /** *The error message in case the decryption of job template fails.
*/ inline bool DecryptionErrorHasBeenSet() const { return m_decryptionErrorHasBeenSet; } /** *The error message in case the decryption of job template fails.
*/ inline void SetDecryptionError(const Aws::String& value) { m_decryptionErrorHasBeenSet = true; m_decryptionError = value; } /** *The error message in case the decryption of job template fails.
*/ inline void SetDecryptionError(Aws::String&& value) { m_decryptionErrorHasBeenSet = true; m_decryptionError = std::move(value); } /** *The error message in case the decryption of job template fails.
*/ inline void SetDecryptionError(const char* value) { m_decryptionErrorHasBeenSet = true; m_decryptionError.assign(value); } /** *The error message in case the decryption of job template fails.
*/ inline JobTemplate& WithDecryptionError(const Aws::String& value) { SetDecryptionError(value); return *this;} /** *The error message in case the decryption of job template fails.
*/ inline JobTemplate& WithDecryptionError(Aws::String&& value) { SetDecryptionError(std::move(value)); return *this;} /** *The error message in case the decryption of job template fails.
*/ inline JobTemplate& WithDecryptionError(const char* value) { SetDecryptionError(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_createdBy; bool m_createdByHasBeenSet = false; Aws::Map