/* * 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 { /// /// Container for the parameters to the UpdateWorkspaceImagePermission operation. /// Shares or unshares an image with one account in the same Amazon Web Services Region /// by specifying whether that account has permission to copy the image. If the copy image /// permission is granted, the image is shared with that account. If the copy image permission /// is revoked, the image is unshared with the account. /// /// /// /// After an image has been shared, the recipient account can copy the image to other /// Regions as needed. /// /// /// /// In the China (Ningxia) Region, you can copy images only within the same Region. /// /// /// /// In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact /// Amazon Web Services Support. /// /// /// /// For more information about sharing images, see /// Share or Unshare a Custom WorkSpaces Image. /// /// /// public partial class UpdateWorkspaceImagePermissionRequest : AmazonWorkSpacesRequest { private bool? _allowCopyImage; private string _imageId; private string _sharedAccountId; /// /// Gets and sets the property AllowCopyImage. /// /// The permission to copy the image. This permission can be revoked only after an image /// has been shared. /// /// [AWSProperty(Required=true)] public bool AllowCopyImage { get { return this._allowCopyImage.GetValueOrDefault(); } set { this._allowCopyImage = value; } } // Check to see if AllowCopyImage property is set internal bool IsSetAllowCopyImage() { return this._allowCopyImage.HasValue; } /// /// Gets and sets the property ImageId. /// /// The identifier of the image. /// /// [AWSProperty(Required=true)] 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 SharedAccountId. /// /// The identifier of the Amazon Web Services account to share or unshare the image with. /// /// /// /// Before sharing the image, confirm that you are sharing to the correct Amazon Web Services /// account ID. /// /// /// [AWSProperty(Required=true)] public string SharedAccountId { get { return this._sharedAccountId; } set { this._sharedAccountId = value; } } // Check to see if SharedAccountId property is set internal bool IsSetSharedAccountId() { return this._sharedAccountId != null; } } }