/*
* 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 keyspaces-2022-02-10.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.Keyspaces.Model
{
///
/// Represents the properties of a keyspace.
///
public partial class KeyspaceSummary
{
private string _keyspaceName;
private List _replicationRegions = new List();
private Rs _replicationStrategy;
private string _resourceArn;
///
/// Gets and sets the property KeyspaceName.
///
/// The name of the keyspace.
///
///
[AWSProperty(Required=true, Min=1, Max=48)]
public string KeyspaceName
{
get { return this._keyspaceName; }
set { this._keyspaceName = value; }
}
// Check to see if KeyspaceName property is set
internal bool IsSetKeyspaceName()
{
return this._keyspaceName != null;
}
///
/// Gets and sets the property ReplicationRegions.
///
/// If the replicationStrategy
of the keyspace is MULTI_REGION
,
/// a list of replication Regions is returned.
///
///
[AWSProperty(Min=2, Max=6)]
public List ReplicationRegions
{
get { return this._replicationRegions; }
set { this._replicationRegions = value; }
}
// Check to see if ReplicationRegions property is set
internal bool IsSetReplicationRegions()
{
return this._replicationRegions != null && this._replicationRegions.Count > 0;
}
///
/// Gets and sets the property ReplicationStrategy.
///
/// This property specifies if a keyspace is a single Region keyspace or a multi-Region
/// keyspace. The available values are SINGLE_REGION
or MULTI_REGION
.
///
///
///
[AWSProperty(Required=true, Min=1, Max=20)]
public Rs ReplicationStrategy
{
get { return this._replicationStrategy; }
set { this._replicationStrategy = value; }
}
// Check to see if ReplicationStrategy property is set
internal bool IsSetReplicationStrategy()
{
return this._replicationStrategy != null;
}
///
/// Gets and sets the property ResourceArn.
///
/// The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
///
///
[AWSProperty(Required=true, Min=20, Max=1000)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
}
}