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

Information about a city.

See Also:

AWS * API Reference

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

The name of the city.

*/ inline const Aws::String& GetCityName() const{ return m_cityName; } /** *

The name of the city.

*/ inline bool CityNameHasBeenSet() const { return m_cityNameHasBeenSet; } /** *

The name of the city.

*/ inline void SetCityName(const Aws::String& value) { m_cityNameHasBeenSet = true; m_cityName = value; } /** *

The name of the city.

*/ inline void SetCityName(Aws::String&& value) { m_cityNameHasBeenSet = true; m_cityName = std::move(value); } /** *

The name of the city.

*/ inline void SetCityName(const char* value) { m_cityNameHasBeenSet = true; m_cityName.assign(value); } /** *

The name of the city.

*/ inline City& WithCityName(const Aws::String& value) { SetCityName(value); return *this;} /** *

The name of the city.

*/ inline City& WithCityName(Aws::String&& value) { SetCityName(std::move(value)); return *this;} /** *

The name of the city.

*/ inline City& WithCityName(const char* value) { SetCityName(value); return *this;} private: Aws::String m_cityName; bool m_cityNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws