/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Keyspaces { namespace Model { /** *

Represents the properties of a keyspace.

See Also:

AWS * API Reference

*/ class KeyspaceSummary { public: AWS_KEYSPACES_API KeyspaceSummary(); AWS_KEYSPACES_API KeyspaceSummary(Aws::Utils::Json::JsonView jsonValue); AWS_KEYSPACES_API KeyspaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline KeyspaceSummary& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline KeyspaceSummary& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The unique identifier of the keyspace in the format of an Amazon Resource * Name (ARN).

*/ inline KeyspaceSummary& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

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.

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

*/ inline bool ReplicationStrategyHasBeenSet() const { return m_replicationStrategyHasBeenSet; } /** *

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.

*/ inline void SetReplicationStrategy(const Rs& value) { m_replicationStrategyHasBeenSet = true; m_replicationStrategy = value; } /** *

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.

*/ inline void SetReplicationStrategy(Rs&& value) { m_replicationStrategyHasBeenSet = true; m_replicationStrategy = std::move(value); } /** *

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.

*/ inline KeyspaceSummary& WithReplicationStrategy(const Rs& value) { SetReplicationStrategy(value); return *this;} /** *

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.

*/ inline KeyspaceSummary& WithReplicationStrategy(Rs&& value) { SetReplicationStrategy(std::move(value)); return *this;} /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline const Aws::Vector& GetReplicationRegions() const{ return m_replicationRegions; } /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; } /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline void SetReplicationRegions(const Aws::Vector& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions = value; } /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline void SetReplicationRegions(Aws::Vector&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions = std::move(value); } /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline KeyspaceSummary& WithReplicationRegions(const Aws::Vector& value) { SetReplicationRegions(value); return *this;} /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline KeyspaceSummary& WithReplicationRegions(Aws::Vector&& value) { SetReplicationRegions(std::move(value)); return *this;} /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline KeyspaceSummary& AddReplicationRegions(const Aws::String& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.push_back(value); return *this; } /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline KeyspaceSummary& AddReplicationRegions(Aws::String&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.push_back(std::move(value)); return *this; } /** *

If the replicationStrategy of the keyspace is * MULTI_REGION, a list of replication Regions is returned.

*/ inline KeyspaceSummary& AddReplicationRegions(const char* value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.push_back(value); return *this; } private: Aws::String m_keyspaceName; bool m_keyspaceNameHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Rs m_replicationStrategy; bool m_replicationStrategyHasBeenSet = false; Aws::Vector m_replicationRegions; bool m_replicationRegionsHasBeenSet = false; }; } // namespace Model } // namespace Keyspaces } // namespace Aws