{-# 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.SupportedOperation -- 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.SupportedOperation 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 the operations that are allowed on a maintenance track. -- -- /See:/ 'newSupportedOperation' smart constructor. data SupportedOperation = SupportedOperation' { -- | A list of the supported operations. operationName :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'SupportedOperation' 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: -- -- 'operationName', 'supportedOperation_operationName' - A list of the supported operations. newSupportedOperation :: SupportedOperation newSupportedOperation = SupportedOperation' { operationName = Prelude.Nothing } -- | A list of the supported operations. supportedOperation_operationName :: Lens.Lens' SupportedOperation (Prelude.Maybe Prelude.Text) supportedOperation_operationName = Lens.lens (\SupportedOperation' {operationName} -> operationName) (\s@SupportedOperation' {} a -> s {operationName = a} :: SupportedOperation) instance Data.FromXML SupportedOperation where parseXML x = SupportedOperation' Prelude.<$> (x Data..@? "OperationName") instance Prelude.Hashable SupportedOperation where hashWithSalt _salt SupportedOperation' {..} = _salt `Prelude.hashWithSalt` operationName instance Prelude.NFData SupportedOperation where rnf SupportedOperation' {..} = Prelude.rnf operationName