/* * 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 ram-2018-01-04.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.RAM.Model { /// /// A structure that represents the background work that RAM performs when you invoke /// the ReplacePermissionAssociations operation. /// public partial class ReplacePermissionAssociationsWork { private DateTime? _creationTime; private string _fromPermissionArn; private string _fromPermissionVersion; private string _id; private DateTime? _lastUpdatedTime; private ReplacePermissionAssociationsWorkStatus _status; private string _statusMessage; private string _toPermissionArn; private string _toPermissionVersion; /// /// Gets and sets the property CreationTime. /// /// The date and time when this asynchronous background task was created. /// /// public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// /// Gets and sets the property FromPermissionArn. /// /// The Amazon /// Resource Name (ARN) of the managed permission that this background task is replacing. /// /// public string FromPermissionArn { get { return this._fromPermissionArn; } set { this._fromPermissionArn = value; } } // Check to see if FromPermissionArn property is set internal bool IsSetFromPermissionArn() { return this._fromPermissionArn != null; } /// /// Gets and sets the property FromPermissionVersion. /// /// The version of the managed permission that this background task is replacing. /// /// public string FromPermissionVersion { get { return this._fromPermissionVersion; } set { this._fromPermissionVersion = value; } } // Check to see if FromPermissionVersion property is set internal bool IsSetFromPermissionVersion() { return this._fromPermissionVersion != null; } /// /// Gets and sets the property Id. /// /// The unique identifier for the background task associated with one ReplacePermissionAssociations /// request. /// /// public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property LastUpdatedTime. /// /// The date and time when the status of this background task was last updated. /// /// public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// /// Gets and sets the property Status. /// /// Specifies the current status of the background tasks for the specified ID. The output /// is one of the following strings: /// /// /// public ReplacePermissionAssociationsWorkStatus 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 StatusMessage. /// /// Specifies the reason for a FAILED status. This field is present only /// when there status is FAILED. /// /// public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } /// /// Gets and sets the property ToPermissionArn. /// /// The ARN of the managed permission that this background task is associating with the /// resource shares in place of the managed permission and version specified in fromPermissionArn /// and fromPermissionVersion. /// /// public string ToPermissionArn { get { return this._toPermissionArn; } set { this._toPermissionArn = value; } } // Check to see if ToPermissionArn property is set internal bool IsSetToPermissionArn() { return this._toPermissionArn != null; } /// /// Gets and sets the property ToPermissionVersion. /// /// The version of the managed permission that this background task is associating with /// the resource shares. This is always the version that is currently the default for /// this managed permission. /// /// public string ToPermissionVersion { get { return this._toPermissionVersion; } set { this._toPermissionVersion = value; } } // Check to see if ToPermissionVersion property is set internal bool IsSetToPermissionVersion() { return this._toPermissionVersion != null; } } }