/* * 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 resiliencehub-2020-04-30.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.ResilienceHub.Model { /// /// Defines an application assessment. /// public partial class AppAssessment { private string _appArn; private string _appVersion; private string _assessmentArn; private string _assessmentName; private AssessmentStatus _assessmentStatus; private Dictionary _compliance = new Dictionary(); private ComplianceStatus _complianceStatus; private Cost _cost; private DateTime? _endTime; private AssessmentInvoker _invoker; private string _message; private ResiliencyPolicy _policy; private ResiliencyScore _resiliencyScore; private ResourceErrorsDetails _resourceErrorsDetails; private DateTime? _startTime; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property AppArn. /// /// The Amazon Resource Name (ARN) of the Resilience Hub application. The format for this /// ARN is: arn:partition:resiliencehub:region:account:app/app-id. /// For more information about ARNs, see /// Amazon Resource Names (ARNs) in the AWS General Reference guide. /// /// public string AppArn { get { return this._appArn; } set { this._appArn = value; } } // Check to see if AppArn property is set internal bool IsSetAppArn() { return this._appArn != null; } /// /// Gets and sets the property AppVersion. /// /// The version of the application. /// /// public string AppVersion { get { return this._appVersion; } set { this._appVersion = value; } } // Check to see if AppVersion property is set internal bool IsSetAppVersion() { return this._appVersion != null; } /// /// Gets and sets the property AssessmentArn. /// /// The Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. /// For more information about ARNs, see /// Amazon Resource Names (ARNs) in the AWS General Reference guide. /// /// [AWSProperty(Required=true)] public string AssessmentArn { get { return this._assessmentArn; } set { this._assessmentArn = value; } } // Check to see if AssessmentArn property is set internal bool IsSetAssessmentArn() { return this._assessmentArn != null; } /// /// Gets and sets the property AssessmentName. /// /// The name of the assessment. /// /// public string AssessmentName { get { return this._assessmentName; } set { this._assessmentName = value; } } // Check to see if AssessmentName property is set internal bool IsSetAssessmentName() { return this._assessmentName != null; } /// /// Gets and sets the property AssessmentStatus. /// /// The current status of the assessment for the resiliency policy. /// /// [AWSProperty(Required=true)] public AssessmentStatus AssessmentStatus { get { return this._assessmentStatus; } set { this._assessmentStatus = value; } } // Check to see if AssessmentStatus property is set internal bool IsSetAssessmentStatus() { return this._assessmentStatus != null; } /// /// Gets and sets the property Compliance. /// /// The application compliance against the resiliency policy. /// /// public Dictionary Compliance { get { return this._compliance; } set { this._compliance = value; } } // Check to see if Compliance property is set internal bool IsSetCompliance() { return this._compliance != null && this._compliance.Count > 0; } /// /// Gets and sets the property ComplianceStatus. /// /// The current status of the compliance for the resiliency policy. /// /// public ComplianceStatus ComplianceStatus { get { return this._complianceStatus; } set { this._complianceStatus = value; } } // Check to see if ComplianceStatus property is set internal bool IsSetComplianceStatus() { return this._complianceStatus != null; } /// /// Gets and sets the property Cost. /// /// The cost for the application. /// /// public Cost Cost { get { return this._cost; } set { this._cost = value; } } // Check to see if Cost property is set internal bool IsSetCost() { return this._cost != null; } /// /// Gets and sets the property EndTime. /// /// The end time for the action. /// /// 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 Invoker. /// /// The entity that invoked the assessment. /// /// [AWSProperty(Required=true)] public AssessmentInvoker Invoker { get { return this._invoker; } set { this._invoker = value; } } // Check to see if Invoker property is set internal bool IsSetInvoker() { return this._invoker != null; } /// /// Gets and sets the property Message. /// /// Error or warning message from the assessment execution /// /// [AWSProperty(Min=1, Max=500)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// /// Gets and sets the property Policy. /// /// The resiliency policy. /// /// public ResiliencyPolicy Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// /// Gets and sets the property ResiliencyScore. /// /// The current resiliency score for the application. /// /// public ResiliencyScore ResiliencyScore { get { return this._resiliencyScore; } set { this._resiliencyScore = value; } } // Check to see if ResiliencyScore property is set internal bool IsSetResiliencyScore() { return this._resiliencyScore != null; } /// /// Gets and sets the property ResourceErrorsDetails. /// /// A resource error object containing a list of errors retrieving an application's resources. /// /// /// public ResourceErrorsDetails ResourceErrorsDetails { get { return this._resourceErrorsDetails; } set { this._resourceErrorsDetails = value; } } // Check to see if ResourceErrorsDetails property is set internal bool IsSetResourceErrorsDetails() { return this._resourceErrorsDetails != null; } /// /// Gets and sets the property StartTime. /// /// The starting time for the action. /// /// 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; } /// /// Gets and sets the property Tags. /// /// The tags assigned to the resource. A tag is a label that you assign to an Amazon Web /// Services resource. Each tag consists of a key/value pair. /// /// [AWSProperty(Sensitive=true, Min=1, Max=50)] public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }