{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CodeGuruReviewer.Types.RepositoryAssociationSummary
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodeGuruReviewer.Types.RepositoryAssociationSummary where

import Amazonka.CodeGuruReviewer.Types.ProviderType
import Amazonka.CodeGuruReviewer.Types.RepositoryAssociationState
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Summary information about a repository association. The
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>
-- operation returns a list of @RepositoryAssociationSummary@ objects.
--
-- /See:/ 'newRepositoryAssociationSummary' smart constructor.
data RepositoryAssociationSummary = RepositoryAssociationSummary'
  { -- | The Amazon Resource Name (ARN) of the
    -- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
    -- object. You can retrieve this ARN by calling
    -- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>.
    RepositoryAssociationSummary -> Maybe Text
associationArn :: Prelude.Maybe Prelude.Text,
    -- | The repository association ID.
    RepositoryAssociationSummary -> Maybe Text
associationId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar
    -- Connections connection. Its format is
    -- @arn:aws:codestar-connections:region-id:aws-account_id:connection\/connection-id@.
    -- For more information, see
    -- <https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html Connection>
    -- in the /Amazon Web Services CodeStar Connections API Reference/.
    RepositoryAssociationSummary -> Maybe Text
connectionArn :: Prelude.Maybe Prelude.Text,
    -- | The time, in milliseconds since the epoch, since the repository
    -- association was last updated.
    RepositoryAssociationSummary -> Maybe POSIX
lastUpdatedTimeStamp :: Prelude.Maybe Data.POSIX,
    -- | The name of the repository association.
    RepositoryAssociationSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The owner of the repository. For an Amazon Web Services CodeCommit
    -- repository, this is the Amazon Web Services account ID of the account
    -- that owns the repository. For a GitHub, GitHub Enterprise Server, or
    -- Bitbucket repository, this is the username for the account that owns the
    -- repository. For an S3 repository, it can be the username or Amazon Web
    -- Services account ID.
    RepositoryAssociationSummary -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
    -- | The provider type of the repository association.
    RepositoryAssociationSummary -> Maybe ProviderType
providerType :: Prelude.Maybe ProviderType,
    -- | The state of the repository association.
    --
    -- The valid repository association states are:
    --
    -- -   __Associated__: The repository association is complete.
    --
    -- -   __Associating__: CodeGuru Reviewer is:
    --
    --     -   Setting up pull request notifications. This is required for pull
    --         requests to trigger a CodeGuru Reviewer review.
    --
    --         If your repository @ProviderType@ is @GitHub@,
    --         @GitHub Enterprise Server@, or @Bitbucket@, CodeGuru Reviewer
    --         creates webhooks in your repository to trigger CodeGuru Reviewer
    --         reviews. If you delete these webhooks, reviews of code in your
    --         repository cannot be triggered.
    --
    --     -   Setting up source code access. This is required for CodeGuru
    --         Reviewer to securely clone code in your repository.
    --
    -- -   __Failed__: The repository failed to associate or disassociate.
    --
    -- -   __Disassociating__: CodeGuru Reviewer is removing the repository\'s
    --     pull request notifications and source code access.
    --
    -- -   __Disassociated__: CodeGuru Reviewer successfully disassociated the
    --     repository. You can create a new association with this repository if
    --     you want to review source code in it later. You can control access
    --     to code reviews created in anassociated repository with tags after
    --     it has been disassociated. For more information, see
    --     <https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html Using tags to control access to associated repositories>
    --     in the /Amazon CodeGuru Reviewer User Guide/.
    RepositoryAssociationSummary -> Maybe RepositoryAssociationState
state :: Prelude.Maybe RepositoryAssociationState
  }
  deriving (RepositoryAssociationSummary
-> RepositoryAssociationSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RepositoryAssociationSummary
-> RepositoryAssociationSummary -> Bool
$c/= :: RepositoryAssociationSummary
-> RepositoryAssociationSummary -> Bool
== :: RepositoryAssociationSummary
-> RepositoryAssociationSummary -> Bool
$c== :: RepositoryAssociationSummary
-> RepositoryAssociationSummary -> Bool
Prelude.Eq, ReadPrec [RepositoryAssociationSummary]
ReadPrec RepositoryAssociationSummary
Int -> ReadS RepositoryAssociationSummary
ReadS [RepositoryAssociationSummary]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RepositoryAssociationSummary]
$creadListPrec :: ReadPrec [RepositoryAssociationSummary]
readPrec :: ReadPrec RepositoryAssociationSummary
$creadPrec :: ReadPrec RepositoryAssociationSummary
readList :: ReadS [RepositoryAssociationSummary]
$creadList :: ReadS [RepositoryAssociationSummary]
readsPrec :: Int -> ReadS RepositoryAssociationSummary
$creadsPrec :: Int -> ReadS RepositoryAssociationSummary
Prelude.Read, Int -> RepositoryAssociationSummary -> ShowS
[RepositoryAssociationSummary] -> ShowS
RepositoryAssociationSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RepositoryAssociationSummary] -> ShowS
$cshowList :: [RepositoryAssociationSummary] -> ShowS
show :: RepositoryAssociationSummary -> String
$cshow :: RepositoryAssociationSummary -> String
showsPrec :: Int -> RepositoryAssociationSummary -> ShowS
$cshowsPrec :: Int -> RepositoryAssociationSummary -> ShowS
Prelude.Show, forall x.
Rep RepositoryAssociationSummary x -> RepositoryAssociationSummary
forall x.
RepositoryAssociationSummary -> Rep RepositoryAssociationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RepositoryAssociationSummary x -> RepositoryAssociationSummary
$cfrom :: forall x.
RepositoryAssociationSummary -> Rep RepositoryAssociationSummary x
Prelude.Generic)

-- |
-- Create a value of 'RepositoryAssociationSummary' 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:
--
-- 'associationArn', 'repositoryAssociationSummary_associationArn' - The Amazon Resource Name (ARN) of the
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
-- object. You can retrieve this ARN by calling
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>.
--
-- 'associationId', 'repositoryAssociationSummary_associationId' - The repository association ID.
--
-- 'connectionArn', 'repositoryAssociationSummary_connectionArn' - The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar
-- Connections connection. Its format is
-- @arn:aws:codestar-connections:region-id:aws-account_id:connection\/connection-id@.
-- For more information, see
-- <https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html Connection>
-- in the /Amazon Web Services CodeStar Connections API Reference/.
--
-- 'lastUpdatedTimeStamp', 'repositoryAssociationSummary_lastUpdatedTimeStamp' - The time, in milliseconds since the epoch, since the repository
-- association was last updated.
--
-- 'name', 'repositoryAssociationSummary_name' - The name of the repository association.
--
-- 'owner', 'repositoryAssociationSummary_owner' - The owner of the repository. For an Amazon Web Services CodeCommit
-- repository, this is the Amazon Web Services account ID of the account
-- that owns the repository. For a GitHub, GitHub Enterprise Server, or
-- Bitbucket repository, this is the username for the account that owns the
-- repository. For an S3 repository, it can be the username or Amazon Web
-- Services account ID.
--
-- 'providerType', 'repositoryAssociationSummary_providerType' - The provider type of the repository association.
--
-- 'state', 'repositoryAssociationSummary_state' - The state of the repository association.
--
-- The valid repository association states are:
--
-- -   __Associated__: The repository association is complete.
--
-- -   __Associating__: CodeGuru Reviewer is:
--
--     -   Setting up pull request notifications. This is required for pull
--         requests to trigger a CodeGuru Reviewer review.
--
--         If your repository @ProviderType@ is @GitHub@,
--         @GitHub Enterprise Server@, or @Bitbucket@, CodeGuru Reviewer
--         creates webhooks in your repository to trigger CodeGuru Reviewer
--         reviews. If you delete these webhooks, reviews of code in your
--         repository cannot be triggered.
--
--     -   Setting up source code access. This is required for CodeGuru
--         Reviewer to securely clone code in your repository.
--
-- -   __Failed__: The repository failed to associate or disassociate.
--
-- -   __Disassociating__: CodeGuru Reviewer is removing the repository\'s
--     pull request notifications and source code access.
--
-- -   __Disassociated__: CodeGuru Reviewer successfully disassociated the
--     repository. You can create a new association with this repository if
--     you want to review source code in it later. You can control access
--     to code reviews created in anassociated repository with tags after
--     it has been disassociated. For more information, see
--     <https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html Using tags to control access to associated repositories>
--     in the /Amazon CodeGuru Reviewer User Guide/.
newRepositoryAssociationSummary ::
  RepositoryAssociationSummary
newRepositoryAssociationSummary :: RepositoryAssociationSummary
newRepositoryAssociationSummary =
  RepositoryAssociationSummary'
    { $sel:associationArn:RepositoryAssociationSummary' :: Maybe Text
associationArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:associationId:RepositoryAssociationSummary' :: Maybe Text
associationId = forall a. Maybe a
Prelude.Nothing,
      $sel:connectionArn:RepositoryAssociationSummary' :: Maybe Text
connectionArn = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedTimeStamp:RepositoryAssociationSummary' :: Maybe POSIX
lastUpdatedTimeStamp = forall a. Maybe a
Prelude.Nothing,
      $sel:name:RepositoryAssociationSummary' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:owner:RepositoryAssociationSummary' :: Maybe Text
owner = forall a. Maybe a
Prelude.Nothing,
      $sel:providerType:RepositoryAssociationSummary' :: Maybe ProviderType
providerType = forall a. Maybe a
Prelude.Nothing,
      $sel:state:RepositoryAssociationSummary' :: Maybe RepositoryAssociationState
state = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
-- object. You can retrieve this ARN by calling
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>.
repositoryAssociationSummary_associationArn :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe Prelude.Text)
repositoryAssociationSummary_associationArn :: Lens' RepositoryAssociationSummary (Maybe Text)
repositoryAssociationSummary_associationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe Text
associationArn :: Maybe Text
$sel:associationArn:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
associationArn} -> Maybe Text
associationArn) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe Text
a -> RepositoryAssociationSummary
s {$sel:associationArn:RepositoryAssociationSummary' :: Maybe Text
associationArn = Maybe Text
a} :: RepositoryAssociationSummary)

-- | The repository association ID.
repositoryAssociationSummary_associationId :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe Prelude.Text)
repositoryAssociationSummary_associationId :: Lens' RepositoryAssociationSummary (Maybe Text)
repositoryAssociationSummary_associationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe Text
associationId :: Maybe Text
$sel:associationId:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
associationId} -> Maybe Text
associationId) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe Text
a -> RepositoryAssociationSummary
s {$sel:associationId:RepositoryAssociationSummary' :: Maybe Text
associationId = Maybe Text
a} :: RepositoryAssociationSummary)

-- | The Amazon Resource Name (ARN) of an Amazon Web Services CodeStar
-- Connections connection. Its format is
-- @arn:aws:codestar-connections:region-id:aws-account_id:connection\/connection-id@.
-- For more information, see
-- <https://docs.aws.amazon.com/codestar-connections/latest/APIReference/API_Connection.html Connection>
-- in the /Amazon Web Services CodeStar Connections API Reference/.
repositoryAssociationSummary_connectionArn :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe Prelude.Text)
repositoryAssociationSummary_connectionArn :: Lens' RepositoryAssociationSummary (Maybe Text)
repositoryAssociationSummary_connectionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe Text
connectionArn :: Maybe Text
$sel:connectionArn:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
connectionArn} -> Maybe Text
connectionArn) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe Text
a -> RepositoryAssociationSummary
s {$sel:connectionArn:RepositoryAssociationSummary' :: Maybe Text
connectionArn = Maybe Text
a} :: RepositoryAssociationSummary)

-- | The time, in milliseconds since the epoch, since the repository
-- association was last updated.
repositoryAssociationSummary_lastUpdatedTimeStamp :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe Prelude.UTCTime)
repositoryAssociationSummary_lastUpdatedTimeStamp :: Lens' RepositoryAssociationSummary (Maybe UTCTime)
repositoryAssociationSummary_lastUpdatedTimeStamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe POSIX
lastUpdatedTimeStamp :: Maybe POSIX
$sel:lastUpdatedTimeStamp:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe POSIX
lastUpdatedTimeStamp} -> Maybe POSIX
lastUpdatedTimeStamp) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe POSIX
a -> RepositoryAssociationSummary
s {$sel:lastUpdatedTimeStamp:RepositoryAssociationSummary' :: Maybe POSIX
lastUpdatedTimeStamp = Maybe POSIX
a} :: RepositoryAssociationSummary) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the repository association.
repositoryAssociationSummary_name :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe Prelude.Text)
repositoryAssociationSummary_name :: Lens' RepositoryAssociationSummary (Maybe Text)
repositoryAssociationSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe Text
name :: Maybe Text
$sel:name:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe Text
a -> RepositoryAssociationSummary
s {$sel:name:RepositoryAssociationSummary' :: Maybe Text
name = Maybe Text
a} :: RepositoryAssociationSummary)

-- | The owner of the repository. For an Amazon Web Services CodeCommit
-- repository, this is the Amazon Web Services account ID of the account
-- that owns the repository. For a GitHub, GitHub Enterprise Server, or
-- Bitbucket repository, this is the username for the account that owns the
-- repository. For an S3 repository, it can be the username or Amazon Web
-- Services account ID.
repositoryAssociationSummary_owner :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe Prelude.Text)
repositoryAssociationSummary_owner :: Lens' RepositoryAssociationSummary (Maybe Text)
repositoryAssociationSummary_owner = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe Text
owner :: Maybe Text
$sel:owner:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
owner} -> Maybe Text
owner) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe Text
a -> RepositoryAssociationSummary
s {$sel:owner:RepositoryAssociationSummary' :: Maybe Text
owner = Maybe Text
a} :: RepositoryAssociationSummary)

-- | The provider type of the repository association.
repositoryAssociationSummary_providerType :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe ProviderType)
repositoryAssociationSummary_providerType :: Lens' RepositoryAssociationSummary (Maybe ProviderType)
repositoryAssociationSummary_providerType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe ProviderType
providerType :: Maybe ProviderType
$sel:providerType:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe ProviderType
providerType} -> Maybe ProviderType
providerType) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe ProviderType
a -> RepositoryAssociationSummary
s {$sel:providerType:RepositoryAssociationSummary' :: Maybe ProviderType
providerType = Maybe ProviderType
a} :: RepositoryAssociationSummary)

-- | The state of the repository association.
--
-- The valid repository association states are:
--
-- -   __Associated__: The repository association is complete.
--
-- -   __Associating__: CodeGuru Reviewer is:
--
--     -   Setting up pull request notifications. This is required for pull
--         requests to trigger a CodeGuru Reviewer review.
--
--         If your repository @ProviderType@ is @GitHub@,
--         @GitHub Enterprise Server@, or @Bitbucket@, CodeGuru Reviewer
--         creates webhooks in your repository to trigger CodeGuru Reviewer
--         reviews. If you delete these webhooks, reviews of code in your
--         repository cannot be triggered.
--
--     -   Setting up source code access. This is required for CodeGuru
--         Reviewer to securely clone code in your repository.
--
-- -   __Failed__: The repository failed to associate or disassociate.
--
-- -   __Disassociating__: CodeGuru Reviewer is removing the repository\'s
--     pull request notifications and source code access.
--
-- -   __Disassociated__: CodeGuru Reviewer successfully disassociated the
--     repository. You can create a new association with this repository if
--     you want to review source code in it later. You can control access
--     to code reviews created in anassociated repository with tags after
--     it has been disassociated. For more information, see
--     <https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html Using tags to control access to associated repositories>
--     in the /Amazon CodeGuru Reviewer User Guide/.
repositoryAssociationSummary_state :: Lens.Lens' RepositoryAssociationSummary (Prelude.Maybe RepositoryAssociationState)
repositoryAssociationSummary_state :: Lens'
  RepositoryAssociationSummary (Maybe RepositoryAssociationState)
repositoryAssociationSummary_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociationSummary' {Maybe RepositoryAssociationState
state :: Maybe RepositoryAssociationState
$sel:state:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe RepositoryAssociationState
state} -> Maybe RepositoryAssociationState
state) (\s :: RepositoryAssociationSummary
s@RepositoryAssociationSummary' {} Maybe RepositoryAssociationState
a -> RepositoryAssociationSummary
s {$sel:state:RepositoryAssociationSummary' :: Maybe RepositoryAssociationState
state = Maybe RepositoryAssociationState
a} :: RepositoryAssociationSummary)

instance Data.FromJSON RepositoryAssociationSummary where
  parseJSON :: Value -> Parser RepositoryAssociationSummary
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"RepositoryAssociationSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe ProviderType
-> Maybe RepositoryAssociationState
-> RepositoryAssociationSummary
RepositoryAssociationSummary'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AssociationArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AssociationId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ConnectionArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastUpdatedTimeStamp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Owner")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProviderType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"State")
      )

instance
  Prelude.Hashable
    RepositoryAssociationSummary
  where
  hashWithSalt :: Int -> RepositoryAssociationSummary -> Int
hashWithSalt Int
_salt RepositoryAssociationSummary' {Maybe Text
Maybe POSIX
Maybe ProviderType
Maybe RepositoryAssociationState
state :: Maybe RepositoryAssociationState
providerType :: Maybe ProviderType
owner :: Maybe Text
name :: Maybe Text
lastUpdatedTimeStamp :: Maybe POSIX
connectionArn :: Maybe Text
associationId :: Maybe Text
associationArn :: Maybe Text
$sel:state:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe RepositoryAssociationState
$sel:providerType:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe ProviderType
$sel:owner:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:name:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:lastUpdatedTimeStamp:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe POSIX
$sel:connectionArn:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:associationId:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:associationArn:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
associationArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
associationId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
connectionArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedTimeStamp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
owner
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ProviderType
providerType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RepositoryAssociationState
state

instance Prelude.NFData RepositoryAssociationSummary where
  rnf :: RepositoryAssociationSummary -> ()
rnf RepositoryAssociationSummary' {Maybe Text
Maybe POSIX
Maybe ProviderType
Maybe RepositoryAssociationState
state :: Maybe RepositoryAssociationState
providerType :: Maybe ProviderType
owner :: Maybe Text
name :: Maybe Text
lastUpdatedTimeStamp :: Maybe POSIX
connectionArn :: Maybe Text
associationId :: Maybe Text
associationArn :: Maybe Text
$sel:state:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe RepositoryAssociationState
$sel:providerType:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe ProviderType
$sel:owner:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:name:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:lastUpdatedTimeStamp:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe POSIX
$sel:connectionArn:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:associationId:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
$sel:associationArn:RepositoryAssociationSummary' :: RepositoryAssociationSummary -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
associationArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
associationId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
connectionArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedTimeStamp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
owner
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProviderType
providerType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RepositoryAssociationState
state