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

Describes the resource location.

See Also:

AWS * API Reference

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

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

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

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

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

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

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

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

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

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

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

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

*/ inline ResourceLocation& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

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

*/ inline ResourceLocation& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

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

*/ inline ResourceLocation& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The Amazon Web Services Region name.

*/ inline const RegionName& GetRegionName() const{ return m_regionName; } /** *

The Amazon Web Services Region name.

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

The Amazon Web Services Region name.

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

The Amazon Web Services Region name.

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

The Amazon Web Services Region name.

*/ inline ResourceLocation& WithRegionName(const RegionName& value) { SetRegionName(value); return *this;} /** *

The Amazon Web Services Region name.

*/ inline ResourceLocation& WithRegionName(RegionName&& value) { SetRegionName(std::move(value)); return *this;} private: Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; RegionName m_regionName; bool m_regionNameHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws