{-# 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 #-}
module Amazonka.CloudDirectory.AttachTypedLink
(
AttachTypedLink (..),
newAttachTypedLink,
attachTypedLink_directoryArn,
attachTypedLink_sourceObjectReference,
attachTypedLink_targetObjectReference,
attachTypedLink_typedLinkFacet,
attachTypedLink_attributes,
AttachTypedLinkResponse (..),
newAttachTypedLinkResponse,
attachTypedLinkResponse_typedLinkSpecifier,
attachTypedLinkResponse_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
data AttachTypedLink = AttachTypedLink'
{
AttachTypedLink -> Text
directoryArn :: Prelude.Text,
AttachTypedLink -> ObjectReference
sourceObjectReference :: ObjectReference,
AttachTypedLink -> ObjectReference
targetObjectReference :: ObjectReference,
AttachTypedLink -> TypedLinkSchemaAndFacetName
typedLinkFacet :: TypedLinkSchemaAndFacetName,
AttachTypedLink -> [AttributeNameAndValue]
attributes :: [AttributeNameAndValue]
}
deriving (AttachTypedLink -> AttachTypedLink -> Bool
(AttachTypedLink -> AttachTypedLink -> Bool)
-> (AttachTypedLink -> AttachTypedLink -> Bool)
-> Eq AttachTypedLink
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttachTypedLink -> AttachTypedLink -> Bool
$c/= :: AttachTypedLink -> AttachTypedLink -> Bool
== :: AttachTypedLink -> AttachTypedLink -> Bool
$c== :: AttachTypedLink -> AttachTypedLink -> Bool
Prelude.Eq, ReadPrec [AttachTypedLink]
ReadPrec AttachTypedLink
Int -> ReadS AttachTypedLink
ReadS [AttachTypedLink]
(Int -> ReadS AttachTypedLink)
-> ReadS [AttachTypedLink]
-> ReadPrec AttachTypedLink
-> ReadPrec [AttachTypedLink]
-> Read AttachTypedLink
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AttachTypedLink]
$creadListPrec :: ReadPrec [AttachTypedLink]
readPrec :: ReadPrec AttachTypedLink
$creadPrec :: ReadPrec AttachTypedLink
readList :: ReadS [AttachTypedLink]
$creadList :: ReadS [AttachTypedLink]
readsPrec :: Int -> ReadS AttachTypedLink
$creadsPrec :: Int -> ReadS AttachTypedLink
Prelude.Read, Int -> AttachTypedLink -> ShowS
[AttachTypedLink] -> ShowS
AttachTypedLink -> String
(Int -> AttachTypedLink -> ShowS)
-> (AttachTypedLink -> String)
-> ([AttachTypedLink] -> ShowS)
-> Show AttachTypedLink
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AttachTypedLink] -> ShowS
$cshowList :: [AttachTypedLink] -> ShowS
show :: AttachTypedLink -> String
$cshow :: AttachTypedLink -> String
showsPrec :: Int -> AttachTypedLink -> ShowS
$cshowsPrec :: Int -> AttachTypedLink -> ShowS
Prelude.Show, (forall x. AttachTypedLink -> Rep AttachTypedLink x)
-> (forall x. Rep AttachTypedLink x -> AttachTypedLink)
-> Generic AttachTypedLink
forall x. Rep AttachTypedLink x -> AttachTypedLink
forall x. AttachTypedLink -> Rep AttachTypedLink x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AttachTypedLink x -> AttachTypedLink
$cfrom :: forall x. AttachTypedLink -> Rep AttachTypedLink x
Prelude.Generic)
newAttachTypedLink ::
Prelude.Text ->
ObjectReference ->
ObjectReference ->
TypedLinkSchemaAndFacetName ->
AttachTypedLink
newAttachTypedLink :: Text
-> ObjectReference
-> ObjectReference
-> TypedLinkSchemaAndFacetName
-> AttachTypedLink
newAttachTypedLink
Text
pDirectoryArn_
ObjectReference
pSourceObjectReference_
ObjectReference
pTargetObjectReference_
TypedLinkSchemaAndFacetName
pTypedLinkFacet_ =
AttachTypedLink' :: Text
-> ObjectReference
-> ObjectReference
-> TypedLinkSchemaAndFacetName
-> [AttributeNameAndValue]
-> AttachTypedLink
AttachTypedLink'
{ $sel:directoryArn:AttachTypedLink' :: Text
directoryArn = Text
pDirectoryArn_,
$sel:sourceObjectReference:AttachTypedLink' :: ObjectReference
sourceObjectReference = ObjectReference
pSourceObjectReference_,
$sel:targetObjectReference:AttachTypedLink' :: ObjectReference
targetObjectReference = ObjectReference
pTargetObjectReference_,
$sel:typedLinkFacet:AttachTypedLink' :: TypedLinkSchemaAndFacetName
typedLinkFacet = TypedLinkSchemaAndFacetName
pTypedLinkFacet_,
$sel:attributes:AttachTypedLink' :: [AttributeNameAndValue]
attributes = [AttributeNameAndValue]
forall a. Monoid a => a
Prelude.mempty
}
attachTypedLink_directoryArn :: Lens.Lens' AttachTypedLink Prelude.Text
attachTypedLink_directoryArn :: (Text -> f Text) -> AttachTypedLink -> f AttachTypedLink
attachTypedLink_directoryArn = (AttachTypedLink -> Text)
-> (AttachTypedLink -> Text -> AttachTypedLink)
-> Lens AttachTypedLink AttachTypedLink Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLink' {Text
directoryArn :: Text
$sel:directoryArn:AttachTypedLink' :: AttachTypedLink -> Text
directoryArn} -> Text
directoryArn) (\s :: AttachTypedLink
s@AttachTypedLink' {} Text
a -> AttachTypedLink
s {$sel:directoryArn:AttachTypedLink' :: Text
directoryArn = Text
a} :: AttachTypedLink)
attachTypedLink_sourceObjectReference :: Lens.Lens' AttachTypedLink ObjectReference
attachTypedLink_sourceObjectReference :: (ObjectReference -> f ObjectReference)
-> AttachTypedLink -> f AttachTypedLink
attachTypedLink_sourceObjectReference = (AttachTypedLink -> ObjectReference)
-> (AttachTypedLink -> ObjectReference -> AttachTypedLink)
-> Lens
AttachTypedLink AttachTypedLink ObjectReference ObjectReference
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLink' {ObjectReference
sourceObjectReference :: ObjectReference
$sel:sourceObjectReference:AttachTypedLink' :: AttachTypedLink -> ObjectReference
sourceObjectReference} -> ObjectReference
sourceObjectReference) (\s :: AttachTypedLink
s@AttachTypedLink' {} ObjectReference
a -> AttachTypedLink
s {$sel:sourceObjectReference:AttachTypedLink' :: ObjectReference
sourceObjectReference = ObjectReference
a} :: AttachTypedLink)
attachTypedLink_targetObjectReference :: Lens.Lens' AttachTypedLink ObjectReference
attachTypedLink_targetObjectReference :: (ObjectReference -> f ObjectReference)
-> AttachTypedLink -> f AttachTypedLink
attachTypedLink_targetObjectReference = (AttachTypedLink -> ObjectReference)
-> (AttachTypedLink -> ObjectReference -> AttachTypedLink)
-> Lens
AttachTypedLink AttachTypedLink ObjectReference ObjectReference
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLink' {ObjectReference
targetObjectReference :: ObjectReference
$sel:targetObjectReference:AttachTypedLink' :: AttachTypedLink -> ObjectReference
targetObjectReference} -> ObjectReference
targetObjectReference) (\s :: AttachTypedLink
s@AttachTypedLink' {} ObjectReference
a -> AttachTypedLink
s {$sel:targetObjectReference:AttachTypedLink' :: ObjectReference
targetObjectReference = ObjectReference
a} :: AttachTypedLink)
attachTypedLink_typedLinkFacet :: Lens.Lens' AttachTypedLink TypedLinkSchemaAndFacetName
attachTypedLink_typedLinkFacet :: (TypedLinkSchemaAndFacetName -> f TypedLinkSchemaAndFacetName)
-> AttachTypedLink -> f AttachTypedLink
attachTypedLink_typedLinkFacet = (AttachTypedLink -> TypedLinkSchemaAndFacetName)
-> (AttachTypedLink
-> TypedLinkSchemaAndFacetName -> AttachTypedLink)
-> Lens
AttachTypedLink
AttachTypedLink
TypedLinkSchemaAndFacetName
TypedLinkSchemaAndFacetName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLink' {TypedLinkSchemaAndFacetName
typedLinkFacet :: TypedLinkSchemaAndFacetName
$sel:typedLinkFacet:AttachTypedLink' :: AttachTypedLink -> TypedLinkSchemaAndFacetName
typedLinkFacet} -> TypedLinkSchemaAndFacetName
typedLinkFacet) (\s :: AttachTypedLink
s@AttachTypedLink' {} TypedLinkSchemaAndFacetName
a -> AttachTypedLink
s {$sel:typedLinkFacet:AttachTypedLink' :: TypedLinkSchemaAndFacetName
typedLinkFacet = TypedLinkSchemaAndFacetName
a} :: AttachTypedLink)
attachTypedLink_attributes :: Lens.Lens' AttachTypedLink [AttributeNameAndValue]
attachTypedLink_attributes :: ([AttributeNameAndValue] -> f [AttributeNameAndValue])
-> AttachTypedLink -> f AttachTypedLink
attachTypedLink_attributes = (AttachTypedLink -> [AttributeNameAndValue])
-> (AttachTypedLink -> [AttributeNameAndValue] -> AttachTypedLink)
-> Lens
AttachTypedLink
AttachTypedLink
[AttributeNameAndValue]
[AttributeNameAndValue]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLink' {[AttributeNameAndValue]
attributes :: [AttributeNameAndValue]
$sel:attributes:AttachTypedLink' :: AttachTypedLink -> [AttributeNameAndValue]
attributes} -> [AttributeNameAndValue]
attributes) (\s :: AttachTypedLink
s@AttachTypedLink' {} [AttributeNameAndValue]
a -> AttachTypedLink
s {$sel:attributes:AttachTypedLink' :: [AttributeNameAndValue]
attributes = [AttributeNameAndValue]
a} :: AttachTypedLink) (([AttributeNameAndValue] -> f [AttributeNameAndValue])
-> AttachTypedLink -> f AttachTypedLink)
-> (([AttributeNameAndValue] -> f [AttributeNameAndValue])
-> [AttributeNameAndValue] -> f [AttributeNameAndValue])
-> ([AttributeNameAndValue] -> f [AttributeNameAndValue])
-> AttachTypedLink
-> f AttachTypedLink
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AttributeNameAndValue] -> f [AttributeNameAndValue])
-> [AttributeNameAndValue] -> f [AttributeNameAndValue]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest AttachTypedLink where
type
AWSResponse AttachTypedLink =
AttachTypedLinkResponse
request :: AttachTypedLink -> Request AttachTypedLink
request = Service -> AttachTypedLink -> Request AttachTypedLink
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AttachTypedLink
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse AttachTypedLink)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse AttachTypedLink))
-> Logger
-> Service
-> Proxy AttachTypedLink
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse AttachTypedLink)))
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 TypedLinkSpecifier -> Int -> AttachTypedLinkResponse
AttachTypedLinkResponse'
(Maybe TypedLinkSpecifier -> Int -> AttachTypedLinkResponse)
-> Either String (Maybe TypedLinkSpecifier)
-> Either String (Int -> AttachTypedLinkResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe TypedLinkSpecifier)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TypedLinkSpecifier")
Either String (Int -> AttachTypedLinkResponse)
-> Either String Int -> Either String AttachTypedLinkResponse
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 AttachTypedLink
instance Prelude.NFData AttachTypedLink
instance Core.ToHeaders AttachTypedLink where
toHeaders :: AttachTypedLink -> ResponseHeaders
toHeaders AttachTypedLink' {[AttributeNameAndValue]
Text
ObjectReference
TypedLinkSchemaAndFacetName
attributes :: [AttributeNameAndValue]
typedLinkFacet :: TypedLinkSchemaAndFacetName
targetObjectReference :: ObjectReference
sourceObjectReference :: ObjectReference
directoryArn :: Text
$sel:attributes:AttachTypedLink' :: AttachTypedLink -> [AttributeNameAndValue]
$sel:typedLinkFacet:AttachTypedLink' :: AttachTypedLink -> TypedLinkSchemaAndFacetName
$sel:targetObjectReference:AttachTypedLink' :: AttachTypedLink -> ObjectReference
$sel:sourceObjectReference:AttachTypedLink' :: AttachTypedLink -> ObjectReference
$sel:directoryArn:AttachTypedLink' :: AttachTypedLink -> 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
directoryArn]
instance Core.ToJSON AttachTypedLink where
toJSON :: AttachTypedLink -> Value
toJSON AttachTypedLink' {[AttributeNameAndValue]
Text
ObjectReference
TypedLinkSchemaAndFacetName
attributes :: [AttributeNameAndValue]
typedLinkFacet :: TypedLinkSchemaAndFacetName
targetObjectReference :: ObjectReference
sourceObjectReference :: ObjectReference
directoryArn :: Text
$sel:attributes:AttachTypedLink' :: AttachTypedLink -> [AttributeNameAndValue]
$sel:typedLinkFacet:AttachTypedLink' :: AttachTypedLink -> TypedLinkSchemaAndFacetName
$sel:targetObjectReference:AttachTypedLink' :: AttachTypedLink -> ObjectReference
$sel:sourceObjectReference:AttachTypedLink' :: AttachTypedLink -> ObjectReference
$sel:directoryArn:AttachTypedLink' :: AttachTypedLink -> 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
"SourceObjectReference"
Text -> ObjectReference -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ObjectReference
sourceObjectReference
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"TargetObjectReference"
Text -> ObjectReference -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ObjectReference
targetObjectReference
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"TypedLinkFacet" Text -> TypedLinkSchemaAndFacetName -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= TypedLinkSchemaAndFacetName
typedLinkFacet),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Attributes" Text -> [AttributeNameAndValue] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [AttributeNameAndValue]
attributes)
]
)
instance Core.ToPath AttachTypedLink where
toPath :: AttachTypedLink -> ByteString
toPath =
ByteString -> AttachTypedLink -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/amazonclouddirectory/2017-01-11/typedlink/attach"
instance Core.ToQuery AttachTypedLink where
toQuery :: AttachTypedLink -> QueryString
toQuery = QueryString -> AttachTypedLink -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AttachTypedLinkResponse = AttachTypedLinkResponse'
{
AttachTypedLinkResponse -> Maybe TypedLinkSpecifier
typedLinkSpecifier :: Prelude.Maybe TypedLinkSpecifier,
AttachTypedLinkResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool
(AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool)
-> (AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool)
-> Eq AttachTypedLinkResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool
$c/= :: AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool
== :: AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool
$c== :: AttachTypedLinkResponse -> AttachTypedLinkResponse -> Bool
Prelude.Eq, ReadPrec [AttachTypedLinkResponse]
ReadPrec AttachTypedLinkResponse
Int -> ReadS AttachTypedLinkResponse
ReadS [AttachTypedLinkResponse]
(Int -> ReadS AttachTypedLinkResponse)
-> ReadS [AttachTypedLinkResponse]
-> ReadPrec AttachTypedLinkResponse
-> ReadPrec [AttachTypedLinkResponse]
-> Read AttachTypedLinkResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AttachTypedLinkResponse]
$creadListPrec :: ReadPrec [AttachTypedLinkResponse]
readPrec :: ReadPrec AttachTypedLinkResponse
$creadPrec :: ReadPrec AttachTypedLinkResponse
readList :: ReadS [AttachTypedLinkResponse]
$creadList :: ReadS [AttachTypedLinkResponse]
readsPrec :: Int -> ReadS AttachTypedLinkResponse
$creadsPrec :: Int -> ReadS AttachTypedLinkResponse
Prelude.Read, Int -> AttachTypedLinkResponse -> ShowS
[AttachTypedLinkResponse] -> ShowS
AttachTypedLinkResponse -> String
(Int -> AttachTypedLinkResponse -> ShowS)
-> (AttachTypedLinkResponse -> String)
-> ([AttachTypedLinkResponse] -> ShowS)
-> Show AttachTypedLinkResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AttachTypedLinkResponse] -> ShowS
$cshowList :: [AttachTypedLinkResponse] -> ShowS
show :: AttachTypedLinkResponse -> String
$cshow :: AttachTypedLinkResponse -> String
showsPrec :: Int -> AttachTypedLinkResponse -> ShowS
$cshowsPrec :: Int -> AttachTypedLinkResponse -> ShowS
Prelude.Show, (forall x.
AttachTypedLinkResponse -> Rep AttachTypedLinkResponse x)
-> (forall x.
Rep AttachTypedLinkResponse x -> AttachTypedLinkResponse)
-> Generic AttachTypedLinkResponse
forall x. Rep AttachTypedLinkResponse x -> AttachTypedLinkResponse
forall x. AttachTypedLinkResponse -> Rep AttachTypedLinkResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AttachTypedLinkResponse x -> AttachTypedLinkResponse
$cfrom :: forall x. AttachTypedLinkResponse -> Rep AttachTypedLinkResponse x
Prelude.Generic)
newAttachTypedLinkResponse ::
Prelude.Int ->
AttachTypedLinkResponse
newAttachTypedLinkResponse :: Int -> AttachTypedLinkResponse
newAttachTypedLinkResponse Int
pHttpStatus_ =
AttachTypedLinkResponse' :: Maybe TypedLinkSpecifier -> Int -> AttachTypedLinkResponse
AttachTypedLinkResponse'
{ $sel:typedLinkSpecifier:AttachTypedLinkResponse' :: Maybe TypedLinkSpecifier
typedLinkSpecifier =
Maybe TypedLinkSpecifier
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AttachTypedLinkResponse' :: Int
httpStatus = Int
pHttpStatus_
}
attachTypedLinkResponse_typedLinkSpecifier :: Lens.Lens' AttachTypedLinkResponse (Prelude.Maybe TypedLinkSpecifier)
attachTypedLinkResponse_typedLinkSpecifier :: (Maybe TypedLinkSpecifier -> f (Maybe TypedLinkSpecifier))
-> AttachTypedLinkResponse -> f AttachTypedLinkResponse
attachTypedLinkResponse_typedLinkSpecifier = (AttachTypedLinkResponse -> Maybe TypedLinkSpecifier)
-> (AttachTypedLinkResponse
-> Maybe TypedLinkSpecifier -> AttachTypedLinkResponse)
-> Lens
AttachTypedLinkResponse
AttachTypedLinkResponse
(Maybe TypedLinkSpecifier)
(Maybe TypedLinkSpecifier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLinkResponse' {Maybe TypedLinkSpecifier
typedLinkSpecifier :: Maybe TypedLinkSpecifier
$sel:typedLinkSpecifier:AttachTypedLinkResponse' :: AttachTypedLinkResponse -> Maybe TypedLinkSpecifier
typedLinkSpecifier} -> Maybe TypedLinkSpecifier
typedLinkSpecifier) (\s :: AttachTypedLinkResponse
s@AttachTypedLinkResponse' {} Maybe TypedLinkSpecifier
a -> AttachTypedLinkResponse
s {$sel:typedLinkSpecifier:AttachTypedLinkResponse' :: Maybe TypedLinkSpecifier
typedLinkSpecifier = Maybe TypedLinkSpecifier
a} :: AttachTypedLinkResponse)
attachTypedLinkResponse_httpStatus :: Lens.Lens' AttachTypedLinkResponse Prelude.Int
attachTypedLinkResponse_httpStatus :: (Int -> f Int)
-> AttachTypedLinkResponse -> f AttachTypedLinkResponse
attachTypedLinkResponse_httpStatus = (AttachTypedLinkResponse -> Int)
-> (AttachTypedLinkResponse -> Int -> AttachTypedLinkResponse)
-> Lens AttachTypedLinkResponse AttachTypedLinkResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AttachTypedLinkResponse' {Int
httpStatus :: Int
$sel:httpStatus:AttachTypedLinkResponse' :: AttachTypedLinkResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AttachTypedLinkResponse
s@AttachTypedLinkResponse' {} Int
a -> AttachTypedLinkResponse
s {$sel:httpStatus:AttachTypedLinkResponse' :: Int
httpStatus = Int
a} :: AttachTypedLinkResponse)
instance Prelude.NFData AttachTypedLinkResponse