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

A mapping between one or more workgroups and a capacity * reservation.

See Also:

AWS * API Reference

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

The list of workgroup names for the capacity assignment.

*/ inline const Aws::Vector& GetWorkGroupNames() const{ return m_workGroupNames; } /** *

The list of workgroup names for the capacity assignment.

*/ inline bool WorkGroupNamesHasBeenSet() const { return m_workGroupNamesHasBeenSet; } /** *

The list of workgroup names for the capacity assignment.

*/ inline void SetWorkGroupNames(const Aws::Vector& value) { m_workGroupNamesHasBeenSet = true; m_workGroupNames = value; } /** *

The list of workgroup names for the capacity assignment.

*/ inline void SetWorkGroupNames(Aws::Vector&& value) { m_workGroupNamesHasBeenSet = true; m_workGroupNames = std::move(value); } /** *

The list of workgroup names for the capacity assignment.

*/ inline CapacityAssignment& WithWorkGroupNames(const Aws::Vector& value) { SetWorkGroupNames(value); return *this;} /** *

The list of workgroup names for the capacity assignment.

*/ inline CapacityAssignment& WithWorkGroupNames(Aws::Vector&& value) { SetWorkGroupNames(std::move(value)); return *this;} /** *

The list of workgroup names for the capacity assignment.

*/ inline CapacityAssignment& AddWorkGroupNames(const Aws::String& value) { m_workGroupNamesHasBeenSet = true; m_workGroupNames.push_back(value); return *this; } /** *

The list of workgroup names for the capacity assignment.

*/ inline CapacityAssignment& AddWorkGroupNames(Aws::String&& value) { m_workGroupNamesHasBeenSet = true; m_workGroupNames.push_back(std::move(value)); return *this; } /** *

The list of workgroup names for the capacity assignment.

*/ inline CapacityAssignment& AddWorkGroupNames(const char* value) { m_workGroupNamesHasBeenSet = true; m_workGroupNames.push_back(value); return *this; } private: Aws::Vector m_workGroupNames; bool m_workGroupNamesHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws