/** * 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 QuickSight { namespace Model { class ListNamespacesResult { public: AWS_QUICKSIGHT_API ListNamespacesResult(); AWS_QUICKSIGHT_API ListNamespacesResult(const Aws::AmazonWebServiceResult& result); AWS_QUICKSIGHT_API ListNamespacesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

*/ inline const Aws::Vector& GetNamespaces() const{ return m_namespaces; } /** *

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

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

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

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

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

*/ inline ListNamespacesResult& WithNamespaces(const Aws::Vector& value) { SetNamespaces(value); return *this;} /** *

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

*/ inline ListNamespacesResult& WithNamespaces(Aws::Vector&& value) { SetNamespaces(std::move(value)); return *this;} /** *

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

*/ inline ListNamespacesResult& AddNamespaces(const NamespaceInfoV2& value) { m_namespaces.push_back(value); return *this; } /** *

The information about the namespaces in this Amazon Web Services account. The * response includes the namespace ARN, name, Amazon Web Services Region, * notification email address, creation status, and identity store.

*/ inline ListNamespacesResult& AddNamespaces(NamespaceInfoV2&& value) { m_namespaces.push_back(std::move(value)); return *this; } /** *

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

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

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

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

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

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

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

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

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

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

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

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

A unique pagination token that can be used in a subsequent request. Receiving * NextToken in your response inticates that there is more data that * can be returned. To receive the data, make another ListNamespaces * API call with the returned token to retrieve the next page of data. Each token * is valid for 24 hours. If you try to make a ListNamespaces API call * with an expired token, you will receive a HTTP 400 * InvalidNextTokenException error.

*/ inline ListNamespacesResult& WithNextToken(const char* value) { SetNextToken(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 ListNamespacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListNamespacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListNamespacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The HTTP status of the request.

*/ inline int GetStatus() const{ return m_status; } /** *

The HTTP status of the request.

*/ inline void SetStatus(int value) { m_status = value; } /** *

The HTTP status of the request.

*/ inline ListNamespacesResult& WithStatus(int value) { SetStatus(value); return *this;} private: Aws::Vector m_namespaces; Aws::String m_nextToken; Aws::String m_requestId; int m_status; }; } // namespace Model } // namespace QuickSight } // namespace Aws