{-# 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 #-}
module Amazonka.ElasticBeanstalk.Types.OptionSpecification where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data OptionSpecification = OptionSpecification'
{
OptionSpecification -> Maybe Text
optionName :: Prelude.Maybe Prelude.Text,
OptionSpecification -> Maybe Text
resourceName :: Prelude.Maybe Prelude.Text,
OptionSpecification -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text
}
deriving (OptionSpecification -> OptionSpecification -> Bool
(OptionSpecification -> OptionSpecification -> Bool)
-> (OptionSpecification -> OptionSpecification -> Bool)
-> Eq OptionSpecification
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OptionSpecification -> OptionSpecification -> Bool
$c/= :: OptionSpecification -> OptionSpecification -> Bool
== :: OptionSpecification -> OptionSpecification -> Bool
$c== :: OptionSpecification -> OptionSpecification -> Bool
Prelude.Eq, ReadPrec [OptionSpecification]
ReadPrec OptionSpecification
Int -> ReadS OptionSpecification
ReadS [OptionSpecification]
(Int -> ReadS OptionSpecification)
-> ReadS [OptionSpecification]
-> ReadPrec OptionSpecification
-> ReadPrec [OptionSpecification]
-> Read OptionSpecification
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OptionSpecification]
$creadListPrec :: ReadPrec [OptionSpecification]
readPrec :: ReadPrec OptionSpecification
$creadPrec :: ReadPrec OptionSpecification
readList :: ReadS [OptionSpecification]
$creadList :: ReadS [OptionSpecification]
readsPrec :: Int -> ReadS OptionSpecification
$creadsPrec :: Int -> ReadS OptionSpecification
Prelude.Read, Int -> OptionSpecification -> ShowS
[OptionSpecification] -> ShowS
OptionSpecification -> String
(Int -> OptionSpecification -> ShowS)
-> (OptionSpecification -> String)
-> ([OptionSpecification] -> ShowS)
-> Show OptionSpecification
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OptionSpecification] -> ShowS
$cshowList :: [OptionSpecification] -> ShowS
show :: OptionSpecification -> String
$cshow :: OptionSpecification -> String
showsPrec :: Int -> OptionSpecification -> ShowS
$cshowsPrec :: Int -> OptionSpecification -> ShowS
Prelude.Show, (forall x. OptionSpecification -> Rep OptionSpecification x)
-> (forall x. Rep OptionSpecification x -> OptionSpecification)
-> Generic OptionSpecification
forall x. Rep OptionSpecification x -> OptionSpecification
forall x. OptionSpecification -> Rep OptionSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OptionSpecification x -> OptionSpecification
$cfrom :: forall x. OptionSpecification -> Rep OptionSpecification x
Prelude.Generic)
newOptionSpecification ::
OptionSpecification
newOptionSpecification :: OptionSpecification
newOptionSpecification =
OptionSpecification' :: Maybe Text -> Maybe Text -> Maybe Text -> OptionSpecification
OptionSpecification'
{ $sel:optionName:OptionSpecification' :: Maybe Text
optionName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceName:OptionSpecification' :: Maybe Text
resourceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:namespace:OptionSpecification' :: Maybe Text
namespace = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
optionSpecification_optionName :: Lens.Lens' OptionSpecification (Prelude.Maybe Prelude.Text)
optionSpecification_optionName :: (Maybe Text -> f (Maybe Text))
-> OptionSpecification -> f OptionSpecification
optionSpecification_optionName = (OptionSpecification -> Maybe Text)
-> (OptionSpecification -> Maybe Text -> OptionSpecification)
-> Lens
OptionSpecification OptionSpecification (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionSpecification' {Maybe Text
optionName :: Maybe Text
$sel:optionName:OptionSpecification' :: OptionSpecification -> Maybe Text
optionName} -> Maybe Text
optionName) (\s :: OptionSpecification
s@OptionSpecification' {} Maybe Text
a -> OptionSpecification
s {$sel:optionName:OptionSpecification' :: Maybe Text
optionName = Maybe Text
a} :: OptionSpecification)
optionSpecification_resourceName :: Lens.Lens' OptionSpecification (Prelude.Maybe Prelude.Text)
optionSpecification_resourceName :: (Maybe Text -> f (Maybe Text))
-> OptionSpecification -> f OptionSpecification
optionSpecification_resourceName = (OptionSpecification -> Maybe Text)
-> (OptionSpecification -> Maybe Text -> OptionSpecification)
-> Lens
OptionSpecification OptionSpecification (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionSpecification' {Maybe Text
resourceName :: Maybe Text
$sel:resourceName:OptionSpecification' :: OptionSpecification -> Maybe Text
resourceName} -> Maybe Text
resourceName) (\s :: OptionSpecification
s@OptionSpecification' {} Maybe Text
a -> OptionSpecification
s {$sel:resourceName:OptionSpecification' :: Maybe Text
resourceName = Maybe Text
a} :: OptionSpecification)
optionSpecification_namespace :: Lens.Lens' OptionSpecification (Prelude.Maybe Prelude.Text)
optionSpecification_namespace :: (Maybe Text -> f (Maybe Text))
-> OptionSpecification -> f OptionSpecification
optionSpecification_namespace = (OptionSpecification -> Maybe Text)
-> (OptionSpecification -> Maybe Text -> OptionSpecification)
-> Lens
OptionSpecification OptionSpecification (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OptionSpecification' {Maybe Text
namespace :: Maybe Text
$sel:namespace:OptionSpecification' :: OptionSpecification -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: OptionSpecification
s@OptionSpecification' {} Maybe Text
a -> OptionSpecification
s {$sel:namespace:OptionSpecification' :: Maybe Text
namespace = Maybe Text
a} :: OptionSpecification)
instance Prelude.Hashable OptionSpecification
instance Prelude.NFData OptionSpecification
instance Core.ToQuery OptionSpecification where
toQuery :: OptionSpecification -> QueryString
toQuery OptionSpecification' {Maybe Text
namespace :: Maybe Text
resourceName :: Maybe Text
optionName :: Maybe Text
$sel:namespace:OptionSpecification' :: OptionSpecification -> Maybe Text
$sel:resourceName:OptionSpecification' :: OptionSpecification -> Maybe Text
$sel:optionName:OptionSpecification' :: OptionSpecification -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"OptionName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
optionName,
ByteString
"ResourceName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
resourceName,
ByteString
"Namespace" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
namespace
]