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

com.amazonaws.services.securityhub.model.GetFindingHistoryRequest 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.780
Show newest version
/*
 * Copyright 2018-2023 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 GetFindingHistoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    private AwsSecurityFindingIdentifier findingIdentifier;
    /**
     * 

* An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

*/ private java.util.Date startTime; /** *

* An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

*/ private java.util.Date endTime; /** *

* A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, provide * the token included in the response to get up to an additional 100 results of finding history. If you don’t * provide NextToken, Security Hub returns up to 100 results of finding history for each request. *

*/ private String nextToken; /** *

* The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 results of * finding history. *

*/ private Integer maxResults; /** * @param findingIdentifier */ public void setFindingIdentifier(AwsSecurityFindingIdentifier findingIdentifier) { this.findingIdentifier = findingIdentifier; } /** * @return */ public AwsSecurityFindingIdentifier getFindingIdentifier() { return this.findingIdentifier; } /** * @param findingIdentifier * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingHistoryRequest withFindingIdentifier(AwsSecurityFindingIdentifier findingIdentifier) { setFindingIdentifier(findingIdentifier); return this; } /** *

* An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

* * @param startTime * An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A * correctly formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and * date and time should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time * Format.

*

* If you provide values for both StartTime and EndTime, Security Hub returns * finding history for the specified time period. If you provide a value for StartTime but not * for EndTime, Security Hub returns finding history from the StartTime to the time * at which the API is called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response * is limited to 100 results, and the maximum time period is limited to 90 days. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

* * @return An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A * correctly formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, * and date and time should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time * Format.

*

* If you provide values for both StartTime and EndTime, Security Hub returns * finding history for the specified time period. If you provide a value for StartTime but not * for EndTime, Security Hub returns finding history from the StartTime to the * time at which the API is called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response * is limited to 100 results, and the maximum time period is limited to 90 days. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

* * @param startTime * An ISO 8601-formatted timestamp that indicates the start time of the requested finding history. A * correctly formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and * date and time should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time * Format.

*

* If you provide values for both StartTime and EndTime, Security Hub returns * finding history for the specified time period. If you provide a value for StartTime but not * for EndTime, Security Hub returns finding history from the StartTime to the time * at which the API is called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response * is limited to 100 results, and the maximum time period is limited to 90 days. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingHistoryRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

* * @param endTime * An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and * time should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time * Format.

*

* If you provide values for both StartTime and EndTime, Security Hub returns * finding history for the specified time period. If you provide a value for StartTime but not * for EndTime, Security Hub returns finding history from the StartTime to the time * at which the API is called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response * is limited to 100 results, and the maximum time period is limited to 90 days. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

* * @return An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and * time should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time * Format.

*

* If you provide values for both StartTime and EndTime, Security Hub returns * finding history for the specified time period. If you provide a value for StartTime but not * for EndTime, Security Hub returns finding history from the StartTime to the * time at which the API is called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response * is limited to 100 results, and the maximum time period is limited to 90 days. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and time * should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time Format. *

*

* If you provide values for both StartTime and EndTime, Security Hub returns finding * history for the specified time period. If you provide a value for StartTime but not for * EndTime, Security Hub returns finding history from the StartTime to the time at which * the API is called. If you provide a value for EndTime but not for StartTime, Security * Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response is * limited to 100 results, and the maximum time period is limited to 90 days. *

* * @param endTime * An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. A correctly * formatted example is 2020-05-21T20:16:34.724Z. The value cannot contain spaces, and date and * time should be separated by T. For more information, see RFC 3339 section 5.6, Internet Date/Time * Format.

*

* If you provide values for both StartTime and EndTime, Security Hub returns * finding history for the specified time period. If you provide a value for StartTime but not * for EndTime, Security Hub returns finding history from the StartTime to the time * at which the API is called. If you provide a value for EndTime but not for * StartTime, Security Hub returns finding history from the CreatedAt timestamp of the finding to the EndTime. If you provide neither * StartTime nor EndTime, Security Hub returns finding history from the CreatedAt * timestamp of the finding to the time at which the API is called. In all of these scenarios, the response * is limited to 100 results, and the maximum time period is limited to 90 days. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingHistoryRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, provide * the token included in the response to get up to an additional 100 results of finding history. If you don’t * provide NextToken, Security Hub returns up to 100 results of finding history for each request. *

* * @param nextToken * A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, * provide the token included in the response to get up to an additional 100 results of finding history. If * you don’t provide NextToken, Security Hub returns up to 100 results of finding history for * each request. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, provide * the token included in the response to get up to an additional 100 results of finding history. If you don’t * provide NextToken, Security Hub returns up to 100 results of finding history for each request. *

* * @return A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, * provide the token included in the response to get up to an additional 100 results of finding history. If * you don’t provide NextToken, Security Hub returns up to 100 results of finding history for * each request. */ public String getNextToken() { return this.nextToken; } /** *

* A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, provide * the token included in the response to get up to an additional 100 results of finding history. If you don’t * provide NextToken, Security Hub returns up to 100 results of finding history for each request. *

* * @param nextToken * A token for pagination purposes. Provide NULL as the initial value. In subsequent requests, * provide the token included in the response to get up to an additional 100 results of finding history. If * you don’t provide NextToken, Security Hub returns up to 100 results of finding history for * each request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingHistoryRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 results of * finding history. *

* * @param maxResults * The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 * results of finding history. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 results of * finding history. *

* * @return The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 * results of finding history. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 results of * finding history. *

* * @param maxResults * The maximum number of results to be returned. If you don’t provide it, Security Hub returns up to 100 * results of finding history. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFindingHistoryRequest 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 (getFindingIdentifier() != null) sb.append("FindingIdentifier: ").append(getFindingIdentifier()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).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 GetFindingHistoryRequest == false) return false; GetFindingHistoryRequest other = (GetFindingHistoryRequest) obj; if (other.getFindingIdentifier() == null ^ this.getFindingIdentifier() == null) return false; if (other.getFindingIdentifier() != null && other.getFindingIdentifier().equals(this.getFindingIdentifier()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == 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 + ((getFindingIdentifier() == null) ? 0 : getFindingIdentifier().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetFindingHistoryRequest clone() { return (GetFindingHistoryRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy