/*
* 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 connect-2017-08-08.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.Connect.Model
{
///
/// Information about a question from an evaluation form.
///
public partial class EvaluationFormQuestion
{
private string _instructions;
private bool? _notApplicableEnabled;
private EvaluationFormQuestionType _questionType;
private EvaluationFormQuestionTypeProperties _questionTypeProperties;
private string _refId;
private string _title;
private double? _weight;
///
/// Gets and sets the property Instructions.
///
/// The instructions of the section.
///
///
[AWSProperty(Min=0, Max=1024)]
public string Instructions
{
get { return this._instructions; }
set { this._instructions = value; }
}
// Check to see if Instructions property is set
internal bool IsSetInstructions()
{
return this._instructions != null;
}
///
/// Gets and sets the property NotApplicableEnabled.
///
/// The flag to enable not applicable answers to the question.
///
///
public bool NotApplicableEnabled
{
get { return this._notApplicableEnabled.GetValueOrDefault(); }
set { this._notApplicableEnabled = value; }
}
// Check to see if NotApplicableEnabled property is set
internal bool IsSetNotApplicableEnabled()
{
return this._notApplicableEnabled.HasValue;
}
///
/// Gets and sets the property QuestionType.
///
/// The type of the question.
///
///
[AWSProperty(Required=true)]
public EvaluationFormQuestionType 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 QuestionTypeProperties.
///
/// The properties of the type of question. Text questions do not have to define question
/// type properties.
///
///
public EvaluationFormQuestionTypeProperties QuestionTypeProperties
{
get { return this._questionTypeProperties; }
set { this._questionTypeProperties = value; }
}
// Check to see if QuestionTypeProperties property is set
internal bool IsSetQuestionTypeProperties()
{
return this._questionTypeProperties != null;
}
///
/// Gets and sets the property RefId.
///
/// The identifier of the question. An identifier must be unique within the evaluation
/// form.
///
///
[AWSProperty(Required=true, Min=1, Max=40)]
public string RefId
{
get { return this._refId; }
set { this._refId = value; }
}
// Check to see if RefId property is set
internal bool IsSetRefId()
{
return this._refId != null;
}
///
/// Gets and sets the property Title.
///
/// The title of the question.
///
///
[AWSProperty(Required=true, Min=0, Max=350)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
///
/// Gets and sets the property Weight.
///
/// The scoring weight of the section.
///
///
[AWSProperty(Min=0, Max=100)]
public double Weight
{
get { return this._weight.GetValueOrDefault(); }
set { this._weight = value; }
}
// Check to see if Weight property is set
internal bool IsSetWeight()
{
return this._weight.HasValue;
}
}
}