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

Describes an Availability Zone. This is returned only as part of a * GetRegions request.

See Also:

AWS * API Reference

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The name of the Availability Zone. The format is us-east-2a * (case-sensitive).

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

The state of the Availability Zone.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the Availability Zone.

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

The state of the Availability Zone.

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

The state of the Availability Zone.

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

The state of the Availability Zone.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The state of the Availability Zone.

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

The state of the Availability Zone.

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

The state of the Availability Zone.

*/ inline AvailabilityZone& WithState(const char* value) { SetState(value); return *this;} private: Aws::String m_zoneName; bool m_zoneNameHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws