{-# 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.CloudDirectory.Types.BatchGetLinkAttributesResponse -- 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.CloudDirectory.Types.BatchGetLinkAttributesResponse where import Amazonka.CloudDirectory.Types.AttributeKeyAndValue 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 -- | Represents the output of a GetLinkAttributes response operation. -- -- /See:/ 'newBatchGetLinkAttributesResponse' smart constructor. data BatchGetLinkAttributesResponse = BatchGetLinkAttributesResponse' { -- | The attributes that are associated with the typed link. attributes :: Prelude.Maybe [AttributeKeyAndValue] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchGetLinkAttributesResponse' 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: -- -- 'attributes', 'batchGetLinkAttributesResponse_attributes' - The attributes that are associated with the typed link. newBatchGetLinkAttributesResponse :: BatchGetLinkAttributesResponse newBatchGetLinkAttributesResponse = BatchGetLinkAttributesResponse' { attributes = Prelude.Nothing } -- | The attributes that are associated with the typed link. batchGetLinkAttributesResponse_attributes :: Lens.Lens' BatchGetLinkAttributesResponse (Prelude.Maybe [AttributeKeyAndValue]) batchGetLinkAttributesResponse_attributes = Lens.lens (\BatchGetLinkAttributesResponse' {attributes} -> attributes) (\s@BatchGetLinkAttributesResponse' {} a -> s {attributes = a} :: BatchGetLinkAttributesResponse) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON BatchGetLinkAttributesResponse where parseJSON = Data.withObject "BatchGetLinkAttributesResponse" ( \x -> BatchGetLinkAttributesResponse' Prelude.<$> (x Data..:? "Attributes" Data..!= Prelude.mempty) ) instance Prelude.Hashable BatchGetLinkAttributesResponse where hashWithSalt _salt BatchGetLinkAttributesResponse' {..} = _salt `Prelude.hashWithSalt` attributes instance Prelude.NFData BatchGetLinkAttributesResponse where rnf BatchGetLinkAttributesResponse' {..} = Prelude.rnf attributes