{-# 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.LicenseManager.UpdateLicenseSpecificationsForResource
-- 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)
--
-- Adds or removes the specified license configurations for the specified
-- Amazon Web Services resource.
--
-- You can update the license specifications of AMIs, instances, and hosts.
-- You cannot update the license specifications for launch templates and
-- CloudFormation templates, as they send license configurations to the
-- operation that creates the resource.
module Amazonka.LicenseManager.UpdateLicenseSpecificationsForResource
  ( -- * Creating a Request
    UpdateLicenseSpecificationsForResource (..),
    newUpdateLicenseSpecificationsForResource,

    -- * Request Lenses
    updateLicenseSpecificationsForResource_addLicenseSpecifications,
    updateLicenseSpecificationsForResource_removeLicenseSpecifications,
    updateLicenseSpecificationsForResource_resourceArn,

    -- * Destructuring the Response
    UpdateLicenseSpecificationsForResourceResponse (..),
    newUpdateLicenseSpecificationsForResourceResponse,

    -- * Response Lenses
    updateLicenseSpecificationsForResourceResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LicenseManager.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newUpdateLicenseSpecificationsForResource' smart constructor.
data UpdateLicenseSpecificationsForResource = UpdateLicenseSpecificationsForResource'
  { -- | ARNs of the license configurations to add.
    UpdateLicenseSpecificationsForResource
-> Maybe [LicenseSpecification]
addLicenseSpecifications :: Prelude.Maybe [LicenseSpecification],
    -- | ARNs of the license configurations to remove.
    UpdateLicenseSpecificationsForResource
-> Maybe [LicenseSpecification]
removeLicenseSpecifications :: Prelude.Maybe [LicenseSpecification],
    -- | Amazon Resource Name (ARN) of the Amazon Web Services resource.
    UpdateLicenseSpecificationsForResource -> Text
resourceArn :: Prelude.Text
  }
  deriving (UpdateLicenseSpecificationsForResource
-> UpdateLicenseSpecificationsForResource -> Bool
(UpdateLicenseSpecificationsForResource
 -> UpdateLicenseSpecificationsForResource -> Bool)
-> (UpdateLicenseSpecificationsForResource
    -> UpdateLicenseSpecificationsForResource -> Bool)
-> Eq UpdateLicenseSpecificationsForResource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLicenseSpecificationsForResource
-> UpdateLicenseSpecificationsForResource -> Bool
$c/= :: UpdateLicenseSpecificationsForResource
-> UpdateLicenseSpecificationsForResource -> Bool
== :: UpdateLicenseSpecificationsForResource
-> UpdateLicenseSpecificationsForResource -> Bool
$c== :: UpdateLicenseSpecificationsForResource
-> UpdateLicenseSpecificationsForResource -> Bool
Prelude.Eq, ReadPrec [UpdateLicenseSpecificationsForResource]
ReadPrec UpdateLicenseSpecificationsForResource
Int -> ReadS UpdateLicenseSpecificationsForResource
ReadS [UpdateLicenseSpecificationsForResource]
(Int -> ReadS UpdateLicenseSpecificationsForResource)
-> ReadS [UpdateLicenseSpecificationsForResource]
-> ReadPrec UpdateLicenseSpecificationsForResource
-> ReadPrec [UpdateLicenseSpecificationsForResource]
-> Read UpdateLicenseSpecificationsForResource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLicenseSpecificationsForResource]
$creadListPrec :: ReadPrec [UpdateLicenseSpecificationsForResource]
readPrec :: ReadPrec UpdateLicenseSpecificationsForResource
$creadPrec :: ReadPrec UpdateLicenseSpecificationsForResource
readList :: ReadS [UpdateLicenseSpecificationsForResource]
$creadList :: ReadS [UpdateLicenseSpecificationsForResource]
readsPrec :: Int -> ReadS UpdateLicenseSpecificationsForResource
$creadsPrec :: Int -> ReadS UpdateLicenseSpecificationsForResource
Prelude.Read, Int -> UpdateLicenseSpecificationsForResource -> ShowS
[UpdateLicenseSpecificationsForResource] -> ShowS
UpdateLicenseSpecificationsForResource -> String
(Int -> UpdateLicenseSpecificationsForResource -> ShowS)
-> (UpdateLicenseSpecificationsForResource -> String)
-> ([UpdateLicenseSpecificationsForResource] -> ShowS)
-> Show UpdateLicenseSpecificationsForResource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLicenseSpecificationsForResource] -> ShowS
$cshowList :: [UpdateLicenseSpecificationsForResource] -> ShowS
show :: UpdateLicenseSpecificationsForResource -> String
$cshow :: UpdateLicenseSpecificationsForResource -> String
showsPrec :: Int -> UpdateLicenseSpecificationsForResource -> ShowS
$cshowsPrec :: Int -> UpdateLicenseSpecificationsForResource -> ShowS
Prelude.Show, (forall x.
 UpdateLicenseSpecificationsForResource
 -> Rep UpdateLicenseSpecificationsForResource x)
-> (forall x.
    Rep UpdateLicenseSpecificationsForResource x
    -> UpdateLicenseSpecificationsForResource)
-> Generic UpdateLicenseSpecificationsForResource
forall x.
Rep UpdateLicenseSpecificationsForResource x
-> UpdateLicenseSpecificationsForResource
forall x.
UpdateLicenseSpecificationsForResource
-> Rep UpdateLicenseSpecificationsForResource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLicenseSpecificationsForResource x
-> UpdateLicenseSpecificationsForResource
$cfrom :: forall x.
UpdateLicenseSpecificationsForResource
-> Rep UpdateLicenseSpecificationsForResource x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLicenseSpecificationsForResource' 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:
--
-- 'addLicenseSpecifications', 'updateLicenseSpecificationsForResource_addLicenseSpecifications' - ARNs of the license configurations to add.
--
-- 'removeLicenseSpecifications', 'updateLicenseSpecificationsForResource_removeLicenseSpecifications' - ARNs of the license configurations to remove.
--
-- 'resourceArn', 'updateLicenseSpecificationsForResource_resourceArn' - Amazon Resource Name (ARN) of the Amazon Web Services resource.
newUpdateLicenseSpecificationsForResource ::
  -- | 'resourceArn'
  Prelude.Text ->
  UpdateLicenseSpecificationsForResource
newUpdateLicenseSpecificationsForResource :: Text -> UpdateLicenseSpecificationsForResource
newUpdateLicenseSpecificationsForResource
  Text
pResourceArn_ =
    UpdateLicenseSpecificationsForResource' :: Maybe [LicenseSpecification]
-> Maybe [LicenseSpecification]
-> Text
-> UpdateLicenseSpecificationsForResource
UpdateLicenseSpecificationsForResource'
      { $sel:addLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: Maybe [LicenseSpecification]
addLicenseSpecifications =
          Maybe [LicenseSpecification]
forall a. Maybe a
Prelude.Nothing,
        $sel:removeLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: Maybe [LicenseSpecification]
removeLicenseSpecifications =
          Maybe [LicenseSpecification]
forall a. Maybe a
Prelude.Nothing,
        $sel:resourceArn:UpdateLicenseSpecificationsForResource' :: Text
resourceArn = Text
pResourceArn_
      }

-- | ARNs of the license configurations to add.
updateLicenseSpecificationsForResource_addLicenseSpecifications :: Lens.Lens' UpdateLicenseSpecificationsForResource (Prelude.Maybe [LicenseSpecification])
updateLicenseSpecificationsForResource_addLicenseSpecifications :: (Maybe [LicenseSpecification] -> f (Maybe [LicenseSpecification]))
-> UpdateLicenseSpecificationsForResource
-> f UpdateLicenseSpecificationsForResource
updateLicenseSpecificationsForResource_addLicenseSpecifications = (UpdateLicenseSpecificationsForResource
 -> Maybe [LicenseSpecification])
-> (UpdateLicenseSpecificationsForResource
    -> Maybe [LicenseSpecification]
    -> UpdateLicenseSpecificationsForResource)
-> Lens
     UpdateLicenseSpecificationsForResource
     UpdateLicenseSpecificationsForResource
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLicenseSpecificationsForResource' {Maybe [LicenseSpecification]
addLicenseSpecifications :: Maybe [LicenseSpecification]
$sel:addLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: UpdateLicenseSpecificationsForResource
-> Maybe [LicenseSpecification]
addLicenseSpecifications} -> Maybe [LicenseSpecification]
addLicenseSpecifications) (\s :: UpdateLicenseSpecificationsForResource
s@UpdateLicenseSpecificationsForResource' {} Maybe [LicenseSpecification]
a -> UpdateLicenseSpecificationsForResource
s {$sel:addLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: Maybe [LicenseSpecification]
addLicenseSpecifications = Maybe [LicenseSpecification]
a} :: UpdateLicenseSpecificationsForResource) ((Maybe [LicenseSpecification] -> f (Maybe [LicenseSpecification]))
 -> UpdateLicenseSpecificationsForResource
 -> f UpdateLicenseSpecificationsForResource)
-> ((Maybe [LicenseSpecification]
     -> f (Maybe [LicenseSpecification]))
    -> Maybe [LicenseSpecification]
    -> f (Maybe [LicenseSpecification]))
-> (Maybe [LicenseSpecification]
    -> f (Maybe [LicenseSpecification]))
-> UpdateLicenseSpecificationsForResource
-> f UpdateLicenseSpecificationsForResource
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
-> Iso
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
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
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | ARNs of the license configurations to remove.
updateLicenseSpecificationsForResource_removeLicenseSpecifications :: Lens.Lens' UpdateLicenseSpecificationsForResource (Prelude.Maybe [LicenseSpecification])
updateLicenseSpecificationsForResource_removeLicenseSpecifications :: (Maybe [LicenseSpecification] -> f (Maybe [LicenseSpecification]))
-> UpdateLicenseSpecificationsForResource
-> f UpdateLicenseSpecificationsForResource
updateLicenseSpecificationsForResource_removeLicenseSpecifications = (UpdateLicenseSpecificationsForResource
 -> Maybe [LicenseSpecification])
-> (UpdateLicenseSpecificationsForResource
    -> Maybe [LicenseSpecification]
    -> UpdateLicenseSpecificationsForResource)
-> Lens
     UpdateLicenseSpecificationsForResource
     UpdateLicenseSpecificationsForResource
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLicenseSpecificationsForResource' {Maybe [LicenseSpecification]
removeLicenseSpecifications :: Maybe [LicenseSpecification]
$sel:removeLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: UpdateLicenseSpecificationsForResource
-> Maybe [LicenseSpecification]
removeLicenseSpecifications} -> Maybe [LicenseSpecification]
removeLicenseSpecifications) (\s :: UpdateLicenseSpecificationsForResource
s@UpdateLicenseSpecificationsForResource' {} Maybe [LicenseSpecification]
a -> UpdateLicenseSpecificationsForResource
s {$sel:removeLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: Maybe [LicenseSpecification]
removeLicenseSpecifications = Maybe [LicenseSpecification]
a} :: UpdateLicenseSpecificationsForResource) ((Maybe [LicenseSpecification] -> f (Maybe [LicenseSpecification]))
 -> UpdateLicenseSpecificationsForResource
 -> f UpdateLicenseSpecificationsForResource)
-> ((Maybe [LicenseSpecification]
     -> f (Maybe [LicenseSpecification]))
    -> Maybe [LicenseSpecification]
    -> f (Maybe [LicenseSpecification]))
-> (Maybe [LicenseSpecification]
    -> f (Maybe [LicenseSpecification]))
-> UpdateLicenseSpecificationsForResource
-> f UpdateLicenseSpecificationsForResource
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
-> Iso
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
     (Maybe [LicenseSpecification])
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
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
  [LicenseSpecification]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Amazon Resource Name (ARN) of the Amazon Web Services resource.
updateLicenseSpecificationsForResource_resourceArn :: Lens.Lens' UpdateLicenseSpecificationsForResource Prelude.Text
updateLicenseSpecificationsForResource_resourceArn :: (Text -> f Text)
-> UpdateLicenseSpecificationsForResource
-> f UpdateLicenseSpecificationsForResource
updateLicenseSpecificationsForResource_resourceArn = (UpdateLicenseSpecificationsForResource -> Text)
-> (UpdateLicenseSpecificationsForResource
    -> Text -> UpdateLicenseSpecificationsForResource)
-> Lens
     UpdateLicenseSpecificationsForResource
     UpdateLicenseSpecificationsForResource
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLicenseSpecificationsForResource' {Text
resourceArn :: Text
$sel:resourceArn:UpdateLicenseSpecificationsForResource' :: UpdateLicenseSpecificationsForResource -> Text
resourceArn} -> Text
resourceArn) (\s :: UpdateLicenseSpecificationsForResource
s@UpdateLicenseSpecificationsForResource' {} Text
a -> UpdateLicenseSpecificationsForResource
s {$sel:resourceArn:UpdateLicenseSpecificationsForResource' :: Text
resourceArn = Text
a} :: UpdateLicenseSpecificationsForResource)

instance
  Core.AWSRequest
    UpdateLicenseSpecificationsForResource
  where
  type
    AWSResponse
      UpdateLicenseSpecificationsForResource =
      UpdateLicenseSpecificationsForResourceResponse
  request :: UpdateLicenseSpecificationsForResource
-> Request UpdateLicenseSpecificationsForResource
request = Service
-> UpdateLicenseSpecificationsForResource
-> Request UpdateLicenseSpecificationsForResource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateLicenseSpecificationsForResource
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateLicenseSpecificationsForResource)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either
      String (AWSResponse UpdateLicenseSpecificationsForResource))
-> Logger
-> Service
-> Proxy UpdateLicenseSpecificationsForResource
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateLicenseSpecificationsForResource)))
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 -> UpdateLicenseSpecificationsForResourceResponse
UpdateLicenseSpecificationsForResourceResponse'
            (Int -> UpdateLicenseSpecificationsForResourceResponse)
-> Either String Int
-> Either String UpdateLicenseSpecificationsForResourceResponse
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
    UpdateLicenseSpecificationsForResource

instance
  Prelude.NFData
    UpdateLicenseSpecificationsForResource

instance
  Core.ToHeaders
    UpdateLicenseSpecificationsForResource
  where
  toHeaders :: UpdateLicenseSpecificationsForResource -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> UpdateLicenseSpecificationsForResource -> 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
"AWSLicenseManager.UpdateLicenseSpecificationsForResource" ::
                          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
    UpdateLicenseSpecificationsForResource
  where
  toJSON :: UpdateLicenseSpecificationsForResource -> Value
toJSON UpdateLicenseSpecificationsForResource' {Maybe [LicenseSpecification]
Text
resourceArn :: Text
removeLicenseSpecifications :: Maybe [LicenseSpecification]
addLicenseSpecifications :: Maybe [LicenseSpecification]
$sel:resourceArn:UpdateLicenseSpecificationsForResource' :: UpdateLicenseSpecificationsForResource -> Text
$sel:removeLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: UpdateLicenseSpecificationsForResource
-> Maybe [LicenseSpecification]
$sel:addLicenseSpecifications:UpdateLicenseSpecificationsForResource' :: UpdateLicenseSpecificationsForResource
-> Maybe [LicenseSpecification]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"AddLicenseSpecifications" Text -> [LicenseSpecification] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([LicenseSpecification] -> Pair)
-> Maybe [LicenseSpecification] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LicenseSpecification]
addLicenseSpecifications,
            (Text
"RemoveLicenseSpecifications" Text -> [LicenseSpecification] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([LicenseSpecification] -> Pair)
-> Maybe [LicenseSpecification] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LicenseSpecification]
removeLicenseSpecifications,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceArn)
          ]
      )

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

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

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

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

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

instance
  Prelude.NFData
    UpdateLicenseSpecificationsForResourceResponse