{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.OpenSearch.UpgradeDomain
(
UpgradeDomain (..),
newUpgradeDomain,
upgradeDomain_performCheckOnly,
upgradeDomain_advancedOptions,
upgradeDomain_domainName,
upgradeDomain_targetVersion,
UpgradeDomainResponse (..),
newUpgradeDomainResponse,
upgradeDomainResponse_domainName,
upgradeDomainResponse_upgradeId,
upgradeDomainResponse_performCheckOnly,
upgradeDomainResponse_targetVersion,
upgradeDomainResponse_advancedOptions,
upgradeDomainResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpenSearch.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpgradeDomain = UpgradeDomain'
{
UpgradeDomain -> Maybe Bool
performCheckOnly :: Prelude.Maybe Prelude.Bool,
UpgradeDomain -> Maybe (HashMap Text Text)
advancedOptions :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpgradeDomain -> Text
domainName :: Prelude.Text,
UpgradeDomain -> Text
targetVersion :: Prelude.Text
}
deriving (UpgradeDomain -> UpgradeDomain -> Bool
(UpgradeDomain -> UpgradeDomain -> Bool)
-> (UpgradeDomain -> UpgradeDomain -> Bool) -> Eq UpgradeDomain
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpgradeDomain -> UpgradeDomain -> Bool
$c/= :: UpgradeDomain -> UpgradeDomain -> Bool
== :: UpgradeDomain -> UpgradeDomain -> Bool
$c== :: UpgradeDomain -> UpgradeDomain -> Bool
Prelude.Eq, ReadPrec [UpgradeDomain]
ReadPrec UpgradeDomain
Int -> ReadS UpgradeDomain
ReadS [UpgradeDomain]
(Int -> ReadS UpgradeDomain)
-> ReadS [UpgradeDomain]
-> ReadPrec UpgradeDomain
-> ReadPrec [UpgradeDomain]
-> Read UpgradeDomain
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpgradeDomain]
$creadListPrec :: ReadPrec [UpgradeDomain]
readPrec :: ReadPrec UpgradeDomain
$creadPrec :: ReadPrec UpgradeDomain
readList :: ReadS [UpgradeDomain]
$creadList :: ReadS [UpgradeDomain]
readsPrec :: Int -> ReadS UpgradeDomain
$creadsPrec :: Int -> ReadS UpgradeDomain
Prelude.Read, Int -> UpgradeDomain -> ShowS
[UpgradeDomain] -> ShowS
UpgradeDomain -> String
(Int -> UpgradeDomain -> ShowS)
-> (UpgradeDomain -> String)
-> ([UpgradeDomain] -> ShowS)
-> Show UpgradeDomain
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpgradeDomain] -> ShowS
$cshowList :: [UpgradeDomain] -> ShowS
show :: UpgradeDomain -> String
$cshow :: UpgradeDomain -> String
showsPrec :: Int -> UpgradeDomain -> ShowS
$cshowsPrec :: Int -> UpgradeDomain -> ShowS
Prelude.Show, (forall x. UpgradeDomain -> Rep UpgradeDomain x)
-> (forall x. Rep UpgradeDomain x -> UpgradeDomain)
-> Generic UpgradeDomain
forall x. Rep UpgradeDomain x -> UpgradeDomain
forall x. UpgradeDomain -> Rep UpgradeDomain x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpgradeDomain x -> UpgradeDomain
$cfrom :: forall x. UpgradeDomain -> Rep UpgradeDomain x
Prelude.Generic)
newUpgradeDomain ::
Prelude.Text ->
Prelude.Text ->
UpgradeDomain
newUpgradeDomain :: Text -> Text -> UpgradeDomain
newUpgradeDomain Text
pDomainName_ Text
pTargetVersion_ =
UpgradeDomain' :: Maybe Bool
-> Maybe (HashMap Text Text) -> Text -> Text -> UpgradeDomain
UpgradeDomain'
{ $sel:performCheckOnly:UpgradeDomain' :: Maybe Bool
performCheckOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:advancedOptions:UpgradeDomain' :: Maybe (HashMap Text Text)
advancedOptions = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:domainName:UpgradeDomain' :: Text
domainName = Text
pDomainName_,
$sel:targetVersion:UpgradeDomain' :: Text
targetVersion = Text
pTargetVersion_
}
upgradeDomain_performCheckOnly :: Lens.Lens' UpgradeDomain (Prelude.Maybe Prelude.Bool)
upgradeDomain_performCheckOnly :: (Maybe Bool -> f (Maybe Bool)) -> UpgradeDomain -> f UpgradeDomain
upgradeDomain_performCheckOnly = (UpgradeDomain -> Maybe Bool)
-> (UpgradeDomain -> Maybe Bool -> UpgradeDomain)
-> Lens UpgradeDomain UpgradeDomain (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomain' {Maybe Bool
performCheckOnly :: Maybe Bool
$sel:performCheckOnly:UpgradeDomain' :: UpgradeDomain -> Maybe Bool
performCheckOnly} -> Maybe Bool
performCheckOnly) (\s :: UpgradeDomain
s@UpgradeDomain' {} Maybe Bool
a -> UpgradeDomain
s {$sel:performCheckOnly:UpgradeDomain' :: Maybe Bool
performCheckOnly = Maybe Bool
a} :: UpgradeDomain)
upgradeDomain_advancedOptions :: Lens.Lens' UpgradeDomain (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
upgradeDomain_advancedOptions :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpgradeDomain -> f UpgradeDomain
upgradeDomain_advancedOptions = (UpgradeDomain -> Maybe (HashMap Text Text))
-> (UpgradeDomain -> Maybe (HashMap Text Text) -> UpgradeDomain)
-> Lens
UpgradeDomain
UpgradeDomain
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomain' {Maybe (HashMap Text Text)
advancedOptions :: Maybe (HashMap Text Text)
$sel:advancedOptions:UpgradeDomain' :: UpgradeDomain -> Maybe (HashMap Text Text)
advancedOptions} -> Maybe (HashMap Text Text)
advancedOptions) (\s :: UpgradeDomain
s@UpgradeDomain' {} Maybe (HashMap Text Text)
a -> UpgradeDomain
s {$sel:advancedOptions:UpgradeDomain' :: Maybe (HashMap Text Text)
advancedOptions = Maybe (HashMap Text Text)
a} :: UpgradeDomain) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpgradeDomain -> f UpgradeDomain)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpgradeDomain
-> f UpgradeDomain
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
upgradeDomain_domainName :: Lens.Lens' UpgradeDomain Prelude.Text
upgradeDomain_domainName :: (Text -> f Text) -> UpgradeDomain -> f UpgradeDomain
upgradeDomain_domainName = (UpgradeDomain -> Text)
-> (UpgradeDomain -> Text -> UpgradeDomain)
-> Lens UpgradeDomain UpgradeDomain Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomain' {Text
domainName :: Text
$sel:domainName:UpgradeDomain' :: UpgradeDomain -> Text
domainName} -> Text
domainName) (\s :: UpgradeDomain
s@UpgradeDomain' {} Text
a -> UpgradeDomain
s {$sel:domainName:UpgradeDomain' :: Text
domainName = Text
a} :: UpgradeDomain)
upgradeDomain_targetVersion :: Lens.Lens' UpgradeDomain Prelude.Text
upgradeDomain_targetVersion :: (Text -> f Text) -> UpgradeDomain -> f UpgradeDomain
upgradeDomain_targetVersion = (UpgradeDomain -> Text)
-> (UpgradeDomain -> Text -> UpgradeDomain)
-> Lens UpgradeDomain UpgradeDomain Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomain' {Text
targetVersion :: Text
$sel:targetVersion:UpgradeDomain' :: UpgradeDomain -> Text
targetVersion} -> Text
targetVersion) (\s :: UpgradeDomain
s@UpgradeDomain' {} Text
a -> UpgradeDomain
s {$sel:targetVersion:UpgradeDomain' :: Text
targetVersion = Text
a} :: UpgradeDomain)
instance Core.AWSRequest UpgradeDomain where
type
AWSResponse UpgradeDomain =
UpgradeDomainResponse
request :: UpgradeDomain -> Request UpgradeDomain
request = Service -> UpgradeDomain -> Request UpgradeDomain
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpgradeDomain
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpgradeDomain)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpgradeDomain))
-> Logger
-> Service
-> Proxy UpgradeDomain
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpgradeDomain)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse
UpgradeDomainResponse'
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DomainName")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UpgradeId")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> UpgradeDomainResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PerformCheckOnly")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> UpgradeDomainResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe (HashMap Text Text) -> Int -> UpgradeDomainResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TargetVersion")
Either
String (Maybe (HashMap Text Text) -> Int -> UpgradeDomainResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpgradeDomainResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AdvancedOptions"
Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> UpgradeDomainResponse)
-> Either String Int -> Either String UpgradeDomainResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpgradeDomain
instance Prelude.NFData UpgradeDomain
instance Core.ToHeaders UpgradeDomain where
toHeaders :: UpgradeDomain -> ResponseHeaders
toHeaders = ResponseHeaders -> UpgradeDomain -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON UpgradeDomain where
toJSON :: UpgradeDomain -> Value
toJSON UpgradeDomain' {Maybe Bool
Maybe (HashMap Text Text)
Text
targetVersion :: Text
domainName :: Text
advancedOptions :: Maybe (HashMap Text Text)
performCheckOnly :: Maybe Bool
$sel:targetVersion:UpgradeDomain' :: UpgradeDomain -> Text
$sel:domainName:UpgradeDomain' :: UpgradeDomain -> Text
$sel:advancedOptions:UpgradeDomain' :: UpgradeDomain -> Maybe (HashMap Text Text)
$sel:performCheckOnly:UpgradeDomain' :: UpgradeDomain -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"PerformCheckOnly" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
performCheckOnly,
(Text
"AdvancedOptions" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
advancedOptions,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"TargetVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
targetVersion)
]
)
instance Core.ToPath UpgradeDomain where
toPath :: UpgradeDomain -> ByteString
toPath =
ByteString -> UpgradeDomain -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2021-01-01/opensearch/upgradeDomain"
instance Core.ToQuery UpgradeDomain where
toQuery :: UpgradeDomain -> QueryString
toQuery = QueryString -> UpgradeDomain -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpgradeDomainResponse = UpgradeDomainResponse'
{ UpgradeDomainResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
UpgradeDomainResponse -> Maybe Text
upgradeId :: Prelude.Maybe Prelude.Text,
UpgradeDomainResponse -> Maybe Bool
performCheckOnly :: Prelude.Maybe Prelude.Bool,
UpgradeDomainResponse -> Maybe Text
targetVersion :: Prelude.Maybe Prelude.Text,
UpgradeDomainResponse -> Maybe (HashMap Text Text)
advancedOptions :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpgradeDomainResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpgradeDomainResponse -> UpgradeDomainResponse -> Bool
(UpgradeDomainResponse -> UpgradeDomainResponse -> Bool)
-> (UpgradeDomainResponse -> UpgradeDomainResponse -> Bool)
-> Eq UpgradeDomainResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpgradeDomainResponse -> UpgradeDomainResponse -> Bool
$c/= :: UpgradeDomainResponse -> UpgradeDomainResponse -> Bool
== :: UpgradeDomainResponse -> UpgradeDomainResponse -> Bool
$c== :: UpgradeDomainResponse -> UpgradeDomainResponse -> Bool
Prelude.Eq, ReadPrec [UpgradeDomainResponse]
ReadPrec UpgradeDomainResponse
Int -> ReadS UpgradeDomainResponse
ReadS [UpgradeDomainResponse]
(Int -> ReadS UpgradeDomainResponse)
-> ReadS [UpgradeDomainResponse]
-> ReadPrec UpgradeDomainResponse
-> ReadPrec [UpgradeDomainResponse]
-> Read UpgradeDomainResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpgradeDomainResponse]
$creadListPrec :: ReadPrec [UpgradeDomainResponse]
readPrec :: ReadPrec UpgradeDomainResponse
$creadPrec :: ReadPrec UpgradeDomainResponse
readList :: ReadS [UpgradeDomainResponse]
$creadList :: ReadS [UpgradeDomainResponse]
readsPrec :: Int -> ReadS UpgradeDomainResponse
$creadsPrec :: Int -> ReadS UpgradeDomainResponse
Prelude.Read, Int -> UpgradeDomainResponse -> ShowS
[UpgradeDomainResponse] -> ShowS
UpgradeDomainResponse -> String
(Int -> UpgradeDomainResponse -> ShowS)
-> (UpgradeDomainResponse -> String)
-> ([UpgradeDomainResponse] -> ShowS)
-> Show UpgradeDomainResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpgradeDomainResponse] -> ShowS
$cshowList :: [UpgradeDomainResponse] -> ShowS
show :: UpgradeDomainResponse -> String
$cshow :: UpgradeDomainResponse -> String
showsPrec :: Int -> UpgradeDomainResponse -> ShowS
$cshowsPrec :: Int -> UpgradeDomainResponse -> ShowS
Prelude.Show, (forall x. UpgradeDomainResponse -> Rep UpgradeDomainResponse x)
-> (forall x. Rep UpgradeDomainResponse x -> UpgradeDomainResponse)
-> Generic UpgradeDomainResponse
forall x. Rep UpgradeDomainResponse x -> UpgradeDomainResponse
forall x. UpgradeDomainResponse -> Rep UpgradeDomainResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpgradeDomainResponse x -> UpgradeDomainResponse
$cfrom :: forall x. UpgradeDomainResponse -> Rep UpgradeDomainResponse x
Prelude.Generic)
newUpgradeDomainResponse ::
Prelude.Int ->
UpgradeDomainResponse
newUpgradeDomainResponse :: Int -> UpgradeDomainResponse
newUpgradeDomainResponse Int
pHttpStatus_ =
UpgradeDomainResponse' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpgradeDomainResponse
UpgradeDomainResponse'
{ $sel:domainName:UpgradeDomainResponse' :: Maybe Text
domainName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:upgradeId:UpgradeDomainResponse' :: Maybe Text
upgradeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:performCheckOnly:UpgradeDomainResponse' :: Maybe Bool
performCheckOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:targetVersion:UpgradeDomainResponse' :: Maybe Text
targetVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:advancedOptions:UpgradeDomainResponse' :: Maybe (HashMap Text Text)
advancedOptions = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpgradeDomainResponse' :: Int
httpStatus = Int
pHttpStatus_
}
upgradeDomainResponse_domainName :: Lens.Lens' UpgradeDomainResponse (Prelude.Maybe Prelude.Text)
upgradeDomainResponse_domainName :: (Maybe Text -> f (Maybe Text))
-> UpgradeDomainResponse -> f UpgradeDomainResponse
upgradeDomainResponse_domainName = (UpgradeDomainResponse -> Maybe Text)
-> (UpgradeDomainResponse -> Maybe Text -> UpgradeDomainResponse)
-> Lens
UpgradeDomainResponse
UpgradeDomainResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomainResponse' {Maybe Text
domainName :: Maybe Text
$sel:domainName:UpgradeDomainResponse' :: UpgradeDomainResponse -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: UpgradeDomainResponse
s@UpgradeDomainResponse' {} Maybe Text
a -> UpgradeDomainResponse
s {$sel:domainName:UpgradeDomainResponse' :: Maybe Text
domainName = Maybe Text
a} :: UpgradeDomainResponse)
upgradeDomainResponse_upgradeId :: Lens.Lens' UpgradeDomainResponse (Prelude.Maybe Prelude.Text)
upgradeDomainResponse_upgradeId :: (Maybe Text -> f (Maybe Text))
-> UpgradeDomainResponse -> f UpgradeDomainResponse
upgradeDomainResponse_upgradeId = (UpgradeDomainResponse -> Maybe Text)
-> (UpgradeDomainResponse -> Maybe Text -> UpgradeDomainResponse)
-> Lens
UpgradeDomainResponse
UpgradeDomainResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomainResponse' {Maybe Text
upgradeId :: Maybe Text
$sel:upgradeId:UpgradeDomainResponse' :: UpgradeDomainResponse -> Maybe Text
upgradeId} -> Maybe Text
upgradeId) (\s :: UpgradeDomainResponse
s@UpgradeDomainResponse' {} Maybe Text
a -> UpgradeDomainResponse
s {$sel:upgradeId:UpgradeDomainResponse' :: Maybe Text
upgradeId = Maybe Text
a} :: UpgradeDomainResponse)
upgradeDomainResponse_performCheckOnly :: Lens.Lens' UpgradeDomainResponse (Prelude.Maybe Prelude.Bool)
upgradeDomainResponse_performCheckOnly :: (Maybe Bool -> f (Maybe Bool))
-> UpgradeDomainResponse -> f UpgradeDomainResponse
upgradeDomainResponse_performCheckOnly = (UpgradeDomainResponse -> Maybe Bool)
-> (UpgradeDomainResponse -> Maybe Bool -> UpgradeDomainResponse)
-> Lens
UpgradeDomainResponse
UpgradeDomainResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomainResponse' {Maybe Bool
performCheckOnly :: Maybe Bool
$sel:performCheckOnly:UpgradeDomainResponse' :: UpgradeDomainResponse -> Maybe Bool
performCheckOnly} -> Maybe Bool
performCheckOnly) (\s :: UpgradeDomainResponse
s@UpgradeDomainResponse' {} Maybe Bool
a -> UpgradeDomainResponse
s {$sel:performCheckOnly:UpgradeDomainResponse' :: Maybe Bool
performCheckOnly = Maybe Bool
a} :: UpgradeDomainResponse)
upgradeDomainResponse_targetVersion :: Lens.Lens' UpgradeDomainResponse (Prelude.Maybe Prelude.Text)
upgradeDomainResponse_targetVersion :: (Maybe Text -> f (Maybe Text))
-> UpgradeDomainResponse -> f UpgradeDomainResponse
upgradeDomainResponse_targetVersion = (UpgradeDomainResponse -> Maybe Text)
-> (UpgradeDomainResponse -> Maybe Text -> UpgradeDomainResponse)
-> Lens
UpgradeDomainResponse
UpgradeDomainResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomainResponse' {Maybe Text
targetVersion :: Maybe Text
$sel:targetVersion:UpgradeDomainResponse' :: UpgradeDomainResponse -> Maybe Text
targetVersion} -> Maybe Text
targetVersion) (\s :: UpgradeDomainResponse
s@UpgradeDomainResponse' {} Maybe Text
a -> UpgradeDomainResponse
s {$sel:targetVersion:UpgradeDomainResponse' :: Maybe Text
targetVersion = Maybe Text
a} :: UpgradeDomainResponse)
upgradeDomainResponse_advancedOptions :: Lens.Lens' UpgradeDomainResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
upgradeDomainResponse_advancedOptions :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpgradeDomainResponse -> f UpgradeDomainResponse
upgradeDomainResponse_advancedOptions = (UpgradeDomainResponse -> Maybe (HashMap Text Text))
-> (UpgradeDomainResponse
-> Maybe (HashMap Text Text) -> UpgradeDomainResponse)
-> Lens
UpgradeDomainResponse
UpgradeDomainResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomainResponse' {Maybe (HashMap Text Text)
advancedOptions :: Maybe (HashMap Text Text)
$sel:advancedOptions:UpgradeDomainResponse' :: UpgradeDomainResponse -> Maybe (HashMap Text Text)
advancedOptions} -> Maybe (HashMap Text Text)
advancedOptions) (\s :: UpgradeDomainResponse
s@UpgradeDomainResponse' {} Maybe (HashMap Text Text)
a -> UpgradeDomainResponse
s {$sel:advancedOptions:UpgradeDomainResponse' :: Maybe (HashMap Text Text)
advancedOptions = Maybe (HashMap Text Text)
a} :: UpgradeDomainResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpgradeDomainResponse -> f UpgradeDomainResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpgradeDomainResponse
-> f UpgradeDomainResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
upgradeDomainResponse_httpStatus :: Lens.Lens' UpgradeDomainResponse Prelude.Int
upgradeDomainResponse_httpStatus :: (Int -> f Int) -> UpgradeDomainResponse -> f UpgradeDomainResponse
upgradeDomainResponse_httpStatus = (UpgradeDomainResponse -> Int)
-> (UpgradeDomainResponse -> Int -> UpgradeDomainResponse)
-> Lens UpgradeDomainResponse UpgradeDomainResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpgradeDomainResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpgradeDomainResponse' :: UpgradeDomainResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpgradeDomainResponse
s@UpgradeDomainResponse' {} Int
a -> UpgradeDomainResponse
s {$sel:httpStatus:UpgradeDomainResponse' :: Int
httpStatus = Int
a} :: UpgradeDomainResponse)
instance Prelude.NFData UpgradeDomainResponse