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.782
Show newest version
/*
 * 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.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;
    /**
     * 

* A timestamp that indicates the start time of the requested finding history. *

*

* 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. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

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

* An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. *

*

* 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. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
*/ 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; } /** *

* A timestamp that indicates the start time of the requested finding history. *

*

* 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. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
* * @param startTime * A timestamp that indicates the start time of the requested finding history.

*

* 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. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

    *
  • */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

    * A timestamp that indicates the start time of the requested finding history. *

    *

    * 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. *

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

      *
    • *
    * * @return A timestamp that indicates the start time of the requested finding history.

    *

    * 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. *

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

      *
    • */ public java.util.Date getStartTime() { return this.startTime; } /** *

      * A timestamp that indicates the start time of the requested finding history. *

      *

      * 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. *

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

        *
      • *
      * * @param startTime * A timestamp that indicates the start time of the requested finding history.

      *

      * 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. *

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

        *
      • * @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. *

        *

        * 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. *

        *

        * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

        *
          *
        • *

          * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

          *
        • *
        * * @param endTime * An ISO 8601-formatted timestamp that indicates the end time of the requested finding history.

        *

        * 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. *

        *

        * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

        *
          *
        • *

          * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

          *
        • */ 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. *

          *

          * 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. *

          *

          * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

          *
            *
          • *

            * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

            *
          • *
          * * @return An ISO 8601-formatted timestamp that indicates the end time of the requested finding history.

          *

          * 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. *

          *

          * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

          *
            *
          • *

            * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

            *
          • */ public java.util.Date getEndTime() { return this.endTime; } /** *

            * An ISO 8601-formatted timestamp that indicates the end time of the requested finding history. *

            *

            * 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. *

            *

            * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

            *
              *
            • *

              * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

              *
            • *
            * * @param endTime * An ISO 8601-formatted timestamp that indicates the end time of the requested finding history.

            *

            * 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. *

            *

            * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

            *
              *
            • *

              * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

              *
            • * @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