{-# 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.CodeCommitRepository -- 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.CodeCommitRepository where 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 -- | Information about an Amazon Web Services CodeCommit repository. The -- CodeCommit repository must be in the same Amazon Web Services Region and -- Amazon Web Services account where its CodeGuru Reviewer code reviews are -- configured. -- -- /See:/ 'newCodeCommitRepository' smart constructor. data CodeCommitRepository = CodeCommitRepository' { -- | The name of the Amazon Web Services CodeCommit repository. For more -- information, see -- -- in the /Amazon Web Services CodeCommit API Reference/. name :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'CodeCommitRepository' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'name', 'codeCommitRepository_name' - The name of the Amazon Web Services CodeCommit repository. For more -- information, see -- -- in the /Amazon Web Services CodeCommit API Reference/. newCodeCommitRepository :: -- | 'name' Prelude.Text -> CodeCommitRepository newCodeCommitRepository pName_ = CodeCommitRepository' {name = pName_} -- | The name of the Amazon Web Services CodeCommit repository. For more -- information, see -- -- in the /Amazon Web Services CodeCommit API Reference/. codeCommitRepository_name :: Lens.Lens' CodeCommitRepository Prelude.Text codeCommitRepository_name = Lens.lens (\CodeCommitRepository' {name} -> name) (\s@CodeCommitRepository' {} a -> s {name = a} :: CodeCommitRepository) instance Prelude.Hashable CodeCommitRepository where hashWithSalt _salt CodeCommitRepository' {..} = _salt `Prelude.hashWithSalt` name instance Prelude.NFData CodeCommitRepository where rnf CodeCommitRepository' {..} = Prelude.rnf name instance Data.ToJSON CodeCommitRepository where toJSON CodeCommitRepository' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("Name" Data..= name)] )