/** * Validates the EMR cluster create request. This method also trims request parameters. * * @param key the ERM cluster alternate key * * @throws IllegalArgumentException if any validation errors were found */ private void validateEmrClusterKey(EmrClusterAlternateKeyDto key) throws IllegalArgumentException { Assert.notNull(key, "An EMR cluster key must be specified."); key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace())); key.setEmrClusterDefinitionName(alternateKeyHelper.validateStringParameter("An", "EMR cluster definition name", key.getEmrClusterDefinitionName())); key.setEmrClusterName(alternateKeyHelper.validateStringParameter("An", "EMR cluster name", key.getEmrClusterName())); }
/** * Validates the EMR cluster create request. This method also trims request parameters. * * @param key the ERM cluster alternate key * * @throws IllegalArgumentException if any validation errors were found */ private void validateEmrClusterKey(EmrClusterAlternateKeyDto key) throws IllegalArgumentException { Assert.notNull(key, "An EMR cluster key must be specified."); key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace())); key.setEmrClusterDefinitionName(alternateKeyHelper.validateStringParameter("An", "EMR cluster definition name", key.getEmrClusterDefinitionName())); key.setEmrClusterName(alternateKeyHelper.validateStringParameter("An", "EMR cluster name", key.getEmrClusterName())); }
/** * Builds the cluster alternate key and returns. * * @param execution the DelegateExecution * * @return the cluster alternate key. */ protected EmrClusterAlternateKeyDto getClusterAlternateKey(DelegateExecution execution) { // Create the alternate key. EmrClusterAlternateKeyDto emrClusterAlternateKeyDto = new EmrClusterAlternateKeyDto(); emrClusterAlternateKeyDto.setNamespace(activitiHelper.getExpressionVariableAsString(namespace, execution)); emrClusterAlternateKeyDto.setEmrClusterDefinitionName(activitiHelper.getExpressionVariableAsString(emrClusterDefinitionName, execution)); emrClusterAlternateKeyDto.setEmrClusterName(activitiHelper.getExpressionVariableAsString(emrClusterName, execution)); return emrClusterAlternateKeyDto; }
/** * Builds the cluster alternate key and returns. * * @param execution the DelegateExecution * * @return the cluster alternate key. */ protected EmrClusterAlternateKeyDto getClusterAlternateKey(DelegateExecution execution) { // Create the alternate key. EmrClusterAlternateKeyDto emrClusterAlternateKeyDto = new EmrClusterAlternateKeyDto(); emrClusterAlternateKeyDto.setNamespace(activitiHelper.getExpressionVariableAsString(namespace, execution)); emrClusterAlternateKeyDto.setEmrClusterDefinitionName(activitiHelper.getExpressionVariableAsString(emrClusterDefinitionName, execution)); emrClusterAlternateKeyDto.setEmrClusterName(activitiHelper.getExpressionVariableAsString(emrClusterName, execution)); return emrClusterAlternateKeyDto; }
emrClusterAlternateKeyDto.setEmrClusterDefinitionName(emrClusterDefinitionName); emrClusterAlternateKeyDto.setEmrClusterName(emrClusterName);
sourceEmrClusterDefinitionName = this.getEmrClusterDefinitionName(); String copyEmrClusterDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "emrClusterDefinitionName", sourceEmrClusterDefinitionName), sourceEmrClusterDefinitionName, (this.emrClusterDefinitionName!= null))); copy.setEmrClusterDefinitionName(copyEmrClusterDefinitionName); } else { if (emrClusterDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) {