{-# 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.CloudWatch.Types.LabelOptions where
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 LabelOptions = LabelOptions'
{
LabelOptions -> Maybe Text
timezone :: Prelude.Maybe Prelude.Text
}
deriving (LabelOptions -> LabelOptions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LabelOptions -> LabelOptions -> Bool
$c/= :: LabelOptions -> LabelOptions -> Bool
== :: LabelOptions -> LabelOptions -> Bool
$c== :: LabelOptions -> LabelOptions -> Bool
Prelude.Eq, ReadPrec [LabelOptions]
ReadPrec LabelOptions
Int -> ReadS LabelOptions
ReadS [LabelOptions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LabelOptions]
$creadListPrec :: ReadPrec [LabelOptions]
readPrec :: ReadPrec LabelOptions
$creadPrec :: ReadPrec LabelOptions
readList :: ReadS [LabelOptions]
$creadList :: ReadS [LabelOptions]
readsPrec :: Int -> ReadS LabelOptions
$creadsPrec :: Int -> ReadS LabelOptions
Prelude.Read, Int -> LabelOptions -> ShowS
[LabelOptions] -> ShowS
LabelOptions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LabelOptions] -> ShowS
$cshowList :: [LabelOptions] -> ShowS
show :: LabelOptions -> String
$cshow :: LabelOptions -> String
showsPrec :: Int -> LabelOptions -> ShowS
$cshowsPrec :: Int -> LabelOptions -> ShowS
Prelude.Show, forall x. Rep LabelOptions x -> LabelOptions
forall x. LabelOptions -> Rep LabelOptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LabelOptions x -> LabelOptions
$cfrom :: forall x. LabelOptions -> Rep LabelOptions x
Prelude.Generic)
newLabelOptions ::
LabelOptions
newLabelOptions :: LabelOptions
newLabelOptions =
LabelOptions' {$sel:timezone:LabelOptions' :: Maybe Text
timezone = forall a. Maybe a
Prelude.Nothing}
labelOptions_timezone :: Lens.Lens' LabelOptions (Prelude.Maybe Prelude.Text)
labelOptions_timezone :: Lens' LabelOptions (Maybe Text)
labelOptions_timezone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelOptions' {Maybe Text
timezone :: Maybe Text
$sel:timezone:LabelOptions' :: LabelOptions -> Maybe Text
timezone} -> Maybe Text
timezone) (\s :: LabelOptions
s@LabelOptions' {} Maybe Text
a -> LabelOptions
s {$sel:timezone:LabelOptions' :: Maybe Text
timezone = Maybe Text
a} :: LabelOptions)
instance Prelude.Hashable LabelOptions where
hashWithSalt :: Int -> LabelOptions -> Int
hashWithSalt Int
_salt LabelOptions' {Maybe Text
timezone :: Maybe Text
$sel:timezone:LabelOptions' :: LabelOptions -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timezone
instance Prelude.NFData LabelOptions where
rnf :: LabelOptions -> ()
rnf LabelOptions' {Maybe Text
timezone :: Maybe Text
$sel:timezone:LabelOptions' :: LabelOptions -> Maybe Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timezone
instance Data.ToQuery LabelOptions where
toQuery :: LabelOptions -> QueryString
toQuery LabelOptions' {Maybe Text
timezone :: Maybe Text
$sel:timezone:LabelOptions' :: LabelOptions -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Timezone" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
timezone]