{-# 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.SMS.PutAppValidationConfiguration
-- 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 or updates a validation configuration for the specified
-- application.
module Amazonka.SMS.PutAppValidationConfiguration
  ( -- * Creating a Request
    PutAppValidationConfiguration (..),
    newPutAppValidationConfiguration,

    -- * Request Lenses
    putAppValidationConfiguration_serverGroupValidationConfigurations,
    putAppValidationConfiguration_appValidationConfigurations,
    putAppValidationConfiguration_appId,

    -- * Destructuring the Response
    PutAppValidationConfigurationResponse (..),
    newPutAppValidationConfigurationResponse,

    -- * Response Lenses
    putAppValidationConfigurationResponse_httpStatus,
  )
where

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
import Amazonka.SMS.Types

-- | /See:/ 'newPutAppValidationConfiguration' smart constructor.
data PutAppValidationConfiguration = PutAppValidationConfiguration'
  { -- | The configuration for instance validation.
    PutAppValidationConfiguration
-> Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations :: Prelude.Maybe [ServerGroupValidationConfiguration],
    -- | The configuration for application validation.
    PutAppValidationConfiguration -> Maybe [AppValidationConfiguration]
appValidationConfigurations :: Prelude.Maybe [AppValidationConfiguration],
    -- | The ID of the application.
    PutAppValidationConfiguration -> Text
appId :: Prelude.Text
  }
  deriving (PutAppValidationConfiguration
-> PutAppValidationConfiguration -> Bool
(PutAppValidationConfiguration
 -> PutAppValidationConfiguration -> Bool)
-> (PutAppValidationConfiguration
    -> PutAppValidationConfiguration -> Bool)
-> Eq PutAppValidationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutAppValidationConfiguration
-> PutAppValidationConfiguration -> Bool
$c/= :: PutAppValidationConfiguration
-> PutAppValidationConfiguration -> Bool
== :: PutAppValidationConfiguration
-> PutAppValidationConfiguration -> Bool
$c== :: PutAppValidationConfiguration
-> PutAppValidationConfiguration -> Bool
Prelude.Eq, ReadPrec [PutAppValidationConfiguration]
ReadPrec PutAppValidationConfiguration
Int -> ReadS PutAppValidationConfiguration
ReadS [PutAppValidationConfiguration]
(Int -> ReadS PutAppValidationConfiguration)
-> ReadS [PutAppValidationConfiguration]
-> ReadPrec PutAppValidationConfiguration
-> ReadPrec [PutAppValidationConfiguration]
-> Read PutAppValidationConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutAppValidationConfiguration]
$creadListPrec :: ReadPrec [PutAppValidationConfiguration]
readPrec :: ReadPrec PutAppValidationConfiguration
$creadPrec :: ReadPrec PutAppValidationConfiguration
readList :: ReadS [PutAppValidationConfiguration]
$creadList :: ReadS [PutAppValidationConfiguration]
readsPrec :: Int -> ReadS PutAppValidationConfiguration
$creadsPrec :: Int -> ReadS PutAppValidationConfiguration
Prelude.Read, Int -> PutAppValidationConfiguration -> ShowS
[PutAppValidationConfiguration] -> ShowS
PutAppValidationConfiguration -> String
(Int -> PutAppValidationConfiguration -> ShowS)
-> (PutAppValidationConfiguration -> String)
-> ([PutAppValidationConfiguration] -> ShowS)
-> Show PutAppValidationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutAppValidationConfiguration] -> ShowS
$cshowList :: [PutAppValidationConfiguration] -> ShowS
show :: PutAppValidationConfiguration -> String
$cshow :: PutAppValidationConfiguration -> String
showsPrec :: Int -> PutAppValidationConfiguration -> ShowS
$cshowsPrec :: Int -> PutAppValidationConfiguration -> ShowS
Prelude.Show, (forall x.
 PutAppValidationConfiguration
 -> Rep PutAppValidationConfiguration x)
-> (forall x.
    Rep PutAppValidationConfiguration x
    -> PutAppValidationConfiguration)
-> Generic PutAppValidationConfiguration
forall x.
Rep PutAppValidationConfiguration x
-> PutAppValidationConfiguration
forall x.
PutAppValidationConfiguration
-> Rep PutAppValidationConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutAppValidationConfiguration x
-> PutAppValidationConfiguration
$cfrom :: forall x.
PutAppValidationConfiguration
-> Rep PutAppValidationConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'PutAppValidationConfiguration' 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:
--
-- 'serverGroupValidationConfigurations', 'putAppValidationConfiguration_serverGroupValidationConfigurations' - The configuration for instance validation.
--
-- 'appValidationConfigurations', 'putAppValidationConfiguration_appValidationConfigurations' - The configuration for application validation.
--
-- 'appId', 'putAppValidationConfiguration_appId' - The ID of the application.
newPutAppValidationConfiguration ::
  -- | 'appId'
  Prelude.Text ->
  PutAppValidationConfiguration
newPutAppValidationConfiguration :: Text -> PutAppValidationConfiguration
newPutAppValidationConfiguration Text
pAppId_ =
  PutAppValidationConfiguration' :: Maybe [ServerGroupValidationConfiguration]
-> Maybe [AppValidationConfiguration]
-> Text
-> PutAppValidationConfiguration
PutAppValidationConfiguration'
    { $sel:serverGroupValidationConfigurations:PutAppValidationConfiguration' :: Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations =
        Maybe [ServerGroupValidationConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:appValidationConfigurations:PutAppValidationConfiguration' :: Maybe [AppValidationConfiguration]
appValidationConfigurations =
        Maybe [AppValidationConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:appId:PutAppValidationConfiguration' :: Text
appId = Text
pAppId_
    }

-- | The configuration for instance validation.
putAppValidationConfiguration_serverGroupValidationConfigurations :: Lens.Lens' PutAppValidationConfiguration (Prelude.Maybe [ServerGroupValidationConfiguration])
putAppValidationConfiguration_serverGroupValidationConfigurations :: (Maybe [ServerGroupValidationConfiguration]
 -> f (Maybe [ServerGroupValidationConfiguration]))
-> PutAppValidationConfiguration -> f PutAppValidationConfiguration
putAppValidationConfiguration_serverGroupValidationConfigurations = (PutAppValidationConfiguration
 -> Maybe [ServerGroupValidationConfiguration])
-> (PutAppValidationConfiguration
    -> Maybe [ServerGroupValidationConfiguration]
    -> PutAppValidationConfiguration)
-> Lens
     PutAppValidationConfiguration
     PutAppValidationConfiguration
     (Maybe [ServerGroupValidationConfiguration])
     (Maybe [ServerGroupValidationConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppValidationConfiguration' {Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations :: Maybe [ServerGroupValidationConfiguration]
$sel:serverGroupValidationConfigurations:PutAppValidationConfiguration' :: PutAppValidationConfiguration
-> Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations} -> Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations) (\s :: PutAppValidationConfiguration
s@PutAppValidationConfiguration' {} Maybe [ServerGroupValidationConfiguration]
a -> PutAppValidationConfiguration
s {$sel:serverGroupValidationConfigurations:PutAppValidationConfiguration' :: Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations = Maybe [ServerGroupValidationConfiguration]
a} :: PutAppValidationConfiguration) ((Maybe [ServerGroupValidationConfiguration]
  -> f (Maybe [ServerGroupValidationConfiguration]))
 -> PutAppValidationConfiguration
 -> f PutAppValidationConfiguration)
-> ((Maybe [ServerGroupValidationConfiguration]
     -> f (Maybe [ServerGroupValidationConfiguration]))
    -> Maybe [ServerGroupValidationConfiguration]
    -> f (Maybe [ServerGroupValidationConfiguration]))
-> (Maybe [ServerGroupValidationConfiguration]
    -> f (Maybe [ServerGroupValidationConfiguration]))
-> PutAppValidationConfiguration
-> f PutAppValidationConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ServerGroupValidationConfiguration]
  [ServerGroupValidationConfiguration]
  [ServerGroupValidationConfiguration]
  [ServerGroupValidationConfiguration]
-> Iso
     (Maybe [ServerGroupValidationConfiguration])
     (Maybe [ServerGroupValidationConfiguration])
     (Maybe [ServerGroupValidationConfiguration])
     (Maybe [ServerGroupValidationConfiguration])
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
  [ServerGroupValidationConfiguration]
  [ServerGroupValidationConfiguration]
  [ServerGroupValidationConfiguration]
  [ServerGroupValidationConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The configuration for application validation.
putAppValidationConfiguration_appValidationConfigurations :: Lens.Lens' PutAppValidationConfiguration (Prelude.Maybe [AppValidationConfiguration])
putAppValidationConfiguration_appValidationConfigurations :: (Maybe [AppValidationConfiguration]
 -> f (Maybe [AppValidationConfiguration]))
-> PutAppValidationConfiguration -> f PutAppValidationConfiguration
putAppValidationConfiguration_appValidationConfigurations = (PutAppValidationConfiguration
 -> Maybe [AppValidationConfiguration])
-> (PutAppValidationConfiguration
    -> Maybe [AppValidationConfiguration]
    -> PutAppValidationConfiguration)
-> Lens
     PutAppValidationConfiguration
     PutAppValidationConfiguration
     (Maybe [AppValidationConfiguration])
     (Maybe [AppValidationConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppValidationConfiguration' {Maybe [AppValidationConfiguration]
appValidationConfigurations :: Maybe [AppValidationConfiguration]
$sel:appValidationConfigurations:PutAppValidationConfiguration' :: PutAppValidationConfiguration -> Maybe [AppValidationConfiguration]
appValidationConfigurations} -> Maybe [AppValidationConfiguration]
appValidationConfigurations) (\s :: PutAppValidationConfiguration
s@PutAppValidationConfiguration' {} Maybe [AppValidationConfiguration]
a -> PutAppValidationConfiguration
s {$sel:appValidationConfigurations:PutAppValidationConfiguration' :: Maybe [AppValidationConfiguration]
appValidationConfigurations = Maybe [AppValidationConfiguration]
a} :: PutAppValidationConfiguration) ((Maybe [AppValidationConfiguration]
  -> f (Maybe [AppValidationConfiguration]))
 -> PutAppValidationConfiguration
 -> f PutAppValidationConfiguration)
-> ((Maybe [AppValidationConfiguration]
     -> f (Maybe [AppValidationConfiguration]))
    -> Maybe [AppValidationConfiguration]
    -> f (Maybe [AppValidationConfiguration]))
-> (Maybe [AppValidationConfiguration]
    -> f (Maybe [AppValidationConfiguration]))
-> PutAppValidationConfiguration
-> f PutAppValidationConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AppValidationConfiguration]
  [AppValidationConfiguration]
  [AppValidationConfiguration]
  [AppValidationConfiguration]
-> Iso
     (Maybe [AppValidationConfiguration])
     (Maybe [AppValidationConfiguration])
     (Maybe [AppValidationConfiguration])
     (Maybe [AppValidationConfiguration])
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
  [AppValidationConfiguration]
  [AppValidationConfiguration]
  [AppValidationConfiguration]
  [AppValidationConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ID of the application.
putAppValidationConfiguration_appId :: Lens.Lens' PutAppValidationConfiguration Prelude.Text
putAppValidationConfiguration_appId :: (Text -> f Text)
-> PutAppValidationConfiguration -> f PutAppValidationConfiguration
putAppValidationConfiguration_appId = (PutAppValidationConfiguration -> Text)
-> (PutAppValidationConfiguration
    -> Text -> PutAppValidationConfiguration)
-> Lens
     PutAppValidationConfiguration
     PutAppValidationConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppValidationConfiguration' {Text
appId :: Text
$sel:appId:PutAppValidationConfiguration' :: PutAppValidationConfiguration -> Text
appId} -> Text
appId) (\s :: PutAppValidationConfiguration
s@PutAppValidationConfiguration' {} Text
a -> PutAppValidationConfiguration
s {$sel:appId:PutAppValidationConfiguration' :: Text
appId = Text
a} :: PutAppValidationConfiguration)

instance
  Core.AWSRequest
    PutAppValidationConfiguration
  where
  type
    AWSResponse PutAppValidationConfiguration =
      PutAppValidationConfigurationResponse
  request :: PutAppValidationConfiguration
-> Request PutAppValidationConfiguration
request = Service
-> PutAppValidationConfiguration
-> Request PutAppValidationConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy PutAppValidationConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutAppValidationConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse PutAppValidationConfiguration))
-> Logger
-> Service
-> Proxy PutAppValidationConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutAppValidationConfiguration)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> PutAppValidationConfigurationResponse
PutAppValidationConfigurationResponse'
            (Int -> PutAppValidationConfigurationResponse)
-> Either String Int
-> Either String PutAppValidationConfigurationResponse
forall (f :: * -> *) a b. Functor 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
    PutAppValidationConfiguration

instance Prelude.NFData PutAppValidationConfiguration

instance Core.ToHeaders PutAppValidationConfiguration where
  toHeaders :: PutAppValidationConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> PutAppValidationConfiguration -> 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
"AWSServerMigrationService_V2016_10_24.PutAppValidationConfiguration" ::
                          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 PutAppValidationConfiguration where
  toJSON :: PutAppValidationConfiguration -> Value
toJSON PutAppValidationConfiguration' {Maybe [AppValidationConfiguration]
Maybe [ServerGroupValidationConfiguration]
Text
appId :: Text
appValidationConfigurations :: Maybe [AppValidationConfiguration]
serverGroupValidationConfigurations :: Maybe [ServerGroupValidationConfiguration]
$sel:appId:PutAppValidationConfiguration' :: PutAppValidationConfiguration -> Text
$sel:appValidationConfigurations:PutAppValidationConfiguration' :: PutAppValidationConfiguration -> Maybe [AppValidationConfiguration]
$sel:serverGroupValidationConfigurations:PutAppValidationConfiguration' :: PutAppValidationConfiguration
-> Maybe [ServerGroupValidationConfiguration]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"serverGroupValidationConfigurations" Text -> [ServerGroupValidationConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([ServerGroupValidationConfiguration] -> Pair)
-> Maybe [ServerGroupValidationConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ServerGroupValidationConfiguration]
serverGroupValidationConfigurations,
            (Text
"appValidationConfigurations" Text -> [AppValidationConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([AppValidationConfiguration] -> Pair)
-> Maybe [AppValidationConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AppValidationConfiguration]
appValidationConfigurations,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"appId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
appId)
          ]
      )

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

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

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

-- |
-- Create a value of 'PutAppValidationConfigurationResponse' 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:
--
-- 'httpStatus', 'putAppValidationConfigurationResponse_httpStatus' - The response's http status code.
newPutAppValidationConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutAppValidationConfigurationResponse
newPutAppValidationConfigurationResponse :: Int -> PutAppValidationConfigurationResponse
newPutAppValidationConfigurationResponse Int
pHttpStatus_ =
  PutAppValidationConfigurationResponse' :: Int -> PutAppValidationConfigurationResponse
PutAppValidationConfigurationResponse'
    { $sel:httpStatus:PutAppValidationConfigurationResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance
  Prelude.NFData
    PutAppValidationConfigurationResponse