/*
* 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
{
///
/// Describes a resource associated with a resource share in RAM.
///
public partial class Resource
{
private string _arn;
private DateTime? _creationTime;
private DateTime? _lastUpdatedTime;
private string _resourceGroupArn;
private ResourceRegionScope _resourceRegionScope;
private string _resourceShareArn;
private ResourceStatus _status;
private string _statusMessage;
private string _type;
///
/// Gets and sets the property Arn.
///
/// The Amazon
/// Resource Name (ARN) of the resource.
///
///
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property CreationTime.
///
/// The date and time when the resource was associated with the resource share.
///
///
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 LastUpdatedTime.
///
/// The date an time when the association between the resource and the resource share
/// 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 ResourceGroupArn.
///
/// The Amazon
/// Resource Name (ARN) of the resource group. This value is available only if the
/// resource is part of a resource group.
///
///
public string ResourceGroupArn
{
get { return this._resourceGroupArn; }
set { this._resourceGroupArn = value; }
}
// Check to see if ResourceGroupArn property is set
internal bool IsSetResourceGroupArn()
{
return this._resourceGroupArn != null;
}
///
/// Gets and sets the property ResourceRegionScope.
///
/// Specifies the scope of visibility of this resource:
///
/// -
///
/// REGIONAL – The resource can be accessed only by using requests that target
/// the Amazon Web Services Region in which the resource exists.
///
///
-
///
/// GLOBAL – The resource can be accessed from any Amazon Web Services Region.
///
///
///
public ResourceRegionScope ResourceRegionScope
{
get { return this._resourceRegionScope; }
set { this._resourceRegionScope = value; }
}
// Check to see if ResourceRegionScope property is set
internal bool IsSetResourceRegionScope()
{
return this._resourceRegionScope != null;
}
///
/// Gets and sets the property ResourceShareArn.
///
/// The Amazon
/// Resource Name (ARN) of the resource share this resource is associated with.
///
///
public string ResourceShareArn
{
get { return this._resourceShareArn; }
set { this._resourceShareArn = value; }
}
// Check to see if ResourceShareArn property is set
internal bool IsSetResourceShareArn()
{
return this._resourceShareArn != null;
}
///
/// Gets and sets the property Status.
///
/// The current status of the resource.
///
///
public ResourceStatus 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.
///
/// A message about the status of the resource.
///
///
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 Type.
///
/// The resource type. This takes the form of: service-code
:resource-code
,
/// and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by
/// the string ec2:subnet
.
///
///
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}