{-# 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.RDS.Types.OptionGroup
-- 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.RDS.Types.OptionGroup 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.RDS.Types.Option

-- |
--
-- /See:/ 'newOptionGroup' smart constructor.
data OptionGroup = OptionGroup'
  { -- | Indicates whether this option group can be applied to both VPC and
    -- non-VPC instances. The value @true@ indicates the option group can be
    -- applied to both VPC and non-VPC instances.
    OptionGroup -> Maybe Bool
allowsVpcAndNonVpcInstanceMemberships :: Prelude.Maybe Prelude.Bool,
    -- | Indicates when the option group was copied.
    OptionGroup -> Maybe ISO8601
copyTimestamp :: Prelude.Maybe Data.ISO8601,
    -- | Indicates the name of the engine that this option group can be applied
    -- to.
    OptionGroup -> Maybe Text
engineName :: Prelude.Maybe Prelude.Text,
    -- | Indicates the major engine version associated with this option group.
    OptionGroup -> Maybe Text
majorEngineVersion :: Prelude.Maybe Prelude.Text,
    -- | Specifies the Amazon Resource Name (ARN) for the option group.
    OptionGroup -> Maybe Text
optionGroupArn :: Prelude.Maybe Prelude.Text,
    -- | Provides a description of the option group.
    OptionGroup -> Maybe Text
optionGroupDescription :: Prelude.Maybe Prelude.Text,
    -- | Specifies the name of the option group.
    OptionGroup -> Maybe Text
optionGroupName :: Prelude.Maybe Prelude.Text,
    -- | Indicates what options are available in the option group.
    OptionGroup -> Maybe [Option]
options :: Prelude.Maybe [Option],
    -- | Specifies the Amazon Web Services account ID for the option group from
    -- which this option group is copied.
    OptionGroup -> Maybe Text
sourceAccountId :: Prelude.Maybe Prelude.Text,
    -- | Specifies the name of the option group from which this option group is
    -- copied.
    OptionGroup -> Maybe Text
sourceOptionGroup :: Prelude.Maybe Prelude.Text,
    -- | If __AllowsVpcAndNonVpcInstanceMemberships__ is @false@, this field is
    -- blank. If __AllowsVpcAndNonVpcInstanceMemberships__ is @true@ and this
    -- field is blank, then this option group can be applied to both VPC and
    -- non-VPC instances. If this field contains a value, then this option
    -- group can only be applied to instances that are in the VPC indicated by
    -- this field.
    OptionGroup -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text
  }
  deriving (OptionGroup -> OptionGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OptionGroup -> OptionGroup -> Bool
$c/= :: OptionGroup -> OptionGroup -> Bool
== :: OptionGroup -> OptionGroup -> Bool
$c== :: OptionGroup -> OptionGroup -> Bool
Prelude.Eq, ReadPrec [OptionGroup]
ReadPrec OptionGroup
Int -> ReadS OptionGroup
ReadS [OptionGroup]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OptionGroup]
$creadListPrec :: ReadPrec [OptionGroup]
readPrec :: ReadPrec OptionGroup
$creadPrec :: ReadPrec OptionGroup
readList :: ReadS [OptionGroup]
$creadList :: ReadS [OptionGroup]
readsPrec :: Int -> ReadS OptionGroup
$creadsPrec :: Int -> ReadS OptionGroup
Prelude.Read, Int -> OptionGroup -> ShowS
[OptionGroup] -> ShowS
OptionGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OptionGroup] -> ShowS
$cshowList :: [OptionGroup] -> ShowS
show :: OptionGroup -> String
$cshow :: OptionGroup -> String
showsPrec :: Int -> OptionGroup -> ShowS
$cshowsPrec :: Int -> OptionGroup -> ShowS
Prelude.Show, forall x. Rep OptionGroup x -> OptionGroup
forall x. OptionGroup -> Rep OptionGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OptionGroup x -> OptionGroup
$cfrom :: forall x. OptionGroup -> Rep OptionGroup x
Prelude.Generic)

-- |
-- Create a value of 'OptionGroup' 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:
--
-- 'allowsVpcAndNonVpcInstanceMemberships', 'optionGroup_allowsVpcAndNonVpcInstanceMemberships' - Indicates whether this option group can be applied to both VPC and
-- non-VPC instances. The value @true@ indicates the option group can be
-- applied to both VPC and non-VPC instances.
--
-- 'copyTimestamp', 'optionGroup_copyTimestamp' - Indicates when the option group was copied.
--
-- 'engineName', 'optionGroup_engineName' - Indicates the name of the engine that this option group can be applied
-- to.
--
-- 'majorEngineVersion', 'optionGroup_majorEngineVersion' - Indicates the major engine version associated with this option group.
--
-- 'optionGroupArn', 'optionGroup_optionGroupArn' - Specifies the Amazon Resource Name (ARN) for the option group.
--
-- 'optionGroupDescription', 'optionGroup_optionGroupDescription' - Provides a description of the option group.
--
-- 'optionGroupName', 'optionGroup_optionGroupName' - Specifies the name of the option group.
--
-- 'options', 'optionGroup_options' - Indicates what options are available in the option group.
--
-- 'sourceAccountId', 'optionGroup_sourceAccountId' - Specifies the Amazon Web Services account ID for the option group from
-- which this option group is copied.
--
-- 'sourceOptionGroup', 'optionGroup_sourceOptionGroup' - Specifies the name of the option group from which this option group is
-- copied.
--
-- 'vpcId', 'optionGroup_vpcId' - If __AllowsVpcAndNonVpcInstanceMemberships__ is @false@, this field is
-- blank. If __AllowsVpcAndNonVpcInstanceMemberships__ is @true@ and this
-- field is blank, then this option group can be applied to both VPC and
-- non-VPC instances. If this field contains a value, then this option
-- group can only be applied to instances that are in the VPC indicated by
-- this field.
newOptionGroup ::
  OptionGroup
newOptionGroup :: OptionGroup
newOptionGroup =
  OptionGroup'
    { $sel:allowsVpcAndNonVpcInstanceMemberships:OptionGroup' :: Maybe Bool
allowsVpcAndNonVpcInstanceMemberships =
        forall a. Maybe a
Prelude.Nothing,
      $sel:copyTimestamp:OptionGroup' :: Maybe ISO8601
copyTimestamp = forall a. Maybe a
Prelude.Nothing,
      $sel:engineName:OptionGroup' :: Maybe Text
engineName = forall a. Maybe a
Prelude.Nothing,
      $sel:majorEngineVersion:OptionGroup' :: Maybe Text
majorEngineVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:optionGroupArn:OptionGroup' :: Maybe Text
optionGroupArn = forall a. Maybe a
Prelude.Nothing,
      $sel:optionGroupDescription:OptionGroup' :: Maybe Text
optionGroupDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:optionGroupName:OptionGroup' :: Maybe Text
optionGroupName = forall a. Maybe a
Prelude.Nothing,
      $sel:options:OptionGroup' :: Maybe [Option]
options = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceAccountId:OptionGroup' :: Maybe Text
sourceAccountId = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceOptionGroup:OptionGroup' :: Maybe Text
sourceOptionGroup = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:OptionGroup' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
    }

-- | Indicates whether this option group can be applied to both VPC and
-- non-VPC instances. The value @true@ indicates the option group can be
-- applied to both VPC and non-VPC instances.
optionGroup_allowsVpcAndNonVpcInstanceMemberships :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Bool)
optionGroup_allowsVpcAndNonVpcInstanceMemberships :: Lens' OptionGroup (Maybe Bool)
optionGroup_allowsVpcAndNonVpcInstanceMemberships = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Bool
allowsVpcAndNonVpcInstanceMemberships :: Maybe Bool
$sel:allowsVpcAndNonVpcInstanceMemberships:OptionGroup' :: OptionGroup -> Maybe Bool
allowsVpcAndNonVpcInstanceMemberships} -> Maybe Bool
allowsVpcAndNonVpcInstanceMemberships) (\s :: OptionGroup
s@OptionGroup' {} Maybe Bool
a -> OptionGroup
s {$sel:allowsVpcAndNonVpcInstanceMemberships:OptionGroup' :: Maybe Bool
allowsVpcAndNonVpcInstanceMemberships = Maybe Bool
a} :: OptionGroup)

-- | Indicates when the option group was copied.
optionGroup_copyTimestamp :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.UTCTime)
optionGroup_copyTimestamp :: Lens' OptionGroup (Maybe UTCTime)
optionGroup_copyTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe ISO8601
copyTimestamp :: Maybe ISO8601
$sel:copyTimestamp:OptionGroup' :: OptionGroup -> Maybe ISO8601
copyTimestamp} -> Maybe ISO8601
copyTimestamp) (\s :: OptionGroup
s@OptionGroup' {} Maybe ISO8601
a -> OptionGroup
s {$sel:copyTimestamp:OptionGroup' :: Maybe ISO8601
copyTimestamp = Maybe ISO8601
a} :: OptionGroup) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Indicates the name of the engine that this option group can be applied
-- to.
optionGroup_engineName :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_engineName :: Lens' OptionGroup (Maybe Text)
optionGroup_engineName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
engineName :: Maybe Text
$sel:engineName:OptionGroup' :: OptionGroup -> Maybe Text
engineName} -> Maybe Text
engineName) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:engineName:OptionGroup' :: Maybe Text
engineName = Maybe Text
a} :: OptionGroup)

-- | Indicates the major engine version associated with this option group.
optionGroup_majorEngineVersion :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_majorEngineVersion :: Lens' OptionGroup (Maybe Text)
optionGroup_majorEngineVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
majorEngineVersion :: Maybe Text
$sel:majorEngineVersion:OptionGroup' :: OptionGroup -> Maybe Text
majorEngineVersion} -> Maybe Text
majorEngineVersion) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:majorEngineVersion:OptionGroup' :: Maybe Text
majorEngineVersion = Maybe Text
a} :: OptionGroup)

-- | Specifies the Amazon Resource Name (ARN) for the option group.
optionGroup_optionGroupArn :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_optionGroupArn :: Lens' OptionGroup (Maybe Text)
optionGroup_optionGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
optionGroupArn :: Maybe Text
$sel:optionGroupArn:OptionGroup' :: OptionGroup -> Maybe Text
optionGroupArn} -> Maybe Text
optionGroupArn) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:optionGroupArn:OptionGroup' :: Maybe Text
optionGroupArn = Maybe Text
a} :: OptionGroup)

-- | Provides a description of the option group.
optionGroup_optionGroupDescription :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_optionGroupDescription :: Lens' OptionGroup (Maybe Text)
optionGroup_optionGroupDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
optionGroupDescription :: Maybe Text
$sel:optionGroupDescription:OptionGroup' :: OptionGroup -> Maybe Text
optionGroupDescription} -> Maybe Text
optionGroupDescription) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:optionGroupDescription:OptionGroup' :: Maybe Text
optionGroupDescription = Maybe Text
a} :: OptionGroup)

-- | Specifies the name of the option group.
optionGroup_optionGroupName :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_optionGroupName :: Lens' OptionGroup (Maybe Text)
optionGroup_optionGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
optionGroupName :: Maybe Text
$sel:optionGroupName:OptionGroup' :: OptionGroup -> Maybe Text
optionGroupName} -> Maybe Text
optionGroupName) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:optionGroupName:OptionGroup' :: Maybe Text
optionGroupName = Maybe Text
a} :: OptionGroup)

-- | Indicates what options are available in the option group.
optionGroup_options :: Lens.Lens' OptionGroup (Prelude.Maybe [Option])
optionGroup_options :: Lens' OptionGroup (Maybe [Option])
optionGroup_options = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe [Option]
options :: Maybe [Option]
$sel:options:OptionGroup' :: OptionGroup -> Maybe [Option]
options} -> Maybe [Option]
options) (\s :: OptionGroup
s@OptionGroup' {} Maybe [Option]
a -> OptionGroup
s {$sel:options:OptionGroup' :: Maybe [Option]
options = Maybe [Option]
a} :: OptionGroup) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies the Amazon Web Services account ID for the option group from
-- which this option group is copied.
optionGroup_sourceAccountId :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_sourceAccountId :: Lens' OptionGroup (Maybe Text)
optionGroup_sourceAccountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
sourceAccountId :: Maybe Text
$sel:sourceAccountId:OptionGroup' :: OptionGroup -> Maybe Text
sourceAccountId} -> Maybe Text
sourceAccountId) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:sourceAccountId:OptionGroup' :: Maybe Text
sourceAccountId = Maybe Text
a} :: OptionGroup)

-- | Specifies the name of the option group from which this option group is
-- copied.
optionGroup_sourceOptionGroup :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_sourceOptionGroup :: Lens' OptionGroup (Maybe Text)
optionGroup_sourceOptionGroup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
sourceOptionGroup :: Maybe Text
$sel:sourceOptionGroup:OptionGroup' :: OptionGroup -> Maybe Text
sourceOptionGroup} -> Maybe Text
sourceOptionGroup) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:sourceOptionGroup:OptionGroup' :: Maybe Text
sourceOptionGroup = Maybe Text
a} :: OptionGroup)

-- | If __AllowsVpcAndNonVpcInstanceMemberships__ is @false@, this field is
-- blank. If __AllowsVpcAndNonVpcInstanceMemberships__ is @true@ and this
-- field is blank, then this option group can be applied to both VPC and
-- non-VPC instances. If this field contains a value, then this option
-- group can only be applied to instances that are in the VPC indicated by
-- this field.
optionGroup_vpcId :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_vpcId :: Lens' OptionGroup (Maybe Text)
optionGroup_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionGroup' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:OptionGroup' :: OptionGroup -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: OptionGroup
s@OptionGroup' {} Maybe Text
a -> OptionGroup
s {$sel:vpcId:OptionGroup' :: Maybe Text
vpcId = Maybe Text
a} :: OptionGroup)

instance Data.FromXML OptionGroup where
  parseXML :: [Node] -> Either String OptionGroup
parseXML [Node]
x =
    Maybe Bool
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Option]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> OptionGroup
OptionGroup'
      forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AllowsVpcAndNonVpcInstanceMemberships")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"CopyTimestamp")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"EngineName")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"MajorEngineVersion")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"OptionGroupArn")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"OptionGroupDescription")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"OptionGroupName")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                      forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Options"
                      forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                      forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"Option")
                  )
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"SourceAccountId")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"SourceOptionGroup")
      forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"VpcId")

instance Prelude.Hashable OptionGroup where
  hashWithSalt :: Int -> OptionGroup -> Int
hashWithSalt Int
_salt OptionGroup' {Maybe Bool
Maybe [Option]
Maybe Text
Maybe ISO8601
vpcId :: Maybe Text
sourceOptionGroup :: Maybe Text
sourceAccountId :: Maybe Text
options :: Maybe [Option]
optionGroupName :: Maybe Text
optionGroupDescription :: Maybe Text
optionGroupArn :: Maybe Text
majorEngineVersion :: Maybe Text
engineName :: Maybe Text
copyTimestamp :: Maybe ISO8601
allowsVpcAndNonVpcInstanceMemberships :: Maybe Bool
$sel:vpcId:OptionGroup' :: OptionGroup -> Maybe Text
$sel:sourceOptionGroup:OptionGroup' :: OptionGroup -> Maybe Text
$sel:sourceAccountId:OptionGroup' :: OptionGroup -> Maybe Text
$sel:options:OptionGroup' :: OptionGroup -> Maybe [Option]
$sel:optionGroupName:OptionGroup' :: OptionGroup -> Maybe Text
$sel:optionGroupDescription:OptionGroup' :: OptionGroup -> Maybe Text
$sel:optionGroupArn:OptionGroup' :: OptionGroup -> Maybe Text
$sel:majorEngineVersion:OptionGroup' :: OptionGroup -> Maybe Text
$sel:engineName:OptionGroup' :: OptionGroup -> Maybe Text
$sel:copyTimestamp:OptionGroup' :: OptionGroup -> Maybe ISO8601
$sel:allowsVpcAndNonVpcInstanceMemberships:OptionGroup' :: OptionGroup -> Maybe Bool
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
allowsVpcAndNonVpcInstanceMemberships
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ISO8601
copyTimestamp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
engineName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
majorEngineVersion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
optionGroupArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
optionGroupDescription
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
optionGroupName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Option]
options
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceAccountId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceOptionGroup
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId

instance Prelude.NFData OptionGroup where
  rnf :: OptionGroup -> ()
rnf OptionGroup' {Maybe Bool
Maybe [Option]
Maybe Text
Maybe ISO8601
vpcId :: Maybe Text
sourceOptionGroup :: Maybe Text
sourceAccountId :: Maybe Text
options :: Maybe [Option]
optionGroupName :: Maybe Text
optionGroupDescription :: Maybe Text
optionGroupArn :: Maybe Text
majorEngineVersion :: Maybe Text
engineName :: Maybe Text
copyTimestamp :: Maybe ISO8601
allowsVpcAndNonVpcInstanceMemberships :: Maybe Bool
$sel:vpcId:OptionGroup' :: OptionGroup -> Maybe Text
$sel:sourceOptionGroup:OptionGroup' :: OptionGroup -> Maybe Text
$sel:sourceAccountId:OptionGroup' :: OptionGroup -> Maybe Text
$sel:options:OptionGroup' :: OptionGroup -> Maybe [Option]
$sel:optionGroupName:OptionGroup' :: OptionGroup -> Maybe Text
$sel:optionGroupDescription:OptionGroup' :: OptionGroup -> Maybe Text
$sel:optionGroupArn:OptionGroup' :: OptionGroup -> Maybe Text
$sel:majorEngineVersion:OptionGroup' :: OptionGroup -> Maybe Text
$sel:engineName:OptionGroup' :: OptionGroup -> Maybe Text
$sel:copyTimestamp:OptionGroup' :: OptionGroup -> Maybe ISO8601
$sel:allowsVpcAndNonVpcInstanceMemberships:OptionGroup' :: OptionGroup -> Maybe Bool
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
allowsVpcAndNonVpcInstanceMemberships
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
copyTimestamp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
engineName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
majorEngineVersion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
optionGroupArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
optionGroupDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
optionGroupName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Option]
options
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceAccountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceOptionGroup
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId