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

Contains information about the city associated with the IP * address.

See Also:

AWS API * Reference

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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

The city name of the remote IP address.

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