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

Describes Availability Zones, Local Zones, and Wavelength * Zones.

See Also:

AWS * API Reference

*/ class AvailabilityZone { public: AWS_EC2_API AvailabilityZone(); AWS_EC2_API AvailabilityZone(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AvailabilityZone& 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 state of the Availability Zone, Local Zone, or Wavelength Zone. This * value is always available.

*/ inline const AvailabilityZoneState& GetState() const{ return m_state; } /** *

The state of the Availability Zone, Local Zone, or Wavelength Zone. This * value is always available.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the Availability Zone, Local Zone, or Wavelength Zone. This * value is always available.

*/ inline void SetState(const AvailabilityZoneState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the Availability Zone, Local Zone, or Wavelength Zone. This * value is always available.

*/ inline void SetState(AvailabilityZoneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the Availability Zone, Local Zone, or Wavelength Zone. This * value is always available.

*/ inline AvailabilityZone& WithState(const AvailabilityZoneState& value) { SetState(value); return *this;} /** *

The state of the Availability Zone, Local Zone, or Wavelength Zone. This * value is always available.

*/ inline AvailabilityZone& WithState(AvailabilityZoneState&& value) { SetState(std::move(value)); return *this;} /** *

For Availability Zones, this parameter always has the value of * opt-in-not-required.

For Local Zones and Wavelength Zones, * this parameter is the opt-in status. The possible values are * opted-in, and not-opted-in.

*/ inline const AvailabilityZoneOptInStatus& GetOptInStatus() const{ return m_optInStatus; } /** *

For Availability Zones, this parameter always has the value of * opt-in-not-required.

For Local Zones and Wavelength Zones, * this parameter is the opt-in status. The possible values are * opted-in, and not-opted-in.

*/ inline bool OptInStatusHasBeenSet() const { return m_optInStatusHasBeenSet; } /** *

For Availability Zones, this parameter always has the value of * opt-in-not-required.

For Local Zones and Wavelength Zones, * this parameter is the opt-in status. The possible values are * opted-in, and not-opted-in.

*/ inline void SetOptInStatus(const AvailabilityZoneOptInStatus& value) { m_optInStatusHasBeenSet = true; m_optInStatus = value; } /** *

For Availability Zones, this parameter always has the value of * opt-in-not-required.

For Local Zones and Wavelength Zones, * this parameter is the opt-in status. The possible values are * opted-in, and not-opted-in.

*/ inline void SetOptInStatus(AvailabilityZoneOptInStatus&& value) { m_optInStatusHasBeenSet = true; m_optInStatus = std::move(value); } /** *

For Availability Zones, this parameter always has the value of * opt-in-not-required.

For Local Zones and Wavelength Zones, * this parameter is the opt-in status. The possible values are * opted-in, and not-opted-in.

*/ inline AvailabilityZone& WithOptInStatus(const AvailabilityZoneOptInStatus& value) { SetOptInStatus(value); return *this;} /** *

For Availability Zones, this parameter always has the value of * opt-in-not-required.

For Local Zones and Wavelength Zones, * this parameter is the opt-in status. The possible values are * opted-in, and not-opted-in.

*/ inline AvailabilityZone& WithOptInStatus(AvailabilityZoneOptInStatus&& value) { SetOptInStatus(std::move(value)); return *this;} /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline const Aws::Vector& GetMessages() const{ return m_messages; } /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; } /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetMessages(const Aws::Vector& value) { m_messagesHasBeenSet = true; m_messages = value; } /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetMessages(Aws::Vector&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); } /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithMessages(const Aws::Vector& value) { SetMessages(value); return *this;} /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithMessages(Aws::Vector&& value) { SetMessages(std::move(value)); return *this;} /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& AddMessages(const AvailabilityZoneMessage& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; } /** *

Any messages about the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& AddMessages(AvailabilityZoneMessage&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; } /** *

The name of the Region.

*/ inline const Aws::String& GetRegionName() const{ return m_regionName; } /** *

The name of the Region.

*/ inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; } /** *

The name of the Region.

*/ inline void SetRegionName(const Aws::String& value) { m_regionNameHasBeenSet = true; m_regionName = value; } /** *

The name of the Region.

*/ inline void SetRegionName(Aws::String&& value) { m_regionNameHasBeenSet = true; m_regionName = std::move(value); } /** *

The name of the Region.

*/ inline void SetRegionName(const char* value) { m_regionNameHasBeenSet = true; m_regionName.assign(value); } /** *

The name of the Region.

*/ inline AvailabilityZone& WithRegionName(const Aws::String& value) { SetRegionName(value); return *this;} /** *

The name of the Region.

*/ inline AvailabilityZone& WithRegionName(Aws::String&& value) { SetRegionName(std::move(value)); return *this;} /** *

The name of the Region.

*/ inline AvailabilityZone& WithRegionName(const char* value) { SetRegionName(value); return *this;} /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline const Aws::String& GetZoneName() const{ return m_zoneName; } /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline bool ZoneNameHasBeenSet() const { return m_zoneNameHasBeenSet; } /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetZoneName(const Aws::String& value) { m_zoneNameHasBeenSet = true; m_zoneName = value; } /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetZoneName(Aws::String&& value) { m_zoneNameHasBeenSet = true; m_zoneName = std::move(value); } /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetZoneName(const char* value) { m_zoneNameHasBeenSet = true; m_zoneName.assign(value); } /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithZoneName(const Aws::String& value) { SetZoneName(value); return *this;} /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithZoneName(Aws::String&& value) { SetZoneName(std::move(value)); return *this;} /** *

The name of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithZoneName(const char* value) { SetZoneName(value); return *this;} /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline const Aws::String& GetZoneId() const{ return m_zoneId; } /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline bool ZoneIdHasBeenSet() const { return m_zoneIdHasBeenSet; } /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetZoneId(const Aws::String& value) { m_zoneIdHasBeenSet = true; m_zoneId = value; } /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetZoneId(Aws::String&& value) { m_zoneIdHasBeenSet = true; m_zoneId = std::move(value); } /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline void SetZoneId(const char* value) { m_zoneIdHasBeenSet = true; m_zoneId.assign(value); } /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithZoneId(const Aws::String& value) { SetZoneId(value); return *this;} /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithZoneId(Aws::String&& value) { SetZoneId(std::move(value)); return *this;} /** *

The ID of the Availability Zone, Local Zone, or Wavelength Zone.

*/ inline AvailabilityZone& WithZoneId(const char* value) { SetZoneId(value); return *this;} /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline AvailabilityZone& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline AvailabilityZone& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

For Availability Zones, this parameter has the same value as the Region * name.

For Local Zones, the name of the associated group, for example * us-west-2-lax-1.

For Wavelength Zones, the name of the * associated group, for example us-east-1-wl1-bos-wlz-1.

*/ inline AvailabilityZone& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The name of the network border group.

*/ inline const Aws::String& GetNetworkBorderGroup() const{ return m_networkBorderGroup; } /** *

The name of the network border group.

*/ inline bool NetworkBorderGroupHasBeenSet() const { return m_networkBorderGroupHasBeenSet; } /** *

The name of the network border group.

*/ inline void SetNetworkBorderGroup(const Aws::String& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = value; } /** *

The name of the network border group.

*/ inline void SetNetworkBorderGroup(Aws::String&& value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup = std::move(value); } /** *

The name of the network border group.

*/ inline void SetNetworkBorderGroup(const char* value) { m_networkBorderGroupHasBeenSet = true; m_networkBorderGroup.assign(value); } /** *

The name of the network border group.

*/ inline AvailabilityZone& WithNetworkBorderGroup(const Aws::String& value) { SetNetworkBorderGroup(value); return *this;} /** *

The name of the network border group.

*/ inline AvailabilityZone& WithNetworkBorderGroup(Aws::String&& value) { SetNetworkBorderGroup(std::move(value)); return *this;} /** *

The name of the network border group.

*/ inline AvailabilityZone& WithNetworkBorderGroup(const char* value) { SetNetworkBorderGroup(value); return *this;} /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline const Aws::String& GetZoneType() const{ return m_zoneType; } /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline bool ZoneTypeHasBeenSet() const { return m_zoneTypeHasBeenSet; } /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline void SetZoneType(const Aws::String& value) { m_zoneTypeHasBeenSet = true; m_zoneType = value; } /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline void SetZoneType(Aws::String&& value) { m_zoneTypeHasBeenSet = true; m_zoneType = std::move(value); } /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline void SetZoneType(const char* value) { m_zoneTypeHasBeenSet = true; m_zoneType.assign(value); } /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline AvailabilityZone& WithZoneType(const Aws::String& value) { SetZoneType(value); return *this;} /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline AvailabilityZone& WithZoneType(Aws::String&& value) { SetZoneType(std::move(value)); return *this;} /** *

The type of zone. The valid values are availability-zone, * local-zone, and wavelength-zone.

*/ inline AvailabilityZone& WithZoneType(const char* value) { SetZoneType(value); return *this;} /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline const Aws::String& GetParentZoneName() const{ return m_parentZoneName; } /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline bool ParentZoneNameHasBeenSet() const { return m_parentZoneNameHasBeenSet; } /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline void SetParentZoneName(const Aws::String& value) { m_parentZoneNameHasBeenSet = true; m_parentZoneName = value; } /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline void SetParentZoneName(Aws::String&& value) { m_parentZoneNameHasBeenSet = true; m_parentZoneName = std::move(value); } /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline void SetParentZoneName(const char* value) { m_parentZoneNameHasBeenSet = true; m_parentZoneName.assign(value); } /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline AvailabilityZone& WithParentZoneName(const Aws::String& value) { SetParentZoneName(value); return *this;} /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline AvailabilityZone& WithParentZoneName(Aws::String&& value) { SetParentZoneName(std::move(value)); return *this;} /** *

The name of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline AvailabilityZone& WithParentZoneName(const char* value) { SetParentZoneName(value); return *this;} /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline const Aws::String& GetParentZoneId() const{ return m_parentZoneId; } /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline bool ParentZoneIdHasBeenSet() const { return m_parentZoneIdHasBeenSet; } /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline void SetParentZoneId(const Aws::String& value) { m_parentZoneIdHasBeenSet = true; m_parentZoneId = value; } /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline void SetParentZoneId(Aws::String&& value) { m_parentZoneIdHasBeenSet = true; m_parentZoneId = std::move(value); } /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline void SetParentZoneId(const char* value) { m_parentZoneIdHasBeenSet = true; m_parentZoneId.assign(value); } /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline AvailabilityZone& WithParentZoneId(const Aws::String& value) { SetParentZoneId(value); return *this;} /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline AvailabilityZone& WithParentZoneId(Aws::String&& value) { SetParentZoneId(std::move(value)); return *this;} /** *

The ID of the zone that handles some of the Local Zone or Wavelength Zone * control plane operations, such as API calls.

*/ inline AvailabilityZone& WithParentZoneId(const char* value) { SetParentZoneId(value); return *this;} private: AvailabilityZoneState m_state; bool m_stateHasBeenSet = false; AvailabilityZoneOptInStatus m_optInStatus; bool m_optInStatusHasBeenSet = false; Aws::Vector m_messages; bool m_messagesHasBeenSet = false; Aws::String m_regionName; bool m_regionNameHasBeenSet = false; Aws::String m_zoneName; bool m_zoneNameHasBeenSet = false; Aws::String m_zoneId; bool m_zoneIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_networkBorderGroup; bool m_networkBorderGroupHasBeenSet = false; Aws::String m_zoneType; bool m_zoneTypeHasBeenSet = false; Aws::String m_parentZoneName; bool m_parentZoneNameHasBeenSet = false; Aws::String m_parentZoneId; bool m_parentZoneIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws