{-# 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.DAX.DecreaseReplicationFactor
(
DecreaseReplicationFactor (..),
newDecreaseReplicationFactor,
decreaseReplicationFactor_nodeIdsToRemove,
decreaseReplicationFactor_availabilityZones,
decreaseReplicationFactor_clusterName,
decreaseReplicationFactor_newReplicationFactor,
DecreaseReplicationFactorResponse (..),
newDecreaseReplicationFactorResponse,
decreaseReplicationFactorResponse_cluster,
decreaseReplicationFactorResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DAX.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DecreaseReplicationFactor = DecreaseReplicationFactor'
{
DecreaseReplicationFactor -> Maybe [Text]
nodeIdsToRemove :: Prelude.Maybe [Prelude.Text],
DecreaseReplicationFactor -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
DecreaseReplicationFactor -> Text
clusterName :: Prelude.Text,
DecreaseReplicationFactor -> Int
newReplicationFactor' :: Prelude.Int
}
deriving (DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool
(DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool)
-> (DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool)
-> Eq DecreaseReplicationFactor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool
$c/= :: DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool
== :: DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool
$c== :: DecreaseReplicationFactor -> DecreaseReplicationFactor -> Bool
Prelude.Eq, ReadPrec [DecreaseReplicationFactor]
ReadPrec DecreaseReplicationFactor
Int -> ReadS DecreaseReplicationFactor
ReadS [DecreaseReplicationFactor]
(Int -> ReadS DecreaseReplicationFactor)
-> ReadS [DecreaseReplicationFactor]
-> ReadPrec DecreaseReplicationFactor
-> ReadPrec [DecreaseReplicationFactor]
-> Read DecreaseReplicationFactor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DecreaseReplicationFactor]
$creadListPrec :: ReadPrec [DecreaseReplicationFactor]
readPrec :: ReadPrec DecreaseReplicationFactor
$creadPrec :: ReadPrec DecreaseReplicationFactor
readList :: ReadS [DecreaseReplicationFactor]
$creadList :: ReadS [DecreaseReplicationFactor]
readsPrec :: Int -> ReadS DecreaseReplicationFactor
$creadsPrec :: Int -> ReadS DecreaseReplicationFactor
Prelude.Read, Int -> DecreaseReplicationFactor -> ShowS
[DecreaseReplicationFactor] -> ShowS
DecreaseReplicationFactor -> String
(Int -> DecreaseReplicationFactor -> ShowS)
-> (DecreaseReplicationFactor -> String)
-> ([DecreaseReplicationFactor] -> ShowS)
-> Show DecreaseReplicationFactor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DecreaseReplicationFactor] -> ShowS
$cshowList :: [DecreaseReplicationFactor] -> ShowS
show :: DecreaseReplicationFactor -> String
$cshow :: DecreaseReplicationFactor -> String
showsPrec :: Int -> DecreaseReplicationFactor -> ShowS
$cshowsPrec :: Int -> DecreaseReplicationFactor -> ShowS
Prelude.Show, (forall x.
DecreaseReplicationFactor -> Rep DecreaseReplicationFactor x)
-> (forall x.
Rep DecreaseReplicationFactor x -> DecreaseReplicationFactor)
-> Generic DecreaseReplicationFactor
forall x.
Rep DecreaseReplicationFactor x -> DecreaseReplicationFactor
forall x.
DecreaseReplicationFactor -> Rep DecreaseReplicationFactor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DecreaseReplicationFactor x -> DecreaseReplicationFactor
$cfrom :: forall x.
DecreaseReplicationFactor -> Rep DecreaseReplicationFactor x
Prelude.Generic)
newDecreaseReplicationFactor ::
Prelude.Text ->
Prelude.Int ->
DecreaseReplicationFactor
newDecreaseReplicationFactor :: Text -> Int -> DecreaseReplicationFactor
newDecreaseReplicationFactor
Text
pClusterName_
Int
pNewReplicationFactor_ =
DecreaseReplicationFactor' :: Maybe [Text]
-> Maybe [Text] -> Text -> Int -> DecreaseReplicationFactor
DecreaseReplicationFactor'
{ $sel:nodeIdsToRemove:DecreaseReplicationFactor' :: Maybe [Text]
nodeIdsToRemove =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZones:DecreaseReplicationFactor' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:clusterName:DecreaseReplicationFactor' :: Text
clusterName = Text
pClusterName_,
$sel:newReplicationFactor':DecreaseReplicationFactor' :: Int
newReplicationFactor' = Int
pNewReplicationFactor_
}
decreaseReplicationFactor_nodeIdsToRemove :: Lens.Lens' DecreaseReplicationFactor (Prelude.Maybe [Prelude.Text])
decreaseReplicationFactor_nodeIdsToRemove :: (Maybe [Text] -> f (Maybe [Text]))
-> DecreaseReplicationFactor -> f DecreaseReplicationFactor
decreaseReplicationFactor_nodeIdsToRemove = (DecreaseReplicationFactor -> Maybe [Text])
-> (DecreaseReplicationFactor
-> Maybe [Text] -> DecreaseReplicationFactor)
-> Lens
DecreaseReplicationFactor
DecreaseReplicationFactor
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecreaseReplicationFactor' {Maybe [Text]
nodeIdsToRemove :: Maybe [Text]
$sel:nodeIdsToRemove:DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Maybe [Text]
nodeIdsToRemove} -> Maybe [Text]
nodeIdsToRemove) (\s :: DecreaseReplicationFactor
s@DecreaseReplicationFactor' {} Maybe [Text]
a -> DecreaseReplicationFactor
s {$sel:nodeIdsToRemove:DecreaseReplicationFactor' :: Maybe [Text]
nodeIdsToRemove = Maybe [Text]
a} :: DecreaseReplicationFactor) ((Maybe [Text] -> f (Maybe [Text]))
-> DecreaseReplicationFactor -> f DecreaseReplicationFactor)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DecreaseReplicationFactor
-> f DecreaseReplicationFactor
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
decreaseReplicationFactor_availabilityZones :: Lens.Lens' DecreaseReplicationFactor (Prelude.Maybe [Prelude.Text])
decreaseReplicationFactor_availabilityZones :: (Maybe [Text] -> f (Maybe [Text]))
-> DecreaseReplicationFactor -> f DecreaseReplicationFactor
decreaseReplicationFactor_availabilityZones = (DecreaseReplicationFactor -> Maybe [Text])
-> (DecreaseReplicationFactor
-> Maybe [Text] -> DecreaseReplicationFactor)
-> Lens
DecreaseReplicationFactor
DecreaseReplicationFactor
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecreaseReplicationFactor' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: DecreaseReplicationFactor
s@DecreaseReplicationFactor' {} Maybe [Text]
a -> DecreaseReplicationFactor
s {$sel:availabilityZones:DecreaseReplicationFactor' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: DecreaseReplicationFactor) ((Maybe [Text] -> f (Maybe [Text]))
-> DecreaseReplicationFactor -> f DecreaseReplicationFactor)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DecreaseReplicationFactor
-> f DecreaseReplicationFactor
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
decreaseReplicationFactor_clusterName :: Lens.Lens' DecreaseReplicationFactor Prelude.Text
decreaseReplicationFactor_clusterName :: (Text -> f Text)
-> DecreaseReplicationFactor -> f DecreaseReplicationFactor
decreaseReplicationFactor_clusterName = (DecreaseReplicationFactor -> Text)
-> (DecreaseReplicationFactor -> Text -> DecreaseReplicationFactor)
-> Lens
DecreaseReplicationFactor DecreaseReplicationFactor Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecreaseReplicationFactor' {Text
clusterName :: Text
$sel:clusterName:DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Text
clusterName} -> Text
clusterName) (\s :: DecreaseReplicationFactor
s@DecreaseReplicationFactor' {} Text
a -> DecreaseReplicationFactor
s {$sel:clusterName:DecreaseReplicationFactor' :: Text
clusterName = Text
a} :: DecreaseReplicationFactor)
decreaseReplicationFactor_newReplicationFactor :: Lens.Lens' DecreaseReplicationFactor Prelude.Int
decreaseReplicationFactor_newReplicationFactor :: (Int -> f Int)
-> DecreaseReplicationFactor -> f DecreaseReplicationFactor
decreaseReplicationFactor_newReplicationFactor = (DecreaseReplicationFactor -> Int)
-> (DecreaseReplicationFactor -> Int -> DecreaseReplicationFactor)
-> Lens DecreaseReplicationFactor DecreaseReplicationFactor Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecreaseReplicationFactor' {Int
newReplicationFactor' :: Int
$sel:newReplicationFactor':DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Int
newReplicationFactor'} -> Int
newReplicationFactor') (\s :: DecreaseReplicationFactor
s@DecreaseReplicationFactor' {} Int
a -> DecreaseReplicationFactor
s {$sel:newReplicationFactor':DecreaseReplicationFactor' :: Int
newReplicationFactor' = Int
a} :: DecreaseReplicationFactor)
instance Core.AWSRequest DecreaseReplicationFactor where
type
AWSResponse DecreaseReplicationFactor =
DecreaseReplicationFactorResponse
request :: DecreaseReplicationFactor -> Request DecreaseReplicationFactor
request = Service
-> DecreaseReplicationFactor -> Request DecreaseReplicationFactor
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DecreaseReplicationFactor
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DecreaseReplicationFactor)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DecreaseReplicationFactor))
-> Logger
-> Service
-> Proxy DecreaseReplicationFactor
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DecreaseReplicationFactor)))
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 Cluster -> Int -> DecreaseReplicationFactorResponse
DecreaseReplicationFactorResponse'
(Maybe Cluster -> Int -> DecreaseReplicationFactorResponse)
-> Either String (Maybe Cluster)
-> Either String (Int -> DecreaseReplicationFactorResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Cluster)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Cluster")
Either String (Int -> DecreaseReplicationFactorResponse)
-> Either String Int
-> Either String DecreaseReplicationFactorResponse
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 DecreaseReplicationFactor
instance Prelude.NFData DecreaseReplicationFactor
instance Core.ToHeaders DecreaseReplicationFactor where
toHeaders :: DecreaseReplicationFactor -> ResponseHeaders
toHeaders =
ResponseHeaders -> DecreaseReplicationFactor -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonDAXV3.DecreaseReplicationFactor" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DecreaseReplicationFactor where
toJSON :: DecreaseReplicationFactor -> Value
toJSON DecreaseReplicationFactor' {Int
Maybe [Text]
Text
newReplicationFactor' :: Int
clusterName :: Text
availabilityZones :: Maybe [Text]
nodeIdsToRemove :: Maybe [Text]
$sel:newReplicationFactor':DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Int
$sel:clusterName:DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Text
$sel:availabilityZones:DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Maybe [Text]
$sel:nodeIdsToRemove:DecreaseReplicationFactor' :: DecreaseReplicationFactor -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NodeIdsToRemove" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
nodeIdsToRemove,
(Text
"AvailabilityZones" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
availabilityZones,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClusterName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clusterName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"NewReplicationFactor"
Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Int
newReplicationFactor'
)
]
)
instance Core.ToPath DecreaseReplicationFactor where
toPath :: DecreaseReplicationFactor -> ByteString
toPath = ByteString -> DecreaseReplicationFactor -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DecreaseReplicationFactor where
toQuery :: DecreaseReplicationFactor -> QueryString
toQuery = QueryString -> DecreaseReplicationFactor -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DecreaseReplicationFactorResponse = DecreaseReplicationFactorResponse'
{
DecreaseReplicationFactorResponse -> Maybe Cluster
cluster :: Prelude.Maybe Cluster,
DecreaseReplicationFactorResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool
(DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool)
-> (DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool)
-> Eq DecreaseReplicationFactorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool
$c/= :: DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool
== :: DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool
$c== :: DecreaseReplicationFactorResponse
-> DecreaseReplicationFactorResponse -> Bool
Prelude.Eq, ReadPrec [DecreaseReplicationFactorResponse]
ReadPrec DecreaseReplicationFactorResponse
Int -> ReadS DecreaseReplicationFactorResponse
ReadS [DecreaseReplicationFactorResponse]
(Int -> ReadS DecreaseReplicationFactorResponse)
-> ReadS [DecreaseReplicationFactorResponse]
-> ReadPrec DecreaseReplicationFactorResponse
-> ReadPrec [DecreaseReplicationFactorResponse]
-> Read DecreaseReplicationFactorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DecreaseReplicationFactorResponse]
$creadListPrec :: ReadPrec [DecreaseReplicationFactorResponse]
readPrec :: ReadPrec DecreaseReplicationFactorResponse
$creadPrec :: ReadPrec DecreaseReplicationFactorResponse
readList :: ReadS [DecreaseReplicationFactorResponse]
$creadList :: ReadS [DecreaseReplicationFactorResponse]
readsPrec :: Int -> ReadS DecreaseReplicationFactorResponse
$creadsPrec :: Int -> ReadS DecreaseReplicationFactorResponse
Prelude.Read, Int -> DecreaseReplicationFactorResponse -> ShowS
[DecreaseReplicationFactorResponse] -> ShowS
DecreaseReplicationFactorResponse -> String
(Int -> DecreaseReplicationFactorResponse -> ShowS)
-> (DecreaseReplicationFactorResponse -> String)
-> ([DecreaseReplicationFactorResponse] -> ShowS)
-> Show DecreaseReplicationFactorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DecreaseReplicationFactorResponse] -> ShowS
$cshowList :: [DecreaseReplicationFactorResponse] -> ShowS
show :: DecreaseReplicationFactorResponse -> String
$cshow :: DecreaseReplicationFactorResponse -> String
showsPrec :: Int -> DecreaseReplicationFactorResponse -> ShowS
$cshowsPrec :: Int -> DecreaseReplicationFactorResponse -> ShowS
Prelude.Show, (forall x.
DecreaseReplicationFactorResponse
-> Rep DecreaseReplicationFactorResponse x)
-> (forall x.
Rep DecreaseReplicationFactorResponse x
-> DecreaseReplicationFactorResponse)
-> Generic DecreaseReplicationFactorResponse
forall x.
Rep DecreaseReplicationFactorResponse x
-> DecreaseReplicationFactorResponse
forall x.
DecreaseReplicationFactorResponse
-> Rep DecreaseReplicationFactorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DecreaseReplicationFactorResponse x
-> DecreaseReplicationFactorResponse
$cfrom :: forall x.
DecreaseReplicationFactorResponse
-> Rep DecreaseReplicationFactorResponse x
Prelude.Generic)
newDecreaseReplicationFactorResponse ::
Prelude.Int ->
DecreaseReplicationFactorResponse
newDecreaseReplicationFactorResponse :: Int -> DecreaseReplicationFactorResponse
newDecreaseReplicationFactorResponse Int
pHttpStatus_ =
DecreaseReplicationFactorResponse' :: Maybe Cluster -> Int -> DecreaseReplicationFactorResponse
DecreaseReplicationFactorResponse'
{ $sel:cluster:DecreaseReplicationFactorResponse' :: Maybe Cluster
cluster =
Maybe Cluster
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DecreaseReplicationFactorResponse' :: Int
httpStatus = Int
pHttpStatus_
}
decreaseReplicationFactorResponse_cluster :: Lens.Lens' DecreaseReplicationFactorResponse (Prelude.Maybe Cluster)
decreaseReplicationFactorResponse_cluster :: (Maybe Cluster -> f (Maybe Cluster))
-> DecreaseReplicationFactorResponse
-> f DecreaseReplicationFactorResponse
decreaseReplicationFactorResponse_cluster = (DecreaseReplicationFactorResponse -> Maybe Cluster)
-> (DecreaseReplicationFactorResponse
-> Maybe Cluster -> DecreaseReplicationFactorResponse)
-> Lens
DecreaseReplicationFactorResponse
DecreaseReplicationFactorResponse
(Maybe Cluster)
(Maybe Cluster)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecreaseReplicationFactorResponse' {Maybe Cluster
cluster :: Maybe Cluster
$sel:cluster:DecreaseReplicationFactorResponse' :: DecreaseReplicationFactorResponse -> Maybe Cluster
cluster} -> Maybe Cluster
cluster) (\s :: DecreaseReplicationFactorResponse
s@DecreaseReplicationFactorResponse' {} Maybe Cluster
a -> DecreaseReplicationFactorResponse
s {$sel:cluster:DecreaseReplicationFactorResponse' :: Maybe Cluster
cluster = Maybe Cluster
a} :: DecreaseReplicationFactorResponse)
decreaseReplicationFactorResponse_httpStatus :: Lens.Lens' DecreaseReplicationFactorResponse Prelude.Int
decreaseReplicationFactorResponse_httpStatus :: (Int -> f Int)
-> DecreaseReplicationFactorResponse
-> f DecreaseReplicationFactorResponse
decreaseReplicationFactorResponse_httpStatus = (DecreaseReplicationFactorResponse -> Int)
-> (DecreaseReplicationFactorResponse
-> Int -> DecreaseReplicationFactorResponse)
-> Lens
DecreaseReplicationFactorResponse
DecreaseReplicationFactorResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DecreaseReplicationFactorResponse' {Int
httpStatus :: Int
$sel:httpStatus:DecreaseReplicationFactorResponse' :: DecreaseReplicationFactorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DecreaseReplicationFactorResponse
s@DecreaseReplicationFactorResponse' {} Int
a -> DecreaseReplicationFactorResponse
s {$sel:httpStatus:DecreaseReplicationFactorResponse' :: Int
httpStatus = Int
a} :: DecreaseReplicationFactorResponse)
instance
Prelude.NFData
DecreaseReplicationFactorResponse