/** * <p> * Arguments for Amazon EMR to pass to the application. * </p> * * @param args * Arguments for Amazon EMR to pass to the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withArgs(java.util.Collection<String> args) { setArgs(args); return this; }
/** * <p> * Arguments for Amazon EMR to pass to the application. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setArgs(java.util.Collection)} or {@link #withArgs(java.util.Collection)} if you want to override the * existing values. * </p> * * @param args * Arguments for Amazon EMR to pass to the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withArgs(String... args) { if (this.args == null) { setArgs(new com.amazonaws.internal.SdkInternalList<String>(args.length)); } for (String ele : args) { this.args.add(ele); } return this; }
application.setArgs(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * Arguments for Amazon EMR to pass to the application. * </p> * * @param args * Arguments for Amazon EMR to pass to the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withArgs(java.util.Collection<String> args) { setArgs(args); return this; }
/** * <p> * Arguments for Amazon EMR to pass to the application. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setArgs(java.util.Collection)} or {@link #withArgs(java.util.Collection)} if you want to override the * existing values. * </p> * * @param args * Arguments for Amazon EMR to pass to the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withArgs(String... args) { if (this.args == null) { setArgs(new com.amazonaws.internal.SdkInternalList<String>(args.length)); } for (String ele : args) { this.args.add(ele); } return this; }
/** * Converts the given list of {@link EmrClusterDefinitionApplication} into a list of {@link Application} * * @param emrClusterDefinitionApplications list of {@link EmrClusterDefinitionApplication} * * @return list {@link Application} */ public List<Application> getApplications(List<EmrClusterDefinitionApplication> emrClusterDefinitionApplications) { List<Application> applications = new ArrayList<>(); for (EmrClusterDefinitionApplication emrClusterDefinitionApplication : emrClusterDefinitionApplications) { Application application = new Application(); application.setName(emrClusterDefinitionApplication.getName()); application.setVersion(emrClusterDefinitionApplication.getVersion()); application.setArgs(emrClusterDefinitionApplication.getArgs()); List<Parameter> additionalInfoList = emrClusterDefinitionApplication.getAdditionalInfoList(); if (!CollectionUtils.isEmpty(additionalInfoList)) { application.setAdditionalInfo(getMap(additionalInfoList)); } applications.add(application); } return applications; }
/** * Converts the given list of {@link EmrClusterDefinitionApplication} into a list of {@link Application} * * @param emrClusterDefinitionApplications list of {@link EmrClusterDefinitionApplication} * * @return list {@link Application} */ public List<Application> getApplications(List<EmrClusterDefinitionApplication> emrClusterDefinitionApplications) { List<Application> applications = new ArrayList<>(); for (EmrClusterDefinitionApplication emrClusterDefinitionApplication : emrClusterDefinitionApplications) { Application application = new Application(); application.setName(emrClusterDefinitionApplication.getName()); application.setVersion(emrClusterDefinitionApplication.getVersion()); application.setArgs(emrClusterDefinitionApplication.getArgs()); List<Parameter> additionalInfoList = emrClusterDefinitionApplication.getAdditionalInfoList(); if (!CollectionUtils.isEmpty(additionalInfoList)) { application.setAdditionalInfo(getMap(additionalInfoList)); } applications.add(application); } return applications; }
application.setArgs(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));