/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a resource group to which a Capacity Reservation has been * added.

See Also:

AWS * API Reference

*/ class CapacityReservationGroup { public: AWS_EC2_API CapacityReservationGroup(); AWS_EC2_API CapacityReservationGroup(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CapacityReservationGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ARN of the resource group.

*/ inline const Aws::String& GetGroupArn() const{ return m_groupArn; } /** *

The ARN of the resource group.

*/ inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; } /** *

The ARN of the resource group.

*/ inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; } /** *

The ARN of the resource group.

*/ inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); } /** *

The ARN of the resource group.

*/ inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); } /** *

The ARN of the resource group.

*/ inline CapacityReservationGroup& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;} /** *

The ARN of the resource group.

*/ inline CapacityReservationGroup& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;} /** *

The ARN of the resource group.

*/ inline CapacityReservationGroup& WithGroupArn(const char* value) { SetGroupArn(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline CapacityReservationGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline CapacityReservationGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the resource group.

*/ inline CapacityReservationGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} private: Aws::String m_groupArn; bool m_groupArnHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws