| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.Types.Location
Description
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.
Constructors
| Location' | |
Fields
| |
Instances
| FromJSON Location Source # | |
| ToJSON Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location | |
| Generic Location Source # | |
| Read Location Source # | |
| Show Location Source # | |
| NFData Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location | |
| Eq Location Source # | |
| Hashable Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location | |
| type Rep Location Source # | |
Defined in Amazonka.CodeCommit.Types.Location type Rep Location = D1 ('MetaData "Location" "Amazonka.CodeCommit.Types.Location" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "Location'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "filePosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "relativeFileVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelativeFileVersionEnum))))) | |
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: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.
$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.
location_filePath :: Lens' Location (Maybe Text) Source #
The name of the file being compared, including its extension and subdirectory, if any.
location_filePosition :: Lens' Location (Maybe Integer) Source #
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.