1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/devops-guru/DevOpsGuru_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/devops-guru/model/ServiceName.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace DevOpsGuru 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>A collection of the names of AWS services.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ServiceCollection">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_DEVOPSGURU_API ServiceCollection 33 { 34 public: 35 ServiceCollection(); 36 ServiceCollection(Aws::Utils::Json::JsonView jsonValue); 37 ServiceCollection& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>An array of strings that each specifies the name of an AWS service.</p> 43 */ GetServiceNames()44 inline const Aws::Vector<ServiceName>& GetServiceNames() const{ return m_serviceNames; } 45 46 /** 47 * <p>An array of strings that each specifies the name of an AWS service.</p> 48 */ ServiceNamesHasBeenSet()49 inline bool ServiceNamesHasBeenSet() const { return m_serviceNamesHasBeenSet; } 50 51 /** 52 * <p>An array of strings that each specifies the name of an AWS service.</p> 53 */ SetServiceNames(const Aws::Vector<ServiceName> & value)54 inline void SetServiceNames(const Aws::Vector<ServiceName>& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = value; } 55 56 /** 57 * <p>An array of strings that each specifies the name of an AWS service.</p> 58 */ SetServiceNames(Aws::Vector<ServiceName> && value)59 inline void SetServiceNames(Aws::Vector<ServiceName>&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames = std::move(value); } 60 61 /** 62 * <p>An array of strings that each specifies the name of an AWS service.</p> 63 */ WithServiceNames(const Aws::Vector<ServiceName> & value)64 inline ServiceCollection& WithServiceNames(const Aws::Vector<ServiceName>& value) { SetServiceNames(value); return *this;} 65 66 /** 67 * <p>An array of strings that each specifies the name of an AWS service.</p> 68 */ WithServiceNames(Aws::Vector<ServiceName> && value)69 inline ServiceCollection& WithServiceNames(Aws::Vector<ServiceName>&& value) { SetServiceNames(std::move(value)); return *this;} 70 71 /** 72 * <p>An array of strings that each specifies the name of an AWS service.</p> 73 */ AddServiceNames(const ServiceName & value)74 inline ServiceCollection& AddServiceNames(const ServiceName& value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(value); return *this; } 75 76 /** 77 * <p>An array of strings that each specifies the name of an AWS service.</p> 78 */ AddServiceNames(ServiceName && value)79 inline ServiceCollection& AddServiceNames(ServiceName&& value) { m_serviceNamesHasBeenSet = true; m_serviceNames.push_back(std::move(value)); return *this; } 80 81 private: 82 83 Aws::Vector<ServiceName> m_serviceNames; 84 bool m_serviceNamesHasBeenSet; 85 }; 86 87 } // namespace Model 88 } // namespace DevOpsGuru 89 } // namespace Aws 90