{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.GuardDuty.Types.LocalIpDetails -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.GuardDuty.Types.LocalIpDetails where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | Contains information about the local IP address of the connection. -- -- /See:/ 'newLocalIpDetails' smart constructor. data LocalIpDetails = LocalIpDetails' { -- | The IPv4 local address of the connection. ipAddressV4 :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'LocalIpDetails' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'ipAddressV4', 'localIpDetails_ipAddressV4' - The IPv4 local address of the connection. newLocalIpDetails :: LocalIpDetails newLocalIpDetails = LocalIpDetails' {ipAddressV4 = Prelude.Nothing} -- | The IPv4 local address of the connection. localIpDetails_ipAddressV4 :: Lens.Lens' LocalIpDetails (Prelude.Maybe Prelude.Text) localIpDetails_ipAddressV4 = Lens.lens (\LocalIpDetails' {ipAddressV4} -> ipAddressV4) (\s@LocalIpDetails' {} a -> s {ipAddressV4 = a} :: LocalIpDetails) instance Data.FromJSON LocalIpDetails where parseJSON = Data.withObject "LocalIpDetails" ( \x -> LocalIpDetails' Prelude.<$> (x Data..:? "ipAddressV4") ) instance Prelude.Hashable LocalIpDetails where hashWithSalt _salt LocalIpDetails' {..} = _salt `Prelude.hashWithSalt` ipAddressV4 instance Prelude.NFData LocalIpDetails where rnf LocalIpDetails' {..} = Prelude.rnf ipAddressV4