/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ServiceQuotas { namespace Model { /** *

A structure that contains the ServiceName and * ServiceCode. It does not include all details of the service quota. * To get those values, use the ListServiceQuotas operation.

See * Also:

AWS * API Reference

*/ class AWS_SERVICEQUOTAS_API ServiceInfo { public: ServiceInfo(); ServiceInfo(Aws::Utils::Json::JsonView jsonValue); ServiceInfo& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies the service that you want to use.

*/ inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } /** *

Specifies the service that you want to use.

*/ inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } /** *

Specifies the service that you want to use.

*/ inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } /** *

Specifies the service that you want to use.

*/ inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } /** *

Specifies the service that you want to use.

*/ inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } /** *

Specifies the service that you want to use.

*/ inline ServiceInfo& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} /** *

Specifies the service that you want to use.

*/ inline ServiceInfo& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} /** *

Specifies the service that you want to use.

*/ inline ServiceInfo& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} /** *

The name of the AWS service specified in the increase request.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the AWS service specified in the increase request.

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

The name of the AWS service specified in the increase request.

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

The name of the AWS service specified in the increase request.

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

The name of the AWS service specified in the increase request.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the AWS service specified in the increase request.

*/ inline ServiceInfo& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the AWS service specified in the increase request.

*/ inline ServiceInfo& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the AWS service specified in the increase request.

*/ inline ServiceInfo& WithServiceName(const char* value) { SetServiceName(value); return *this;} private: Aws::String m_serviceCode; bool m_serviceCodeHasBeenSet; Aws::String m_serviceName; bool m_serviceNameHasBeenSet; }; } // namespace Model } // namespace ServiceQuotas } // namespace Aws