/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Keyspaces { namespace Model { /** */ class CreateKeyspaceRequest : public KeyspacesRequest { public: AWS_KEYSPACES_API CreateKeyspaceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateKeyspace"; } AWS_KEYSPACES_API Aws::String SerializePayload() const override; AWS_KEYSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the keyspace to be created.

*/ inline const Aws::String& GetKeyspaceName() const{ return m_keyspaceName; } /** *

The name of the keyspace to be created.

*/ inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; } /** *

The name of the keyspace to be created.

*/ inline void SetKeyspaceName(const Aws::String& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = value; } /** *

The name of the keyspace to be created.

*/ inline void SetKeyspaceName(Aws::String&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::move(value); } /** *

The name of the keyspace to be created.

*/ inline void SetKeyspaceName(const char* value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName.assign(value); } /** *

The name of the keyspace to be created.

*/ inline CreateKeyspaceRequest& WithKeyspaceName(const Aws::String& value) { SetKeyspaceName(value); return *this;} /** *

The name of the keyspace to be created.

*/ inline CreateKeyspaceRequest& WithKeyspaceName(Aws::String&& value) { SetKeyspaceName(std::move(value)); return *this;} /** *

The name of the keyspace to be created.

*/ inline CreateKeyspaceRequest& WithKeyspaceName(const char* value) { SetKeyspaceName(value); return *this;} /** *

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.

*/ inline const Aws::Vector& GetTags() const{ return m_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.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

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.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

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.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

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.

*/ inline CreateKeyspaceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

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.

*/ inline CreateKeyspaceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

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.

*/ inline CreateKeyspaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

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.

*/ inline CreateKeyspaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const ReplicationSpecification& GetReplicationSpecification() const{ return m_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.

*/ inline bool ReplicationSpecificationHasBeenSet() const { return m_replicationSpecificationHasBeenSet; } /** *

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.

*/ inline void SetReplicationSpecification(const ReplicationSpecification& value) { m_replicationSpecificationHasBeenSet = true; m_replicationSpecification = value; } /** *

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.

*/ inline void SetReplicationSpecification(ReplicationSpecification&& value) { m_replicationSpecificationHasBeenSet = true; m_replicationSpecification = std::move(value); } /** *

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.

*/ inline CreateKeyspaceRequest& WithReplicationSpecification(const ReplicationSpecification& value) { SetReplicationSpecification(value); return *this;} /** *

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.

*/ inline CreateKeyspaceRequest& WithReplicationSpecification(ReplicationSpecification&& value) { SetReplicationSpecification(std::move(value)); return *this;} private: Aws::String m_keyspaceName; bool m_keyspaceNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; ReplicationSpecification m_replicationSpecification; bool m_replicationSpecificationHasBeenSet = false; }; } // namespace Model } // namespace Keyspaces } // namespace Aws