/*
* 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
{
///
/// A workload summary return object.
///
public partial class WorkloadSummary
{
private WorkloadImprovementStatus _improvementStatus;
private List _lenses = new List();
private string _owner;
private Dictionary _prioritizedRiskCounts = new Dictionary();
private List _profiles = new List();
private Dictionary _riskCounts = new Dictionary();
private DateTime? _updatedAt;
private string _workloadArn;
private string _workloadId;
private string _workloadName;
///
/// Gets and sets the property ImprovementStatus.
///
public WorkloadImprovementStatus ImprovementStatus
{
get { return this._improvementStatus; }
set { this._improvementStatus = value; }
}
// Check to see if ImprovementStatus property is set
internal bool IsSetImprovementStatus()
{
return this._improvementStatus != null;
}
///
/// Gets and sets the property Lenses.
///
public List Lenses
{
get { return this._lenses; }
set { this._lenses = value; }
}
// Check to see if Lenses property is set
internal bool IsSetLenses()
{
return this._lenses != null && this._lenses.Count > 0;
}
///
/// Gets and sets the property Owner.
///
[AWSProperty(Min=12, Max=12)]
public string Owner
{
get { return this._owner; }
set { this._owner = value; }
}
// Check to see if Owner property is set
internal bool IsSetOwner()
{
return this._owner != null;
}
///
/// Gets and sets the property PrioritizedRiskCounts.
///
public Dictionary PrioritizedRiskCounts
{
get { return this._prioritizedRiskCounts; }
set { this._prioritizedRiskCounts = value; }
}
// Check to see if PrioritizedRiskCounts property is set
internal bool IsSetPrioritizedRiskCounts()
{
return this._prioritizedRiskCounts != null && this._prioritizedRiskCounts.Count > 0;
}
///
/// Gets and sets the property Profiles.
///
/// Profile associated with a workload.
///
///
[AWSProperty(Max=1)]
public List Profiles
{
get { return this._profiles; }
set { this._profiles = value; }
}
// Check to see if Profiles property is set
internal bool IsSetProfiles()
{
return this._profiles != null && this._profiles.Count > 0;
}
///
/// Gets and sets the property RiskCounts.
///
public Dictionary RiskCounts
{
get { return this._riskCounts; }
set { this._riskCounts = value; }
}
// Check to see if RiskCounts property is set
internal bool IsSetRiskCounts()
{
return this._riskCounts != null && this._riskCounts.Count > 0;
}
///
/// 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;
}
///
/// Gets and sets the property WorkloadArn.
///
public string WorkloadArn
{
get { return this._workloadArn; }
set { this._workloadArn = value; }
}
// Check to see if WorkloadArn property is set
internal bool IsSetWorkloadArn()
{
return this._workloadArn != null;
}
///
/// Gets and sets the property WorkloadId.
///
[AWSProperty(Min=32, Max=32)]
public string WorkloadId
{
get { return this._workloadId; }
set { this._workloadId = value; }
}
// Check to see if WorkloadId property is set
internal bool IsSetWorkloadId()
{
return this._workloadId != null;
}
///
/// Gets and sets the property WorkloadName.
///
[AWSProperty(Min=3, Max=100)]
public string WorkloadName
{
get { return this._workloadName; }
set { this._workloadName = value; }
}
// Check to see if WorkloadName property is set
internal bool IsSetWorkloadName()
{
return this._workloadName != null;
}
}
}