{-# 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.PendingCreateStandbyWorkspacesRequest -- 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.PendingCreateStandbyWorkspacesRequest 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.WorkspaceState -- | Information about the Standby WorkSpace. -- -- /See:/ 'newPendingCreateStandbyWorkspacesRequest' smart constructor. data PendingCreateStandbyWorkspacesRequest = PendingCreateStandbyWorkspacesRequest' { -- | The identifier of the directory for the Standby WorkSpace. directoryId :: Prelude.Maybe Prelude.Text, -- | The operational state of the Standby WorkSpace. state :: Prelude.Maybe WorkspaceState, -- | Describes the Standby WorkSpace that was created. -- -- Because this operation is asynchronous, the identifier returned is not -- immediately available for use with other operations. For example, if you -- call -- -- before the WorkSpace is created, the information returned can be -- incomplete. userName :: Prelude.Maybe Prelude.Text, -- | The identifier of the Standby WorkSpace. workspaceId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'PendingCreateStandbyWorkspacesRequest' 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: -- -- 'directoryId', 'pendingCreateStandbyWorkspacesRequest_directoryId' - The identifier of the directory for the Standby WorkSpace. -- -- 'state', 'pendingCreateStandbyWorkspacesRequest_state' - The operational state of the Standby WorkSpace. -- -- 'userName', 'pendingCreateStandbyWorkspacesRequest_userName' - Describes the Standby WorkSpace that was created. -- -- Because this operation is asynchronous, the identifier returned is not -- immediately available for use with other operations. For example, if you -- call -- -- before the WorkSpace is created, the information returned can be -- incomplete. -- -- 'workspaceId', 'pendingCreateStandbyWorkspacesRequest_workspaceId' - The identifier of the Standby WorkSpace. newPendingCreateStandbyWorkspacesRequest :: PendingCreateStandbyWorkspacesRequest newPendingCreateStandbyWorkspacesRequest = PendingCreateStandbyWorkspacesRequest' { directoryId = Prelude.Nothing, state = Prelude.Nothing, userName = Prelude.Nothing, workspaceId = Prelude.Nothing } -- | The identifier of the directory for the Standby WorkSpace. pendingCreateStandbyWorkspacesRequest_directoryId :: Lens.Lens' PendingCreateStandbyWorkspacesRequest (Prelude.Maybe Prelude.Text) pendingCreateStandbyWorkspacesRequest_directoryId = Lens.lens (\PendingCreateStandbyWorkspacesRequest' {directoryId} -> directoryId) (\s@PendingCreateStandbyWorkspacesRequest' {} a -> s {directoryId = a} :: PendingCreateStandbyWorkspacesRequest) -- | The operational state of the Standby WorkSpace. pendingCreateStandbyWorkspacesRequest_state :: Lens.Lens' PendingCreateStandbyWorkspacesRequest (Prelude.Maybe WorkspaceState) pendingCreateStandbyWorkspacesRequest_state = Lens.lens (\PendingCreateStandbyWorkspacesRequest' {state} -> state) (\s@PendingCreateStandbyWorkspacesRequest' {} a -> s {state = a} :: PendingCreateStandbyWorkspacesRequest) -- | Describes the Standby WorkSpace that was created. -- -- Because this operation is asynchronous, the identifier returned is not -- immediately available for use with other operations. For example, if you -- call -- -- before the WorkSpace is created, the information returned can be -- incomplete. pendingCreateStandbyWorkspacesRequest_userName :: Lens.Lens' PendingCreateStandbyWorkspacesRequest (Prelude.Maybe Prelude.Text) pendingCreateStandbyWorkspacesRequest_userName = Lens.lens (\PendingCreateStandbyWorkspacesRequest' {userName} -> userName) (\s@PendingCreateStandbyWorkspacesRequest' {} a -> s {userName = a} :: PendingCreateStandbyWorkspacesRequest) -- | The identifier of the Standby WorkSpace. pendingCreateStandbyWorkspacesRequest_workspaceId :: Lens.Lens' PendingCreateStandbyWorkspacesRequest (Prelude.Maybe Prelude.Text) pendingCreateStandbyWorkspacesRequest_workspaceId = Lens.lens (\PendingCreateStandbyWorkspacesRequest' {workspaceId} -> workspaceId) (\s@PendingCreateStandbyWorkspacesRequest' {} a -> s {workspaceId = a} :: PendingCreateStandbyWorkspacesRequest) instance Data.FromJSON PendingCreateStandbyWorkspacesRequest where parseJSON = Data.withObject "PendingCreateStandbyWorkspacesRequest" ( \x -> PendingCreateStandbyWorkspacesRequest' Prelude.<$> (x Data..:? "DirectoryId") Prelude.<*> (x Data..:? "State") Prelude.<*> (x Data..:? "UserName") Prelude.<*> (x Data..:? "WorkspaceId") ) instance Prelude.Hashable PendingCreateStandbyWorkspacesRequest where hashWithSalt _salt PendingCreateStandbyWorkspacesRequest' {..} = _salt `Prelude.hashWithSalt` directoryId `Prelude.hashWithSalt` state `Prelude.hashWithSalt` userName `Prelude.hashWithSalt` workspaceId instance Prelude.NFData PendingCreateStandbyWorkspacesRequest where rnf PendingCreateStandbyWorkspacesRequest' {..} = Prelude.rnf directoryId `Prelude.seq` Prelude.rnf state `Prelude.seq` Prelude.rnf userName `Prelude.seq` Prelude.rnf workspaceId