/** * <p> * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install * and configure when launching the cluster. For a list of applications available for each Amazon EMR release * version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release Guide</a>. * </p> * * @param applications * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to * install and configure when launching the cluster. For a list of applications available for each Amazon EMR * release version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release * Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public RunJobFlowRequest withApplications(java.util.Collection<Application> applications) { setApplications(applications); return this; }
/** * <p> * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install * and configure when launching the cluster. For a list of applications available for each Amazon EMR release * version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release Guide</a>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setApplications(java.util.Collection)} or {@link #withApplications(java.util.Collection)} if you want to * override the existing values. * </p> * * @param applications * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to * install and configure when launching the cluster. For a list of applications available for each Amazon EMR * release version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release * Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public RunJobFlowRequest withApplications(Application... applications) { if (this.applications == null) { setApplications(new com.amazonaws.internal.SdkInternalList<Application>(applications.length)); } for (Application ele : applications) { this.applications.add(ele); } return this; }
/** * <p> * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install * and configure when launching the cluster. For a list of applications available for each Amazon EMR release * version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release Guide</a>. * </p> * * @param applications * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to * install and configure when launching the cluster. For a list of applications available for each Amazon EMR * release version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release * Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public RunJobFlowRequest withApplications(java.util.Collection<Application> applications) { setApplications(applications); return this; }
/** * <p> * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install * and configure when launching the cluster. For a list of applications available for each Amazon EMR release * version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release Guide</a>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setApplications(java.util.Collection)} or {@link #withApplications(java.util.Collection)} if you want to * override the existing values. * </p> * * @param applications * Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to * install and configure when launching the cluster. For a list of applications available for each Amazon EMR * release version, see the <a href="http://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release * Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public RunJobFlowRequest withApplications(Application... applications) { if (this.applications == null) { setApplications(new com.amazonaws.internal.SdkInternalList<Application>(applications.length)); } for (Application ele : applications) { this.applications.add(ele); } return this; }
List<Application> applications = initApplications(); if ( applications.size() > 0 ) { runJobFlowRequest.setApplications( applications );
if (!CollectionUtils.isEmpty(emrClusterDefinitionApplications)) runJobFlowRequest.setApplications(getApplications(emrClusterDefinitionApplications));
if (!CollectionUtils.isEmpty(emrClusterDefinitionApplications)) runJobFlowRequest.setApplications(getApplications(emrClusterDefinitionApplications));