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) |
Safe Haskell | None |
Synopsis
Documentation
Returns information about the location of a change or comment in the comparison between two commits or a pull request.
See: newLocation
smart constructor.
Location' | |
|
Instances
Eq Location Source # | |
Read Location Source # | |
Show Location Source # | |
Generic Location Source # | |
NFData Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location | |
Hashable Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location | |
ToJSON Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location | |
FromJSON Location Source # | |
type Rep Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location type Rep Location = D1 ('MetaData "Location" "Amazonka.CodeCommit.Types.Location" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "Location'" 'PrefixI 'True) (S1 ('MetaSel ('Just "relativeFileVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelativeFileVersionEnum)) :*: (S1 ('MetaSel ('Just "filePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filePosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))))) |
newLocation :: Location Source #
Create a value of Location
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:relativeFileVersion:Location'
, location_relativeFileVersion
- In a comparison of commits or a pull request, whether the change is in
the before or after of that comparison.
$sel:filePath:Location'
, location_filePath
- The name of the file being compared, including its extension and
subdirectory, if any.
$sel:filePosition:Location'
, location_filePosition
- The position of a change in a compared file, in line number format.
location_relativeFileVersion :: Lens' Location (Maybe RelativeFileVersionEnum) Source #
In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.