/* * 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 { /// /// An answer summary of a lens review in a workload. /// public partial class AnswerSummary { private List _choiceAnswerSummaries = new List(); private List _choices = new List(); private bool? _isApplicable; private string _pillarId; private string _questionId; private string _questionTitle; private QuestionType _questionType; private AnswerReason _reason; private Risk _risk; private List _selectedChoices = new List(); /// /// Gets and sets the property ChoiceAnswerSummaries. /// /// A list of selected choices to a question in your workload. /// /// public List ChoiceAnswerSummaries { get { return this._choiceAnswerSummaries; } set { this._choiceAnswerSummaries = value; } } // Check to see if ChoiceAnswerSummaries property is set internal bool IsSetChoiceAnswerSummaries() { return this._choiceAnswerSummaries != null && this._choiceAnswerSummaries.Count > 0; } /// /// Gets and sets the property Choices. /// public List Choices { get { return this._choices; } set { this._choices = value; } } // Check to see if Choices property is set internal bool IsSetChoices() { return this._choices != null && this._choices.Count > 0; } /// /// Gets and sets the property IsApplicable. /// public bool IsApplicable { get { return this._isApplicable.GetValueOrDefault(); } set { this._isApplicable = value; } } // Check to see if IsApplicable property is set internal bool IsSetIsApplicable() { return this._isApplicable.HasValue; } /// /// 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 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 QuestionTitle. /// [AWSProperty(Min=1, Max=512)] public string QuestionTitle { get { return this._questionTitle; } set { this._questionTitle = value; } } // Check to see if QuestionTitle property is set internal bool IsSetQuestionTitle() { return this._questionTitle != null; } /// /// Gets and sets the property QuestionType. /// /// The type of the question. /// /// public QuestionType QuestionType { get { return this._questionType; } set { this._questionType = value; } } // Check to see if QuestionType property is set internal bool IsSetQuestionType() { return this._questionType != null; } /// /// Gets and sets the property Reason. /// /// The reason why a choice is non-applicable to a question in your workload. /// /// public AnswerReason 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 Risk. /// public Risk Risk { get { return this._risk; } set { this._risk = value; } } // Check to see if Risk property is set internal bool IsSetRisk() { return this._risk != null; } /// /// Gets and sets the property SelectedChoices. /// public List SelectedChoices { get { return this._selectedChoices; } set { this._selectedChoices = value; } } // Check to see if SelectedChoices property is set internal bool IsSetSelectedChoices() { return this._selectedChoices != null && this._selectedChoices.Count > 0; } } }