{-# 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.WorkSpaces.Types.ClientPropertiesResult -- 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.WorkSpaces.Types.ClientPropertiesResult 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 import Amazonka.WorkSpaces.Types.ClientProperties -- | Information about the Amazon WorkSpaces client. -- -- /See:/ 'newClientPropertiesResult' smart constructor. data ClientPropertiesResult = ClientPropertiesResult' { -- | Information about the Amazon WorkSpaces client. clientProperties :: Prelude.Maybe ClientProperties, -- | The resource identifier, in the form of a directory ID. resourceId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ClientPropertiesResult' 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: -- -- 'clientProperties', 'clientPropertiesResult_clientProperties' - Information about the Amazon WorkSpaces client. -- -- 'resourceId', 'clientPropertiesResult_resourceId' - The resource identifier, in the form of a directory ID. newClientPropertiesResult :: ClientPropertiesResult newClientPropertiesResult = ClientPropertiesResult' { clientProperties = Prelude.Nothing, resourceId = Prelude.Nothing } -- | Information about the Amazon WorkSpaces client. clientPropertiesResult_clientProperties :: Lens.Lens' ClientPropertiesResult (Prelude.Maybe ClientProperties) clientPropertiesResult_clientProperties = Lens.lens (\ClientPropertiesResult' {clientProperties} -> clientProperties) (\s@ClientPropertiesResult' {} a -> s {clientProperties = a} :: ClientPropertiesResult) -- | The resource identifier, in the form of a directory ID. clientPropertiesResult_resourceId :: Lens.Lens' ClientPropertiesResult (Prelude.Maybe Prelude.Text) clientPropertiesResult_resourceId = Lens.lens (\ClientPropertiesResult' {resourceId} -> resourceId) (\s@ClientPropertiesResult' {} a -> s {resourceId = a} :: ClientPropertiesResult) instance Data.FromJSON ClientPropertiesResult where parseJSON = Data.withObject "ClientPropertiesResult" ( \x -> ClientPropertiesResult' Prelude.<$> (x Data..:? "ClientProperties") Prelude.<*> (x Data..:? "ResourceId") ) instance Prelude.Hashable ClientPropertiesResult where hashWithSalt _salt ClientPropertiesResult' {..} = _salt `Prelude.hashWithSalt` clientProperties `Prelude.hashWithSalt` resourceId instance Prelude.NFData ClientPropertiesResult where rnf ClientPropertiesResult' {..} = Prelude.rnf clientProperties `Prelude.seq` Prelude.rnf resourceId