/*
* 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 wellarchitected-2020-03-31.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.WellArchitected.Model
{
///
/// Account details for a Well-Architected best practice in relation to Trusted Advisor
/// checks.
///
public partial class CheckDetail
{
private string _accountId;
private string _choiceId;
private string _description;
private int? _flaggedResources;
private string _id;
private string _lensArn;
private string _name;
private string _pillarId;
private CheckProvider _provider;
private string _questionId;
private CheckFailureReason _reason;
private CheckStatus _status;
private DateTime? _updatedAt;
///
/// Gets and sets the property AccountId.
///
[AWSProperty(Min=12, Max=12)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property ChoiceId.
///
[AWSProperty(Min=1, Max=64)]
public string ChoiceId
{
get { return this._choiceId; }
set { this._choiceId = value; }
}
// Check to see if ChoiceId property is set
internal bool IsSetChoiceId()
{
return this._choiceId != null;
}
///
/// Gets and sets the property Description.
///
/// Trusted Advisor check description.
///
///
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property FlaggedResources.
///
/// Count of flagged resources associated to the check.
///
///
[AWSProperty(Min=1, Max=9999)]
public int FlaggedResources
{
get { return this._flaggedResources.GetValueOrDefault(); }
set { this._flaggedResources = value; }
}
// Check to see if FlaggedResources property is set
internal bool IsSetFlaggedResources()
{
return this._flaggedResources.HasValue;
}
///
/// Gets and sets the property Id.
///
/// Trusted Advisor check ID.
///
///
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property LensArn.
///
/// Well-Architected Lens ARN associated to the check.
///
///
public string LensArn
{
get { return this._lensArn; }
set { this._lensArn = value; }
}
// Check to see if LensArn property is set
internal bool IsSetLensArn()
{
return this._lensArn != null;
}
///
/// Gets and sets the property Name.
///
/// Trusted Advisor check name.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property PillarId.
///
[AWSProperty(Min=1, Max=64)]
public string PillarId
{
get { return this._pillarId; }
set { this._pillarId = value; }
}
// Check to see if PillarId property is set
internal bool IsSetPillarId()
{
return this._pillarId != null;
}
///
/// Gets and sets the property Provider.
///
/// Provider of the check related to the best practice.
///
///
public CheckProvider Provider
{
get { return this._provider; }
set { this._provider = value; }
}
// Check to see if Provider property is set
internal bool IsSetProvider()
{
return this._provider != null;
}
///
/// Gets and sets the property QuestionId.
///
[AWSProperty(Min=1, Max=128)]
public string QuestionId
{
get { return this._questionId; }
set { this._questionId = value; }
}
// Check to see if QuestionId property is set
internal bool IsSetQuestionId()
{
return this._questionId != null;
}
///
/// Gets and sets the property Reason.
///
/// Reason associated to the check.
///
///
public CheckFailureReason Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
///
/// Gets and sets the property Status.
///
/// Status associated to the check.
///
///
public CheckStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property UpdatedAt.
///
public DateTime UpdatedAt
{
get { return this._updatedAt.GetValueOrDefault(); }
set { this._updatedAt = value; }
}
// Check to see if UpdatedAt property is set
internal bool IsSetUpdatedAt()
{
return this._updatedAt.HasValue;
}
}
}