{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTDeviceAdvisor.GetSuiteDefinition
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets information about a Device Advisor test suite.
module Amazonka.IoTDeviceAdvisor.GetSuiteDefinition
  ( -- * Creating a Request
    GetSuiteDefinition (..),
    newGetSuiteDefinition,

    -- * Request Lenses
    getSuiteDefinition_suiteDefinitionVersion,
    getSuiteDefinition_suiteDefinitionId,

    -- * Destructuring the Response
    GetSuiteDefinitionResponse (..),
    newGetSuiteDefinitionResponse,

    -- * Response Lenses
    getSuiteDefinitionResponse_createdAt,
    getSuiteDefinitionResponse_suiteDefinitionConfiguration,
    getSuiteDefinitionResponse_suiteDefinitionArn,
    getSuiteDefinitionResponse_lastModifiedAt,
    getSuiteDefinitionResponse_suiteDefinitionId,
    getSuiteDefinitionResponse_suiteDefinitionVersion,
    getSuiteDefinitionResponse_latestVersion,
    getSuiteDefinitionResponse_tags,
    getSuiteDefinitionResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTDeviceAdvisor.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

-- | /See:/ 'newGetSuiteDefinition' smart constructor.
data GetSuiteDefinition = GetSuiteDefinition'
  { -- | Suite definition version of the test suite to get.
    GetSuiteDefinition -> Maybe Text
suiteDefinitionVersion :: Prelude.Maybe Prelude.Text,
    -- | Suite definition Id of the test suite to get.
    GetSuiteDefinition -> Text
suiteDefinitionId :: Prelude.Text
  }
  deriving (GetSuiteDefinition -> GetSuiteDefinition -> Bool
(GetSuiteDefinition -> GetSuiteDefinition -> Bool)
-> (GetSuiteDefinition -> GetSuiteDefinition -> Bool)
-> Eq GetSuiteDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
$c/= :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
== :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
$c== :: GetSuiteDefinition -> GetSuiteDefinition -> Bool
Prelude.Eq, ReadPrec [GetSuiteDefinition]
ReadPrec GetSuiteDefinition
Int -> ReadS GetSuiteDefinition
ReadS [GetSuiteDefinition]
(Int -> ReadS GetSuiteDefinition)
-> ReadS [GetSuiteDefinition]
-> ReadPrec GetSuiteDefinition
-> ReadPrec [GetSuiteDefinition]
-> Read GetSuiteDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSuiteDefinition]
$creadListPrec :: ReadPrec [GetSuiteDefinition]
readPrec :: ReadPrec GetSuiteDefinition
$creadPrec :: ReadPrec GetSuiteDefinition
readList :: ReadS [GetSuiteDefinition]
$creadList :: ReadS [GetSuiteDefinition]
readsPrec :: Int -> ReadS GetSuiteDefinition
$creadsPrec :: Int -> ReadS GetSuiteDefinition
Prelude.Read, Int -> GetSuiteDefinition -> ShowS
[GetSuiteDefinition] -> ShowS
GetSuiteDefinition -> String
(Int -> GetSuiteDefinition -> ShowS)
-> (GetSuiteDefinition -> String)
-> ([GetSuiteDefinition] -> ShowS)
-> Show GetSuiteDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSuiteDefinition] -> ShowS
$cshowList :: [GetSuiteDefinition] -> ShowS
show :: GetSuiteDefinition -> String
$cshow :: GetSuiteDefinition -> String
showsPrec :: Int -> GetSuiteDefinition -> ShowS
$cshowsPrec :: Int -> GetSuiteDefinition -> ShowS
Prelude.Show, (forall x. GetSuiteDefinition -> Rep GetSuiteDefinition x)
-> (forall x. Rep GetSuiteDefinition x -> GetSuiteDefinition)
-> Generic GetSuiteDefinition
forall x. Rep GetSuiteDefinition x -> GetSuiteDefinition
forall x. GetSuiteDefinition -> Rep GetSuiteDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSuiteDefinition x -> GetSuiteDefinition
$cfrom :: forall x. GetSuiteDefinition -> Rep GetSuiteDefinition x
Prelude.Generic)

-- |
-- Create a value of 'GetSuiteDefinition' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'suiteDefinitionVersion', 'getSuiteDefinition_suiteDefinitionVersion' - Suite definition version of the test suite to get.
--
-- 'suiteDefinitionId', 'getSuiteDefinition_suiteDefinitionId' - Suite definition Id of the test suite to get.
newGetSuiteDefinition ::
  -- | 'suiteDefinitionId'
  Prelude.Text ->
  GetSuiteDefinition
newGetSuiteDefinition :: Text -> GetSuiteDefinition
newGetSuiteDefinition Text
pSuiteDefinitionId_ =
  GetSuiteDefinition' :: Maybe Text -> Text -> GetSuiteDefinition
GetSuiteDefinition'
    { $sel:suiteDefinitionVersion:GetSuiteDefinition' :: Maybe Text
suiteDefinitionVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:suiteDefinitionId:GetSuiteDefinition' :: Text
suiteDefinitionId = Text
pSuiteDefinitionId_
    }

-- | Suite definition version of the test suite to get.
getSuiteDefinition_suiteDefinitionVersion :: Lens.Lens' GetSuiteDefinition (Prelude.Maybe Prelude.Text)
getSuiteDefinition_suiteDefinitionVersion :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinition -> f GetSuiteDefinition
getSuiteDefinition_suiteDefinitionVersion = (GetSuiteDefinition -> Maybe Text)
-> (GetSuiteDefinition -> Maybe Text -> GetSuiteDefinition)
-> Lens
     GetSuiteDefinition GetSuiteDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinition' {Maybe Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionVersion:GetSuiteDefinition' :: GetSuiteDefinition -> Maybe Text
suiteDefinitionVersion} -> Maybe Text
suiteDefinitionVersion) (\s :: GetSuiteDefinition
s@GetSuiteDefinition' {} Maybe Text
a -> GetSuiteDefinition
s {$sel:suiteDefinitionVersion:GetSuiteDefinition' :: Maybe Text
suiteDefinitionVersion = Maybe Text
a} :: GetSuiteDefinition)

-- | Suite definition Id of the test suite to get.
getSuiteDefinition_suiteDefinitionId :: Lens.Lens' GetSuiteDefinition Prelude.Text
getSuiteDefinition_suiteDefinitionId :: (Text -> f Text) -> GetSuiteDefinition -> f GetSuiteDefinition
getSuiteDefinition_suiteDefinitionId = (GetSuiteDefinition -> Text)
-> (GetSuiteDefinition -> Text -> GetSuiteDefinition)
-> Lens GetSuiteDefinition GetSuiteDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinition' {Text
suiteDefinitionId :: Text
$sel:suiteDefinitionId:GetSuiteDefinition' :: GetSuiteDefinition -> Text
suiteDefinitionId} -> Text
suiteDefinitionId) (\s :: GetSuiteDefinition
s@GetSuiteDefinition' {} Text
a -> GetSuiteDefinition
s {$sel:suiteDefinitionId:GetSuiteDefinition' :: Text
suiteDefinitionId = Text
a} :: GetSuiteDefinition)

instance Core.AWSRequest GetSuiteDefinition where
  type
    AWSResponse GetSuiteDefinition =
      GetSuiteDefinitionResponse
  request :: GetSuiteDefinition -> Request GetSuiteDefinition
request = Service -> GetSuiteDefinition -> Request GetSuiteDefinition
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetSuiteDefinition
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetSuiteDefinition)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetSuiteDefinition))
-> Logger
-> Service
-> Proxy GetSuiteDefinition
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetSuiteDefinition)))
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 POSIX
-> Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse
GetSuiteDefinitionResponse'
            (Maybe POSIX
 -> Maybe SuiteDefinitionConfiguration
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> GetSuiteDefinitionResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe SuiteDefinitionConfiguration
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetSuiteDefinitionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdAt")
            Either
  String
  (Maybe SuiteDefinitionConfiguration
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetSuiteDefinitionResponse)
-> Either String (Maybe SuiteDefinitionConfiguration)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetSuiteDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe SuiteDefinitionConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"suiteDefinitionConfiguration")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetSuiteDefinitionResponse)
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
"suiteDefinitionArn")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetSuiteDefinitionResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetSuiteDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastModifiedAt")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetSuiteDefinitionResponse)
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
"suiteDefinitionId")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
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
"suiteDefinitionVersion")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
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
"latestVersion")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> GetSuiteDefinitionResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetSuiteDefinitionResponse)
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
"tags" 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 -> GetSuiteDefinitionResponse)
-> Either String Int -> Either String GetSuiteDefinitionResponse
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 GetSuiteDefinition

instance Prelude.NFData GetSuiteDefinition

instance Core.ToHeaders GetSuiteDefinition where
  toHeaders :: GetSuiteDefinition -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetSuiteDefinition -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath GetSuiteDefinition where
  toPath :: GetSuiteDefinition -> ByteString
toPath GetSuiteDefinition' {Maybe Text
Text
suiteDefinitionId :: Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionId:GetSuiteDefinition' :: GetSuiteDefinition -> Text
$sel:suiteDefinitionVersion:GetSuiteDefinition' :: GetSuiteDefinition -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/suiteDefinitions/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
suiteDefinitionId]

instance Core.ToQuery GetSuiteDefinition where
  toQuery :: GetSuiteDefinition -> QueryString
toQuery GetSuiteDefinition' {Maybe Text
Text
suiteDefinitionId :: Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionId:GetSuiteDefinition' :: GetSuiteDefinition -> Text
$sel:suiteDefinitionVersion:GetSuiteDefinition' :: GetSuiteDefinition -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"suiteDefinitionVersion"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
suiteDefinitionVersion
      ]

-- | /See:/ 'newGetSuiteDefinitionResponse' smart constructor.
data GetSuiteDefinitionResponse = GetSuiteDefinitionResponse'
  { -- | Date (in Unix epoch time) when the suite definition was created.
    GetSuiteDefinitionResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | Suite configuration of the suite definition.
    GetSuiteDefinitionResponse -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration :: Prelude.Maybe SuiteDefinitionConfiguration,
    -- | The ARN of the suite definition.
    GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionArn :: Prelude.Maybe Prelude.Text,
    -- | Date (in Unix epoch time) when the suite definition was last modified.
    GetSuiteDefinitionResponse -> Maybe POSIX
lastModifiedAt :: Prelude.Maybe Core.POSIX,
    -- | Suite definition Id of the suite definition.
    GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionId :: Prelude.Maybe Prelude.Text,
    -- | Suite definition version of the suite definition.
    GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionVersion :: Prelude.Maybe Prelude.Text,
    -- | Latest suite definition version of the suite definition.
    GetSuiteDefinitionResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
    -- | Tags attached to the suite definition.
    GetSuiteDefinitionResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetSuiteDefinitionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
(GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool)
-> (GetSuiteDefinitionResponse
    -> GetSuiteDefinitionResponse -> Bool)
-> Eq GetSuiteDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
$c/= :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
== :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
$c== :: GetSuiteDefinitionResponse -> GetSuiteDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [GetSuiteDefinitionResponse]
ReadPrec GetSuiteDefinitionResponse
Int -> ReadS GetSuiteDefinitionResponse
ReadS [GetSuiteDefinitionResponse]
(Int -> ReadS GetSuiteDefinitionResponse)
-> ReadS [GetSuiteDefinitionResponse]
-> ReadPrec GetSuiteDefinitionResponse
-> ReadPrec [GetSuiteDefinitionResponse]
-> Read GetSuiteDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSuiteDefinitionResponse]
$creadListPrec :: ReadPrec [GetSuiteDefinitionResponse]
readPrec :: ReadPrec GetSuiteDefinitionResponse
$creadPrec :: ReadPrec GetSuiteDefinitionResponse
readList :: ReadS [GetSuiteDefinitionResponse]
$creadList :: ReadS [GetSuiteDefinitionResponse]
readsPrec :: Int -> ReadS GetSuiteDefinitionResponse
$creadsPrec :: Int -> ReadS GetSuiteDefinitionResponse
Prelude.Read, Int -> GetSuiteDefinitionResponse -> ShowS
[GetSuiteDefinitionResponse] -> ShowS
GetSuiteDefinitionResponse -> String
(Int -> GetSuiteDefinitionResponse -> ShowS)
-> (GetSuiteDefinitionResponse -> String)
-> ([GetSuiteDefinitionResponse] -> ShowS)
-> Show GetSuiteDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSuiteDefinitionResponse] -> ShowS
$cshowList :: [GetSuiteDefinitionResponse] -> ShowS
show :: GetSuiteDefinitionResponse -> String
$cshow :: GetSuiteDefinitionResponse -> String
showsPrec :: Int -> GetSuiteDefinitionResponse -> ShowS
$cshowsPrec :: Int -> GetSuiteDefinitionResponse -> ShowS
Prelude.Show, (forall x.
 GetSuiteDefinitionResponse -> Rep GetSuiteDefinitionResponse x)
-> (forall x.
    Rep GetSuiteDefinitionResponse x -> GetSuiteDefinitionResponse)
-> Generic GetSuiteDefinitionResponse
forall x.
Rep GetSuiteDefinitionResponse x -> GetSuiteDefinitionResponse
forall x.
GetSuiteDefinitionResponse -> Rep GetSuiteDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetSuiteDefinitionResponse x -> GetSuiteDefinitionResponse
$cfrom :: forall x.
GetSuiteDefinitionResponse -> Rep GetSuiteDefinitionResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetSuiteDefinitionResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'createdAt', 'getSuiteDefinitionResponse_createdAt' - Date (in Unix epoch time) when the suite definition was created.
--
-- 'suiteDefinitionConfiguration', 'getSuiteDefinitionResponse_suiteDefinitionConfiguration' - Suite configuration of the suite definition.
--
-- 'suiteDefinitionArn', 'getSuiteDefinitionResponse_suiteDefinitionArn' - The ARN of the suite definition.
--
-- 'lastModifiedAt', 'getSuiteDefinitionResponse_lastModifiedAt' - Date (in Unix epoch time) when the suite definition was last modified.
--
-- 'suiteDefinitionId', 'getSuiteDefinitionResponse_suiteDefinitionId' - Suite definition Id of the suite definition.
--
-- 'suiteDefinitionVersion', 'getSuiteDefinitionResponse_suiteDefinitionVersion' - Suite definition version of the suite definition.
--
-- 'latestVersion', 'getSuiteDefinitionResponse_latestVersion' - Latest suite definition version of the suite definition.
--
-- 'tags', 'getSuiteDefinitionResponse_tags' - Tags attached to the suite definition.
--
-- 'httpStatus', 'getSuiteDefinitionResponse_httpStatus' - The response's http status code.
newGetSuiteDefinitionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetSuiteDefinitionResponse
newGetSuiteDefinitionResponse :: Int -> GetSuiteDefinitionResponse
newGetSuiteDefinitionResponse Int
pHttpStatus_ =
  GetSuiteDefinitionResponse' :: Maybe POSIX
-> Maybe SuiteDefinitionConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSuiteDefinitionResponse
GetSuiteDefinitionResponse'
    { $sel:createdAt:GetSuiteDefinitionResponse' :: Maybe POSIX
createdAt =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:suiteDefinitionConfiguration:GetSuiteDefinitionResponse' :: Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration = Maybe SuiteDefinitionConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:suiteDefinitionArn:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedAt:GetSuiteDefinitionResponse' :: Maybe POSIX
lastModifiedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:suiteDefinitionId:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:suiteDefinitionVersion:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:latestVersion:GetSuiteDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetSuiteDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetSuiteDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Date (in Unix epoch time) when the suite definition was created.
getSuiteDefinitionResponse_createdAt :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.UTCTime)
getSuiteDefinitionResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_createdAt = (GetSuiteDefinitionResponse -> Maybe POSIX)
-> (GetSuiteDefinitionResponse
    -> Maybe POSIX -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe POSIX
a -> GetSuiteDefinitionResponse
s {$sel:createdAt:GetSuiteDefinitionResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: GetSuiteDefinitionResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse
-> f GetSuiteDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Suite configuration of the suite definition.
getSuiteDefinitionResponse_suiteDefinitionConfiguration :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe SuiteDefinitionConfiguration)
getSuiteDefinitionResponse_suiteDefinitionConfiguration :: (Maybe SuiteDefinitionConfiguration
 -> f (Maybe SuiteDefinitionConfiguration))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionConfiguration = (GetSuiteDefinitionResponse -> Maybe SuiteDefinitionConfiguration)
-> (GetSuiteDefinitionResponse
    -> Maybe SuiteDefinitionConfiguration
    -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe SuiteDefinitionConfiguration)
     (Maybe SuiteDefinitionConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration :: Maybe SuiteDefinitionConfiguration
$sel:suiteDefinitionConfiguration:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration} -> Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe SuiteDefinitionConfiguration
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionConfiguration:GetSuiteDefinitionResponse' :: Maybe SuiteDefinitionConfiguration
suiteDefinitionConfiguration = Maybe SuiteDefinitionConfiguration
a} :: GetSuiteDefinitionResponse)

-- | The ARN of the suite definition.
getSuiteDefinitionResponse_suiteDefinitionArn :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_suiteDefinitionArn :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionArn = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
    -> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
suiteDefinitionArn :: Maybe Text
$sel:suiteDefinitionArn:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionArn} -> Maybe Text
suiteDefinitionArn) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionArn:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionArn = Maybe Text
a} :: GetSuiteDefinitionResponse)

-- | Date (in Unix epoch time) when the suite definition was last modified.
getSuiteDefinitionResponse_lastModifiedAt :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.UTCTime)
getSuiteDefinitionResponse_lastModifiedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_lastModifiedAt = (GetSuiteDefinitionResponse -> Maybe POSIX)
-> (GetSuiteDefinitionResponse
    -> Maybe POSIX -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe POSIX
lastModifiedAt :: Maybe POSIX
$sel:lastModifiedAt:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe POSIX
lastModifiedAt} -> Maybe POSIX
lastModifiedAt) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe POSIX
a -> GetSuiteDefinitionResponse
s {$sel:lastModifiedAt:GetSuiteDefinitionResponse' :: Maybe POSIX
lastModifiedAt = Maybe POSIX
a} :: GetSuiteDefinitionResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetSuiteDefinitionResponse
-> f GetSuiteDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Suite definition Id of the suite definition.
getSuiteDefinitionResponse_suiteDefinitionId :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_suiteDefinitionId :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionId = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
    -> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
suiteDefinitionId :: Maybe Text
$sel:suiteDefinitionId:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionId} -> Maybe Text
suiteDefinitionId) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionId:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionId = Maybe Text
a} :: GetSuiteDefinitionResponse)

-- | Suite definition version of the suite definition.
getSuiteDefinitionResponse_suiteDefinitionVersion :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_suiteDefinitionVersion :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_suiteDefinitionVersion = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
    -> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
suiteDefinitionVersion :: Maybe Text
$sel:suiteDefinitionVersion:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
suiteDefinitionVersion} -> Maybe Text
suiteDefinitionVersion) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:suiteDefinitionVersion:GetSuiteDefinitionResponse' :: Maybe Text
suiteDefinitionVersion = Maybe Text
a} :: GetSuiteDefinitionResponse)

-- | Latest suite definition version of the suite definition.
getSuiteDefinitionResponse_latestVersion :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe Prelude.Text)
getSuiteDefinitionResponse_latestVersion :: (Maybe Text -> f (Maybe Text))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_latestVersion = (GetSuiteDefinitionResponse -> Maybe Text)
-> (GetSuiteDefinitionResponse
    -> Maybe Text -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe Text
a -> GetSuiteDefinitionResponse
s {$sel:latestVersion:GetSuiteDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: GetSuiteDefinitionResponse)

-- | Tags attached to the suite definition.
getSuiteDefinitionResponse_tags :: Lens.Lens' GetSuiteDefinitionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getSuiteDefinitionResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_tags = (GetSuiteDefinitionResponse -> Maybe (HashMap Text Text))
-> (GetSuiteDefinitionResponse
    -> Maybe (HashMap Text Text) -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse
     GetSuiteDefinitionResponse
     (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 (\GetSuiteDefinitionResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Maybe (HashMap Text Text)
a -> GetSuiteDefinitionResponse
s {$sel:tags:GetSuiteDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetSuiteDefinitionResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse)
-> ((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)))
-> GetSuiteDefinitionResponse
-> f GetSuiteDefinitionResponse
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

-- | The response's http status code.
getSuiteDefinitionResponse_httpStatus :: Lens.Lens' GetSuiteDefinitionResponse Prelude.Int
getSuiteDefinitionResponse_httpStatus :: (Int -> f Int)
-> GetSuiteDefinitionResponse -> f GetSuiteDefinitionResponse
getSuiteDefinitionResponse_httpStatus = (GetSuiteDefinitionResponse -> Int)
-> (GetSuiteDefinitionResponse
    -> Int -> GetSuiteDefinitionResponse)
-> Lens
     GetSuiteDefinitionResponse GetSuiteDefinitionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSuiteDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetSuiteDefinitionResponse' :: GetSuiteDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetSuiteDefinitionResponse
s@GetSuiteDefinitionResponse' {} Int
a -> GetSuiteDefinitionResponse
s {$sel:httpStatus:GetSuiteDefinitionResponse' :: Int
httpStatus = Int
a} :: GetSuiteDefinitionResponse)

instance Prelude.NFData GetSuiteDefinitionResponse