Class Location
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.Location
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Location.Builder,Location>
@Generated("software.amazon.awssdk:codegen") public final class Location extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Location.Builder,Location>
Returns information about the location of a change or comment in the comparison between two commits or a pull request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Location.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfilePath()The name of the file being compared, including its extension and subdirectory, if any.LongfilePosition()The position of a change in a compared file, in line number format.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RelativeFileVersionEnumrelativeFileVersion()In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.StringrelativeFileVersionAsString()In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Location.Builder>serializableBuilderClass()Location.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
filePath
public final String filePath()
The name of the file being compared, including its extension and subdirectory, if any.
- Returns:
- The name of the file being compared, including its extension and subdirectory, if any.
-
filePosition
public final Long filePosition()
The position of a change in a compared file, in line number format.
- Returns:
- The position of a change in a compared file, in line number format.
-
relativeFileVersion
public final 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,
relativeFileVersionwill returnRelativeFileVersionEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelativeFileVersionAsString().- Returns:
- In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.
- See Also:
RelativeFileVersionEnum
-
relativeFileVersionAsString
public final 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,
relativeFileVersionwill returnRelativeFileVersionEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrelativeFileVersionAsString().- Returns:
- In a comparison of commits or a pull request, whether the change is in the before or after of that comparison.
- See Also:
RelativeFileVersionEnum
-
toBuilder
public Location.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Location.Builder,Location>
-
builder
public static Location.Builder builder()
-
serializableBuilderClass
public static Class<? extends Location.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-