{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.RDS.Types.OptionGroup where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types.Option

-- |
--
-- /See:/ 'newOptionGroup' smart constructor.
data OptionGroup = OptionGroup'
  { -- | Provides a description of the option group.
    OptionGroup -> Maybe Text
optionGroupDescription :: 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,
    -- | 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 the name of the engine that this option group can be applied
    -- to.
    OptionGroup -> Maybe Text
engineName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) for the option group.
    OptionGroup -> Maybe Text
optionGroupArn :: Prelude.Maybe Prelude.Text,
    -- | Indicates the major engine version associated with this option group.
    OptionGroup -> Maybe Text
majorEngineVersion :: Prelude.Maybe Prelude.Text,
    -- | Indicates what options are available in the option group.
    OptionGroup -> Maybe [Option]
options :: Prelude.Maybe [Option],
    -- | Specifies the name of the option group.
    OptionGroup -> Maybe Text
optionGroupName :: Prelude.Maybe Prelude.Text
  }
  deriving (OptionGroup -> OptionGroup -> Bool
(OptionGroup -> OptionGroup -> Bool)
-> (OptionGroup -> OptionGroup -> Bool) -> Eq OptionGroup
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]
(Int -> ReadS OptionGroup)
-> ReadS [OptionGroup]
-> ReadPrec OptionGroup
-> ReadPrec [OptionGroup]
-> Read 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
(Int -> OptionGroup -> ShowS)
-> (OptionGroup -> String)
-> ([OptionGroup] -> ShowS)
-> Show OptionGroup
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. OptionGroup -> Rep OptionGroup x)
-> (forall x. Rep OptionGroup x -> OptionGroup)
-> Generic OptionGroup
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:
--
-- 'optionGroupDescription', 'optionGroup_optionGroupDescription' - Provides a description of the option group.
--
-- '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.
--
-- '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.
--
-- 'engineName', 'optionGroup_engineName' - Indicates the name of the engine that this option group can be applied
-- to.
--
-- 'optionGroupArn', 'optionGroup_optionGroupArn' - The Amazon Resource Name (ARN) for the option group.
--
-- 'majorEngineVersion', 'optionGroup_majorEngineVersion' - Indicates the major engine version associated with this option group.
--
-- 'options', 'optionGroup_options' - Indicates what options are available in the option group.
--
-- 'optionGroupName', 'optionGroup_optionGroupName' - Specifies the name of the option group.
newOptionGroup ::
  OptionGroup
newOptionGroup :: OptionGroup
newOptionGroup =
  OptionGroup' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Option]
-> Maybe Text
-> OptionGroup
OptionGroup'
    { $sel:optionGroupDescription:OptionGroup' :: Maybe Text
optionGroupDescription =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:OptionGroup' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:allowsVpcAndNonVpcInstanceMemberships:OptionGroup' :: Maybe Bool
allowsVpcAndNonVpcInstanceMemberships =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:engineName:OptionGroup' :: Maybe Text
engineName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:optionGroupArn:OptionGroup' :: Maybe Text
optionGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:majorEngineVersion:OptionGroup' :: Maybe Text
majorEngineVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:options:OptionGroup' :: Maybe [Option]
options = Maybe [Option]
forall a. Maybe a
Prelude.Nothing,
      $sel:optionGroupName:OptionGroup' :: Maybe Text
optionGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Provides a description of the option group.
optionGroup_optionGroupDescription :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_optionGroupDescription :: (Maybe Text -> f (Maybe Text)) -> OptionGroup -> f OptionGroup
optionGroup_optionGroupDescription = (OptionGroup -> Maybe Text)
-> (OptionGroup -> Maybe Text -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Text) (Maybe Text)
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)

-- | 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 :: (Maybe Text -> f (Maybe Text)) -> OptionGroup -> f OptionGroup
optionGroup_vpcId = (OptionGroup -> Maybe Text)
-> (OptionGroup -> Maybe Text -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Text) (Maybe Text)
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)

-- | 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 :: (Maybe Bool -> f (Maybe Bool)) -> OptionGroup -> f OptionGroup
optionGroup_allowsVpcAndNonVpcInstanceMemberships = (OptionGroup -> Maybe Bool)
-> (OptionGroup -> Maybe Bool -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Bool) (Maybe Bool)
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 the name of the engine that this option group can be applied
-- to.
optionGroup_engineName :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_engineName :: (Maybe Text -> f (Maybe Text)) -> OptionGroup -> f OptionGroup
optionGroup_engineName = (OptionGroup -> Maybe Text)
-> (OptionGroup -> Maybe Text -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Text) (Maybe Text)
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)

-- | The Amazon Resource Name (ARN) for the option group.
optionGroup_optionGroupArn :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_optionGroupArn :: (Maybe Text -> f (Maybe Text)) -> OptionGroup -> f OptionGroup
optionGroup_optionGroupArn = (OptionGroup -> Maybe Text)
-> (OptionGroup -> Maybe Text -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Text) (Maybe Text)
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)

-- | Indicates the major engine version associated with this option group.
optionGroup_majorEngineVersion :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_majorEngineVersion :: (Maybe Text -> f (Maybe Text)) -> OptionGroup -> f OptionGroup
optionGroup_majorEngineVersion = (OptionGroup -> Maybe Text)
-> (OptionGroup -> Maybe Text -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Text) (Maybe Text)
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)

-- | Indicates what options are available in the option group.
optionGroup_options :: Lens.Lens' OptionGroup (Prelude.Maybe [Option])
optionGroup_options :: (Maybe [Option] -> f (Maybe [Option]))
-> OptionGroup -> f OptionGroup
optionGroup_options = (OptionGroup -> Maybe [Option])
-> (OptionGroup -> Maybe [Option] -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe [Option]) (Maybe [Option])
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) ((Maybe [Option] -> f (Maybe [Option]))
 -> OptionGroup -> f OptionGroup)
-> ((Maybe [Option] -> f (Maybe [Option]))
    -> Maybe [Option] -> f (Maybe [Option]))
-> (Maybe [Option] -> f (Maybe [Option]))
-> OptionGroup
-> f OptionGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Option] [Option] [Option] [Option]
-> Iso
     (Maybe [Option]) (Maybe [Option]) (Maybe [Option]) (Maybe [Option])
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 AnIso [Option] [Option] [Option] [Option]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies the name of the option group.
optionGroup_optionGroupName :: Lens.Lens' OptionGroup (Prelude.Maybe Prelude.Text)
optionGroup_optionGroupName :: (Maybe Text -> f (Maybe Text)) -> OptionGroup -> f OptionGroup
optionGroup_optionGroupName = (OptionGroup -> Maybe Text)
-> (OptionGroup -> Maybe Text -> OptionGroup)
-> Lens OptionGroup OptionGroup (Maybe Text) (Maybe Text)
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)

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

instance Prelude.Hashable OptionGroup

instance Prelude.NFData OptionGroup