/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the securityhub-2018-10-26.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SecurityHub.Model
{
///
/// Container for the parameters to the GetFindingHistory operation.
/// Returns history for a Security Hub finding in the last 90 days. The history includes
/// changes made to any fields in the Amazon Web Services Security Finding Format (ASFF).
///
public partial class GetFindingHistoryRequest : AmazonSecurityHubRequest
{
private DateTime? _endTime;
private AwsSecurityFindingIdentifier _findingIdentifier;
private int? _maxResults;
private string _nextToken;
private DateTime? _startTime;
///
/// Gets and sets the property 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 DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property FindingIdentifier.
///
[AWSProperty(Required=true)]
public AwsSecurityFindingIdentifier FindingIdentifier
{
get { return this._findingIdentifier; }
set { this._findingIdentifier = value; }
}
// Check to see if FindingIdentifier property is set
internal bool IsSetFindingIdentifier()
{
return this._findingIdentifier != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property 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 string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property 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 DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
}
}