{-# 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.EC2.Types.NewDhcpConfiguration -- 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.EC2.Types.NewDhcpConfiguration where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.EC2.Internal import qualified Amazonka.Prelude as Prelude -- | /See:/ 'newNewDhcpConfiguration' smart constructor. data NewDhcpConfiguration = NewDhcpConfiguration' { key :: Prelude.Maybe Prelude.Text, values :: Prelude.Maybe [Prelude.Text] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'NewDhcpConfiguration' 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: -- -- 'key', 'newDhcpConfiguration_key' - Undocumented member. -- -- 'values', 'newDhcpConfiguration_values' - Undocumented member. newNewDhcpConfiguration :: NewDhcpConfiguration newNewDhcpConfiguration = NewDhcpConfiguration' { key = Prelude.Nothing, values = Prelude.Nothing } -- | Undocumented member. newDhcpConfiguration_key :: Lens.Lens' NewDhcpConfiguration (Prelude.Maybe Prelude.Text) newDhcpConfiguration_key = Lens.lens (\NewDhcpConfiguration' {key} -> key) (\s@NewDhcpConfiguration' {} a -> s {key = a} :: NewDhcpConfiguration) -- | Undocumented member. newDhcpConfiguration_values :: Lens.Lens' NewDhcpConfiguration (Prelude.Maybe [Prelude.Text]) newDhcpConfiguration_values = Lens.lens (\NewDhcpConfiguration' {values} -> values) (\s@NewDhcpConfiguration' {} a -> s {values = a} :: NewDhcpConfiguration) Prelude.. Lens.mapping Lens.coerced instance Prelude.Hashable NewDhcpConfiguration where hashWithSalt _salt NewDhcpConfiguration' {..} = _salt `Prelude.hashWithSalt` key `Prelude.hashWithSalt` values instance Prelude.NFData NewDhcpConfiguration where rnf NewDhcpConfiguration' {..} = Prelude.rnf key `Prelude.seq` Prelude.rnf values instance Data.ToQuery NewDhcpConfiguration where toQuery NewDhcpConfiguration' {..} = Prelude.mconcat [ "Key" Data.=: key, Data.toQuery (Data.toQueryList "Value" Prelude.<$> values) ]