/* * 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 workspaces-2015-04-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.WorkSpaces.Model { /// /// Describes a WorkSpace image. /// public partial class WorkspaceImage { private DateTime? _created; private string _description; private string _errorCode; private string _errorMessage; private string _imageId; private string _name; private OperatingSystem _operatingSystem; private string _ownerAccountId; private WorkspaceImageRequiredTenancy _requiredTenancy; private WorkspaceImageState _state; private UpdateResult _updates; /// /// Gets and sets the property Created. /// /// The date when the image was created. If the image has been shared, the Amazon Web /// Services account that the image has been shared with sees the original creation date /// of the image. /// /// public DateTime Created { get { return this._created.GetValueOrDefault(); } set { this._created = value; } } // Check to see if Created property is set internal bool IsSetCreated() { return this._created.HasValue; } /// /// Gets and sets the property Description. /// /// The description of the image. /// /// [AWSProperty(Min=1, Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property ErrorCode. /// /// The error code that is returned for the image. /// /// public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// /// Gets and sets the property ErrorMessage. /// /// The text of the error message that is returned for the image. /// /// public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// /// Gets and sets the property ImageId. /// /// The identifier of the image. /// /// public string ImageId { get { return this._imageId; } set { this._imageId = value; } } // Check to see if ImageId property is set internal bool IsSetImageId() { return this._imageId != null; } /// /// Gets and sets the property Name. /// /// The name of the image. /// /// [AWSProperty(Min=1, Max=64)] 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 OperatingSystem. /// /// The operating system that the image is running. /// /// public OperatingSystem OperatingSystem { get { return this._operatingSystem; } set { this._operatingSystem = value; } } // Check to see if OperatingSystem property is set internal bool IsSetOperatingSystem() { return this._operatingSystem != null; } /// /// Gets and sets the property OwnerAccountId. /// /// The identifier of the Amazon Web Services account that owns the image. /// /// public string OwnerAccountId { get { return this._ownerAccountId; } set { this._ownerAccountId = value; } } // Check to see if OwnerAccountId property is set internal bool IsSetOwnerAccountId() { return this._ownerAccountId != null; } /// /// Gets and sets the property RequiredTenancy. /// /// Specifies whether the image is running on dedicated hardware. When Bring Your Own /// License (BYOL) is enabled, this value is set to DEDICATED. For more information, /// see Bring /// Your Own Windows Desktop Images. /// /// public WorkspaceImageRequiredTenancy RequiredTenancy { get { return this._requiredTenancy; } set { this._requiredTenancy = value; } } // Check to see if RequiredTenancy property is set internal bool IsSetRequiredTenancy() { return this._requiredTenancy != null; } /// /// Gets and sets the property State. /// /// The status of the image. /// /// public WorkspaceImageState State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// /// Gets and sets the property Updates. /// /// The updates (if any) that are available for the specified image. /// /// public UpdateResult Updates { get { return this._updates; } set { this._updates = value; } } // Check to see if Updates property is set internal bool IsSetUpdates() { return this._updates != null; } } }