/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/securityhub/SecurityHub_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace SecurityHub {
namespace Model {

/**
 * <p> Contains information about the location of a network endpoint involved in an
 * Amazon GuardDuty Extended Threat Detection attack sequence. GuardDuty generates
 * an attack sequence finding when multiple events align to a potentially
 * suspicious activity. To receive GuardDuty attack sequence findings in Security
 * Hub, you must have GuardDuty enabled. For more information, see <a
 * href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty-extended-threat-detection.html">GuardDuty
 * Extended Threat Detection </a> in the <i>Amazon GuardDuty User Guide</i>.
 * </p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/NetworkGeoLocation">AWS
 * API Reference</a></p>
 */
class NetworkGeoLocation {
 public:
  AWS_SECURITYHUB_API NetworkGeoLocation() = default;
  AWS_SECURITYHUB_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API NetworkGeoLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p> The name of the city. </p>
   */
  inline const Aws::String& GetCity() const { return m_city; }
  inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
  template <typename CityT = Aws::String>
  void SetCity(CityT&& value) {
    m_cityHasBeenSet = true;
    m_city = std::forward<CityT>(value);
  }
  template <typename CityT = Aws::String>
  NetworkGeoLocation& WithCity(CityT&& value) {
    SetCity(std::forward<CityT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> The name of the country. </p>
   */
  inline const Aws::String& GetCountry() const { return m_country; }
  inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
  template <typename CountryT = Aws::String>
  void SetCountry(CountryT&& value) {
    m_countryHasBeenSet = true;
    m_country = std::forward<CountryT>(value);
  }
  template <typename CountryT = Aws::String>
  NetworkGeoLocation& WithCountry(CountryT&& value) {
    SetCountry(std::forward<CountryT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> The latitude information of the endpoint location. </p>
   */
  inline double GetLat() const { return m_lat; }
  inline bool LatHasBeenSet() const { return m_latHasBeenSet; }
  inline void SetLat(double value) {
    m_latHasBeenSet = true;
    m_lat = value;
  }
  inline NetworkGeoLocation& WithLat(double value) {
    SetLat(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> The longitude information of the endpoint location. </p>
   */
  inline double GetLon() const { return m_lon; }
  inline bool LonHasBeenSet() const { return m_lonHasBeenSet; }
  inline void SetLon(double value) {
    m_lonHasBeenSet = true;
    m_lon = value;
  }
  inline NetworkGeoLocation& WithLon(double value) {
    SetLon(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_city;

  Aws::String m_country;

  double m_lat{0.0};

  double m_lon{0.0};
  bool m_cityHasBeenSet = false;
  bool m_countryHasBeenSet = false;
  bool m_latHasBeenSet = false;
  bool m_lonHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityHub
}  // namespace Aws
