/*
* 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
{
///
/// Contains summary information about a reference. ReferenceSummary
contains
/// only one non null field between the URL and attachment based on the reference type.
///
public partial class ReferenceSummary
{
private AttachmentReference _attachment;
private DateReference _date;
private EmailReference _email;
private NumberReference _number;
private StringReference _string;
private UrlReference _url;
///
/// Gets and sets the property Attachment.
///
/// Information about the reference when the referenceType
is ATTACHMENT
.
/// Otherwise, null.
///
///
public AttachmentReference Attachment
{
get { return this._attachment; }
set { this._attachment = value; }
}
// Check to see if Attachment property is set
internal bool IsSetAttachment()
{
return this._attachment != null;
}
///
/// Gets and sets the property Date.
///
/// Information about a reference when the referenceType
is DATE
.
/// Otherwise, null.
///
///
public DateReference Date
{
get { return this._date; }
set { this._date = value; }
}
// Check to see if Date property is set
internal bool IsSetDate()
{
return this._date != null;
}
///
/// Gets and sets the property Email.
///
/// Information about a reference when the referenceType
is EMAIL
.
/// Otherwise, null.
///
///
public EmailReference Email
{
get { return this._email; }
set { this._email = value; }
}
// Check to see if Email property is set
internal bool IsSetEmail()
{
return this._email != null;
}
///
/// Gets and sets the property Number.
///
/// Information about a reference when the referenceType
is NUMBER
.
/// Otherwise, null.
///
///
public NumberReference Number
{
get { return this._number; }
set { this._number = value; }
}
// Check to see if Number property is set
internal bool IsSetNumber()
{
return this._number != null;
}
///
/// Gets and sets the property String.
///
/// Information about a reference when the referenceType
is STRING
.
/// Otherwise, null.
///
///
public StringReference String
{
get { return this._string; }
set { this._string = value; }
}
// Check to see if String property is set
internal bool IsSetString()
{
return this._string != null;
}
///
/// Gets and sets the property Url.
///
/// Information about the reference when the referenceType
is URL
.
/// Otherwise, null.
///
///
public UrlReference Url
{
get { return this._url; }
set { this._url = value; }
}
// Check to see if Url property is set
internal bool IsSetUrl()
{
return this._url != null;
}
}
}