/** * 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 { namespace Snowball { namespace Model { /** */ class ListServiceVersionsRequest : public SnowballRequest { public: AWS_SNOWBALL_API ListServiceVersionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListServiceVersions"; } AWS_SNOWBALL_API Aws::String SerializePayload() const override; AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the service for which you're requesting supported versions.

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

The name of the service for which you're requesting supported versions.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service for which you're requesting supported versions.

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

The name of the service for which you're requesting supported versions.

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

The name of the service for which you're requesting supported versions.

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

The name of the service for which you're requesting supported versions.

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

A list of names and versions of dependant services of the requested * service.

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

A list of names and versions of dependant services of the requested * service.

*/ inline bool DependentServicesHasBeenSet() const { return m_dependentServicesHasBeenSet; } /** *

A list of names and versions of dependant services of the requested * service.

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

A list of names and versions of dependant services of the requested * service.

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

A list of names and versions of dependant services of the requested * service.

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

A list of names and versions of dependant services of the requested * service.

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

A list of names and versions of dependant services of the requested * service.

*/ inline ListServiceVersionsRequest& AddDependentServices(const DependentService& value) { m_dependentServicesHasBeenSet = true; m_dependentServices.push_back(value); return *this; } /** *

A list of names and versions of dependant services of the requested * service.

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

The maximum number of ListServiceVersions objects to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of ListServiceVersions objects to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of ListServiceVersions objects to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of ListServiceVersions objects to return.

*/ inline ListServiceVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

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

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

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

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

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

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

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

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

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

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

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

Because HTTP requests are stateless, this is the starting point for the next * list of returned ListServiceVersionsRequest versions.

*/ inline ListServiceVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: ServiceName m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::Vector m_dependentServices; bool m_dependentServicesHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws