Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.datapipeline.model;
 
 
Container for the parameters to the ActivatePipeline operation.

Validates the specified pipeline and starts processing pipeline tasks. If the pipeline does not pass validation, activation fails.

If you need to pause the pipeline to investigate an issue with a component, such as a data source or script, call DeactivatePipeline.

To activate a finished pipeline, modify the end date for the pipeline and then activate it.

 
 public class ActivatePipelineRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The ID of the pipeline.

Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

 
     private String pipelineId;

    
A list of parameter values to pass to the pipeline at activation.
 
The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.
 
     private java.util.Date startTimestamp;

    
The ID of the pipeline.

Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The ID of the pipeline.
 
     public String getPipelineId() {
         return ;
     }
    
    
The ID of the pipeline.

Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
pipelineId The ID of the pipeline.
 
     public void setPipelineId(String pipelineId) {
         this. = pipelineId;
     }
    
    
The ID of the pipeline.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
pipelineId The ID of the pipeline.
Returns:
A reference to this updated object so that method calls can be chained together.
 
    public ActivatePipelineRequest withPipelineId(String pipelineId) {
        this. = pipelineId;
        return this;
    }

    
A list of parameter values to pass to the pipeline at activation.

Returns:
A list of parameter values to pass to the pipeline at activation.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of parameter values to pass to the pipeline at activation.

Parameters:
parameterValues A list of parameter values to pass to the pipeline at activation.
    public void setParameterValues(java.util.Collection<ParameterValueparameterValues) {
        if (parameterValues == null) {
            this. = null;
            return;
        }
        parameterValuesCopy.addAll(parameterValues);
        this. = parameterValuesCopy;
    }
    
    
A list of parameter values to pass to the pipeline at activation.

NOTE: This method appends the values to the existing list (if any). Use setParameterValues(java.util.Collection) or withParameterValues(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameterValues A list of parameter values to pass to the pipeline at activation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ActivatePipelineRequest withParameterValues(ParameterValue... parameterValues) {
        if (getParameterValues() == nullsetParameterValues(new java.util.ArrayList<ParameterValue>(parameterValues.length));
        for (ParameterValue value : parameterValues) {
            getParameterValues().add(value);
        }
        return this;
    }
    
    
A list of parameter values to pass to the pipeline at activation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
parameterValues A list of parameter values to pass to the pipeline at activation.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (parameterValues == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<ParameterValueparameterValuesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ParameterValue>(parameterValues.size());
            parameterValuesCopy.addAll(parameterValues);
            this. = parameterValuesCopy;
        }
        return this;
    }

    
The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.

Returns:
The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.
    public java.util.Date getStartTimestamp() {
        return ;
    }
    
    
The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.

Parameters:
startTimestamp The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.
    public void setStartTimestamp(java.util.Date startTimestamp) {
        this. = startTimestamp;
    }
    
    
The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startTimestamp The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ActivatePipelineRequest withStartTimestamp(java.util.Date startTimestamp) {
        this. = startTimestamp;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getPipelineId() != nullsb.append("PipelineId: " + getPipelineId() + ",");
        if (getParameterValues() != nullsb.append("ParameterValues: " + getParameterValues() + ",");
        if (getStartTimestamp() != nullsb.append("StartTimestamp: " + getStartTimestamp() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getPipelineId() == null) ? 0 : getPipelineId().hashCode()); 
        hashCode = prime * hashCode + ((getParameterValues() == null) ? 0 : getParameterValues().hashCode()); 
        hashCode = prime * hashCode + ((getStartTimestamp() == null) ? 0 : getStartTimestamp().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ActivatePipelineRequest == falsereturn false;
        ActivatePipelineRequest other = (ActivatePipelineRequest)obj;
        
        if (other.getPipelineId() == null ^ this.getPipelineId() == nullreturn false;
        if (other.getPipelineId() != null && other.getPipelineId().equals(this.getPipelineId()) == falsereturn false
        if (other.getParameterValues() == null ^ this.getParameterValues() == nullreturn false;
        if (other.getParameterValues() != null && other.getParameterValues().equals(this.getParameterValues()) == falsereturn false
        if (other.getStartTimestamp() == null ^ this.getStartTimestamp() == nullreturn false;
        if (other.getStartTimestamp() != null && other.getStartTimestamp().equals(this.getStartTimestamp()) == falsereturn false
        return true;
    }
    
    @Override
    public ActivatePipelineRequest clone() {
        
            return (ActivatePipelineRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X