AWS SDK for C++  0.12.9
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 
172  inline const Aws::String& GetAmiVersion() const{ return m_amiVersion; }
173 
188  inline void SetAmiVersion(const Aws::String& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
189 
204  inline void SetAmiVersion(Aws::String&& value) { m_amiVersionHasBeenSet = true; m_amiVersion = value; }
205 
220  inline void SetAmiVersion(const char* value) { m_amiVersionHasBeenSet = true; m_amiVersion.assign(value); }
221 
236  inline RunJobFlowRequest& WithAmiVersion(const Aws::String& value) { SetAmiVersion(value); return *this;}
237 
252  inline RunJobFlowRequest& WithAmiVersion(Aws::String&& value) { SetAmiVersion(value); return *this;}
253 
268  inline RunJobFlowRequest& WithAmiVersion(const char* value) { SetAmiVersion(value); return *this;}
269 
275  inline const Aws::String& GetReleaseLabel() const{ return m_releaseLabel; }
276 
282  inline void SetReleaseLabel(const Aws::String& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; }
283 
289  inline void SetReleaseLabel(Aws::String&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = value; }
290 
296  inline void SetReleaseLabel(const char* value) { m_releaseLabelHasBeenSet = true; m_releaseLabel.assign(value); }
297 
303  inline RunJobFlowRequest& WithReleaseLabel(const Aws::String& value) { SetReleaseLabel(value); return *this;}
304 
310  inline RunJobFlowRequest& WithReleaseLabel(Aws::String&& value) { SetReleaseLabel(value); return *this;}
311 
317  inline RunJobFlowRequest& WithReleaseLabel(const char* value) { SetReleaseLabel(value); return *this;}
318 
323  inline const JobFlowInstancesConfig& GetInstances() const{ return m_instances; }
324 
329  inline void SetInstances(const JobFlowInstancesConfig& value) { m_instancesHasBeenSet = true; m_instances = value; }
330 
335  inline void SetInstances(JobFlowInstancesConfig&& value) { m_instancesHasBeenSet = true; m_instances = value; }
336 
341  inline RunJobFlowRequest& WithInstances(const JobFlowInstancesConfig& value) { SetInstances(value); return *this;}
342 
347  inline RunJobFlowRequest& WithInstances(JobFlowInstancesConfig&& value) { SetInstances(value); return *this;}
348 
352  inline const Aws::Vector<StepConfig>& GetSteps() const{ return m_steps; }
353 
357  inline void SetSteps(const Aws::Vector<StepConfig>& value) { m_stepsHasBeenSet = true; m_steps = value; }
358 
362  inline void SetSteps(Aws::Vector<StepConfig>&& value) { m_stepsHasBeenSet = true; m_steps = value; }
363 
367  inline RunJobFlowRequest& WithSteps(const Aws::Vector<StepConfig>& value) { SetSteps(value); return *this;}
368 
372  inline RunJobFlowRequest& WithSteps(Aws::Vector<StepConfig>&& value) { SetSteps(value); return *this;}
373 
377  inline RunJobFlowRequest& AddSteps(const StepConfig& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
378 
382  inline RunJobFlowRequest& AddSteps(StepConfig&& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
383 
388  inline const Aws::Vector<BootstrapActionConfig>& GetBootstrapActions() const{ return m_bootstrapActions; }
389 
394  inline void SetBootstrapActions(const Aws::Vector<BootstrapActionConfig>& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
395 
400  inline void SetBootstrapActions(Aws::Vector<BootstrapActionConfig>&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions = value; }
401 
406  inline RunJobFlowRequest& WithBootstrapActions(const Aws::Vector<BootstrapActionConfig>& value) { SetBootstrapActions(value); return *this;}
407 
412  inline RunJobFlowRequest& WithBootstrapActions(Aws::Vector<BootstrapActionConfig>&& value) { SetBootstrapActions(value); return *this;}
413 
418  inline RunJobFlowRequest& AddBootstrapActions(const BootstrapActionConfig& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
419 
424  inline RunJobFlowRequest& AddBootstrapActions(BootstrapActionConfig&& value) { m_bootstrapActionsHasBeenSet = true; m_bootstrapActions.push_back(value); return *this; }
425 
435  inline const Aws::Vector<Aws::String>& GetSupportedProducts() const{ return m_supportedProducts; }
436 
446  inline void SetSupportedProducts(const Aws::Vector<Aws::String>& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
447 
457  inline void SetSupportedProducts(Aws::Vector<Aws::String>&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts = value; }
458 
468  inline RunJobFlowRequest& WithSupportedProducts(const Aws::Vector<Aws::String>& value) { SetSupportedProducts(value); return *this;}
469 
479  inline RunJobFlowRequest& WithSupportedProducts(Aws::Vector<Aws::String>&& value) { SetSupportedProducts(value); return *this;}
480 
490  inline RunJobFlowRequest& AddSupportedProducts(const Aws::String& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
491 
501  inline RunJobFlowRequest& AddSupportedProducts(Aws::String&& value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
502 
512  inline RunJobFlowRequest& AddSupportedProducts(const char* value) { m_supportedProductsHasBeenSet = true; m_supportedProducts.push_back(value); return *this; }
513 
532  inline const Aws::Vector<SupportedProductConfig>& GetNewSupportedProducts() const{ return m_newSupportedProducts; }
533 
552  inline void SetNewSupportedProducts(const Aws::Vector<SupportedProductConfig>& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts = value; }
553 
572  inline void SetNewSupportedProducts(Aws::Vector<SupportedProductConfig>&& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts = value; }
573 
592  inline RunJobFlowRequest& WithNewSupportedProducts(const Aws::Vector<SupportedProductConfig>& value) { SetNewSupportedProducts(value); return *this;}
593 
612  inline RunJobFlowRequest& WithNewSupportedProducts(Aws::Vector<SupportedProductConfig>&& value) { SetNewSupportedProducts(value); return *this;}
613 
632  inline RunJobFlowRequest& AddNewSupportedProducts(const SupportedProductConfig& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts.push_back(value); return *this; }
633 
652  inline RunJobFlowRequest& AddNewSupportedProducts(SupportedProductConfig&& value) { m_newSupportedProductsHasBeenSet = true; m_newSupportedProducts.push_back(value); return *this; }
653 
659  inline const Aws::Vector<Application>& GetApplications() const{ return m_applications; }
660 
666  inline void SetApplications(const Aws::Vector<Application>& value) { m_applicationsHasBeenSet = true; m_applications = value; }
667 
673  inline void SetApplications(Aws::Vector<Application>&& value) { m_applicationsHasBeenSet = true; m_applications = value; }
674 
680  inline RunJobFlowRequest& WithApplications(const Aws::Vector<Application>& value) { SetApplications(value); return *this;}
681 
687  inline RunJobFlowRequest& WithApplications(Aws::Vector<Application>&& value) { SetApplications(value); return *this;}
688 
694  inline RunJobFlowRequest& AddApplications(const Application& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
695 
701  inline RunJobFlowRequest& AddApplications(Application&& value) { m_applicationsHasBeenSet = true; m_applications.push_back(value); return *this; }
702 
707  inline const Aws::Vector<Configuration>& GetConfigurations() const{ return m_configurations; }
708 
713  inline void SetConfigurations(const Aws::Vector<Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
714 
719  inline void SetConfigurations(Aws::Vector<Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
720 
725  inline RunJobFlowRequest& WithConfigurations(const Aws::Vector<Configuration>& value) { SetConfigurations(value); return *this;}
726 
731  inline RunJobFlowRequest& WithConfigurations(Aws::Vector<Configuration>&& value) { SetConfigurations(value); return *this;}
732 
737  inline RunJobFlowRequest& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
738 
743  inline RunJobFlowRequest& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; }
744 
752  inline bool GetVisibleToAllUsers() const{ return m_visibleToAllUsers; }
753 
761  inline void SetVisibleToAllUsers(bool value) { m_visibleToAllUsersHasBeenSet = true; m_visibleToAllUsers = value; }
762 
770  inline RunJobFlowRequest& WithVisibleToAllUsers(bool value) { SetVisibleToAllUsers(value); return *this;}
771 
778  inline const Aws::String& GetJobFlowRole() const{ return m_jobFlowRole; }
779 
786  inline void SetJobFlowRole(const Aws::String& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
787 
794  inline void SetJobFlowRole(Aws::String&& value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole = value; }
795 
802  inline void SetJobFlowRole(const char* value) { m_jobFlowRoleHasBeenSet = true; m_jobFlowRole.assign(value); }
803 
810  inline RunJobFlowRequest& WithJobFlowRole(const Aws::String& value) { SetJobFlowRole(value); return *this;}
811 
818  inline RunJobFlowRequest& WithJobFlowRole(Aws::String&& value) { SetJobFlowRole(value); return *this;}
819 
826  inline RunJobFlowRequest& WithJobFlowRole(const char* value) { SetJobFlowRole(value); return *this;}
827 
832  inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
833 
838  inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
839 
844  inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
845 
850  inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
851 
856  inline RunJobFlowRequest& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
857 
862  inline RunJobFlowRequest& WithServiceRole(Aws::String&& value) { SetServiceRole(value); return *this;}
863 
868  inline RunJobFlowRequest& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
869 
874  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
875 
880  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
881 
886  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
887 
892  inline RunJobFlowRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
893 
898  inline RunJobFlowRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
899 
904  inline RunJobFlowRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
905 
910  inline RunJobFlowRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
911 
912  private:
913  Aws::String m_name;
914  bool m_nameHasBeenSet;
915  Aws::String m_logUri;
916  bool m_logUriHasBeenSet;
917  Aws::String m_additionalInfo;
918  bool m_additionalInfoHasBeenSet;
919  Aws::String m_amiVersion;
920  bool m_amiVersionHasBeenSet;
921  Aws::String m_releaseLabel;
922  bool m_releaseLabelHasBeenSet;
923  JobFlowInstancesConfig m_instances;
924  bool m_instancesHasBeenSet;
925  Aws::Vector<StepConfig> m_steps;
926  bool m_stepsHasBeenSet;
927  Aws::Vector<BootstrapActionConfig> m_bootstrapActions;
928  bool m_bootstrapActionsHasBeenSet;
929  Aws::Vector<Aws::String> m_supportedProducts;
930  bool m_supportedProductsHasBeenSet;
931  Aws::Vector<SupportedProductConfig> m_newSupportedProducts;
932  bool m_newSupportedProductsHasBeenSet;
933  Aws::Vector<Application> m_applications;
934  bool m_applicationsHasBeenSet;
935  Aws::Vector<Configuration> m_configurations;
936  bool m_configurationsHasBeenSet;
937  bool m_visibleToAllUsers;
938  bool m_visibleToAllUsersHasBeenSet;
939  Aws::String m_jobFlowRole;
940  bool m_jobFlowRoleHasBeenSet;
941  Aws::String m_serviceRole;
942  bool m_serviceRoleHasBeenSet;
943  Aws::Vector<Tag> m_tags;
944  bool m_tagsHasBeenSet;
945  };
946 
947 } // namespace Model
948 } // namespace EMR
949 } // 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:34
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)