AWS SDK for C++  0.14.3
AWS SDK for C++
RunJobFlowRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
27 
28 namespace Aws
29 {
30 namespace EMR
31 {
32 namespace Model
33 {
34 
39  {
40  public:
42  Aws::String SerializePayload() const override;
43 
44  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline RunJobFlowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline RunJobFlowRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline RunJobFlowRequest& WithName(const char* value) { SetName(value); return *this;}
80 
85  inline const Aws::String& GetLogUri() const{ return m_logUri; }
86 
91  inline void SetLogUri(const Aws::String& value) { m_logUriHasBeenSet = true; m_logUri = value; }
92 
97  inline void SetLogUri(Aws::String&& value) { m_logUriHasBeenSet = true; m_logUri = value; }
98 
103  inline void SetLogUri(const char* value) { m_logUriHasBeenSet = true; m_logUri.assign(value); }
104 
109  inline RunJobFlowRequest& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;}
110 
115  inline RunJobFlowRequest& WithLogUri(Aws::String&& value) { SetLogUri(value); return *this;}
116 
121  inline RunJobFlowRequest& WithLogUri(const char* value) { SetLogUri(value); return *this;}
122 
126  inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
127 
131  inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
132 
136  inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
137 
141  inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
142 
146  inline RunJobFlowRequest& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
147 
151  inline RunJobFlowRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(value); return *this;}
152 
156  inline RunJobFlowRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
157 
173  inline const Aws::String& GetAmiVersion() const{ return m_amiVersion; }
174 
190  inline void SetAmiVersion(const Aws::String& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
191 
207  inline void SetAmiVersion(Aws::String&& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
208 
224  inline void SetAmiVersion(const char* value) { m_amiVersionHasBeenSet = true; m_amiVersion.assign(value); }
225 
241  inline RunJobFlowRequest& WithAmiVersion(const Aws::String& value) { SetAmiVersion(value); return *this;}
242 
258  inline RunJobFlowRequest& WithAmiVersion(Aws::String&& value) { SetAmiVersion(value); return *this;}
259 
275  inline RunJobFlowRequest& WithAmiVersion(const char* value) { SetAmiVersion(value); return *this;}
276 
282  inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; }
283 
289  inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; }
290 
296  inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; }
297 
303  inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); }
304 
310  inline RunJobFlowRequest& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;}
311 
317  inline RunJobFlowRequest& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(value); return *this;}
318 
324  inline RunJobFlowRequest& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;}
325 
330  inline const JobFlowInstancesConfig& GetInstances() const{ return m_instances; }
331 
336  inline void SetInstances(const JobFlowInstancesConfig& value) { m_instancesHasBeenSet = true; m_instances = value; }
337 
342  inline void SetInstances(JobFlowInstancesConfig&& value) { m_instancesHasBeenSet = true; m_instances = value; }
343 
348  inline RunJobFlowRequest& WithInstances(const JobFlowInstancesConfig& value) { SetInstances(value); return *this;}
349 
354  inline RunJobFlowRequest& WithInstances(JobFlowInstancesConfig&& value) { SetInstances(value); return *this;}
355 
359  inline const Aws::Vector<StepConfig>& GetSteps() const{ return m_steps; }
360 
364  inline void SetSteps(const Aws::Vector<StepConfig>& value) { m_stepsHasBeenSet = true; m_steps = value; }
365 
369  inline void SetSteps(Aws::Vector<StepConfig>&& value) { m_stepsHasBeenSet = true; m_steps = value; }
370 
374  inline RunJobFlowRequest& WithSteps(const Aws::Vector<StepConfig>& value) { SetSteps(value); return *this;}
375 
379  inline RunJobFlowRequest& WithSteps(Aws::Vector<StepConfig>&& value) { SetSteps(value); return *this;}
380 
384  inline RunJobFlowRequest& AddSteps(const StepConfig& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
385 
389  inline RunJobFlowRequest& AddSteps(StepConfig&& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
390 
395  inline const Aws::Vector<BootstrapActionConfig>& GetBootstrapActions() const{ return m_bootstrapActions; }
396 
401  inline void SetBootstrapActions(const Aws::Vector<BootstrapActionConfig>& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
402 
407  inline void SetBootstrapActions(Aws::Vector<BootstrapActionConfig>&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
408 
413  inline RunJobFlowRequest& WithBootstrapActions(const Aws::Vector<BootstrapActionConfig>& value) { SetBootstrapActions(value); return *this;}
414 
419  inline RunJobFlowRequest& WithBootstrapActions(Aws::Vector<BootstrapActionConfig>&& value) { SetBootstrapActions(value); return *this;}
420 
425  inline RunJobFlowRequest& AddBootstrapActions(const BootstrapActionConfig& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
426 
431  inline RunJobFlowRequest& AddBootstrapActions(BootstrapActionConfig&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
432 
443  inline const Aws::Vector<Aws::String>& GetSupportedProducts() const{ return m_supportedProducts; }
444 
455  inline void SetSupportedProducts(const Aws::Vector<Aws::String>& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
456 
467  inline void SetSupportedProducts(Aws::Vector<Aws::String>&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
468 
479  inline RunJobFlowRequest& WithSupportedProducts(const Aws::Vector<Aws::String>& value) { SetSupportedProducts(value); return *this;}
480 
491  inline RunJobFlowRequest& WithSupportedProducts(Aws::Vector<Aws::String>&& value) { SetSupportedProducts(value); return *this;}
492 
503  inline RunJobFlowRequest& AddSupportedProducts(const Aws::String& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
504 
515  inline RunJobFlowRequest& AddSupportedProducts(Aws::String&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
516 
527  inline RunJobFlowRequest& AddSupportedProducts(const char* value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
528 
548  inline const Aws::Vector<SupportedProductConfig>& GetNewSupportedProducts() const{ return m_newSupportedProducts; }
549 
569  inline void SetNewSupportedProducts(const Aws::Vector<SupportedProductConfig>& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts = value; }
570 
590  inline void SetNewSupportedProducts(Aws::Vector<SupportedProductConfig>&& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts = value; }
591 
611  inline RunJobFlowRequest& WithNewSupportedProducts(const Aws::Vector<SupportedProductConfig>& value) { SetNewSupportedProducts(value); return *this;}
612 
632  inline RunJobFlowRequest& WithNewSupportedProducts(Aws::Vector<SupportedProductConfig>&& value) { SetNewSupportedProducts(value); return *this;}
633 
653  inline RunJobFlowRequest& AddNewSupportedProducts(const SupportedProductConfig& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts.push_back(value); return *this; }
654 
674  inline RunJobFlowRequest& AddNewSupportedProducts(SupportedProductConfig&& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts.push_back(value); return *this; }
675 
681  inline const Aws::Vector<Application>& GetApplications() const{ return m_applications; }
682 
688  inline void SetApplications(const Aws::Vector<Application>& value) { m_applicationsHasBeenSet = true; m_applications = value; }
689 
695  inline void SetApplications(Aws::Vector<Application>&& value) { m_applicationsHasBeenSet = true; m_applications = value; }
696 
702  inline RunJobFlowRequest& WithApplications(const Aws::Vector<Application>& value) { SetApplications(value); return *this;}
703 
709  inline RunJobFlowRequest& WithApplications(Aws::Vector<Application>&& value) { SetApplications(value); return *this;}
710 
716  inline RunJobFlowRequest& AddApplications(const Application& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
717 
723  inline RunJobFlowRequest& AddApplications(Application&& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
724 
729  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
730 
735  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
736 
741  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
742 
747  inline RunJobFlowRequest& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
748 
753  inline RunJobFlowRequest& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(value); return *this;}
754 
759  inline RunJobFlowRequest& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
760 
765  inline RunJobFlowRequest& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
766 
774  inline bool GetVisibleToAllUsers() const{ return m_visibleToAllUsers; }
775 
783  inline void SetVisibleToAllUsers(bool value) { m_visibleToAllUsersHasBeenSet = true; m_visibleToAllUsers = value; }
784 
792  inline RunJobFlowRequest& WithVisibleToAllUsers(bool value) { SetVisibleToAllUsers(value); return *this;}
793 
800  inline const Aws::String& GetJobFlowRole() const{ return m_jobFlowRole; }
801 
808  inline void SetJobFlowRole(const Aws::String& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
809 
816  inline void SetJobFlowRole(Aws::String&& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
817 
824  inline void SetJobFlowRole(const char* value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole.assign(value); }
825 
832  inline RunJobFlowRequest& WithJobFlowRole(const Aws::String& value) { SetJobFlowRole(value); return *this;}
833 
840  inline RunJobFlowRequest& WithJobFlowRole(Aws::String&& value) { SetJobFlowRole(value); return *this;}
841 
848  inline RunJobFlowRequest& WithJobFlowRole(const char* value) { SetJobFlowRole(value); return *this;}
849 
854  inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
855 
860  inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
861 
866  inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
867 
872  inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
873 
878  inline RunJobFlowRequest& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
879 
884  inline RunJobFlowRequest& WithServiceRole(Aws::String&& value) { SetServiceRole(value); return *this;}
885 
890  inline RunJobFlowRequest& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
891 
896  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
897 
902  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
903 
908  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
909 
914  inline RunJobFlowRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
915 
920  inline RunJobFlowRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
921 
926  inline RunJobFlowRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
927 
932  inline RunJobFlowRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
933 
934  private:
935  Aws::String m_name;
936  bool m_nameHasBeenSet;
937  Aws::String m_logUri;
938  bool m_logUriHasBeenSet;
939  Aws::String m_additionalInfo;
940  bool m_additionalInfoHasBeenSet;
941  Aws::String m_amiVersion;
942  bool m_amiVersionHasBeenSet;
943  Aws::String m_releaseLabel;
944  bool m_releaseLabelHasBeenSet;
945  JobFlowInstancesConfig m_instances;
946  bool m_instancesHasBeenSet;
947  Aws::Vector<StepConfig> m_steps;
948  bool m_stepsHasBeenSet;
949  Aws::Vector<BootstrapActionConfig> m_bootstrapActions;
950  bool m_bootstrapActionsHasBeenSet;
951  Aws::Vector<Aws::String> m_supportedProducts;
952  bool m_supportedProductsHasBeenSet;
953  Aws::Vector<SupportedProductConfig> m_newSupportedProducts;
954  bool m_newSupportedProductsHasBeenSet;
955  Aws::Vector<Application> m_applications;
956  bool m_applicationsHasBeenSet;
957  Aws::Vector<Configuration> m_configurations;
958  bool m_configurationsHasBeenSet;
959  bool m_visibleToAllUsers;
960  bool m_visibleToAllUsersHasBeenSet;
961  Aws::String m_jobFlowRole;
962  bool m_jobFlowRoleHasBeenSet;
963  Aws::String m_serviceRole;
964  bool m_serviceRoleHasBeenSet;
965  Aws::Vector<Tag> m_tags;
966  bool m_tagsHasBeenSet;
967  };
968 
969 } // namespace Model
970 } // namespace EMR
971 } // namespace Aws
RunJobFlowRequest & WithJobFlowRole(const Aws::String &value)
RunJobFlowRequest & WithAdditionalInfo(Aws::String &&value)
void SetReleaseLabel(const char *value)
RunJobFlowRequest & WithServiceRole(const char *value)
void SetServiceRole(Aws::String &&value)
RunJobFlowRequest & WithConfigurations(const Aws::Vector< Configuration > &value)
void SetAmiVersion(const char *value)
RunJobFlowRequest & AddSupportedProducts(const Aws::String &value)
void SetAmiVersion(const Aws::String &value)
void SetConfigurations(const Aws::Vector< Configuration > &value)
RunJobFlowRequest & WithServiceRole(Aws::String &&value)
RunJobFlowRequest & WithBootstrapActions(const Aws::Vector< BootstrapActionConfig > &value)
void SetServiceRole(const Aws::String &value)
void SetName(const Aws::String &value)
RunJobFlowRequest & WithReleaseLabel(const char *value)
RunJobFlowRequest & AddConfigurations(Configuration &&value)
void SetJobFlowRole(Aws::String &&value)
RunJobFlowRequest & WithSteps(const Aws::Vector< StepConfig > &value)
const Aws::Vector< StepConfig > & GetSteps() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetName() const
RunJobFlowRequest & WithReleaseLabel(Aws::String &&value)
void SetApplications(Aws::Vector< Application > &&value)
const Aws::Vector< BootstrapActionConfig > & GetBootstrapActions() const
RunJobFlowRequest & AddBootstrapActions(BootstrapActionConfig &&value)
RunJobFlowRequest & WithLogUri(const char *value)
RunJobFlowRequest & WithInstances(const JobFlowInstancesConfig &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetName(Aws::String &&value)
const Aws::Vector< Configuration > & GetConfigurations() const
const Aws::String & GetReleaseLabel() const
void SetBootstrapActions(const Aws::Vector< BootstrapActionConfig > &value)
RunJobFlowRequest & AddSupportedProducts(const char *value)
RunJobFlowRequest & WithJobFlowRole(const char *value)
RunJobFlowRequest & WithBootstrapActions(Aws::Vector< BootstrapActionConfig > &&value)
void SetSteps(Aws::Vector< StepConfig > &&value)
RunJobFlowRequest & AddNewSupportedProducts(SupportedProductConfig &&value)
RunJobFlowRequest & AddBootstrapActions(const BootstrapActionConfig &value)
void SetNewSupportedProducts(Aws::Vector< SupportedProductConfig > &&value)
void SetNewSupportedProducts(const Aws::Vector< SupportedProductConfig > &value)
void SetConfigurations(Aws::Vector< Configuration > &&value)
const Aws::String & GetAdditionalInfo() const
void SetInstances(JobFlowInstancesConfig &&value)
RunJobFlowRequest & AddConfigurations(const Configuration &value)
RunJobFlowRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Application > & GetApplications() const
RunJobFlowRequest & WithName(const char *value)
RunJobFlowRequest & AddSupportedProducts(Aws::String &&value)
RunJobFlowRequest & WithName(const Aws::String &value)
void SetReleaseLabel(const Aws::String &value)
RunJobFlowRequest & WithConfigurations(Aws::Vector< Configuration > &&value)
RunJobFlowRequest & AddSteps(StepConfig &&value)
void SetAdditionalInfo(const Aws::String &value)
RunJobFlowRequest & AddNewSupportedProducts(const SupportedProductConfig &value)
const Aws::Vector< SupportedProductConfig > & GetNewSupportedProducts() const
RunJobFlowRequest & WithInstances(JobFlowInstancesConfig &&value)
void SetBootstrapActions(Aws::Vector< BootstrapActionConfig > &&value)
RunJobFlowRequest & WithSteps(Aws::Vector< StepConfig > &&value)
RunJobFlowRequest & WithSupportedProducts(Aws::Vector< Aws::String > &&value)
RunJobFlowRequest & AddTags(const Tag &value)
RunJobFlowRequest & WithNewSupportedProducts(const Aws::Vector< SupportedProductConfig > &value)
RunJobFlowRequest & AddApplications(Application &&value)
void SetAmiVersion(Aws::String &&value)
const JobFlowInstancesConfig & GetInstances() const
void SetSupportedProducts(Aws::Vector< Aws::String > &&value)
RunJobFlowRequest & WithVisibleToAllUsers(bool value)
const Aws::Vector< Tag > & GetTags() const
RunJobFlowRequest & WithName(Aws::String &&value)
RunJobFlowRequest & AddTags(Tag &&value)
RunJobFlowRequest & WithSupportedProducts(const Aws::Vector< Aws::String > &value)
void SetAdditionalInfo(Aws::String &&value)
void SetReleaseLabel(Aws::String &&value)
const Aws::String & GetLogUri() const
void SetSteps(const Aws::Vector< StepConfig > &value)
void SetSupportedProducts(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RunJobFlowRequest & AddApplications(const Application &value)
RunJobFlowRequest & WithAdditionalInfo(const Aws::String &value)
RunJobFlowRequest & WithApplications(Aws::Vector< Application > &&value)
const Aws::String & GetJobFlowRole() const
void SetLogUri(Aws::String &&value)
RunJobFlowRequest & WithJobFlowRole(Aws::String &&value)
RunJobFlowRequest & WithApplications(const Aws::Vector< Application > &value)
void SetInstances(const JobFlowInstancesConfig &value)
RunJobFlowRequest & WithReleaseLabel(const Aws::String &value)
RunJobFlowRequest & WithAmiVersion(Aws::String &&value)
RunJobFlowRequest & WithAdditionalInfo(const char *value)
const Aws::Vector< Aws::String > & GetSupportedProducts() const
const Aws::String & GetAmiVersion() const
RunJobFlowRequest & WithServiceRole(const Aws::String &value)
RunJobFlowRequest & WithTags(const Aws::Vector< Tag > &value)
RunJobFlowRequest & WithNewSupportedProducts(Aws::Vector< SupportedProductConfig > &&value)
const Aws::String & GetServiceRole() const
RunJobFlowRequest & WithLogUri(const Aws::String &value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
void SetLogUri(const Aws::String &value)
RunJobFlowRequest & WithAmiVersion(const char *value)
void SetJobFlowRole(const Aws::String &value)
void SetServiceRole(const char *value)
void SetApplications(const Aws::Vector< Application > &value)
void SetJobFlowRole(const char *value)
void SetAdditionalInfo(const char *value)
RunJobFlowRequest & WithAmiVersion(const Aws::String &value)
RunJobFlowRequest & WithLogUri(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetTags(Aws::Vector< Tag > &&value)
RunJobFlowRequest & AddSteps(const StepConfig &value)