{-# 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.FSx.Types.UpdateOntapVolumeConfiguration
-- 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.FSx.Types.UpdateOntapVolumeConfiguration where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FSx.Types.SecurityStyle
import Amazonka.FSx.Types.TieringPolicy
import qualified Amazonka.Prelude as Prelude

-- | Used to specify changes to the ONTAP configuration for the volume you
-- are updating.
--
-- /See:/ 'newUpdateOntapVolumeConfiguration' smart constructor.
data UpdateOntapVolumeConfiguration = UpdateOntapVolumeConfiguration'
  { -- | A boolean flag indicating whether tags for the volume should be copied
    -- to backups. This value defaults to false. If it\'s set to true, all tags
    -- for the volume are copied to all automatic and user-initiated backups
    -- where the user doesn\'t specify tags. If this value is true, and you
    -- specify one or more tags, only the specified tags are copied to backups.
    -- If you specify one or more tags when creating a user-initiated backup,
    -- no tags are copied from the volume, regardless of this value.
    UpdateOntapVolumeConfiguration -> Maybe Bool
copyTagsToBackups :: Prelude.Maybe Prelude.Bool,
    -- | Specifies the location in the SVM\'s namespace where the volume is
    -- mounted. The @JunctionPath@ must have a leading forward slash, such as
    -- @\/vol3@.
    UpdateOntapVolumeConfiguration -> Maybe Text
junctionPath :: Prelude.Maybe Prelude.Text,
    -- | The security style for the volume, which can be @UNIX@. @NTFS@, or
    -- @MIXED@.
    UpdateOntapVolumeConfiguration -> Maybe SecurityStyle
securityStyle :: Prelude.Maybe SecurityStyle,
    -- | Specifies the size of the volume in megabytes.
    UpdateOntapVolumeConfiguration -> Maybe Natural
sizeInMegabytes :: Prelude.Maybe Prelude.Natural,
    -- | Specifies the snapshot policy for the volume. There are three built-in
    -- snapshot policies:
    --
    -- -   @default@: This is the default policy. A maximum of six hourly
    --     snapshots taken five minutes past the hour. A maximum of two daily
    --     snapshots taken Monday through Saturday at 10 minutes after
    --     midnight. A maximum of two weekly snapshots taken every Sunday at 15
    --     minutes after midnight.
    --
    -- -   @default-1weekly@: This policy is the same as the @default@ policy
    --     except that it only retains one snapshot from the weekly schedule.
    --
    -- -   @none@: This policy does not take any snapshots. This policy can be
    --     assigned to volumes to prevent automatic snapshots from being taken.
    --
    -- You can also provide the name of a custom policy that you created with
    -- the ONTAP CLI or REST API.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies Snapshot policies>
    -- in the /Amazon FSx for NetApp ONTAP User Guide/.
    UpdateOntapVolumeConfiguration -> Maybe Text
snapshotPolicy :: Prelude.Maybe Prelude.Text,
    -- | Default is @false@. Set to true to enable the deduplication,
    -- compression, and compaction storage efficiency features on the volume.
    UpdateOntapVolumeConfiguration -> Maybe Bool
storageEfficiencyEnabled :: Prelude.Maybe Prelude.Bool,
    -- | Update the volume\'s data tiering policy.
    UpdateOntapVolumeConfiguration -> Maybe TieringPolicy
tieringPolicy :: Prelude.Maybe TieringPolicy
  }
  deriving (UpdateOntapVolumeConfiguration
-> UpdateOntapVolumeConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateOntapVolumeConfiguration
-> UpdateOntapVolumeConfiguration -> Bool
$c/= :: UpdateOntapVolumeConfiguration
-> UpdateOntapVolumeConfiguration -> Bool
== :: UpdateOntapVolumeConfiguration
-> UpdateOntapVolumeConfiguration -> Bool
$c== :: UpdateOntapVolumeConfiguration
-> UpdateOntapVolumeConfiguration -> Bool
Prelude.Eq, ReadPrec [UpdateOntapVolumeConfiguration]
ReadPrec UpdateOntapVolumeConfiguration
Int -> ReadS UpdateOntapVolumeConfiguration
ReadS [UpdateOntapVolumeConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateOntapVolumeConfiguration]
$creadListPrec :: ReadPrec [UpdateOntapVolumeConfiguration]
readPrec :: ReadPrec UpdateOntapVolumeConfiguration
$creadPrec :: ReadPrec UpdateOntapVolumeConfiguration
readList :: ReadS [UpdateOntapVolumeConfiguration]
$creadList :: ReadS [UpdateOntapVolumeConfiguration]
readsPrec :: Int -> ReadS UpdateOntapVolumeConfiguration
$creadsPrec :: Int -> ReadS UpdateOntapVolumeConfiguration
Prelude.Read, Int -> UpdateOntapVolumeConfiguration -> ShowS
[UpdateOntapVolumeConfiguration] -> ShowS
UpdateOntapVolumeConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateOntapVolumeConfiguration] -> ShowS
$cshowList :: [UpdateOntapVolumeConfiguration] -> ShowS
show :: UpdateOntapVolumeConfiguration -> String
$cshow :: UpdateOntapVolumeConfiguration -> String
showsPrec :: Int -> UpdateOntapVolumeConfiguration -> ShowS
$cshowsPrec :: Int -> UpdateOntapVolumeConfiguration -> ShowS
Prelude.Show, forall x.
Rep UpdateOntapVolumeConfiguration x
-> UpdateOntapVolumeConfiguration
forall x.
UpdateOntapVolumeConfiguration
-> Rep UpdateOntapVolumeConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateOntapVolumeConfiguration x
-> UpdateOntapVolumeConfiguration
$cfrom :: forall x.
UpdateOntapVolumeConfiguration
-> Rep UpdateOntapVolumeConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'UpdateOntapVolumeConfiguration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'copyTagsToBackups', 'updateOntapVolumeConfiguration_copyTagsToBackups' - A boolean flag indicating whether tags for the volume should be copied
-- to backups. This value defaults to false. If it\'s set to true, all tags
-- for the volume are copied to all automatic and user-initiated backups
-- where the user doesn\'t specify tags. If this value is true, and you
-- specify one or more tags, only the specified tags are copied to backups.
-- If you specify one or more tags when creating a user-initiated backup,
-- no tags are copied from the volume, regardless of this value.
--
-- 'junctionPath', 'updateOntapVolumeConfiguration_junctionPath' - Specifies the location in the SVM\'s namespace where the volume is
-- mounted. The @JunctionPath@ must have a leading forward slash, such as
-- @\/vol3@.
--
-- 'securityStyle', 'updateOntapVolumeConfiguration_securityStyle' - The security style for the volume, which can be @UNIX@. @NTFS@, or
-- @MIXED@.
--
-- 'sizeInMegabytes', 'updateOntapVolumeConfiguration_sizeInMegabytes' - Specifies the size of the volume in megabytes.
--
-- 'snapshotPolicy', 'updateOntapVolumeConfiguration_snapshotPolicy' - Specifies the snapshot policy for the volume. There are three built-in
-- snapshot policies:
--
-- -   @default@: This is the default policy. A maximum of six hourly
--     snapshots taken five minutes past the hour. A maximum of two daily
--     snapshots taken Monday through Saturday at 10 minutes after
--     midnight. A maximum of two weekly snapshots taken every Sunday at 15
--     minutes after midnight.
--
-- -   @default-1weekly@: This policy is the same as the @default@ policy
--     except that it only retains one snapshot from the weekly schedule.
--
-- -   @none@: This policy does not take any snapshots. This policy can be
--     assigned to volumes to prevent automatic snapshots from being taken.
--
-- You can also provide the name of a custom policy that you created with
-- the ONTAP CLI or REST API.
--
-- For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies Snapshot policies>
-- in the /Amazon FSx for NetApp ONTAP User Guide/.
--
-- 'storageEfficiencyEnabled', 'updateOntapVolumeConfiguration_storageEfficiencyEnabled' - Default is @false@. Set to true to enable the deduplication,
-- compression, and compaction storage efficiency features on the volume.
--
-- 'tieringPolicy', 'updateOntapVolumeConfiguration_tieringPolicy' - Update the volume\'s data tiering policy.
newUpdateOntapVolumeConfiguration ::
  UpdateOntapVolumeConfiguration
newUpdateOntapVolumeConfiguration :: UpdateOntapVolumeConfiguration
newUpdateOntapVolumeConfiguration =
  UpdateOntapVolumeConfiguration'
    { $sel:copyTagsToBackups:UpdateOntapVolumeConfiguration' :: Maybe Bool
copyTagsToBackups =
        forall a. Maybe a
Prelude.Nothing,
      $sel:junctionPath:UpdateOntapVolumeConfiguration' :: Maybe Text
junctionPath = forall a. Maybe a
Prelude.Nothing,
      $sel:securityStyle:UpdateOntapVolumeConfiguration' :: Maybe SecurityStyle
securityStyle = forall a. Maybe a
Prelude.Nothing,
      $sel:sizeInMegabytes:UpdateOntapVolumeConfiguration' :: Maybe Natural
sizeInMegabytes = forall a. Maybe a
Prelude.Nothing,
      $sel:snapshotPolicy:UpdateOntapVolumeConfiguration' :: Maybe Text
snapshotPolicy = forall a. Maybe a
Prelude.Nothing,
      $sel:storageEfficiencyEnabled:UpdateOntapVolumeConfiguration' :: Maybe Bool
storageEfficiencyEnabled = forall a. Maybe a
Prelude.Nothing,
      $sel:tieringPolicy:UpdateOntapVolumeConfiguration' :: Maybe TieringPolicy
tieringPolicy = forall a. Maybe a
Prelude.Nothing
    }

-- | A boolean flag indicating whether tags for the volume should be copied
-- to backups. This value defaults to false. If it\'s set to true, all tags
-- for the volume are copied to all automatic and user-initiated backups
-- where the user doesn\'t specify tags. If this value is true, and you
-- specify one or more tags, only the specified tags are copied to backups.
-- If you specify one or more tags when creating a user-initiated backup,
-- no tags are copied from the volume, regardless of this value.
updateOntapVolumeConfiguration_copyTagsToBackups :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe Prelude.Bool)
updateOntapVolumeConfiguration_copyTagsToBackups :: Lens' UpdateOntapVolumeConfiguration (Maybe Bool)
updateOntapVolumeConfiguration_copyTagsToBackups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe Bool
copyTagsToBackups :: Maybe Bool
$sel:copyTagsToBackups:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
copyTagsToBackups} -> Maybe Bool
copyTagsToBackups) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe Bool
a -> UpdateOntapVolumeConfiguration
s {$sel:copyTagsToBackups:UpdateOntapVolumeConfiguration' :: Maybe Bool
copyTagsToBackups = Maybe Bool
a} :: UpdateOntapVolumeConfiguration)

-- | Specifies the location in the SVM\'s namespace where the volume is
-- mounted. The @JunctionPath@ must have a leading forward slash, such as
-- @\/vol3@.
updateOntapVolumeConfiguration_junctionPath :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe Prelude.Text)
updateOntapVolumeConfiguration_junctionPath :: Lens' UpdateOntapVolumeConfiguration (Maybe Text)
updateOntapVolumeConfiguration_junctionPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe Text
junctionPath :: Maybe Text
$sel:junctionPath:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
junctionPath} -> Maybe Text
junctionPath) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe Text
a -> UpdateOntapVolumeConfiguration
s {$sel:junctionPath:UpdateOntapVolumeConfiguration' :: Maybe Text
junctionPath = Maybe Text
a} :: UpdateOntapVolumeConfiguration)

-- | The security style for the volume, which can be @UNIX@. @NTFS@, or
-- @MIXED@.
updateOntapVolumeConfiguration_securityStyle :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe SecurityStyle)
updateOntapVolumeConfiguration_securityStyle :: Lens' UpdateOntapVolumeConfiguration (Maybe SecurityStyle)
updateOntapVolumeConfiguration_securityStyle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe SecurityStyle
securityStyle :: Maybe SecurityStyle
$sel:securityStyle:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe SecurityStyle
securityStyle} -> Maybe SecurityStyle
securityStyle) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe SecurityStyle
a -> UpdateOntapVolumeConfiguration
s {$sel:securityStyle:UpdateOntapVolumeConfiguration' :: Maybe SecurityStyle
securityStyle = Maybe SecurityStyle
a} :: UpdateOntapVolumeConfiguration)

-- | Specifies the size of the volume in megabytes.
updateOntapVolumeConfiguration_sizeInMegabytes :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe Prelude.Natural)
updateOntapVolumeConfiguration_sizeInMegabytes :: Lens' UpdateOntapVolumeConfiguration (Maybe Natural)
updateOntapVolumeConfiguration_sizeInMegabytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe Natural
sizeInMegabytes :: Maybe Natural
$sel:sizeInMegabytes:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Natural
sizeInMegabytes} -> Maybe Natural
sizeInMegabytes) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe Natural
a -> UpdateOntapVolumeConfiguration
s {$sel:sizeInMegabytes:UpdateOntapVolumeConfiguration' :: Maybe Natural
sizeInMegabytes = Maybe Natural
a} :: UpdateOntapVolumeConfiguration)

-- | Specifies the snapshot policy for the volume. There are three built-in
-- snapshot policies:
--
-- -   @default@: This is the default policy. A maximum of six hourly
--     snapshots taken five minutes past the hour. A maximum of two daily
--     snapshots taken Monday through Saturday at 10 minutes after
--     midnight. A maximum of two weekly snapshots taken every Sunday at 15
--     minutes after midnight.
--
-- -   @default-1weekly@: This policy is the same as the @default@ policy
--     except that it only retains one snapshot from the weekly schedule.
--
-- -   @none@: This policy does not take any snapshots. This policy can be
--     assigned to volumes to prevent automatic snapshots from being taken.
--
-- You can also provide the name of a custom policy that you created with
-- the ONTAP CLI or REST API.
--
-- For more information, see
-- <https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html#snapshot-policies Snapshot policies>
-- in the /Amazon FSx for NetApp ONTAP User Guide/.
updateOntapVolumeConfiguration_snapshotPolicy :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe Prelude.Text)
updateOntapVolumeConfiguration_snapshotPolicy :: Lens' UpdateOntapVolumeConfiguration (Maybe Text)
updateOntapVolumeConfiguration_snapshotPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe Text
snapshotPolicy :: Maybe Text
$sel:snapshotPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
snapshotPolicy} -> Maybe Text
snapshotPolicy) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe Text
a -> UpdateOntapVolumeConfiguration
s {$sel:snapshotPolicy:UpdateOntapVolumeConfiguration' :: Maybe Text
snapshotPolicy = Maybe Text
a} :: UpdateOntapVolumeConfiguration)

-- | Default is @false@. Set to true to enable the deduplication,
-- compression, and compaction storage efficiency features on the volume.
updateOntapVolumeConfiguration_storageEfficiencyEnabled :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe Prelude.Bool)
updateOntapVolumeConfiguration_storageEfficiencyEnabled :: Lens' UpdateOntapVolumeConfiguration (Maybe Bool)
updateOntapVolumeConfiguration_storageEfficiencyEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe Bool
storageEfficiencyEnabled :: Maybe Bool
$sel:storageEfficiencyEnabled:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
storageEfficiencyEnabled} -> Maybe Bool
storageEfficiencyEnabled) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe Bool
a -> UpdateOntapVolumeConfiguration
s {$sel:storageEfficiencyEnabled:UpdateOntapVolumeConfiguration' :: Maybe Bool
storageEfficiencyEnabled = Maybe Bool
a} :: UpdateOntapVolumeConfiguration)

-- | Update the volume\'s data tiering policy.
updateOntapVolumeConfiguration_tieringPolicy :: Lens.Lens' UpdateOntapVolumeConfiguration (Prelude.Maybe TieringPolicy)
updateOntapVolumeConfiguration_tieringPolicy :: Lens' UpdateOntapVolumeConfiguration (Maybe TieringPolicy)
updateOntapVolumeConfiguration_tieringPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateOntapVolumeConfiguration' {Maybe TieringPolicy
tieringPolicy :: Maybe TieringPolicy
$sel:tieringPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe TieringPolicy
tieringPolicy} -> Maybe TieringPolicy
tieringPolicy) (\s :: UpdateOntapVolumeConfiguration
s@UpdateOntapVolumeConfiguration' {} Maybe TieringPolicy
a -> UpdateOntapVolumeConfiguration
s {$sel:tieringPolicy:UpdateOntapVolumeConfiguration' :: Maybe TieringPolicy
tieringPolicy = Maybe TieringPolicy
a} :: UpdateOntapVolumeConfiguration)

instance
  Prelude.Hashable
    UpdateOntapVolumeConfiguration
  where
  hashWithSalt :: Int -> UpdateOntapVolumeConfiguration -> Int
hashWithSalt
    Int
_salt
    UpdateOntapVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe SecurityStyle
Maybe TieringPolicy
tieringPolicy :: Maybe TieringPolicy
storageEfficiencyEnabled :: Maybe Bool
snapshotPolicy :: Maybe Text
sizeInMegabytes :: Maybe Natural
securityStyle :: Maybe SecurityStyle
junctionPath :: Maybe Text
copyTagsToBackups :: Maybe Bool
$sel:tieringPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe TieringPolicy
$sel:storageEfficiencyEnabled:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
$sel:snapshotPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
$sel:sizeInMegabytes:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Natural
$sel:securityStyle:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe SecurityStyle
$sel:junctionPath:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
$sel:copyTagsToBackups:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
copyTagsToBackups
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
junctionPath
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SecurityStyle
securityStyle
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
sizeInMegabytes
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
snapshotPolicy
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
storageEfficiencyEnabled
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe TieringPolicy
tieringPolicy

instance
  Prelude.NFData
    UpdateOntapVolumeConfiguration
  where
  rnf :: UpdateOntapVolumeConfiguration -> ()
rnf UpdateOntapVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe SecurityStyle
Maybe TieringPolicy
tieringPolicy :: Maybe TieringPolicy
storageEfficiencyEnabled :: Maybe Bool
snapshotPolicy :: Maybe Text
sizeInMegabytes :: Maybe Natural
securityStyle :: Maybe SecurityStyle
junctionPath :: Maybe Text
copyTagsToBackups :: Maybe Bool
$sel:tieringPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe TieringPolicy
$sel:storageEfficiencyEnabled:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
$sel:snapshotPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
$sel:sizeInMegabytes:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Natural
$sel:securityStyle:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe SecurityStyle
$sel:junctionPath:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
$sel:copyTagsToBackups:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
copyTagsToBackups
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
junctionPath
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SecurityStyle
securityStyle
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
sizeInMegabytes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
snapshotPolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
storageEfficiencyEnabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TieringPolicy
tieringPolicy

instance Data.ToJSON UpdateOntapVolumeConfiguration where
  toJSON :: UpdateOntapVolumeConfiguration -> Value
toJSON UpdateOntapVolumeConfiguration' {Maybe Bool
Maybe Natural
Maybe Text
Maybe SecurityStyle
Maybe TieringPolicy
tieringPolicy :: Maybe TieringPolicy
storageEfficiencyEnabled :: Maybe Bool
snapshotPolicy :: Maybe Text
sizeInMegabytes :: Maybe Natural
securityStyle :: Maybe SecurityStyle
junctionPath :: Maybe Text
copyTagsToBackups :: Maybe Bool
$sel:tieringPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe TieringPolicy
$sel:storageEfficiencyEnabled:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
$sel:snapshotPolicy:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
$sel:sizeInMegabytes:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Natural
$sel:securityStyle:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe SecurityStyle
$sel:junctionPath:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Text
$sel:copyTagsToBackups:UpdateOntapVolumeConfiguration' :: UpdateOntapVolumeConfiguration -> Maybe Bool
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"CopyTagsToBackups" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
copyTagsToBackups,
            (Key
"JunctionPath" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
junctionPath,
            (Key
"SecurityStyle" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SecurityStyle
securityStyle,
            (Key
"SizeInMegabytes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
sizeInMegabytes,
            (Key
"SnapshotPolicy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
snapshotPolicy,
            (Key
"StorageEfficiencyEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
storageEfficiencyEnabled,
            (Key
"TieringPolicy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TieringPolicy
tieringPolicy
          ]
      )