/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Keyspaces { namespace Model { class GetKeyspaceResult { public: AWS_KEYSPACES_API GetKeyspaceResult(); AWS_KEYSPACES_API GetKeyspaceResult(const Aws::AmazonWebServiceResult& result); AWS_KEYSPACES_API GetKeyspaceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

The name of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the ARN of the keyspace.

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

Returns the replication strategy of the keyspace. The options are * SINGLE_REGION or MULTI_REGION.

*/ inline const Rs& GetReplicationStrategy() const{ return m_replicationStrategy; } /** *

Returns the replication strategy of the keyspace. The options are * SINGLE_REGION or MULTI_REGION.

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

Returns the replication strategy of the keyspace. The options are * SINGLE_REGION or MULTI_REGION.

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

Returns the replication strategy of the keyspace. The options are * SINGLE_REGION or MULTI_REGION.

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

Returns the replication strategy of the keyspace. The options are * SINGLE_REGION or MULTI_REGION.

*/ inline GetKeyspaceResult& 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 void SetReplicationRegions(const Aws::Vector& value) { 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_replicationRegions = std::move(value); } /** *

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

*/ inline GetKeyspaceResult& 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 GetKeyspaceResult& 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 GetKeyspaceResult& AddReplicationRegions(const Aws::String& value) { m_replicationRegions.push_back(value); return *this; } /** *

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

*/ inline GetKeyspaceResult& AddReplicationRegions(Aws::String&& value) { 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 GetKeyspaceResult& AddReplicationRegions(const char* value) { m_replicationRegions.push_back(value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetKeyspaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetKeyspaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetKeyspaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_keyspaceName; Aws::String m_resourceArn; Rs m_replicationStrategy; Aws::Vector m_replicationRegions; Aws::String m_requestId; }; } // namespace Model } // namespace Keyspaces } // namespace Aws