AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateJobTemplateRequest.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/EMRContainersRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-containers/model/JobTemplateData.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EMRContainers
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EMRCONTAINERS_API CreateJobTemplateRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateJobTemplate"; }
34
35 AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateJobTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateJobTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateJobTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
57 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
58 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
59 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
60 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
61 inline CreateJobTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
62 inline CreateJobTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
63 inline CreateJobTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
65
67
70 inline const JobTemplateData& GetJobTemplateData() const{ return m_jobTemplateData; }
71 inline bool JobTemplateDataHasBeenSet() const { return m_jobTemplateDataHasBeenSet; }
72 inline void SetJobTemplateData(const JobTemplateData& value) { m_jobTemplateDataHasBeenSet = true; m_jobTemplateData = value; }
73 inline void SetJobTemplateData(JobTemplateData&& value) { m_jobTemplateDataHasBeenSet = true; m_jobTemplateData = std::move(value); }
75 inline CreateJobTemplateRequest& WithJobTemplateData(JobTemplateData&& value) { SetJobTemplateData(std::move(value)); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
85 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
86 inline CreateJobTemplateRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
87 inline CreateJobTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
88 inline CreateJobTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
89 inline CreateJobTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
90 inline CreateJobTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
91 inline CreateJobTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
92 inline CreateJobTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
93 inline CreateJobTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
94 inline CreateJobTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
96
98
101 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
102 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
103 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
104 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
105 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
106 inline CreateJobTemplateRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
107 inline CreateJobTemplateRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
108 inline CreateJobTemplateRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
110 private:
111
112 Aws::String m_name;
113 bool m_nameHasBeenSet = false;
114
115 Aws::String m_clientToken;
116 bool m_clientTokenHasBeenSet = false;
117
118 JobTemplateData m_jobTemplateData;
119 bool m_jobTemplateDataHasBeenSet = false;
120
122 bool m_tagsHasBeenSet = false;
123
124 Aws::String m_kmsKeyArn;
125 bool m_kmsKeyArnHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EMRContainers
130} // namespace Aws
CreateJobTemplateRequest & WithName(const char *value)
CreateJobTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateJobTemplateRequest & WithKmsKeyArn(const Aws::String &value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
CreateJobTemplateRequest & WithKmsKeyArn(Aws::String &&value)
CreateJobTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobTemplateRequest & WithClientToken(const Aws::String &value)
CreateJobTemplateRequest & AddTags(Aws::String &&key, const char *value)
CreateJobTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateJobTemplateRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateJobTemplateRequest & WithJobTemplateData(JobTemplateData &&value)
CreateJobTemplateRequest & WithClientToken(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateJobTemplateRequest & WithClientToken(const char *value)
CreateJobTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateJobTemplateRequest & AddTags(const char *key, const char *value)
CreateJobTemplateRequest & WithKmsKeyArn(const char *value)
CreateJobTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateJobTemplateRequest & WithJobTemplateData(const JobTemplateData &value)
CreateJobTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateJobTemplateRequest & WithName(const Aws::String &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