/** * 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 ListKeyspacesResult { public: AWS_KEYSPACES_API ListKeyspacesResult(); AWS_KEYSPACES_API ListKeyspacesResult(const Aws::AmazonWebServiceResult& result); AWS_KEYSPACES_API ListKeyspacesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

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

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

*/ inline ListKeyspacesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

*/ inline ListKeyspacesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A token to specify where to start paginating. This is the * NextToken from a previously truncated response.

*/ inline ListKeyspacesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A list of keyspaces.

*/ inline const Aws::Vector& GetKeyspaces() const{ return m_keyspaces; } /** *

A list of keyspaces.

*/ inline void SetKeyspaces(const Aws::Vector& value) { m_keyspaces = value; } /** *

A list of keyspaces.

*/ inline void SetKeyspaces(Aws::Vector&& value) { m_keyspaces = std::move(value); } /** *

A list of keyspaces.

*/ inline ListKeyspacesResult& WithKeyspaces(const Aws::Vector& value) { SetKeyspaces(value); return *this;} /** *

A list of keyspaces.

*/ inline ListKeyspacesResult& WithKeyspaces(Aws::Vector&& value) { SetKeyspaces(std::move(value)); return *this;} /** *

A list of keyspaces.

*/ inline ListKeyspacesResult& AddKeyspaces(const KeyspaceSummary& value) { m_keyspaces.push_back(value); return *this; } /** *

A list of keyspaces.

*/ inline ListKeyspacesResult& AddKeyspaces(KeyspaceSummary&& value) { m_keyspaces.push_back(std::move(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 ListKeyspacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListKeyspacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListKeyspacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_keyspaces; Aws::String m_requestId; }; } // namespace Model } // namespace Keyspaces } // namespace Aws