This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

90 lines
2.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/guardduty/GuardDuty_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace GuardDuty
{
namespace Model
{
/**
* <p>Contains information about the city associated with the IP
* address.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/City">AWS API
* Reference</a></p>
*/
class AWS_GUARDDUTY_API City
{
public:
City();
City(Aws::Utils::Json::JsonView jsonValue);
City& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The city name of the remote IP address.</p>
*/
inline const Aws::String& GetCityName() const{ return m_cityName; }
/**
* <p>The city name of the remote IP address.</p>
*/
inline bool CityNameHasBeenSet() const { return m_cityNameHasBeenSet; }
/**
* <p>The city name of the remote IP address.</p>
*/
inline void SetCityName(const Aws::String& value) { m_cityNameHasBeenSet = true; m_cityName = value; }
/**
* <p>The city name of the remote IP address.</p>
*/
inline void SetCityName(Aws::String&& value) { m_cityNameHasBeenSet = true; m_cityName = std::move(value); }
/**
* <p>The city name of the remote IP address.</p>
*/
inline void SetCityName(const char* value) { m_cityNameHasBeenSet = true; m_cityName.assign(value); }
/**
* <p>The city name of the remote IP address.</p>
*/
inline City& WithCityName(const Aws::String& value) { SetCityName(value); return *this;}
/**
* <p>The city name of the remote IP address.</p>
*/
inline City& WithCityName(Aws::String&& value) { SetCityName(std::move(value)); return *this;}
/**
* <p>The city name of the remote IP address.</p>
*/
inline City& WithCityName(const char* value) { SetCityName(value); return *this;}
private:
Aws::String m_cityName;
bool m_cityNameHasBeenSet;
};
} // namespace Model
} // namespace GuardDuty
} // namespace Aws