com.amazonaws.services.codepipeline.model.ListActionExecutionsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-codepipeline Show documentation
/*
* Copyright 2016-2021 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.codepipeline.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListActionExecutionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the pipeline for which you want to list action execution history.
*
*/
private String pipelineName;
/**
*
* Input information used to filter action execution history.
*
*/
private ActionExecutionFilter filter;
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned nextToken value. Action execution history is retained for up to 12 months, based on action
* execution start times. Default value is 100.
*
*
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
*
*/
private Integer maxResults;
/**
*
* The token that was returned from the previous ListActionExecutions
call, which can be used to return
* the next set of action executions in the list.
*
*/
private String nextToken;
/**
*
* The name of the pipeline for which you want to list action execution history.
*
*
* @param pipelineName
* The name of the pipeline for which you want to list action execution history.
*/
public void setPipelineName(String pipelineName) {
this.pipelineName = pipelineName;
}
/**
*
* The name of the pipeline for which you want to list action execution history.
*
*
* @return The name of the pipeline for which you want to list action execution history.
*/
public String getPipelineName() {
return this.pipelineName;
}
/**
*
* The name of the pipeline for which you want to list action execution history.
*
*
* @param pipelineName
* The name of the pipeline for which you want to list action execution history.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListActionExecutionsRequest withPipelineName(String pipelineName) {
setPipelineName(pipelineName);
return this;
}
/**
*
* Input information used to filter action execution history.
*
*
* @param filter
* Input information used to filter action execution history.
*/
public void setFilter(ActionExecutionFilter filter) {
this.filter = filter;
}
/**
*
* Input information used to filter action execution history.
*
*
* @return Input information used to filter action execution history.
*/
public ActionExecutionFilter getFilter() {
return this.filter;
}
/**
*
* Input information used to filter action execution history.
*
*
* @param filter
* Input information used to filter action execution history.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListActionExecutionsRequest withFilter(ActionExecutionFilter filter) {
setFilter(filter);
return this;
}
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned nextToken value. Action execution history is retained for up to 12 months, based on action
* execution start times. Default value is 100.
*
*
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
*
*
* @param maxResults
* The maximum number of results to return in a single call. To retrieve the remaining results, make another
* call with the returned nextToken value. Action execution history is retained for up to 12 months, based on
* action execution start times. Default value is 100.
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned nextToken value. Action execution history is retained for up to 12 months, based on action
* execution start times. Default value is 100.
*
*
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
*
*
* @return The maximum number of results to return in a single call. To retrieve the remaining results, make another
* call with the returned nextToken value. Action execution history is retained for up to 12 months, based
* on action execution start times. Default value is 100.
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call
* with the returned nextToken value. Action execution history is retained for up to 12 months, based on action
* execution start times. Default value is 100.
*
*
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
*
*
* @param maxResults
* The maximum number of results to return in a single call. To retrieve the remaining results, make another
* call with the returned nextToken value. Action execution history is retained for up to 12 months, based on
* action execution start times. Default value is 100.
*
* Detailed execution history is available for executions run on or after February 21, 2019.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListActionExecutionsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The token that was returned from the previous ListActionExecutions
call, which can be used to return
* the next set of action executions in the list.
*
*
* @param nextToken
* The token that was returned from the previous ListActionExecutions
call, which can be used to
* return the next set of action executions in the list.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The token that was returned from the previous ListActionExecutions
call, which can be used to return
* the next set of action executions in the list.
*
*
* @return The token that was returned from the previous ListActionExecutions
call, which can be used
* to return the next set of action executions in the list.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The token that was returned from the previous ListActionExecutions
call, which can be used to return
* the next set of action executions in the list.
*
*
* @param nextToken
* The token that was returned from the previous ListActionExecutions
call, which can be used to
* return the next set of action executions in the list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListActionExecutionsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getPipelineName() != null)
sb.append("PipelineName: ").append(getPipelineName()).append(",");
if (getFilter() != null)
sb.append("Filter: ").append(getFilter()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListActionExecutionsRequest == false)
return false;
ListActionExecutionsRequest other = (ListActionExecutionsRequest) obj;
if (other.getPipelineName() == null ^ this.getPipelineName() == null)
return false;
if (other.getPipelineName() != null && other.getPipelineName().equals(this.getPipelineName()) == false)
return false;
if (other.getFilter() == null ^ this.getFilter() == null)
return false;
if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == false)
return false;
if (other.getMaxResults() == null ^ this.getMaxResults() == null)
return false;
if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getPipelineName() == null) ? 0 : getPipelineName().hashCode());
hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public ListActionExecutionsRequest clone() {
return (ListActionExecutionsRequest) super.clone();
}
}