/*
* 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 es-2015-01-01.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.Elasticsearch.Model
{
///
/// Information on a package that is associated with a domain.
///
public partial class DomainPackageDetails
{
private string _domainName;
private DomainPackageStatus _domainPackageStatus;
private ErrorDetails _errorDetails;
private DateTime? _lastUpdated;
private string _packageID;
private string _packageName;
private PackageType _packageType;
private string _packageVersion;
private string _referencePath;
///
/// Gets and sets the property DomainName.
///
/// Name of the domain you've associated a package with.
///
///
[AWSProperty(Min=3, Max=28)]
public string DomainName
{
get { return this._domainName; }
set { this._domainName = value; }
}
// Check to see if DomainName property is set
internal bool IsSetDomainName()
{
return this._domainName != null;
}
///
/// Gets and sets the property DomainPackageStatus.
///
/// State of the association. Values are ASSOCIATING/ASSOCIATION_FAILED/ACTIVE/DISSOCIATING/DISSOCIATION_FAILED.
///
///
public DomainPackageStatus DomainPackageStatus
{
get { return this._domainPackageStatus; }
set { this._domainPackageStatus = value; }
}
// Check to see if DomainPackageStatus property is set
internal bool IsSetDomainPackageStatus()
{
return this._domainPackageStatus != null;
}
///
/// Gets and sets the property ErrorDetails.
///
/// Additional information if the package is in an error state. Null otherwise.
///
///
public ErrorDetails ErrorDetails
{
get { return this._errorDetails; }
set { this._errorDetails = value; }
}
// Check to see if ErrorDetails property is set
internal bool IsSetErrorDetails()
{
return this._errorDetails != null;
}
///
/// Gets and sets the property LastUpdated.
///
/// Timestamp of the most-recent update to the association status.
///
///
public DateTime LastUpdated
{
get { return this._lastUpdated.GetValueOrDefault(); }
set { this._lastUpdated = value; }
}
// Check to see if LastUpdated property is set
internal bool IsSetLastUpdated()
{
return this._lastUpdated.HasValue;
}
///
/// Gets and sets the property PackageID.
///
/// Internal ID of the package.
///
///
public string PackageID
{
get { return this._packageID; }
set { this._packageID = value; }
}
// Check to see if PackageID property is set
internal bool IsSetPackageID()
{
return this._packageID != null;
}
///
/// Gets and sets the property PackageName.
///
/// User specified name of the package.
///
///
[AWSProperty(Min=3, Max=28)]
public string PackageName
{
get { return this._packageName; }
set { this._packageName = value; }
}
// Check to see if PackageName property is set
internal bool IsSetPackageName()
{
return this._packageName != null;
}
///
/// Gets and sets the property PackageType.
///
/// Currently supports only TXT-DICTIONARY.
///
///
public PackageType PackageType
{
get { return this._packageType; }
set { this._packageType = value; }
}
// Check to see if PackageType property is set
internal bool IsSetPackageType()
{
return this._packageType != null;
}
///
/// Gets and sets the property PackageVersion.
///
public string PackageVersion
{
get { return this._packageVersion; }
set { this._packageVersion = value; }
}
// Check to see if PackageVersion property is set
internal bool IsSetPackageVersion()
{
return this._packageVersion != null;
}
///
/// Gets and sets the property ReferencePath.
///
/// The relative path on Amazon ES nodes, which can be used as synonym_path when the package
/// is synonym file.
///
///
public string ReferencePath
{
get { return this._referencePath; }
set { this._referencePath = value; }
}
// Check to see if ReferencePath property is set
internal bool IsSetReferencePath()
{
return this._referencePath != null;
}
}
}