/*
* 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 inspector2-2020-06-08.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.Inspector2.Model
{
///
/// Contains usage information about the cost of Amazon Inspector operation.
///
public partial class Usage
{
private Currency _currency;
private double? _estimatedMonthlyCost;
private double? _total;
private UsageType _type;
///
/// Gets and sets the property Currency.
///
/// The currency type used when calculating usage data.
///
///
public Currency Currency
{
get { return this._currency; }
set { this._currency = value; }
}
// Check to see if Currency property is set
internal bool IsSetCurrency()
{
return this._currency != null;
}
///
/// Gets and sets the property EstimatedMonthlyCost.
///
/// The estimated monthly cost of Amazon Inspector.
///
///
[AWSProperty(Min=0)]
public double EstimatedMonthlyCost
{
get { return this._estimatedMonthlyCost.GetValueOrDefault(); }
set { this._estimatedMonthlyCost = value; }
}
// Check to see if EstimatedMonthlyCost property is set
internal bool IsSetEstimatedMonthlyCost()
{
return this._estimatedMonthlyCost.HasValue;
}
///
/// Gets and sets the property Total.
///
/// The total of usage.
///
///
[AWSProperty(Min=0)]
public double Total
{
get { return this._total.GetValueOrDefault(); }
set { this._total = value; }
}
// Check to see if Total property is set
internal bool IsSetTotal()
{
return this._total.HasValue;
}
///
/// Gets and sets the property Type.
///
/// The type scan.
///
///
public UsageType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}