/* * 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model { /// /// This is the response object from the GetDocument operation. /// public partial class GetDocumentResponse : AmazonWebServiceResponse { private List _attachmentsContent = new List(); private string _content; private DateTime? _createdDate; private string _displayName; private DocumentFormat _documentFormat; private DocumentType _documentType; private string _documentVersion; private string _name; private List _requires = new List(); private ReviewStatus _reviewStatus; private DocumentStatus _status; private string _statusInformation; private string _versionName; /// /// Gets and sets the property AttachmentsContent. /// /// A description of the document attachments, including names, locations, sizes, and /// so on. /// /// public List AttachmentsContent { get { return this._attachmentsContent; } set { this._attachmentsContent = value; } } // Check to see if AttachmentsContent property is set internal bool IsSetAttachmentsContent() { return this._attachmentsContent != null && this._attachmentsContent.Count > 0; } /// /// Gets and sets the property Content. /// /// The contents of the SSM document. /// /// [AWSProperty(Min=1)] public string Content { get { return this._content; } set { this._content = value; } } // Check to see if Content property is set internal bool IsSetContent() { return this._content != null; } /// /// Gets and sets the property CreatedDate. /// /// The date the SSM document was created. /// /// public DateTime CreatedDate { get { return this._createdDate.GetValueOrDefault(); } set { this._createdDate = value; } } // Check to see if CreatedDate property is set internal bool IsSetCreatedDate() { return this._createdDate.HasValue; } /// /// Gets and sets the property DisplayName. /// /// The friendly name of the SSM document. This value can differ for each version of the /// document. If you want to update this value, see UpdateDocument. /// /// [AWSProperty(Max=1024)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// /// Gets and sets the property DocumentFormat. /// /// The document format, either JSON or YAML. /// /// public DocumentFormat DocumentFormat { get { return this._documentFormat; } set { this._documentFormat = value; } } // Check to see if DocumentFormat property is set internal bool IsSetDocumentFormat() { return this._documentFormat != null; } /// /// Gets and sets the property DocumentType. /// /// The document type. /// /// public DocumentType DocumentType { get { return this._documentType; } set { this._documentType = value; } } // Check to see if DocumentType property is set internal bool IsSetDocumentType() { return this._documentType != null; } /// /// Gets and sets the property DocumentVersion. /// /// The document version. /// /// public string DocumentVersion { get { return this._documentVersion; } set { this._documentVersion = value; } } // Check to see if DocumentVersion property is set internal bool IsSetDocumentVersion() { return this._documentVersion != null; } /// /// Gets and sets the property Name. /// /// The name of the SSM document. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Requires. /// /// A list of SSM documents required by a document. For example, an ApplicationConfiguration /// document requires an ApplicationConfigurationSchema document. /// /// [AWSProperty(Min=1)] public List Requires { get { return this._requires; } set { this._requires = value; } } // Check to see if Requires property is set internal bool IsSetRequires() { return this._requires != null && this._requires.Count > 0; } /// /// Gets and sets the property ReviewStatus. /// /// The current review status of a new custom Systems Manager document (SSM document) /// created by a member of your organization, or of the latest version of an existing /// SSM document. /// /// /// /// Only one version of an SSM document can be in the APPROVED state at a time. When a /// new version is approved, the status of the previous version changes to REJECTED. /// /// /// /// Only one version of an SSM document can be in review, or PENDING, at a time. /// /// public ReviewStatus ReviewStatus { get { return this._reviewStatus; } set { this._reviewStatus = value; } } // Check to see if ReviewStatus property is set internal bool IsSetReviewStatus() { return this._reviewStatus != null; } /// /// Gets and sets the property Status. /// /// The status of the SSM document, such as Creating, Active, /// Updating, Failed, and Deleting. /// /// public DocumentStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StatusInformation. /// /// A message returned by Amazon Web Services Systems Manager that explains the Status /// value. For example, a Failed status might be explained by the StatusInformation /// message, "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket /// is correct." /// /// public string StatusInformation { get { return this._statusInformation; } set { this._statusInformation = value; } } // Check to see if StatusInformation property is set internal bool IsSetStatusInformation() { return this._statusInformation != null; } /// /// Gets and sets the property VersionName. /// /// The version of the artifact associated with the document. For example, "Release 12, /// Update 6". This value is unique across all versions of a document, and can't be changed. /// /// public string VersionName { get { return this._versionName; } set { this._versionName = value; } } // Check to see if VersionName property is set internal bool IsSetVersionName() { return this._versionName != null; } } }