/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EMRContainers { namespace Model { /** */ class CreateJobTemplateRequest : public EMRContainersRequest { public: AWS_EMRCONTAINERS_API CreateJobTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateJobTemplate"; } AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override; /** *

The specified name of the job template.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The specified name of the job template.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The specified name of the job template.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The specified name of the job template.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The specified name of the job template.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The specified name of the job template.

*/ inline CreateJobTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The specified name of the job template.

*/ inline CreateJobTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The specified name of the job template.

*/ inline CreateJobTemplateRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The client token of the job template.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token of the job template.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token of the job template.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token of the job template.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token of the job template.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token of the job template.

*/ inline CreateJobTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token of the job template.

*/ inline CreateJobTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token of the job template.

*/ inline CreateJobTemplateRequest& WithClientToken(const char* value) { SetClientToken(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 CreateJobTemplateRequest& WithJobTemplateData(const JobTemplateData& value) { SetJobTemplateData(value); return *this;} /** *

The job template data which holds values of StartJobRun API request.

*/ inline CreateJobTemplateRequest& WithJobTemplateData(JobTemplateData&& value) { SetJobTemplateData(std::move(value)); return *this;} /** *

The tags that are associated with the job template.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags that are associated with the job template.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags that are associated with the job template.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that are associated with the job template.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that are associated with the job template.

*/ inline CreateJobTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, 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 CreateJobTemplateRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The KMS key ARN used to encrypt the job template.

*/ inline CreateJobTemplateRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The KMS key ARN used to encrypt the job template.

*/ inline CreateJobTemplateRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; JobTemplateData m_jobTemplateData; bool m_jobTemplateDataHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws