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

A list of supported versions.

*/ inline const Aws::Vector& GetServiceVersions() const{ return m_serviceVersions; } /** *

A list of supported versions.

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

A list of supported versions.

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

A list of supported versions.

*/ inline ListServiceVersionsResult& WithServiceVersions(const Aws::Vector& value) { SetServiceVersions(value); return *this;} /** *

A list of supported versions.

*/ inline ListServiceVersionsResult& WithServiceVersions(Aws::Vector&& value) { SetServiceVersions(std::move(value)); return *this;} /** *

A list of supported versions.

*/ inline ListServiceVersionsResult& AddServiceVersions(const ServiceVersion& value) { m_serviceVersions.push_back(value); return *this; } /** *

A list of supported versions.

*/ inline ListServiceVersionsResult& AddServiceVersions(ServiceVersion&& value) { m_serviceVersions.push_back(std::move(value)); return *this; } /** *

The name of the service for which the system provided supported versions.

*/ inline const ServiceName& GetServiceName() const{ return m_serviceName; } /** *

The name of the service for which the system provided supported versions.

*/ inline void SetServiceName(const ServiceName& value) { m_serviceName = value; } /** *

The name of the service for which the system provided supported versions.

*/ inline void SetServiceName(ServiceName&& value) { m_serviceName = std::move(value); } /** *

The name of the service for which the system provided supported versions.

*/ inline ListServiceVersionsResult& WithServiceName(const ServiceName& value) { SetServiceName(value); return *this;} /** *

The name of the service for which the system provided supported versions.

*/ inline ListServiceVersionsResult& WithServiceName(ServiceName&& value) { SetServiceName(std::move(value)); return *this;} /** *

A list of names and versions of dependant services of the service for which * the system provided supported versions.

*/ inline const Aws::Vector& GetDependentServices() const{ return m_dependentServices; } /** *

A list of names and versions of dependant services of the service for which * the system provided supported versions.

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

A list of names and versions of dependant services of the service for which * the system provided supported versions.

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

A list of names and versions of dependant services of the service for which * the system provided supported versions.

*/ inline ListServiceVersionsResult& WithDependentServices(const Aws::Vector& value) { SetDependentServices(value); return *this;} /** *

A list of names and versions of dependant services of the service for which * the system provided supported versions.

*/ inline ListServiceVersionsResult& WithDependentServices(Aws::Vector&& value) { SetDependentServices(std::move(value)); return *this;} /** *

A list of names and versions of dependant services of the service for which * the system provided supported versions.

*/ inline ListServiceVersionsResult& AddDependentServices(const DependentService& value) { m_dependentServices.push_back(value); return *this; } /** *

A list of names and versions of dependant services of the service for which * the system provided supported versions.

*/ inline ListServiceVersionsResult& AddDependentServices(DependentService&& value) { m_dependentServices.push_back(std::move(value)); return *this; } /** *

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

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

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

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

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

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

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

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

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

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

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

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

Because HTTP requests are stateless, this is the starting point of the next * list of returned ListServiceVersionsResult results.

*/ inline ListServiceVersionsResult& 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 ListServiceVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListServiceVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListServiceVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_serviceVersions; ServiceName m_serviceName; Aws::Vector m_dependentServices; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace Snowball } // namespace Aws