/*
* 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 redshift-2012-12-01.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.Redshift.Model
{
///
/// Describes an endpoint authorization for authorizing Redshift-managed VPC endpoint
/// access to a cluster across Amazon Web Services accounts.
///
public partial class RevokeEndpointAccessResponse : AmazonWebServiceResponse
{
private bool? _allowedAllVPCs;
private List _allowedVPCs = new List();
private DateTime? _authorizeTime;
private string _clusterIdentifier;
private string _clusterStatus;
private int? _endpointCount;
private string _grantee;
private string _grantor;
private AuthorizationStatus _status;
///
/// Gets and sets the property AllowedAllVPCs.
///
/// Indicates whether all VPCs in the grantee account are allowed access to the cluster.
///
///
public bool AllowedAllVPCs
{
get { return this._allowedAllVPCs.GetValueOrDefault(); }
set { this._allowedAllVPCs = value; }
}
// Check to see if AllowedAllVPCs property is set
internal bool IsSetAllowedAllVPCs()
{
return this._allowedAllVPCs.HasValue;
}
///
/// Gets and sets the property AllowedVPCs.
///
/// The VPCs allowed access to the cluster.
///
///
public List AllowedVPCs
{
get { return this._allowedVPCs; }
set { this._allowedVPCs = value; }
}
// Check to see if AllowedVPCs property is set
internal bool IsSetAllowedVPCs()
{
return this._allowedVPCs != null && this._allowedVPCs.Count > 0;
}
///
/// Gets and sets the property AuthorizeTime.
///
/// The time (UTC) when the authorization was created.
///
///
public DateTime AuthorizeTime
{
get { return this._authorizeTime.GetValueOrDefault(); }
set { this._authorizeTime = value; }
}
// Check to see if AuthorizeTime property is set
internal bool IsSetAuthorizeTime()
{
return this._authorizeTime.HasValue;
}
///
/// Gets and sets the property ClusterIdentifier.
///
/// The cluster identifier.
///
///
[AWSProperty(Max=2147483647)]
public string ClusterIdentifier
{
get { return this._clusterIdentifier; }
set { this._clusterIdentifier = value; }
}
// Check to see if ClusterIdentifier property is set
internal bool IsSetClusterIdentifier()
{
return this._clusterIdentifier != null;
}
///
/// Gets and sets the property ClusterStatus.
///
/// The status of the cluster.
///
///
[AWSProperty(Max=2147483647)]
public string ClusterStatus
{
get { return this._clusterStatus; }
set { this._clusterStatus = value; }
}
// Check to see if ClusterStatus property is set
internal bool IsSetClusterStatus()
{
return this._clusterStatus != null;
}
///
/// Gets and sets the property EndpointCount.
///
/// The number of Redshift-managed VPC endpoints created for the authorization.
///
///
public int EndpointCount
{
get { return this._endpointCount.GetValueOrDefault(); }
set { this._endpointCount = value; }
}
// Check to see if EndpointCount property is set
internal bool IsSetEndpointCount()
{
return this._endpointCount.HasValue;
}
///
/// Gets and sets the property Grantee.
///
/// The Amazon Web Services account ID of the grantee of the cluster.
///
///
[AWSProperty(Max=2147483647)]
public string Grantee
{
get { return this._grantee; }
set { this._grantee = value; }
}
// Check to see if Grantee property is set
internal bool IsSetGrantee()
{
return this._grantee != null;
}
///
/// Gets and sets the property Grantor.
///
/// The Amazon Web Services account ID of the cluster owner.
///
///
[AWSProperty(Max=2147483647)]
public string Grantor
{
get { return this._grantor; }
set { this._grantor = value; }
}
// Check to see if Grantor property is set
internal bool IsSetGrantor()
{
return this._grantor != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the authorization action.
///
///
public AuthorizationStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}