{-# 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.Batch.Types.EksPodPropertiesDetail where
import Amazonka.Batch.Types.EksContainerDetail
import Amazonka.Batch.Types.EksVolume
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
data EksPodPropertiesDetail = EksPodPropertiesDetail'
{
EksPodPropertiesDetail -> Maybe [EksContainerDetail]
containers :: Prelude.Maybe [EksContainerDetail],
EksPodPropertiesDetail -> Maybe Text
dnsPolicy :: Prelude.Maybe Prelude.Text,
EksPodPropertiesDetail -> Maybe Bool
hostNetwork :: Prelude.Maybe Prelude.Bool,
EksPodPropertiesDetail -> Maybe Text
nodeName :: Prelude.Maybe Prelude.Text,
EksPodPropertiesDetail -> Maybe Text
podName :: Prelude.Maybe Prelude.Text,
EksPodPropertiesDetail -> Maybe Text
serviceAccountName :: Prelude.Maybe Prelude.Text,
EksPodPropertiesDetail -> Maybe [EksVolume]
volumes :: Prelude.Maybe [EksVolume]
}
deriving (EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
$c/= :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
== :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
$c== :: EksPodPropertiesDetail -> EksPodPropertiesDetail -> Bool
Prelude.Eq, ReadPrec [EksPodPropertiesDetail]
ReadPrec EksPodPropertiesDetail
Int -> ReadS EksPodPropertiesDetail
ReadS [EksPodPropertiesDetail]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EksPodPropertiesDetail]
$creadListPrec :: ReadPrec [EksPodPropertiesDetail]
readPrec :: ReadPrec EksPodPropertiesDetail
$creadPrec :: ReadPrec EksPodPropertiesDetail
readList :: ReadS [EksPodPropertiesDetail]
$creadList :: ReadS [EksPodPropertiesDetail]
readsPrec :: Int -> ReadS EksPodPropertiesDetail
$creadsPrec :: Int -> ReadS EksPodPropertiesDetail
Prelude.Read, Int -> EksPodPropertiesDetail -> ShowS
[EksPodPropertiesDetail] -> ShowS
EksPodPropertiesDetail -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EksPodPropertiesDetail] -> ShowS
$cshowList :: [EksPodPropertiesDetail] -> ShowS
show :: EksPodPropertiesDetail -> String
$cshow :: EksPodPropertiesDetail -> String
showsPrec :: Int -> EksPodPropertiesDetail -> ShowS
$cshowsPrec :: Int -> EksPodPropertiesDetail -> ShowS
Prelude.Show, forall x. Rep EksPodPropertiesDetail x -> EksPodPropertiesDetail
forall x. EksPodPropertiesDetail -> Rep EksPodPropertiesDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EksPodPropertiesDetail x -> EksPodPropertiesDetail
$cfrom :: forall x. EksPodPropertiesDetail -> Rep EksPodPropertiesDetail x
Prelude.Generic)
newEksPodPropertiesDetail ::
EksPodPropertiesDetail
newEksPodPropertiesDetail :: EksPodPropertiesDetail
newEksPodPropertiesDetail =
EksPodPropertiesDetail'
{ $sel:containers:EksPodPropertiesDetail' :: Maybe [EksContainerDetail]
containers =
forall a. Maybe a
Prelude.Nothing,
$sel:dnsPolicy:EksPodPropertiesDetail' :: Maybe Text
dnsPolicy = forall a. Maybe a
Prelude.Nothing,
$sel:hostNetwork:EksPodPropertiesDetail' :: Maybe Bool
hostNetwork = forall a. Maybe a
Prelude.Nothing,
$sel:nodeName:EksPodPropertiesDetail' :: Maybe Text
nodeName = forall a. Maybe a
Prelude.Nothing,
$sel:podName:EksPodPropertiesDetail' :: Maybe Text
podName = forall a. Maybe a
Prelude.Nothing,
$sel:serviceAccountName:EksPodPropertiesDetail' :: Maybe Text
serviceAccountName = forall a. Maybe a
Prelude.Nothing,
$sel:volumes:EksPodPropertiesDetail' :: Maybe [EksVolume]
volumes = forall a. Maybe a
Prelude.Nothing
}
eksPodPropertiesDetail_containers :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe [EksContainerDetail])
eksPodPropertiesDetail_containers :: Lens' EksPodPropertiesDetail (Maybe [EksContainerDetail])
eksPodPropertiesDetail_containers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe [EksContainerDetail]
containers :: Maybe [EksContainerDetail]
$sel:containers:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksContainerDetail]
containers} -> Maybe [EksContainerDetail]
containers) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe [EksContainerDetail]
a -> EksPodPropertiesDetail
s {$sel:containers:EksPodPropertiesDetail' :: Maybe [EksContainerDetail]
containers = Maybe [EksContainerDetail]
a} :: EksPodPropertiesDetail) 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
eksPodPropertiesDetail_dnsPolicy :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_dnsPolicy :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_dnsPolicy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
dnsPolicy :: Maybe Text
$sel:dnsPolicy:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
dnsPolicy} -> Maybe Text
dnsPolicy) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:dnsPolicy:EksPodPropertiesDetail' :: Maybe Text
dnsPolicy = Maybe Text
a} :: EksPodPropertiesDetail)
eksPodPropertiesDetail_hostNetwork :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Bool)
eksPodPropertiesDetail_hostNetwork :: Lens' EksPodPropertiesDetail (Maybe Bool)
eksPodPropertiesDetail_hostNetwork = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Bool
hostNetwork :: Maybe Bool
$sel:hostNetwork:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Bool
hostNetwork} -> Maybe Bool
hostNetwork) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Bool
a -> EksPodPropertiesDetail
s {$sel:hostNetwork:EksPodPropertiesDetail' :: Maybe Bool
hostNetwork = Maybe Bool
a} :: EksPodPropertiesDetail)
eksPodPropertiesDetail_nodeName :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_nodeName :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_nodeName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
nodeName :: Maybe Text
$sel:nodeName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
nodeName} -> Maybe Text
nodeName) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:nodeName:EksPodPropertiesDetail' :: Maybe Text
nodeName = Maybe Text
a} :: EksPodPropertiesDetail)
eksPodPropertiesDetail_podName :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_podName :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_podName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
podName :: Maybe Text
$sel:podName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
podName} -> Maybe Text
podName) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:podName:EksPodPropertiesDetail' :: Maybe Text
podName = Maybe Text
a} :: EksPodPropertiesDetail)
eksPodPropertiesDetail_serviceAccountName :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe Prelude.Text)
eksPodPropertiesDetail_serviceAccountName :: Lens' EksPodPropertiesDetail (Maybe Text)
eksPodPropertiesDetail_serviceAccountName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe Text
serviceAccountName :: Maybe Text
$sel:serviceAccountName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
serviceAccountName} -> Maybe Text
serviceAccountName) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe Text
a -> EksPodPropertiesDetail
s {$sel:serviceAccountName:EksPodPropertiesDetail' :: Maybe Text
serviceAccountName = Maybe Text
a} :: EksPodPropertiesDetail)
eksPodPropertiesDetail_volumes :: Lens.Lens' EksPodPropertiesDetail (Prelude.Maybe [EksVolume])
eksPodPropertiesDetail_volumes :: Lens' EksPodPropertiesDetail (Maybe [EksVolume])
eksPodPropertiesDetail_volumes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EksPodPropertiesDetail' {Maybe [EksVolume]
volumes :: Maybe [EksVolume]
$sel:volumes:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksVolume]
volumes} -> Maybe [EksVolume]
volumes) (\s :: EksPodPropertiesDetail
s@EksPodPropertiesDetail' {} Maybe [EksVolume]
a -> EksPodPropertiesDetail
s {$sel:volumes:EksPodPropertiesDetail' :: Maybe [EksVolume]
volumes = Maybe [EksVolume]
a} :: EksPodPropertiesDetail) 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
instance Data.FromJSON EksPodPropertiesDetail where
parseJSON :: Value -> Parser EksPodPropertiesDetail
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"EksPodPropertiesDetail"
( \Object
x ->
Maybe [EksContainerDetail]
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [EksVolume]
-> EksPodPropertiesDetail
EksPodPropertiesDetail'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"containers" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dnsPolicy")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"hostNetwork")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"nodeName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"podName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"serviceAccountName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"volumes" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable EksPodPropertiesDetail where
hashWithSalt :: Int -> EksPodPropertiesDetail -> Int
hashWithSalt Int
_salt EksPodPropertiesDetail' {Maybe Bool
Maybe [EksContainerDetail]
Maybe [EksVolume]
Maybe Text
volumes :: Maybe [EksVolume]
serviceAccountName :: Maybe Text
podName :: Maybe Text
nodeName :: Maybe Text
hostNetwork :: Maybe Bool
dnsPolicy :: Maybe Text
containers :: Maybe [EksContainerDetail]
$sel:volumes:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksVolume]
$sel:serviceAccountName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:podName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:nodeName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:hostNetwork:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Bool
$sel:dnsPolicy:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:containers:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksContainerDetail]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EksContainerDetail]
containers
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dnsPolicy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hostNetwork
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nodeName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
podName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceAccountName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EksVolume]
volumes
instance Prelude.NFData EksPodPropertiesDetail where
rnf :: EksPodPropertiesDetail -> ()
rnf EksPodPropertiesDetail' {Maybe Bool
Maybe [EksContainerDetail]
Maybe [EksVolume]
Maybe Text
volumes :: Maybe [EksVolume]
serviceAccountName :: Maybe Text
podName :: Maybe Text
nodeName :: Maybe Text
hostNetwork :: Maybe Bool
dnsPolicy :: Maybe Text
containers :: Maybe [EksContainerDetail]
$sel:volumes:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksVolume]
$sel:serviceAccountName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:podName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:nodeName:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:hostNetwork:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Bool
$sel:dnsPolicy:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe Text
$sel:containers:EksPodPropertiesDetail' :: EksPodPropertiesDetail -> Maybe [EksContainerDetail]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [EksContainerDetail]
containers
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dnsPolicy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hostNetwork
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nodeName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
podName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceAccountName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [EksVolume]
volumes