{-# 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.AlexaBusiness.Types.AddressBookData -- 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.AlexaBusiness.Types.AddressBookData 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 -- | Information related to an address book. -- -- /See:/ 'newAddressBookData' smart constructor. data AddressBookData = AddressBookData' { -- | The ARN of the address book. addressBookArn :: Prelude.Maybe Prelude.Text, -- | The description of the address book. description :: Prelude.Maybe Prelude.Text, -- | The name of the address book. name :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AddressBookData' 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: -- -- 'addressBookArn', 'addressBookData_addressBookArn' - The ARN of the address book. -- -- 'description', 'addressBookData_description' - The description of the address book. -- -- 'name', 'addressBookData_name' - The name of the address book. newAddressBookData :: AddressBookData newAddressBookData = AddressBookData' { addressBookArn = Prelude.Nothing, description = Prelude.Nothing, name = Prelude.Nothing } -- | The ARN of the address book. addressBookData_addressBookArn :: Lens.Lens' AddressBookData (Prelude.Maybe Prelude.Text) addressBookData_addressBookArn = Lens.lens (\AddressBookData' {addressBookArn} -> addressBookArn) (\s@AddressBookData' {} a -> s {addressBookArn = a} :: AddressBookData) -- | The description of the address book. addressBookData_description :: Lens.Lens' AddressBookData (Prelude.Maybe Prelude.Text) addressBookData_description = Lens.lens (\AddressBookData' {description} -> description) (\s@AddressBookData' {} a -> s {description = a} :: AddressBookData) -- | The name of the address book. addressBookData_name :: Lens.Lens' AddressBookData (Prelude.Maybe Prelude.Text) addressBookData_name = Lens.lens (\AddressBookData' {name} -> name) (\s@AddressBookData' {} a -> s {name = a} :: AddressBookData) instance Data.FromJSON AddressBookData where parseJSON = Data.withObject "AddressBookData" ( \x -> AddressBookData' Prelude.<$> (x Data..:? "AddressBookArn") Prelude.<*> (x Data..:? "Description") Prelude.<*> (x Data..:? "Name") ) instance Prelude.Hashable AddressBookData where hashWithSalt _salt AddressBookData' {..} = _salt `Prelude.hashWithSalt` addressBookArn `Prelude.hashWithSalt` description `Prelude.hashWithSalt` name instance Prelude.NFData AddressBookData where rnf AddressBookData' {..} = Prelude.rnf addressBookArn `Prelude.seq` Prelude.rnf description `Prelude.seq` Prelude.rnf name