/*
* 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 of the question.
///
public partial class Answer
{
private List _choiceAnswers = new List();
private List _choices = new List();
private string _helpfulResourceDisplayText;
private string _helpfulResourceUrl;
private string _improvementPlanUrl;
private bool? _isApplicable;
private string _notes;
private string _pillarId;
private string _questionDescription;
private string _questionId;
private string _questionTitle;
private AnswerReason _reason;
private Risk _risk;
private List _selectedChoices = new List();
///
/// Gets and sets the property ChoiceAnswers.
///
/// A list of selected choices to a question in your workload.
///
///
public List ChoiceAnswers
{
get { return this._choiceAnswers; }
set { this._choiceAnswers = value; }
}
// Check to see if ChoiceAnswers property is set
internal bool IsSetChoiceAnswers()
{
return this._choiceAnswers != null && this._choiceAnswers.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 HelpfulResourceDisplayText.
///
/// The helpful resource text to be displayed for a custom lens.
///
///
///
/// This field does not apply to Amazon Web Services official lenses.
///
///
[AWSProperty(Min=1, Max=64)]
public string HelpfulResourceDisplayText
{
get { return this._helpfulResourceDisplayText; }
set { this._helpfulResourceDisplayText = value; }
}
// Check to see if HelpfulResourceDisplayText property is set
internal bool IsSetHelpfulResourceDisplayText()
{
return this._helpfulResourceDisplayText != null;
}
///
/// Gets and sets the property HelpfulResourceUrl.
///
[AWSProperty(Min=1, Max=2048)]
public string HelpfulResourceUrl
{
get { return this._helpfulResourceUrl; }
set { this._helpfulResourceUrl = value; }
}
// Check to see if HelpfulResourceUrl property is set
internal bool IsSetHelpfulResourceUrl()
{
return this._helpfulResourceUrl != null;
}
///
/// Gets and sets the property ImprovementPlanUrl.
///
[AWSProperty(Min=1, Max=2048)]
public string ImprovementPlanUrl
{
get { return this._improvementPlanUrl; }
set { this._improvementPlanUrl = value; }
}
// Check to see if ImprovementPlanUrl property is set
internal bool IsSetImprovementPlanUrl()
{
return this._improvementPlanUrl != null;
}
///
/// 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 Notes.
///
[AWSProperty(Max=2084)]
public string Notes
{
get { return this._notes; }
set { this._notes = value; }
}
// Check to see if Notes property is set
internal bool IsSetNotes()
{
return this._notes != 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 QuestionDescription.
///
[AWSProperty(Min=1, Max=1024)]
public string QuestionDescription
{
get { return this._questionDescription; }
set { this._questionDescription = value; }
}
// Check to see if QuestionDescription property is set
internal bool IsSetQuestionDescription()
{
return this._questionDescription != 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 Reason.
///
/// The reason why the question is not applicable to 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;
}
}
}