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

Information about an Amazon Web Services service returned by the * DescribeServices operation.

See Also:

AWS API * Reference

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

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

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

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

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

The code for an Amazon Web Services service returned by the * DescribeServices response. The name element contains the * corresponding friendly name.

*/ inline Service& WithCode(const char* value) { SetCode(value); return *this;} /** *

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

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

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

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

The friendly name for an Amazon Web Services service. The code * element contains the corresponding code.

*/ inline Service& WithName(const char* value) { SetName(value); return *this;} /** *

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

*/ inline const Aws::Vector& GetCategories() const{ return m_categories; } /** *

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

*/ inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; } /** *

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

*/ inline void SetCategories(const Aws::Vector& value) { m_categoriesHasBeenSet = true; m_categories = value; } /** *

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

*/ inline void SetCategories(Aws::Vector&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); } /** *

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

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

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

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

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

*/ inline Service& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } /** *

A list of categories that describe the type of support issue a case * describes. Categories consist of a category name and a category code. Category * names and codes are passed to Amazon Web Services Support when you call * CreateCase.

*/ inline Service& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; } private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_categories; bool m_categoriesHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws