/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ManagedGrafana { namespace Model { class ListVersionsResult { public: AWS_MANAGEDGRAFANA_API ListVersionsResult(); AWS_MANAGEDGRAFANA_API ListVersionsResult(const Aws::AmazonWebServiceResult& result); AWS_MANAGEDGRAFANA_API ListVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

*/ inline const Aws::Vector& GetGrafanaVersions() const{ return m_grafanaVersions; } /** *

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

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

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

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

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

*/ inline ListVersionsResult& WithGrafanaVersions(const Aws::Vector& value) { SetGrafanaVersions(value); return *this;} /** *

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

*/ inline ListVersionsResult& WithGrafanaVersions(Aws::Vector&& value) { SetGrafanaVersions(std::move(value)); return *this;} /** *

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

*/ inline ListVersionsResult& AddGrafanaVersions(const Aws::String& value) { m_grafanaVersions.push_back(value); return *this; } /** *

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

*/ inline ListVersionsResult& AddGrafanaVersions(Aws::String&& value) { m_grafanaVersions.push_back(std::move(value)); return *this; } /** *

The Grafana versions available to create. If a workspace ID is included in * the request, the Grafana versions to which this workspace can be upgraded.

*/ inline ListVersionsResult& AddGrafanaVersions(const char* value) { m_grafanaVersions.push_back(value); return *this; } /** *

The token to use in a subsequent ListVersions operation to * return the next set of results.

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

The token to use in a subsequent ListVersions operation to * return the next set of results.

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

The token to use in a subsequent ListVersions operation to * return the next set of results.

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

The token to use in a subsequent ListVersions operation to * return the next set of results.

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

The token to use in a subsequent ListVersions operation to * return the next set of results.

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

The token to use in a subsequent ListVersions operation to * return the next set of results.

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

The token to use in a subsequent ListVersions operation to * return the next set of results.

*/ inline ListVersionsResult& 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 ListVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_grafanaVersions; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace ManagedGrafana } // namespace Aws