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

Properties of a location

See Also:

AWS * API Reference

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

The location's name.

*/ inline const Aws::String& GetLocationName() const{ return m_locationName; } /** *

The location's name.

*/ inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; } /** *

The location's name.

*/ inline void SetLocationName(const Aws::String& value) { m_locationNameHasBeenSet = true; m_locationName = value; } /** *

The location's name.

*/ inline void SetLocationName(Aws::String&& value) { m_locationNameHasBeenSet = true; m_locationName = std::move(value); } /** *

The location's name.

*/ inline void SetLocationName(const char* value) { m_locationNameHasBeenSet = true; m_locationName.assign(value); } /** *

The location's name.

*/ inline LocationModel& WithLocationName(const Aws::String& value) { SetLocationName(value); return *this;} /** *

The location's name.

*/ inline LocationModel& WithLocationName(Aws::String&& value) { SetLocationName(std::move(value)); return *this;} /** *

The location's name.

*/ inline LocationModel& WithLocationName(const char* value) { SetLocationName(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline const Aws::String& GetLocationArn() const{ return m_locationArn; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); } /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline LocationModel& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline LocationModel& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) * that is assigned to a Amazon GameLift location resource and uniquely identifies * it. ARNs are unique across all Regions. Format is * arn:aws:gamelift:<region>::location/location-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

*/ inline LocationModel& WithLocationArn(const char* value) { SetLocationArn(value); return *this;} private: Aws::String m_locationName; bool m_locationNameHasBeenSet = false; Aws::String m_locationArn; bool m_locationArnHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws