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

The metadata for a service, such as the service code and available attribute * names.

See Also:

AWS API * Reference

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The code for the Amazon Web Services service.

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

The attributes that are available for this service.

*/ inline const Aws::Vector& GetAttributeNames() const{ return m_attributeNames; } /** *

The attributes that are available for this service.

*/ inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; } /** *

The attributes that are available for this service.

*/ inline void SetAttributeNames(const Aws::Vector& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; } /** *

The attributes that are available for this service.

*/ inline void SetAttributeNames(Aws::Vector&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); } /** *

The attributes that are available for this service.

*/ inline Service& WithAttributeNames(const Aws::Vector& value) { SetAttributeNames(value); return *this;} /** *

The attributes that are available for this service.

*/ inline Service& WithAttributeNames(Aws::Vector&& value) { SetAttributeNames(std::move(value)); return *this;} /** *

The attributes that are available for this service.

*/ inline Service& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } /** *

The attributes that are available for this service.

*/ inline Service& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; } /** *

The attributes that are available for this service.

*/ inline Service& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; } private: Aws::String m_serviceCode; bool m_serviceCodeHasBeenSet = false; Aws::Vector m_attributeNames; bool m_attributeNamesHasBeenSet = false; }; } // namespace Model } // namespace Pricing } // namespace Aws