/*
* 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 guardduty-2017-11-28.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.GuardDuty.Model
{
///
/// Container for the parameters to the GetUsageStatistics operation.
/// Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector
/// ID. For newly enabled detectors or data sources, the cost returned will include only
/// the usage so far under 30 days. This may differ from the cost metrics in the console,
/// which project usage over 30 days to provide a monthly cost estimate. For more information,
/// see Understanding
/// How Usage Costs are Calculated.
///
public partial class GetUsageStatisticsRequest : AmazonGuardDutyRequest
{
private string _detectorId;
private int? _maxResults;
private string _nextToken;
private string _unit;
private UsageCriteria _usageCriteria;
private UsageStatisticType _usageStatisticType;
///
/// Gets and sets the property DetectorId.
///
/// The ID of the detector that specifies the GuardDuty service whose usage statistics
/// you want to retrieve.
///
///
[AWSProperty(Required=true, Min=1, Max=300)]
public string DetectorId
{
get { return this._detectorId; }
set { this._detectorId = value; }
}
// Check to see if DetectorId property is set
internal bool IsSetDetectorId()
{
return this._detectorId != null;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of results to return in the response.
///
///
[AWSProperty(Min=1, Max=50)]
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 to use for paginating results that are returned in the response. Set the value
/// of this parameter to null for the first request to a list action. For subsequent calls,
/// use the NextToken value returned from the previous request to continue listing results
/// after the first page.
///
///
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 Unit.
///
/// The currency unit you would like to view your usage statistics in. Current valid values
/// are USD.
///
///
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
///
/// Gets and sets the property UsageCriteria.
///
/// Represents the criteria used for querying usage.
///
///
[AWSProperty(Required=true)]
public UsageCriteria UsageCriteria
{
get { return this._usageCriteria; }
set { this._usageCriteria = value; }
}
// Check to see if UsageCriteria property is set
internal bool IsSetUsageCriteria()
{
return this._usageCriteria != null;
}
///
/// Gets and sets the property UsageStatisticType.
///
/// The type of usage statistics to retrieve.
///
///
[AWSProperty(Required=true)]
public UsageStatisticType UsageStatisticType
{
get { return this._usageStatisticType; }
set { this._usageStatisticType = value; }
}
// Check to see if UsageStatisticType property is set
internal bool IsSetUsageStatisticType()
{
return this._usageStatisticType != null;
}
}
}