{-# 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.CloudDirectory.UpdateTypedLinkFacet
-- 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)
--
-- Updates a TypedLinkFacet. For more information, see
-- <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink Typed Links>.
module Amazonka.CloudDirectory.UpdateTypedLinkFacet
  ( -- * Creating a Request
    UpdateTypedLinkFacet (..),
    newUpdateTypedLinkFacet,

    -- * Request Lenses
    updateTypedLinkFacet_schemaArn,
    updateTypedLinkFacet_name,
    updateTypedLinkFacet_attributeUpdates,
    updateTypedLinkFacet_identityAttributeOrder,

    -- * Destructuring the Response
    UpdateTypedLinkFacetResponse (..),
    newUpdateTypedLinkFacetResponse,

    -- * Response Lenses
    updateTypedLinkFacetResponse_httpStatus,
  )
where

import Amazonka.CloudDirectory.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:/ 'newUpdateTypedLinkFacet' smart constructor.
data UpdateTypedLinkFacet = UpdateTypedLinkFacet'
  { -- | The Amazon Resource Name (ARN) that is associated with the schema. For
    -- more information, see arns.
    UpdateTypedLinkFacet -> Text
schemaArn :: Prelude.Text,
    -- | The unique name of the typed link facet.
    UpdateTypedLinkFacet -> Text
name :: Prelude.Text,
    -- | Attributes update structure.
    UpdateTypedLinkFacet -> [TypedLinkFacetAttributeUpdate]
attributeUpdates :: [TypedLinkFacetAttributeUpdate],
    -- | The order of identity attributes for the facet, from most significant to
    -- least significant. The ability to filter typed links considers the order
    -- that the attributes are defined on the typed link facet. When providing
    -- ranges to a typed link selection, any inexact ranges must be specified
    -- at the end. Any attributes that do not have a range specified are
    -- presumed to match the entire range. Filters are interpreted in the order
    -- of the attributes on the typed link facet, not the order in which they
    -- are supplied to any API calls. For more information about identity
    -- attributes, see
    -- <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink Typed Links>.
    UpdateTypedLinkFacet -> [Text]
identityAttributeOrder :: [Prelude.Text]
  }
  deriving (UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool
(UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool)
-> (UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool)
-> Eq UpdateTypedLinkFacet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool
$c/= :: UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool
== :: UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool
$c== :: UpdateTypedLinkFacet -> UpdateTypedLinkFacet -> Bool
Prelude.Eq, ReadPrec [UpdateTypedLinkFacet]
ReadPrec UpdateTypedLinkFacet
Int -> ReadS UpdateTypedLinkFacet
ReadS [UpdateTypedLinkFacet]
(Int -> ReadS UpdateTypedLinkFacet)
-> ReadS [UpdateTypedLinkFacet]
-> ReadPrec UpdateTypedLinkFacet
-> ReadPrec [UpdateTypedLinkFacet]
-> Read UpdateTypedLinkFacet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTypedLinkFacet]
$creadListPrec :: ReadPrec [UpdateTypedLinkFacet]
readPrec :: ReadPrec UpdateTypedLinkFacet
$creadPrec :: ReadPrec UpdateTypedLinkFacet
readList :: ReadS [UpdateTypedLinkFacet]
$creadList :: ReadS [UpdateTypedLinkFacet]
readsPrec :: Int -> ReadS UpdateTypedLinkFacet
$creadsPrec :: Int -> ReadS UpdateTypedLinkFacet
Prelude.Read, Int -> UpdateTypedLinkFacet -> ShowS
[UpdateTypedLinkFacet] -> ShowS
UpdateTypedLinkFacet -> String
(Int -> UpdateTypedLinkFacet -> ShowS)
-> (UpdateTypedLinkFacet -> String)
-> ([UpdateTypedLinkFacet] -> ShowS)
-> Show UpdateTypedLinkFacet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTypedLinkFacet] -> ShowS
$cshowList :: [UpdateTypedLinkFacet] -> ShowS
show :: UpdateTypedLinkFacet -> String
$cshow :: UpdateTypedLinkFacet -> String
showsPrec :: Int -> UpdateTypedLinkFacet -> ShowS
$cshowsPrec :: Int -> UpdateTypedLinkFacet -> ShowS
Prelude.Show, (forall x. UpdateTypedLinkFacet -> Rep UpdateTypedLinkFacet x)
-> (forall x. Rep UpdateTypedLinkFacet x -> UpdateTypedLinkFacet)
-> Generic UpdateTypedLinkFacet
forall x. Rep UpdateTypedLinkFacet x -> UpdateTypedLinkFacet
forall x. UpdateTypedLinkFacet -> Rep UpdateTypedLinkFacet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateTypedLinkFacet x -> UpdateTypedLinkFacet
$cfrom :: forall x. UpdateTypedLinkFacet -> Rep UpdateTypedLinkFacet x
Prelude.Generic)

-- |
-- Create a value of 'UpdateTypedLinkFacet' 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:
--
-- 'schemaArn', 'updateTypedLinkFacet_schemaArn' - The Amazon Resource Name (ARN) that is associated with the schema. For
-- more information, see arns.
--
-- 'name', 'updateTypedLinkFacet_name' - The unique name of the typed link facet.
--
-- 'attributeUpdates', 'updateTypedLinkFacet_attributeUpdates' - Attributes update structure.
--
-- 'identityAttributeOrder', 'updateTypedLinkFacet_identityAttributeOrder' - The order of identity attributes for the facet, from most significant to
-- least significant. The ability to filter typed links considers the order
-- that the attributes are defined on the typed link facet. When providing
-- ranges to a typed link selection, any inexact ranges must be specified
-- at the end. Any attributes that do not have a range specified are
-- presumed to match the entire range. Filters are interpreted in the order
-- of the attributes on the typed link facet, not the order in which they
-- are supplied to any API calls. For more information about identity
-- attributes, see
-- <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink Typed Links>.
newUpdateTypedLinkFacet ::
  -- | 'schemaArn'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  UpdateTypedLinkFacet
newUpdateTypedLinkFacet :: Text -> Text -> UpdateTypedLinkFacet
newUpdateTypedLinkFacet Text
pSchemaArn_ Text
pName_ =
  UpdateTypedLinkFacet' :: Text
-> Text
-> [TypedLinkFacetAttributeUpdate]
-> [Text]
-> UpdateTypedLinkFacet
UpdateTypedLinkFacet'
    { $sel:schemaArn:UpdateTypedLinkFacet' :: Text
schemaArn = Text
pSchemaArn_,
      $sel:name:UpdateTypedLinkFacet' :: Text
name = Text
pName_,
      $sel:attributeUpdates:UpdateTypedLinkFacet' :: [TypedLinkFacetAttributeUpdate]
attributeUpdates = [TypedLinkFacetAttributeUpdate]
forall a. Monoid a => a
Prelude.mempty,
      $sel:identityAttributeOrder:UpdateTypedLinkFacet' :: [Text]
identityAttributeOrder = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The Amazon Resource Name (ARN) that is associated with the schema. For
-- more information, see arns.
updateTypedLinkFacet_schemaArn :: Lens.Lens' UpdateTypedLinkFacet Prelude.Text
updateTypedLinkFacet_schemaArn :: (Text -> f Text) -> UpdateTypedLinkFacet -> f UpdateTypedLinkFacet
updateTypedLinkFacet_schemaArn = (UpdateTypedLinkFacet -> Text)
-> (UpdateTypedLinkFacet -> Text -> UpdateTypedLinkFacet)
-> Lens UpdateTypedLinkFacet UpdateTypedLinkFacet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTypedLinkFacet' {Text
schemaArn :: Text
$sel:schemaArn:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> Text
schemaArn} -> Text
schemaArn) (\s :: UpdateTypedLinkFacet
s@UpdateTypedLinkFacet' {} Text
a -> UpdateTypedLinkFacet
s {$sel:schemaArn:UpdateTypedLinkFacet' :: Text
schemaArn = Text
a} :: UpdateTypedLinkFacet)

-- | The unique name of the typed link facet.
updateTypedLinkFacet_name :: Lens.Lens' UpdateTypedLinkFacet Prelude.Text
updateTypedLinkFacet_name :: (Text -> f Text) -> UpdateTypedLinkFacet -> f UpdateTypedLinkFacet
updateTypedLinkFacet_name = (UpdateTypedLinkFacet -> Text)
-> (UpdateTypedLinkFacet -> Text -> UpdateTypedLinkFacet)
-> Lens UpdateTypedLinkFacet UpdateTypedLinkFacet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTypedLinkFacet' {Text
name :: Text
$sel:name:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> Text
name} -> Text
name) (\s :: UpdateTypedLinkFacet
s@UpdateTypedLinkFacet' {} Text
a -> UpdateTypedLinkFacet
s {$sel:name:UpdateTypedLinkFacet' :: Text
name = Text
a} :: UpdateTypedLinkFacet)

-- | Attributes update structure.
updateTypedLinkFacet_attributeUpdates :: Lens.Lens' UpdateTypedLinkFacet [TypedLinkFacetAttributeUpdate]
updateTypedLinkFacet_attributeUpdates :: ([TypedLinkFacetAttributeUpdate]
 -> f [TypedLinkFacetAttributeUpdate])
-> UpdateTypedLinkFacet -> f UpdateTypedLinkFacet
updateTypedLinkFacet_attributeUpdates = (UpdateTypedLinkFacet -> [TypedLinkFacetAttributeUpdate])
-> (UpdateTypedLinkFacet
    -> [TypedLinkFacetAttributeUpdate] -> UpdateTypedLinkFacet)
-> Lens
     UpdateTypedLinkFacet
     UpdateTypedLinkFacet
     [TypedLinkFacetAttributeUpdate]
     [TypedLinkFacetAttributeUpdate]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTypedLinkFacet' {[TypedLinkFacetAttributeUpdate]
attributeUpdates :: [TypedLinkFacetAttributeUpdate]
$sel:attributeUpdates:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> [TypedLinkFacetAttributeUpdate]
attributeUpdates} -> [TypedLinkFacetAttributeUpdate]
attributeUpdates) (\s :: UpdateTypedLinkFacet
s@UpdateTypedLinkFacet' {} [TypedLinkFacetAttributeUpdate]
a -> UpdateTypedLinkFacet
s {$sel:attributeUpdates:UpdateTypedLinkFacet' :: [TypedLinkFacetAttributeUpdate]
attributeUpdates = [TypedLinkFacetAttributeUpdate]
a} :: UpdateTypedLinkFacet) (([TypedLinkFacetAttributeUpdate]
  -> f [TypedLinkFacetAttributeUpdate])
 -> UpdateTypedLinkFacet -> f UpdateTypedLinkFacet)
-> (([TypedLinkFacetAttributeUpdate]
     -> f [TypedLinkFacetAttributeUpdate])
    -> [TypedLinkFacetAttributeUpdate]
    -> f [TypedLinkFacetAttributeUpdate])
-> ([TypedLinkFacetAttributeUpdate]
    -> f [TypedLinkFacetAttributeUpdate])
-> UpdateTypedLinkFacet
-> f UpdateTypedLinkFacet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TypedLinkFacetAttributeUpdate]
 -> f [TypedLinkFacetAttributeUpdate])
-> [TypedLinkFacetAttributeUpdate]
-> f [TypedLinkFacetAttributeUpdate]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The order of identity attributes for the facet, from most significant to
-- least significant. The ability to filter typed links considers the order
-- that the attributes are defined on the typed link facet. When providing
-- ranges to a typed link selection, any inexact ranges must be specified
-- at the end. Any attributes that do not have a range specified are
-- presumed to match the entire range. Filters are interpreted in the order
-- of the attributes on the typed link facet, not the order in which they
-- are supplied to any API calls. For more information about identity
-- attributes, see
-- <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink Typed Links>.
updateTypedLinkFacet_identityAttributeOrder :: Lens.Lens' UpdateTypedLinkFacet [Prelude.Text]
updateTypedLinkFacet_identityAttributeOrder :: ([Text] -> f [Text])
-> UpdateTypedLinkFacet -> f UpdateTypedLinkFacet
updateTypedLinkFacet_identityAttributeOrder = (UpdateTypedLinkFacet -> [Text])
-> (UpdateTypedLinkFacet -> [Text] -> UpdateTypedLinkFacet)
-> Lens UpdateTypedLinkFacet UpdateTypedLinkFacet [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTypedLinkFacet' {[Text]
identityAttributeOrder :: [Text]
$sel:identityAttributeOrder:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> [Text]
identityAttributeOrder} -> [Text]
identityAttributeOrder) (\s :: UpdateTypedLinkFacet
s@UpdateTypedLinkFacet' {} [Text]
a -> UpdateTypedLinkFacet
s {$sel:identityAttributeOrder:UpdateTypedLinkFacet' :: [Text]
identityAttributeOrder = [Text]
a} :: UpdateTypedLinkFacet) (([Text] -> f [Text])
 -> UpdateTypedLinkFacet -> f UpdateTypedLinkFacet)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> UpdateTypedLinkFacet
-> f UpdateTypedLinkFacet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData UpdateTypedLinkFacet

instance Core.ToHeaders UpdateTypedLinkFacet where
  toHeaders :: UpdateTypedLinkFacet -> ResponseHeaders
toHeaders UpdateTypedLinkFacet' {[Text]
[TypedLinkFacetAttributeUpdate]
Text
identityAttributeOrder :: [Text]
attributeUpdates :: [TypedLinkFacetAttributeUpdate]
name :: Text
schemaArn :: Text
$sel:identityAttributeOrder:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> [Text]
$sel:attributeUpdates:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> [TypedLinkFacetAttributeUpdate]
$sel:name:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> Text
$sel:schemaArn:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> Text
..} =
    [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [HeaderName
"x-amz-data-partition" HeaderName -> Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Text
schemaArn]

instance Core.ToJSON UpdateTypedLinkFacet where
  toJSON :: UpdateTypedLinkFacet -> Value
toJSON UpdateTypedLinkFacet' {[Text]
[TypedLinkFacetAttributeUpdate]
Text
identityAttributeOrder :: [Text]
attributeUpdates :: [TypedLinkFacetAttributeUpdate]
name :: Text
schemaArn :: Text
$sel:identityAttributeOrder:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> [Text]
$sel:attributeUpdates:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> [TypedLinkFacetAttributeUpdate]
$sel:name:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> Text
$sel:schemaArn:UpdateTypedLinkFacet' :: UpdateTypedLinkFacet -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ 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
"AttributeUpdates" Text -> [TypedLinkFacetAttributeUpdate] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [TypedLinkFacetAttributeUpdate]
attributeUpdates),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"IdentityAttributeOrder"
                  Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
identityAttributeOrder
              )
          ]
      )

instance Core.ToPath UpdateTypedLinkFacet where
  toPath :: UpdateTypedLinkFacet -> ByteString
toPath =
    ByteString -> UpdateTypedLinkFacet -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/amazonclouddirectory/2017-01-11/typedlink/facet"

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

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

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

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

instance Prelude.NFData UpdateTypedLinkFacetResponse