/** * 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 DevOpsGuru { namespace Model { /** *

A collection of the names of Amazon Web Services services.

See * Also:

AWS * API Reference

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

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline const Aws::Vector& GetServiceNames() const{ return m_serviceNames; } /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline bool ServiceNamesHasBeenSet() const { return m_serviceNamesHasBeenSet; } /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline void SetServiceNames(const Aws::Vector& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = value; } /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline void SetServiceNames(Aws::Vector&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = std::move(value); } /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline ServiceCollection& WithServiceNames(const Aws::Vector& value) { SetServiceNames(value); return *this;} /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline ServiceCollection& WithServiceNames(Aws::Vector&& value) { SetServiceNames(std::move(value)); return *this;} /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline ServiceCollection& AddServiceNames(const ServiceName& value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(value); return *this; } /** *

An array of strings that each specifies the name of an Amazon Web Services * service.

*/ inline ServiceCollection& AddServiceNames(ServiceName&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(std::move(value)); return *this; } private: Aws::Vector m_serviceNames; bool m_serviceNamesHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws