Example usage for com.amazonaws.services.datapipeline.model PutPipelineDefinitionResult isErrored

List of usage examples for com.amazonaws.services.datapipeline.model PutPipelineDefinitionResult isErrored

Introduction

In this page you can find the example usage for com.amazonaws.services.datapipeline.model PutPipelineDefinitionResult isErrored.

Prototype


public Boolean isErrored() 

Source Link

Document

Indicates whether there were validation errors, and the pipeline definition is stored but cannot be activated until you correct the pipeline and call PutPipelineDefinition to commit the corrected pipeline.

Usage

From source file:com.shazam.dataengineering.pipelinebuilder.AWSProxy.java

License:Apache License

public boolean putPipeline(String pipelineId, PipelineObject pipeline) throws DeploymentException {
    try {//from ww  w  . ja  va 2s  .c  o m
        PutPipelineDefinitionRequest request = new PutPipelineDefinitionRequest().withPipelineId(pipelineId)
                .withPipelineObjects(pipeline.getAWSObjects());
        PutPipelineDefinitionResult result = client.putPipelineDefinition(request);
        return !result.isErrored();
    } catch (RuntimeException e) {
        throw new DeploymentException(e);
    }
}