/*
* 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
{
///
/// Container for the parameters to the CreateKeyspace operation.
/// The CreateKeyspace
operation adds a new keyspace to your account. In
/// an Amazon Web Services account, keyspace names must be unique within each Region.
///
///
///
/// CreateKeyspace
is an asynchronous operation. You can monitor the creation
/// status of the new keyspace by using the GetKeyspace
operation.
///
///
///
/// For more information, see Creating
/// keyspaces in the Amazon Keyspaces Developer Guide.
///
///
public partial class CreateKeyspaceRequest : AmazonKeyspacesRequest
{
private string _keyspaceName;
private ReplicationSpecification _replicationSpecification;
private List _tags = new List();
///
/// Gets and sets the property KeyspaceName.
///
/// The name of the keyspace to be created.
///
///
[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 ReplicationSpecification.
///
/// The replication specification of the keyspace includes:
///
/// -
///
///
replicationStrategy
- the required value is SINGLE_REGION
/// or MULTI_REGION
.
///
/// -
///
///
regionList
- if the replicationStrategy
is MULTI_REGION
,
/// the regionList
requires the current Region and at least one additional
/// Amazon Web Services Region where the keyspace is going to be replicated in. The maximum
/// number of supported replication Regions including the current Region is six.
///
///
///
public ReplicationSpecification ReplicationSpecification
{
get { return this._replicationSpecification; }
set { this._replicationSpecification = value; }
}
// Check to see if ReplicationSpecification property is set
internal bool IsSetReplicationSpecification()
{
return this._replicationSpecification != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of key-value pair tags to be attached to the keyspace.
///
///
///
/// For more information, see Adding
/// tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer
/// Guide.
///
///
[AWSProperty(Min=1, Max=60)]
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;
}
}
}