@Generated(value="software.amazon.awssdk:codegen") public final class Location extends Object implements StructuredPojo, ToCopyableBuilder<Location.Builder,Location>
Returns information about the location of a change or comment in the comparison between two commits or a pull request.
Modifier and Type | Class and Description |
---|---|
static interface |
Location.Builder |
Modifier and Type | Method and Description |
---|---|
static Location.Builder |
builder() |
boolean |
equals(Object obj) |
String |
filePath()
The name of the file being compared, including its extension and subdirectory, if any.
|
Long |
filePosition()
The position of a change within a compared file, in line number format.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
RelativeFileVersionEnum |
relativeFileVersion()
In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that
comparison.
|
String |
relativeFileVersionAsString()
In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that
comparison.
|
static Class<? extends Location.Builder> |
serializableBuilderClass() |
Location.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String filePath()
The name of the file being compared, including its extension and subdirectory, if any.
public Long filePosition()
The position of a change within a compared file, in line number format.
public RelativeFileVersionEnum relativeFileVersion()
In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that comparison.
If the service returns an enum value that is not available in the current SDK version,
relativeFileVersion
will return RelativeFileVersionEnum.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from relativeFileVersionAsString()
.
RelativeFileVersionEnum
public String relativeFileVersionAsString()
In a comparison of commits or a pull request, whether the change is in the 'before' or 'after' of that comparison.
If the service returns an enum value that is not available in the current SDK version,
relativeFileVersion
will return RelativeFileVersionEnum.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from relativeFileVersionAsString()
.
RelativeFileVersionEnum
public Location.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Location.Builder,Location>
public static Location.Builder builder()
public static Class<? extends Location.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.