{-# 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.Redshift.Types.ResizeInfo -- 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.Redshift.Types.ResizeInfo 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.Redshift.Internal -- | Describes a resize operation. -- -- /See:/ 'newResizeInfo' smart constructor. data ResizeInfo = ResizeInfo' { -- | A boolean value indicating if the resize operation can be cancelled. allowCancelResize :: Prelude.Maybe Prelude.Bool, -- | Returns the value @ClassicResize@. resizeType :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ResizeInfo' 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: -- -- 'allowCancelResize', 'resizeInfo_allowCancelResize' - A boolean value indicating if the resize operation can be cancelled. -- -- 'resizeType', 'resizeInfo_resizeType' - Returns the value @ClassicResize@. newResizeInfo :: ResizeInfo newResizeInfo = ResizeInfo' { allowCancelResize = Prelude.Nothing, resizeType = Prelude.Nothing } -- | A boolean value indicating if the resize operation can be cancelled. resizeInfo_allowCancelResize :: Lens.Lens' ResizeInfo (Prelude.Maybe Prelude.Bool) resizeInfo_allowCancelResize = Lens.lens (\ResizeInfo' {allowCancelResize} -> allowCancelResize) (\s@ResizeInfo' {} a -> s {allowCancelResize = a} :: ResizeInfo) -- | Returns the value @ClassicResize@. resizeInfo_resizeType :: Lens.Lens' ResizeInfo (Prelude.Maybe Prelude.Text) resizeInfo_resizeType = Lens.lens (\ResizeInfo' {resizeType} -> resizeType) (\s@ResizeInfo' {} a -> s {resizeType = a} :: ResizeInfo) instance Data.FromXML ResizeInfo where parseXML x = ResizeInfo' Prelude.<$> (x Data..@? "AllowCancelResize") Prelude.<*> (x Data..@? "ResizeType") instance Prelude.Hashable ResizeInfo where hashWithSalt _salt ResizeInfo' {..} = _salt `Prelude.hashWithSalt` allowCancelResize `Prelude.hashWithSalt` resizeType instance Prelude.NFData ResizeInfo where rnf ResizeInfo' {..} = Prelude.rnf allowCancelResize `Prelude.seq` Prelude.rnf resizeType