{-# 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.CodeCommit.GetMergeConflicts
(
GetMergeConflicts (..),
newGetMergeConflicts,
getMergeConflicts_conflictDetailLevel,
getMergeConflicts_nextToken,
getMergeConflicts_maxConflictFiles,
getMergeConflicts_conflictResolutionStrategy,
getMergeConflicts_repositoryName,
getMergeConflicts_destinationCommitSpecifier,
getMergeConflicts_sourceCommitSpecifier,
getMergeConflicts_mergeOption,
GetMergeConflictsResponse (..),
newGetMergeConflictsResponse,
getMergeConflictsResponse_baseCommitId,
getMergeConflictsResponse_nextToken,
getMergeConflictsResponse_httpStatus,
getMergeConflictsResponse_mergeable,
getMergeConflictsResponse_destinationCommitId,
getMergeConflictsResponse_sourceCommitId,
getMergeConflictsResponse_conflictMetadataList,
)
where
import Amazonka.CodeCommit.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 GetMergeConflicts = GetMergeConflicts'
{
GetMergeConflicts -> Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel :: Prelude.Maybe ConflictDetailLevelTypeEnum,
GetMergeConflicts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetMergeConflicts -> Maybe Int
maxConflictFiles :: Prelude.Maybe Prelude.Int,
GetMergeConflicts -> Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy :: Prelude.Maybe ConflictResolutionStrategyTypeEnum,
GetMergeConflicts -> Text
repositoryName :: Prelude.Text,
GetMergeConflicts -> Text
destinationCommitSpecifier :: Prelude.Text,
GetMergeConflicts -> Text
sourceCommitSpecifier :: Prelude.Text,
GetMergeConflicts -> MergeOptionTypeEnum
mergeOption :: MergeOptionTypeEnum
}
deriving (GetMergeConflicts -> GetMergeConflicts -> Bool
(GetMergeConflicts -> GetMergeConflicts -> Bool)
-> (GetMergeConflicts -> GetMergeConflicts -> Bool)
-> Eq GetMergeConflicts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMergeConflicts -> GetMergeConflicts -> Bool
$c/= :: GetMergeConflicts -> GetMergeConflicts -> Bool
== :: GetMergeConflicts -> GetMergeConflicts -> Bool
$c== :: GetMergeConflicts -> GetMergeConflicts -> Bool
Prelude.Eq, ReadPrec [GetMergeConflicts]
ReadPrec GetMergeConflicts
Int -> ReadS GetMergeConflicts
ReadS [GetMergeConflicts]
(Int -> ReadS GetMergeConflicts)
-> ReadS [GetMergeConflicts]
-> ReadPrec GetMergeConflicts
-> ReadPrec [GetMergeConflicts]
-> Read GetMergeConflicts
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMergeConflicts]
$creadListPrec :: ReadPrec [GetMergeConflicts]
readPrec :: ReadPrec GetMergeConflicts
$creadPrec :: ReadPrec GetMergeConflicts
readList :: ReadS [GetMergeConflicts]
$creadList :: ReadS [GetMergeConflicts]
readsPrec :: Int -> ReadS GetMergeConflicts
$creadsPrec :: Int -> ReadS GetMergeConflicts
Prelude.Read, Int -> GetMergeConflicts -> ShowS
[GetMergeConflicts] -> ShowS
GetMergeConflicts -> String
(Int -> GetMergeConflicts -> ShowS)
-> (GetMergeConflicts -> String)
-> ([GetMergeConflicts] -> ShowS)
-> Show GetMergeConflicts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMergeConflicts] -> ShowS
$cshowList :: [GetMergeConflicts] -> ShowS
show :: GetMergeConflicts -> String
$cshow :: GetMergeConflicts -> String
showsPrec :: Int -> GetMergeConflicts -> ShowS
$cshowsPrec :: Int -> GetMergeConflicts -> ShowS
Prelude.Show, (forall x. GetMergeConflicts -> Rep GetMergeConflicts x)
-> (forall x. Rep GetMergeConflicts x -> GetMergeConflicts)
-> Generic GetMergeConflicts
forall x. Rep GetMergeConflicts x -> GetMergeConflicts
forall x. GetMergeConflicts -> Rep GetMergeConflicts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMergeConflicts x -> GetMergeConflicts
$cfrom :: forall x. GetMergeConflicts -> Rep GetMergeConflicts x
Prelude.Generic)
newGetMergeConflicts ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
MergeOptionTypeEnum ->
GetMergeConflicts
newGetMergeConflicts :: Text -> Text -> Text -> MergeOptionTypeEnum -> GetMergeConflicts
newGetMergeConflicts
Text
pRepositoryName_
Text
pDestinationCommitSpecifier_
Text
pSourceCommitSpecifier_
MergeOptionTypeEnum
pMergeOption_ =
GetMergeConflicts' :: Maybe ConflictDetailLevelTypeEnum
-> Maybe Text
-> Maybe Int
-> Maybe ConflictResolutionStrategyTypeEnum
-> Text
-> Text
-> Text
-> MergeOptionTypeEnum
-> GetMergeConflicts
GetMergeConflicts'
{ $sel:conflictDetailLevel:GetMergeConflicts' :: Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel =
Maybe ConflictDetailLevelTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetMergeConflicts' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxConflictFiles:GetMergeConflicts' :: Maybe Int
maxConflictFiles = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:conflictResolutionStrategy:GetMergeConflicts' :: Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy = Maybe ConflictResolutionStrategyTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:GetMergeConflicts' :: Text
repositoryName = Text
pRepositoryName_,
$sel:destinationCommitSpecifier:GetMergeConflicts' :: Text
destinationCommitSpecifier =
Text
pDestinationCommitSpecifier_,
$sel:sourceCommitSpecifier:GetMergeConflicts' :: Text
sourceCommitSpecifier = Text
pSourceCommitSpecifier_,
$sel:mergeOption:GetMergeConflicts' :: MergeOptionTypeEnum
mergeOption = MergeOptionTypeEnum
pMergeOption_
}
getMergeConflicts_conflictDetailLevel :: Lens.Lens' GetMergeConflicts (Prelude.Maybe ConflictDetailLevelTypeEnum)
getMergeConflicts_conflictDetailLevel :: (Maybe ConflictDetailLevelTypeEnum
-> f (Maybe ConflictDetailLevelTypeEnum))
-> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_conflictDetailLevel = (GetMergeConflicts -> Maybe ConflictDetailLevelTypeEnum)
-> (GetMergeConflicts
-> Maybe ConflictDetailLevelTypeEnum -> GetMergeConflicts)
-> Lens
GetMergeConflicts
GetMergeConflicts
(Maybe ConflictDetailLevelTypeEnum)
(Maybe ConflictDetailLevelTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum
$sel:conflictDetailLevel:GetMergeConflicts' :: GetMergeConflicts -> Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel} -> Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Maybe ConflictDetailLevelTypeEnum
a -> GetMergeConflicts
s {$sel:conflictDetailLevel:GetMergeConflicts' :: Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel = Maybe ConflictDetailLevelTypeEnum
a} :: GetMergeConflicts)
getMergeConflicts_nextToken :: Lens.Lens' GetMergeConflicts (Prelude.Maybe Prelude.Text)
getMergeConflicts_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_nextToken = (GetMergeConflicts -> Maybe Text)
-> (GetMergeConflicts -> Maybe Text -> GetMergeConflicts)
-> Lens
GetMergeConflicts GetMergeConflicts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetMergeConflicts' :: GetMergeConflicts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Maybe Text
a -> GetMergeConflicts
s {$sel:nextToken:GetMergeConflicts' :: Maybe Text
nextToken = Maybe Text
a} :: GetMergeConflicts)
getMergeConflicts_maxConflictFiles :: Lens.Lens' GetMergeConflicts (Prelude.Maybe Prelude.Int)
getMergeConflicts_maxConflictFiles :: (Maybe Int -> f (Maybe Int))
-> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_maxConflictFiles = (GetMergeConflicts -> Maybe Int)
-> (GetMergeConflicts -> Maybe Int -> GetMergeConflicts)
-> Lens GetMergeConflicts GetMergeConflicts (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Maybe Int
maxConflictFiles :: Maybe Int
$sel:maxConflictFiles:GetMergeConflicts' :: GetMergeConflicts -> Maybe Int
maxConflictFiles} -> Maybe Int
maxConflictFiles) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Maybe Int
a -> GetMergeConflicts
s {$sel:maxConflictFiles:GetMergeConflicts' :: Maybe Int
maxConflictFiles = Maybe Int
a} :: GetMergeConflicts)
getMergeConflicts_conflictResolutionStrategy :: Lens.Lens' GetMergeConflicts (Prelude.Maybe ConflictResolutionStrategyTypeEnum)
getMergeConflicts_conflictResolutionStrategy :: (Maybe ConflictResolutionStrategyTypeEnum
-> f (Maybe ConflictResolutionStrategyTypeEnum))
-> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_conflictResolutionStrategy = (GetMergeConflicts -> Maybe ConflictResolutionStrategyTypeEnum)
-> (GetMergeConflicts
-> Maybe ConflictResolutionStrategyTypeEnum -> GetMergeConflicts)
-> Lens
GetMergeConflicts
GetMergeConflicts
(Maybe ConflictResolutionStrategyTypeEnum)
(Maybe ConflictResolutionStrategyTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum
$sel:conflictResolutionStrategy:GetMergeConflicts' :: GetMergeConflicts -> Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy} -> Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Maybe ConflictResolutionStrategyTypeEnum
a -> GetMergeConflicts
s {$sel:conflictResolutionStrategy:GetMergeConflicts' :: Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy = Maybe ConflictResolutionStrategyTypeEnum
a} :: GetMergeConflicts)
getMergeConflicts_repositoryName :: Lens.Lens' GetMergeConflicts Prelude.Text
getMergeConflicts_repositoryName :: (Text -> f Text) -> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_repositoryName = (GetMergeConflicts -> Text)
-> (GetMergeConflicts -> Text -> GetMergeConflicts)
-> Lens GetMergeConflicts GetMergeConflicts Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Text
repositoryName :: Text
$sel:repositoryName:GetMergeConflicts' :: GetMergeConflicts -> Text
repositoryName} -> Text
repositoryName) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Text
a -> GetMergeConflicts
s {$sel:repositoryName:GetMergeConflicts' :: Text
repositoryName = Text
a} :: GetMergeConflicts)
getMergeConflicts_destinationCommitSpecifier :: Lens.Lens' GetMergeConflicts Prelude.Text
getMergeConflicts_destinationCommitSpecifier :: (Text -> f Text) -> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_destinationCommitSpecifier = (GetMergeConflicts -> Text)
-> (GetMergeConflicts -> Text -> GetMergeConflicts)
-> Lens GetMergeConflicts GetMergeConflicts Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Text
destinationCommitSpecifier :: Text
$sel:destinationCommitSpecifier:GetMergeConflicts' :: GetMergeConflicts -> Text
destinationCommitSpecifier} -> Text
destinationCommitSpecifier) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Text
a -> GetMergeConflicts
s {$sel:destinationCommitSpecifier:GetMergeConflicts' :: Text
destinationCommitSpecifier = Text
a} :: GetMergeConflicts)
getMergeConflicts_sourceCommitSpecifier :: Lens.Lens' GetMergeConflicts Prelude.Text
getMergeConflicts_sourceCommitSpecifier :: (Text -> f Text) -> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_sourceCommitSpecifier = (GetMergeConflicts -> Text)
-> (GetMergeConflicts -> Text -> GetMergeConflicts)
-> Lens GetMergeConflicts GetMergeConflicts Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {Text
sourceCommitSpecifier :: Text
$sel:sourceCommitSpecifier:GetMergeConflicts' :: GetMergeConflicts -> Text
sourceCommitSpecifier} -> Text
sourceCommitSpecifier) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} Text
a -> GetMergeConflicts
s {$sel:sourceCommitSpecifier:GetMergeConflicts' :: Text
sourceCommitSpecifier = Text
a} :: GetMergeConflicts)
getMergeConflicts_mergeOption :: Lens.Lens' GetMergeConflicts MergeOptionTypeEnum
getMergeConflicts_mergeOption :: (MergeOptionTypeEnum -> f MergeOptionTypeEnum)
-> GetMergeConflicts -> f GetMergeConflicts
getMergeConflicts_mergeOption = (GetMergeConflicts -> MergeOptionTypeEnum)
-> (GetMergeConflicts -> MergeOptionTypeEnum -> GetMergeConflicts)
-> Lens
GetMergeConflicts
GetMergeConflicts
MergeOptionTypeEnum
MergeOptionTypeEnum
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflicts' {MergeOptionTypeEnum
mergeOption :: MergeOptionTypeEnum
$sel:mergeOption:GetMergeConflicts' :: GetMergeConflicts -> MergeOptionTypeEnum
mergeOption} -> MergeOptionTypeEnum
mergeOption) (\s :: GetMergeConflicts
s@GetMergeConflicts' {} MergeOptionTypeEnum
a -> GetMergeConflicts
s {$sel:mergeOption:GetMergeConflicts' :: MergeOptionTypeEnum
mergeOption = MergeOptionTypeEnum
a} :: GetMergeConflicts)
instance Core.AWSRequest GetMergeConflicts where
type
AWSResponse GetMergeConflicts =
GetMergeConflictsResponse
request :: GetMergeConflicts -> Request GetMergeConflicts
request = Service -> GetMergeConflicts -> Request GetMergeConflicts
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetMergeConflicts
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMergeConflicts)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetMergeConflicts))
-> Logger
-> Service
-> Proxy GetMergeConflicts
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMergeConflicts)))
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 Text
-> Maybe Text
-> Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse
GetMergeConflictsResponse'
(Maybe Text
-> Maybe Text
-> Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"baseCommitId")
Either
String
(Maybe Text
-> Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
Either
String
(Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse)
-> Either String Int
-> Either
String
(Bool
-> Text -> Text -> [ConflictMetadata] -> GetMergeConflictsResponse)
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))
Either
String
(Bool
-> Text -> Text -> [ConflictMetadata] -> GetMergeConflictsResponse)
-> Either String Bool
-> Either
String
(Text -> Text -> [ConflictMetadata] -> GetMergeConflictsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Bool
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"mergeable")
Either
String
(Text -> Text -> [ConflictMetadata] -> GetMergeConflictsResponse)
-> Either String Text
-> Either
String (Text -> [ConflictMetadata] -> GetMergeConflictsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"destinationCommitId")
Either
String (Text -> [ConflictMetadata] -> GetMergeConflictsResponse)
-> Either String Text
-> Either String ([ConflictMetadata] -> GetMergeConflictsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"sourceCommitId")
Either String ([ConflictMetadata] -> GetMergeConflictsResponse)
-> Either String [ConflictMetadata]
-> Either String GetMergeConflictsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [ConflictMetadata])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"conflictMetadataList"
Either String (Maybe [ConflictMetadata])
-> [ConflictMetadata] -> Either String [ConflictMetadata]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [ConflictMetadata]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable GetMergeConflicts
instance Prelude.NFData GetMergeConflicts
instance Core.ToHeaders GetMergeConflicts where
toHeaders :: GetMergeConflicts -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetMergeConflicts -> 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
"CodeCommit_20150413.GetMergeConflicts" ::
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 GetMergeConflicts where
toJSON :: GetMergeConflicts -> Value
toJSON GetMergeConflicts' {Maybe Int
Maybe Text
Maybe ConflictDetailLevelTypeEnum
Maybe ConflictResolutionStrategyTypeEnum
Text
MergeOptionTypeEnum
mergeOption :: MergeOptionTypeEnum
sourceCommitSpecifier :: Text
destinationCommitSpecifier :: Text
repositoryName :: Text
conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum
maxConflictFiles :: Maybe Int
nextToken :: Maybe Text
conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum
$sel:mergeOption:GetMergeConflicts' :: GetMergeConflicts -> MergeOptionTypeEnum
$sel:sourceCommitSpecifier:GetMergeConflicts' :: GetMergeConflicts -> Text
$sel:destinationCommitSpecifier:GetMergeConflicts' :: GetMergeConflicts -> Text
$sel:repositoryName:GetMergeConflicts' :: GetMergeConflicts -> Text
$sel:conflictResolutionStrategy:GetMergeConflicts' :: GetMergeConflicts -> Maybe ConflictResolutionStrategyTypeEnum
$sel:maxConflictFiles:GetMergeConflicts' :: GetMergeConflicts -> Maybe Int
$sel:nextToken:GetMergeConflicts' :: GetMergeConflicts -> Maybe Text
$sel:conflictDetailLevel:GetMergeConflicts' :: GetMergeConflicts -> Maybe ConflictDetailLevelTypeEnum
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"conflictDetailLevel" Text -> ConflictDetailLevelTypeEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ConflictDetailLevelTypeEnum -> Pair)
-> Maybe ConflictDetailLevelTypeEnum -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConflictDetailLevelTypeEnum
conflictDetailLevel,
(Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"maxConflictFiles" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxConflictFiles,
(Text
"conflictResolutionStrategy" Text -> ConflictResolutionStrategyTypeEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ConflictResolutionStrategyTypeEnum -> Pair)
-> Maybe ConflictResolutionStrategyTypeEnum -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConflictResolutionStrategyTypeEnum
conflictResolutionStrategy,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"destinationCommitSpecifier"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
destinationCommitSpecifier
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"sourceCommitSpecifier"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
sourceCommitSpecifier
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"mergeOption" Text -> MergeOptionTypeEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MergeOptionTypeEnum
mergeOption)
]
)
instance Core.ToPath GetMergeConflicts where
toPath :: GetMergeConflicts -> ByteString
toPath = ByteString -> GetMergeConflicts -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetMergeConflicts where
toQuery :: GetMergeConflicts -> QueryString
toQuery = QueryString -> GetMergeConflicts -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetMergeConflictsResponse = GetMergeConflictsResponse'
{
GetMergeConflictsResponse -> Maybe Text
baseCommitId :: Prelude.Maybe Prelude.Text,
GetMergeConflictsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetMergeConflictsResponse -> Int
httpStatus :: Prelude.Int,
GetMergeConflictsResponse -> Bool
mergeable :: Prelude.Bool,
GetMergeConflictsResponse -> Text
destinationCommitId :: Prelude.Text,
GetMergeConflictsResponse -> Text
sourceCommitId :: Prelude.Text,
GetMergeConflictsResponse -> [ConflictMetadata]
conflictMetadataList :: [ConflictMetadata]
}
deriving (GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool
(GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool)
-> (GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool)
-> Eq GetMergeConflictsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool
$c/= :: GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool
== :: GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool
$c== :: GetMergeConflictsResponse -> GetMergeConflictsResponse -> Bool
Prelude.Eq, ReadPrec [GetMergeConflictsResponse]
ReadPrec GetMergeConflictsResponse
Int -> ReadS GetMergeConflictsResponse
ReadS [GetMergeConflictsResponse]
(Int -> ReadS GetMergeConflictsResponse)
-> ReadS [GetMergeConflictsResponse]
-> ReadPrec GetMergeConflictsResponse
-> ReadPrec [GetMergeConflictsResponse]
-> Read GetMergeConflictsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMergeConflictsResponse]
$creadListPrec :: ReadPrec [GetMergeConflictsResponse]
readPrec :: ReadPrec GetMergeConflictsResponse
$creadPrec :: ReadPrec GetMergeConflictsResponse
readList :: ReadS [GetMergeConflictsResponse]
$creadList :: ReadS [GetMergeConflictsResponse]
readsPrec :: Int -> ReadS GetMergeConflictsResponse
$creadsPrec :: Int -> ReadS GetMergeConflictsResponse
Prelude.Read, Int -> GetMergeConflictsResponse -> ShowS
[GetMergeConflictsResponse] -> ShowS
GetMergeConflictsResponse -> String
(Int -> GetMergeConflictsResponse -> ShowS)
-> (GetMergeConflictsResponse -> String)
-> ([GetMergeConflictsResponse] -> ShowS)
-> Show GetMergeConflictsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMergeConflictsResponse] -> ShowS
$cshowList :: [GetMergeConflictsResponse] -> ShowS
show :: GetMergeConflictsResponse -> String
$cshow :: GetMergeConflictsResponse -> String
showsPrec :: Int -> GetMergeConflictsResponse -> ShowS
$cshowsPrec :: Int -> GetMergeConflictsResponse -> ShowS
Prelude.Show, (forall x.
GetMergeConflictsResponse -> Rep GetMergeConflictsResponse x)
-> (forall x.
Rep GetMergeConflictsResponse x -> GetMergeConflictsResponse)
-> Generic GetMergeConflictsResponse
forall x.
Rep GetMergeConflictsResponse x -> GetMergeConflictsResponse
forall x.
GetMergeConflictsResponse -> Rep GetMergeConflictsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMergeConflictsResponse x -> GetMergeConflictsResponse
$cfrom :: forall x.
GetMergeConflictsResponse -> Rep GetMergeConflictsResponse x
Prelude.Generic)
newGetMergeConflictsResponse ::
Prelude.Int ->
Prelude.Bool ->
Prelude.Text ->
Prelude.Text ->
GetMergeConflictsResponse
newGetMergeConflictsResponse :: Int -> Bool -> Text -> Text -> GetMergeConflictsResponse
newGetMergeConflictsResponse
Int
pHttpStatus_
Bool
pMergeable_
Text
pDestinationCommitId_
Text
pSourceCommitId_ =
GetMergeConflictsResponse' :: Maybe Text
-> Maybe Text
-> Int
-> Bool
-> Text
-> Text
-> [ConflictMetadata]
-> GetMergeConflictsResponse
GetMergeConflictsResponse'
{ $sel:baseCommitId:GetMergeConflictsResponse' :: Maybe Text
baseCommitId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetMergeConflictsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetMergeConflictsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:mergeable:GetMergeConflictsResponse' :: Bool
mergeable = Bool
pMergeable_,
$sel:destinationCommitId:GetMergeConflictsResponse' :: Text
destinationCommitId = Text
pDestinationCommitId_,
$sel:sourceCommitId:GetMergeConflictsResponse' :: Text
sourceCommitId = Text
pSourceCommitId_,
$sel:conflictMetadataList:GetMergeConflictsResponse' :: [ConflictMetadata]
conflictMetadataList = [ConflictMetadata]
forall a. Monoid a => a
Prelude.mempty
}
getMergeConflictsResponse_baseCommitId :: Lens.Lens' GetMergeConflictsResponse (Prelude.Maybe Prelude.Text)
getMergeConflictsResponse_baseCommitId :: (Maybe Text -> f (Maybe Text))
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_baseCommitId = (GetMergeConflictsResponse -> Maybe Text)
-> (GetMergeConflictsResponse
-> Maybe Text -> GetMergeConflictsResponse)
-> Lens
GetMergeConflictsResponse
GetMergeConflictsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {Maybe Text
baseCommitId :: Maybe Text
$sel:baseCommitId:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> Maybe Text
baseCommitId} -> Maybe Text
baseCommitId) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} Maybe Text
a -> GetMergeConflictsResponse
s {$sel:baseCommitId:GetMergeConflictsResponse' :: Maybe Text
baseCommitId = Maybe Text
a} :: GetMergeConflictsResponse)
getMergeConflictsResponse_nextToken :: Lens.Lens' GetMergeConflictsResponse (Prelude.Maybe Prelude.Text)
getMergeConflictsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_nextToken = (GetMergeConflictsResponse -> Maybe Text)
-> (GetMergeConflictsResponse
-> Maybe Text -> GetMergeConflictsResponse)
-> Lens
GetMergeConflictsResponse
GetMergeConflictsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} Maybe Text
a -> GetMergeConflictsResponse
s {$sel:nextToken:GetMergeConflictsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetMergeConflictsResponse)
getMergeConflictsResponse_httpStatus :: Lens.Lens' GetMergeConflictsResponse Prelude.Int
getMergeConflictsResponse_httpStatus :: (Int -> f Int)
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_httpStatus = (GetMergeConflictsResponse -> Int)
-> (GetMergeConflictsResponse -> Int -> GetMergeConflictsResponse)
-> Lens GetMergeConflictsResponse GetMergeConflictsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} Int
a -> GetMergeConflictsResponse
s {$sel:httpStatus:GetMergeConflictsResponse' :: Int
httpStatus = Int
a} :: GetMergeConflictsResponse)
getMergeConflictsResponse_mergeable :: Lens.Lens' GetMergeConflictsResponse Prelude.Bool
getMergeConflictsResponse_mergeable :: (Bool -> f Bool)
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_mergeable = (GetMergeConflictsResponse -> Bool)
-> (GetMergeConflictsResponse -> Bool -> GetMergeConflictsResponse)
-> Lens
GetMergeConflictsResponse GetMergeConflictsResponse Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {Bool
mergeable :: Bool
$sel:mergeable:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> Bool
mergeable} -> Bool
mergeable) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} Bool
a -> GetMergeConflictsResponse
s {$sel:mergeable:GetMergeConflictsResponse' :: Bool
mergeable = Bool
a} :: GetMergeConflictsResponse)
getMergeConflictsResponse_destinationCommitId :: Lens.Lens' GetMergeConflictsResponse Prelude.Text
getMergeConflictsResponse_destinationCommitId :: (Text -> f Text)
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_destinationCommitId = (GetMergeConflictsResponse -> Text)
-> (GetMergeConflictsResponse -> Text -> GetMergeConflictsResponse)
-> Lens
GetMergeConflictsResponse GetMergeConflictsResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {Text
destinationCommitId :: Text
$sel:destinationCommitId:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> Text
destinationCommitId} -> Text
destinationCommitId) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} Text
a -> GetMergeConflictsResponse
s {$sel:destinationCommitId:GetMergeConflictsResponse' :: Text
destinationCommitId = Text
a} :: GetMergeConflictsResponse)
getMergeConflictsResponse_sourceCommitId :: Lens.Lens' GetMergeConflictsResponse Prelude.Text
getMergeConflictsResponse_sourceCommitId :: (Text -> f Text)
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_sourceCommitId = (GetMergeConflictsResponse -> Text)
-> (GetMergeConflictsResponse -> Text -> GetMergeConflictsResponse)
-> Lens
GetMergeConflictsResponse GetMergeConflictsResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {Text
sourceCommitId :: Text
$sel:sourceCommitId:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> Text
sourceCommitId} -> Text
sourceCommitId) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} Text
a -> GetMergeConflictsResponse
s {$sel:sourceCommitId:GetMergeConflictsResponse' :: Text
sourceCommitId = Text
a} :: GetMergeConflictsResponse)
getMergeConflictsResponse_conflictMetadataList :: Lens.Lens' GetMergeConflictsResponse [ConflictMetadata]
getMergeConflictsResponse_conflictMetadataList :: ([ConflictMetadata] -> f [ConflictMetadata])
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse
getMergeConflictsResponse_conflictMetadataList = (GetMergeConflictsResponse -> [ConflictMetadata])
-> (GetMergeConflictsResponse
-> [ConflictMetadata] -> GetMergeConflictsResponse)
-> Lens
GetMergeConflictsResponse
GetMergeConflictsResponse
[ConflictMetadata]
[ConflictMetadata]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMergeConflictsResponse' {[ConflictMetadata]
conflictMetadataList :: [ConflictMetadata]
$sel:conflictMetadataList:GetMergeConflictsResponse' :: GetMergeConflictsResponse -> [ConflictMetadata]
conflictMetadataList} -> [ConflictMetadata]
conflictMetadataList) (\s :: GetMergeConflictsResponse
s@GetMergeConflictsResponse' {} [ConflictMetadata]
a -> GetMergeConflictsResponse
s {$sel:conflictMetadataList:GetMergeConflictsResponse' :: [ConflictMetadata]
conflictMetadataList = [ConflictMetadata]
a} :: GetMergeConflictsResponse) (([ConflictMetadata] -> f [ConflictMetadata])
-> GetMergeConflictsResponse -> f GetMergeConflictsResponse)
-> (([ConflictMetadata] -> f [ConflictMetadata])
-> [ConflictMetadata] -> f [ConflictMetadata])
-> ([ConflictMetadata] -> f [ConflictMetadata])
-> GetMergeConflictsResponse
-> f GetMergeConflictsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ConflictMetadata] -> f [ConflictMetadata])
-> [ConflictMetadata] -> f [ConflictMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData GetMergeConflictsResponse