/*
* 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 share in RAM.
///
public partial class ResourceShare
{
private bool? _allowExternalPrincipals;
private DateTime? _creationTime;
private ResourceShareFeatureSet _featureSet;
private DateTime? _lastUpdatedTime;
private string _name;
private string _owningAccountId;
private string _resourceShareArn;
private ResourceShareStatus _status;
private string _statusMessage;
private List _tags = new List();
///
/// Gets and sets the property AllowExternalPrincipals.
///
/// Indicates whether principals outside your organization in Organizations can be associated
/// with a resource share.
///
/// -
///
///
True
– the resource share can be shared with any Amazon Web Services
/// account.
///
/// -
///
///
False
– the resource share can be shared with only accounts in the same
/// organization as the account that owns the resource share.
///
///
///
public bool AllowExternalPrincipals
{
get { return this._allowExternalPrincipals.GetValueOrDefault(); }
set { this._allowExternalPrincipals = value; }
}
// Check to see if AllowExternalPrincipals property is set
internal bool IsSetAllowExternalPrincipals()
{
return this._allowExternalPrincipals.HasValue;
}
///
/// Gets and sets the property CreationTime.
///
/// The date and time when the resource share 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 FeatureSet.
///
/// Indicates what features are available for this resource share. This parameter can
/// have one of the following values:
///
/// -
///
/// STANDARD – A resource share that supports all functionality. These resource
/// shares are visible to all principals you share the resource share with. You can modify
/// these resource shares in RAM using the console or APIs. This resource share might
/// have been created by RAM, or it might have been CREATED_FROM_POLICY and then
/// promoted.
///
///
-
///
/// CREATED_FROM_POLICY – The customer manually shared a resource by attaching
/// a resource-based policy. That policy did not match any existing managed permissions,
/// so RAM created this customer managed permission automatically on the customer's behalf
/// based on the attached policy document. This type of resource share is visible only
/// to the Amazon Web Services account that created it. You can't modify it in RAM unless
/// you promote it. For more information, see PromoteResourceShareCreatedFromPolicy.
///
///
-
///
/// PROMOTING_TO_STANDARD – This resource share was originally
CREATED_FROM_POLICY
,
/// but the customer ran the PromoteResourceShareCreatedFromPolicy and that operation
/// is still in progress. This value changes to STANDARD
when complete.
///
///
///
public ResourceShareFeatureSet FeatureSet
{
get { return this._featureSet; }
set { this._featureSet = value; }
}
// Check to see if FeatureSet property is set
internal bool IsSetFeatureSet()
{
return this._featureSet != null;
}
///
/// Gets and sets the property LastUpdatedTime.
///
/// The date and time when 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 Name.
///
/// The name of the resource share.
///
///
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 OwningAccountId.
///
/// The ID of the Amazon Web Services account that owns the resource share.
///
///
public string OwningAccountId
{
get { return this._owningAccountId; }
set { this._owningAccountId = value; }
}
// Check to see if OwningAccountId property is set
internal bool IsSetOwningAccountId()
{
return this._owningAccountId != null;
}
///
/// Gets and sets the property ResourceShareArn.
///
/// The Amazon
/// Resource Name (ARN) of the resource share
///
///
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 share.
///
///
public ResourceShareStatus 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 share.
///
///
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 Tags.
///
/// The tag key and value pairs attached to the resource share.
///
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}