libZSservicesZSamazonka-codecommitZSamazonka-codecommit
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeCommit.Types.Location

Description

 
Synopsis

Documentation

data Location Source #

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

Instances details
Eq Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

Read Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

Show Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

Generic Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

Associated Types

type Rep Location :: Type -> Type #

Methods

from :: Location -> Rep Location x #

to :: Rep Location x -> Location #

NFData Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

Methods

rnf :: Location -> () #

Hashable Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

Methods

hashWithSalt :: Int -> Location -> Int #

hash :: Location -> Int #

ToJSON Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

FromJSON Location Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Location

type Rep Location Source # 
Instance details

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.

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.