All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.GetFindingsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2014-2019 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.securityhub.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 GetFindingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A collection of attributes that is use for querying findings. *

*/ private AwsSecurityFindingFilters filters; /** *

* A collection of attributes used for sorting findings. *

*/ private java.util.List sortCriteria; /** *

* Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings operation. For * subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous * response to continue listing data. *

*/ private String nextToken; /** *

* Indicates the maximum number of items that you want in the response. *

*/ private Integer maxResults; /** *

* A collection of attributes that is use for querying findings. *

* * @param filters * A collection of attributes that is use for querying findings. */ public void setFilters(AwsSecurityFindingFilters filters) { this.filters = filters; } /** *

* A collection of attributes that is use for querying findings. *

* * @return A collection of attributes that is use for querying findings. */ public AwsSecurityFindingFilters getFilters() { return this.filters; } /** *

* A collection of attributes that is use for querying findings. *

* * @param filters * A collection of attributes that is use for querying findings. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingsRequest withFilters(AwsSecurityFindingFilters filters) { setFilters(filters); return this; } /** *

* A collection of attributes used for sorting findings. *

* * @return A collection of attributes used for sorting findings. */ public java.util.List getSortCriteria() { return sortCriteria; } /** *

* A collection of attributes used for sorting findings. *

* * @param sortCriteria * A collection of attributes used for sorting findings. */ public void setSortCriteria(java.util.Collection sortCriteria) { if (sortCriteria == null) { this.sortCriteria = null; return; } this.sortCriteria = new java.util.ArrayList(sortCriteria); } /** *

* A collection of attributes used for sorting findings. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSortCriteria(java.util.Collection)} or {@link #withSortCriteria(java.util.Collection)} if you want to * override the existing values. *

* * @param sortCriteria * A collection of attributes used for sorting findings. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingsRequest withSortCriteria(SortCriterion... sortCriteria) { if (this.sortCriteria == null) { setSortCriteria(new java.util.ArrayList(sortCriteria.length)); } for (SortCriterion ele : sortCriteria) { this.sortCriteria.add(ele); } return this; } /** *

* A collection of attributes used for sorting findings. *

* * @param sortCriteria * A collection of attributes used for sorting findings. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingsRequest withSortCriteria(java.util.Collection sortCriteria) { setSortCriteria(sortCriteria); return this; } /** *

* Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings operation. For * subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous * response to continue listing data. *

* * @param nextToken * Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings * operation. For subsequent calls to the operation, fill nextToken in the request with the value of * nextToken from the previous response to continue listing data. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings operation. For * subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous * response to continue listing data. *

* * @return Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings * operation. For subsequent calls to the operation, fill nextToken in the request with the value of * nextToken from the previous response to continue listing data. */ public String getNextToken() { return this.nextToken; } /** *

* Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings operation. For * subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous * response to continue listing data. *

* * @param nextToken * Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings * operation. For subsequent calls to the operation, fill nextToken in the request with the value of * nextToken from the previous response to continue listing data. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Indicates the maximum number of items that you want in the response. *

* * @param maxResults * Indicates the maximum number of items that you want in the response. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* Indicates the maximum number of items that you want in the response. *

* * @return Indicates the maximum number of items that you want in the response. */ public Integer getMaxResults() { return this.maxResults; } /** *

* Indicates the maximum number of items that you want in the response. *

* * @param maxResults * Indicates the maximum number of items that you want in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); 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 (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getSortCriteria() != null) sb.append("SortCriteria: ").append(getSortCriteria()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetFindingsRequest == false) return false; GetFindingsRequest other = (GetFindingsRequest) obj; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getSortCriteria() == null ^ this.getSortCriteria() == null) return false; if (other.getSortCriteria() != null && other.getSortCriteria().equals(this.getSortCriteria()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getSortCriteria() == null) ? 0 : getSortCriteria().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetFindingsRequest clone() { return (GetFindingsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy