{-# 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.CodeBuild.CreateReportGroup
-- 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)
--
-- Creates a report group. A report group contains a collection of reports.
module Amazonka.CodeBuild.CreateReportGroup
  ( -- * Creating a Request
    CreateReportGroup (..),
    newCreateReportGroup,

    -- * Request Lenses
    createReportGroup_tags,
    createReportGroup_name,
    createReportGroup_type,
    createReportGroup_exportConfig,

    -- * Destructuring the Response
    CreateReportGroupResponse (..),
    newCreateReportGroupResponse,

    -- * Response Lenses
    createReportGroupResponse_reportGroup,
    createReportGroupResponse_httpStatus,
  )
where

import Amazonka.CodeBuild.Types
import qualified Amazonka.Core as Core
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:/ 'newCreateReportGroup' smart constructor.
data CreateReportGroup = CreateReportGroup'
  { -- | A list of tag key and value pairs associated with this report group.
    --
    -- These tags are available for use by Amazon Web Services services that
    -- support CodeBuild report group tags.
    CreateReportGroup -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The name of the report group.
    CreateReportGroup -> Text
name :: Prelude.Text,
    -- | The type of report group.
    CreateReportGroup -> ReportType
type' :: ReportType,
    -- | A @ReportExportConfig@ object that contains information about where the
    -- report group test results are exported.
    CreateReportGroup -> ReportExportConfig
exportConfig :: ReportExportConfig
  }
  deriving (CreateReportGroup -> CreateReportGroup -> Bool
(CreateReportGroup -> CreateReportGroup -> Bool)
-> (CreateReportGroup -> CreateReportGroup -> Bool)
-> Eq CreateReportGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReportGroup -> CreateReportGroup -> Bool
$c/= :: CreateReportGroup -> CreateReportGroup -> Bool
== :: CreateReportGroup -> CreateReportGroup -> Bool
$c== :: CreateReportGroup -> CreateReportGroup -> Bool
Prelude.Eq, ReadPrec [CreateReportGroup]
ReadPrec CreateReportGroup
Int -> ReadS CreateReportGroup
ReadS [CreateReportGroup]
(Int -> ReadS CreateReportGroup)
-> ReadS [CreateReportGroup]
-> ReadPrec CreateReportGroup
-> ReadPrec [CreateReportGroup]
-> Read CreateReportGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReportGroup]
$creadListPrec :: ReadPrec [CreateReportGroup]
readPrec :: ReadPrec CreateReportGroup
$creadPrec :: ReadPrec CreateReportGroup
readList :: ReadS [CreateReportGroup]
$creadList :: ReadS [CreateReportGroup]
readsPrec :: Int -> ReadS CreateReportGroup
$creadsPrec :: Int -> ReadS CreateReportGroup
Prelude.Read, Int -> CreateReportGroup -> ShowS
[CreateReportGroup] -> ShowS
CreateReportGroup -> String
(Int -> CreateReportGroup -> ShowS)
-> (CreateReportGroup -> String)
-> ([CreateReportGroup] -> ShowS)
-> Show CreateReportGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReportGroup] -> ShowS
$cshowList :: [CreateReportGroup] -> ShowS
show :: CreateReportGroup -> String
$cshow :: CreateReportGroup -> String
showsPrec :: Int -> CreateReportGroup -> ShowS
$cshowsPrec :: Int -> CreateReportGroup -> ShowS
Prelude.Show, (forall x. CreateReportGroup -> Rep CreateReportGroup x)
-> (forall x. Rep CreateReportGroup x -> CreateReportGroup)
-> Generic CreateReportGroup
forall x. Rep CreateReportGroup x -> CreateReportGroup
forall x. CreateReportGroup -> Rep CreateReportGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateReportGroup x -> CreateReportGroup
$cfrom :: forall x. CreateReportGroup -> Rep CreateReportGroup x
Prelude.Generic)

-- |
-- Create a value of 'CreateReportGroup' 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:
--
-- 'tags', 'createReportGroup_tags' - A list of tag key and value pairs associated with this report group.
--
-- These tags are available for use by Amazon Web Services services that
-- support CodeBuild report group tags.
--
-- 'name', 'createReportGroup_name' - The name of the report group.
--
-- 'type'', 'createReportGroup_type' - The type of report group.
--
-- 'exportConfig', 'createReportGroup_exportConfig' - A @ReportExportConfig@ object that contains information about where the
-- report group test results are exported.
newCreateReportGroup ::
  -- | 'name'
  Prelude.Text ->
  -- | 'type''
  ReportType ->
  -- | 'exportConfig'
  ReportExportConfig ->
  CreateReportGroup
newCreateReportGroup :: Text -> ReportType -> ReportExportConfig -> CreateReportGroup
newCreateReportGroup Text
pName_ ReportType
pType_ ReportExportConfig
pExportConfig_ =
  CreateReportGroup' :: Maybe [Tag]
-> Text -> ReportType -> ReportExportConfig -> CreateReportGroup
CreateReportGroup'
    { $sel:tags:CreateReportGroup' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:CreateReportGroup' :: Text
name = Text
pName_,
      $sel:type':CreateReportGroup' :: ReportType
type' = ReportType
pType_,
      $sel:exportConfig:CreateReportGroup' :: ReportExportConfig
exportConfig = ReportExportConfig
pExportConfig_
    }

-- | A list of tag key and value pairs associated with this report group.
--
-- These tags are available for use by Amazon Web Services services that
-- support CodeBuild report group tags.
createReportGroup_tags :: Lens.Lens' CreateReportGroup (Prelude.Maybe [Tag])
createReportGroup_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReportGroup -> f CreateReportGroup
createReportGroup_tags = (CreateReportGroup -> Maybe [Tag])
-> (CreateReportGroup -> Maybe [Tag] -> CreateReportGroup)
-> Lens
     CreateReportGroup CreateReportGroup (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReportGroup' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateReportGroup' :: CreateReportGroup -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateReportGroup
s@CreateReportGroup' {} Maybe [Tag]
a -> CreateReportGroup
s {$sel:tags:CreateReportGroup' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateReportGroup) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateReportGroup -> f CreateReportGroup)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReportGroup
-> f CreateReportGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the report group.
createReportGroup_name :: Lens.Lens' CreateReportGroup Prelude.Text
createReportGroup_name :: (Text -> f Text) -> CreateReportGroup -> f CreateReportGroup
createReportGroup_name = (CreateReportGroup -> Text)
-> (CreateReportGroup -> Text -> CreateReportGroup)
-> Lens CreateReportGroup CreateReportGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReportGroup' {Text
name :: Text
$sel:name:CreateReportGroup' :: CreateReportGroup -> Text
name} -> Text
name) (\s :: CreateReportGroup
s@CreateReportGroup' {} Text
a -> CreateReportGroup
s {$sel:name:CreateReportGroup' :: Text
name = Text
a} :: CreateReportGroup)

-- | The type of report group.
createReportGroup_type :: Lens.Lens' CreateReportGroup ReportType
createReportGroup_type :: (ReportType -> f ReportType)
-> CreateReportGroup -> f CreateReportGroup
createReportGroup_type = (CreateReportGroup -> ReportType)
-> (CreateReportGroup -> ReportType -> CreateReportGroup)
-> Lens CreateReportGroup CreateReportGroup ReportType ReportType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReportGroup' {ReportType
type' :: ReportType
$sel:type':CreateReportGroup' :: CreateReportGroup -> ReportType
type'} -> ReportType
type') (\s :: CreateReportGroup
s@CreateReportGroup' {} ReportType
a -> CreateReportGroup
s {$sel:type':CreateReportGroup' :: ReportType
type' = ReportType
a} :: CreateReportGroup)

-- | A @ReportExportConfig@ object that contains information about where the
-- report group test results are exported.
createReportGroup_exportConfig :: Lens.Lens' CreateReportGroup ReportExportConfig
createReportGroup_exportConfig :: (ReportExportConfig -> f ReportExportConfig)
-> CreateReportGroup -> f CreateReportGroup
createReportGroup_exportConfig = (CreateReportGroup -> ReportExportConfig)
-> (CreateReportGroup -> ReportExportConfig -> CreateReportGroup)
-> Lens
     CreateReportGroup
     CreateReportGroup
     ReportExportConfig
     ReportExportConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReportGroup' {ReportExportConfig
exportConfig :: ReportExportConfig
$sel:exportConfig:CreateReportGroup' :: CreateReportGroup -> ReportExportConfig
exportConfig} -> ReportExportConfig
exportConfig) (\s :: CreateReportGroup
s@CreateReportGroup' {} ReportExportConfig
a -> CreateReportGroup
s {$sel:exportConfig:CreateReportGroup' :: ReportExportConfig
exportConfig = ReportExportConfig
a} :: CreateReportGroup)

instance Core.AWSRequest CreateReportGroup where
  type
    AWSResponse CreateReportGroup =
      CreateReportGroupResponse
  request :: CreateReportGroup -> Request CreateReportGroup
request = Service -> CreateReportGroup -> Request CreateReportGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateReportGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateReportGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateReportGroup))
-> Logger
-> Service
-> Proxy CreateReportGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateReportGroup)))
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 ReportGroup -> Int -> CreateReportGroupResponse
CreateReportGroupResponse'
            (Maybe ReportGroup -> Int -> CreateReportGroupResponse)
-> Either String (Maybe ReportGroup)
-> Either String (Int -> CreateReportGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ReportGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"reportGroup")
            Either String (Int -> CreateReportGroupResponse)
-> Either String Int -> Either String CreateReportGroupResponse
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 CreateReportGroup

instance Prelude.NFData CreateReportGroup

instance Core.ToHeaders CreateReportGroup where
  toHeaders :: CreateReportGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateReportGroup -> 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
"CodeBuild_20161006.CreateReportGroup" ::
                          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 CreateReportGroup where
  toJSON :: CreateReportGroup -> Value
toJSON CreateReportGroup' {Maybe [Tag]
Text
ReportType
ReportExportConfig
exportConfig :: ReportExportConfig
type' :: ReportType
name :: Text
tags :: Maybe [Tag]
$sel:exportConfig:CreateReportGroup' :: CreateReportGroup -> ReportExportConfig
$sel:type':CreateReportGroup' :: CreateReportGroup -> ReportType
$sel:name:CreateReportGroup' :: CreateReportGroup -> Text
$sel:tags:CreateReportGroup' :: CreateReportGroup -> Maybe [Tag]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"type" Text -> ReportType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ReportType
type'),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"exportConfig" Text -> ReportExportConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ReportExportConfig
exportConfig)
          ]
      )

instance Core.ToPath CreateReportGroup where
  toPath :: CreateReportGroup -> ByteString
toPath = ByteString -> CreateReportGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery CreateReportGroup where
  toQuery :: CreateReportGroup -> QueryString
toQuery = QueryString -> CreateReportGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newCreateReportGroupResponse' smart constructor.
data CreateReportGroupResponse = CreateReportGroupResponse'
  { -- | Information about the report group that was created.
    CreateReportGroupResponse -> Maybe ReportGroup
reportGroup :: Prelude.Maybe ReportGroup,
    -- | The response's http status code.
    CreateReportGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateReportGroupResponse -> CreateReportGroupResponse -> Bool
(CreateReportGroupResponse -> CreateReportGroupResponse -> Bool)
-> (CreateReportGroupResponse -> CreateReportGroupResponse -> Bool)
-> Eq CreateReportGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReportGroupResponse -> CreateReportGroupResponse -> Bool
$c/= :: CreateReportGroupResponse -> CreateReportGroupResponse -> Bool
== :: CreateReportGroupResponse -> CreateReportGroupResponse -> Bool
$c== :: CreateReportGroupResponse -> CreateReportGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreateReportGroupResponse]
ReadPrec CreateReportGroupResponse
Int -> ReadS CreateReportGroupResponse
ReadS [CreateReportGroupResponse]
(Int -> ReadS CreateReportGroupResponse)
-> ReadS [CreateReportGroupResponse]
-> ReadPrec CreateReportGroupResponse
-> ReadPrec [CreateReportGroupResponse]
-> Read CreateReportGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReportGroupResponse]
$creadListPrec :: ReadPrec [CreateReportGroupResponse]
readPrec :: ReadPrec CreateReportGroupResponse
$creadPrec :: ReadPrec CreateReportGroupResponse
readList :: ReadS [CreateReportGroupResponse]
$creadList :: ReadS [CreateReportGroupResponse]
readsPrec :: Int -> ReadS CreateReportGroupResponse
$creadsPrec :: Int -> ReadS CreateReportGroupResponse
Prelude.Read, Int -> CreateReportGroupResponse -> ShowS
[CreateReportGroupResponse] -> ShowS
CreateReportGroupResponse -> String
(Int -> CreateReportGroupResponse -> ShowS)
-> (CreateReportGroupResponse -> String)
-> ([CreateReportGroupResponse] -> ShowS)
-> Show CreateReportGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReportGroupResponse] -> ShowS
$cshowList :: [CreateReportGroupResponse] -> ShowS
show :: CreateReportGroupResponse -> String
$cshow :: CreateReportGroupResponse -> String
showsPrec :: Int -> CreateReportGroupResponse -> ShowS
$cshowsPrec :: Int -> CreateReportGroupResponse -> ShowS
Prelude.Show, (forall x.
 CreateReportGroupResponse -> Rep CreateReportGroupResponse x)
-> (forall x.
    Rep CreateReportGroupResponse x -> CreateReportGroupResponse)
-> Generic CreateReportGroupResponse
forall x.
Rep CreateReportGroupResponse x -> CreateReportGroupResponse
forall x.
CreateReportGroupResponse -> Rep CreateReportGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateReportGroupResponse x -> CreateReportGroupResponse
$cfrom :: forall x.
CreateReportGroupResponse -> Rep CreateReportGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateReportGroupResponse' 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:
--
-- 'reportGroup', 'createReportGroupResponse_reportGroup' - Information about the report group that was created.
--
-- 'httpStatus', 'createReportGroupResponse_httpStatus' - The response's http status code.
newCreateReportGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateReportGroupResponse
newCreateReportGroupResponse :: Int -> CreateReportGroupResponse
newCreateReportGroupResponse Int
pHttpStatus_ =
  CreateReportGroupResponse' :: Maybe ReportGroup -> Int -> CreateReportGroupResponse
CreateReportGroupResponse'
    { $sel:reportGroup:CreateReportGroupResponse' :: Maybe ReportGroup
reportGroup =
        Maybe ReportGroup
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateReportGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the report group that was created.
createReportGroupResponse_reportGroup :: Lens.Lens' CreateReportGroupResponse (Prelude.Maybe ReportGroup)
createReportGroupResponse_reportGroup :: (Maybe ReportGroup -> f (Maybe ReportGroup))
-> CreateReportGroupResponse -> f CreateReportGroupResponse
createReportGroupResponse_reportGroup = (CreateReportGroupResponse -> Maybe ReportGroup)
-> (CreateReportGroupResponse
    -> Maybe ReportGroup -> CreateReportGroupResponse)
-> Lens
     CreateReportGroupResponse
     CreateReportGroupResponse
     (Maybe ReportGroup)
     (Maybe ReportGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReportGroupResponse' {Maybe ReportGroup
reportGroup :: Maybe ReportGroup
$sel:reportGroup:CreateReportGroupResponse' :: CreateReportGroupResponse -> Maybe ReportGroup
reportGroup} -> Maybe ReportGroup
reportGroup) (\s :: CreateReportGroupResponse
s@CreateReportGroupResponse' {} Maybe ReportGroup
a -> CreateReportGroupResponse
s {$sel:reportGroup:CreateReportGroupResponse' :: Maybe ReportGroup
reportGroup = Maybe ReportGroup
a} :: CreateReportGroupResponse)

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

instance Prelude.NFData CreateReportGroupResponse