com.amazonaws.services.detective.model.ListInvestigationsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-detective Show documentation
/*
* Copyright 2019-2024 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.detective.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 ListInvestigationsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*/
private String graphArn;
/**
*
* Lists if there are more results available. The value of nextToken is a unique pagination token for each page.
* Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged.
*
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
*
*/
private String nextToken;
/**
*
* Lists the maximum number of investigations in a page.
*
*/
private Integer maxResults;
/**
*
* Filters the investigation results based on a criteria.
*
*/
private FilterCriteria filterCriteria;
/**
*
* Sorts the investigation results based on a criteria.
*
*/
private SortCriteria sortCriteria;
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*
* @param graphArn
* The Amazon Resource Name (ARN) of the behavior graph.
*/
public void setGraphArn(String graphArn) {
this.graphArn = graphArn;
}
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*
* @return The Amazon Resource Name (ARN) of the behavior graph.
*/
public String getGraphArn() {
return this.graphArn;
}
/**
*
* The Amazon Resource Name (ARN) of the behavior graph.
*
*
* @param graphArn
* The Amazon Resource Name (ARN) of the behavior graph.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInvestigationsRequest withGraphArn(String graphArn) {
setGraphArn(graphArn);
return this;
}
/**
*
* Lists if there are more results available. The value of nextToken is a unique pagination token for each page.
* Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged.
*
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
*
*
* @param nextToken
* Lists if there are more results available. The value of nextToken is a unique pagination token for each
* page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments
* unchanged.
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Lists if there are more results available. The value of nextToken is a unique pagination token for each page.
* Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged.
*
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
*
*
* @return Lists if there are more results available. The value of nextToken is a unique pagination token for each
* page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments
* unchanged.
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Lists if there are more results available. The value of nextToken is a unique pagination token for each page.
* Repeat the call using the returned token to retrieve the next page. Keep all other arguments unchanged.
*
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
*
*
* @param nextToken
* Lists if there are more results available. The value of nextToken is a unique pagination token for each
* page. Repeat the call using the returned token to retrieve the next page. Keep all other arguments
* unchanged.
*
* Each pagination token expires after 24 hours. Using an expired pagination token will return a Validation
* Exception error.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInvestigationsRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* Lists the maximum number of investigations in a page.
*
*
* @param maxResults
* Lists the maximum number of investigations in a page.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Lists the maximum number of investigations in a page.
*
*
* @return Lists the maximum number of investigations in a page.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Lists the maximum number of investigations in a page.
*
*
* @param maxResults
* Lists the maximum number of investigations in a page.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInvestigationsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Filters the investigation results based on a criteria.
*
*
* @param filterCriteria
* Filters the investigation results based on a criteria.
*/
public void setFilterCriteria(FilterCriteria filterCriteria) {
this.filterCriteria = filterCriteria;
}
/**
*
* Filters the investigation results based on a criteria.
*
*
* @return Filters the investigation results based on a criteria.
*/
public FilterCriteria getFilterCriteria() {
return this.filterCriteria;
}
/**
*
* Filters the investigation results based on a criteria.
*
*
* @param filterCriteria
* Filters the investigation results based on a criteria.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInvestigationsRequest withFilterCriteria(FilterCriteria filterCriteria) {
setFilterCriteria(filterCriteria);
return this;
}
/**
*
* Sorts the investigation results based on a criteria.
*
*
* @param sortCriteria
* Sorts the investigation results based on a criteria.
*/
public void setSortCriteria(SortCriteria sortCriteria) {
this.sortCriteria = sortCriteria;
}
/**
*
* Sorts the investigation results based on a criteria.
*
*
* @return Sorts the investigation results based on a criteria.
*/
public SortCriteria getSortCriteria() {
return this.sortCriteria;
}
/**
*
* Sorts the investigation results based on a criteria.
*
*
* @param sortCriteria
* Sorts the investigation results based on a criteria.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListInvestigationsRequest withSortCriteria(SortCriteria sortCriteria) {
setSortCriteria(sortCriteria);
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 (getGraphArn() != null)
sb.append("GraphArn: ").append(getGraphArn()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getFilterCriteria() != null)
sb.append("FilterCriteria: ").append(getFilterCriteria()).append(",");
if (getSortCriteria() != null)
sb.append("SortCriteria: ").append(getSortCriteria());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListInvestigationsRequest == false)
return false;
ListInvestigationsRequest other = (ListInvestigationsRequest) obj;
if (other.getGraphArn() == null ^ this.getGraphArn() == null)
return false;
if (other.getGraphArn() != null && other.getGraphArn().equals(this.getGraphArn()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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.getFilterCriteria() == null ^ this.getFilterCriteria() == null)
return false;
if (other.getFilterCriteria() != null && other.getFilterCriteria().equals(this.getFilterCriteria()) == false)
return false;
if (other.getSortCriteria() == null ^ this.getSortCriteria() == null)
return false;
if (other.getSortCriteria() != null && other.getSortCriteria().equals(this.getSortCriteria()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGraphArn() == null) ? 0 : getGraphArn().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getFilterCriteria() == null) ? 0 : getFilterCriteria().hashCode());
hashCode = prime * hashCode + ((getSortCriteria() == null) ? 0 : getSortCriteria().hashCode());
return hashCode;
}
@Override
public ListInvestigationsRequest clone() {
return (ListInvestigationsRequest) super.clone();
}
}