Class Target
- java.lang.Object
-
- software.amazon.awssdk.services.codecommit.model.Target
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Target.Builder,Target>
@Generated("software.amazon.awssdk:codegen") public final class Target extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Target.Builder,Target>
Returns information about a target for a pull request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTarget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Target.Builderbuilder()StringdestinationReference()The branch of the repository where the pull request changes are merged.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringrepositoryName()The name of the repository that contains the pull request.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Target.Builder>serializableBuilderClass()StringsourceReference()The branch of the repository that contains the changes for the pull request.Target.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
-
repositoryName
public final String repositoryName()
The name of the repository that contains the pull request.
- Returns:
- The name of the repository that contains the pull request.
-
sourceReference
public final String sourceReference()
The branch of the repository that contains the changes for the pull request. Also known as the source branch.
- Returns:
- The branch of the repository that contains the changes for the pull request. Also known as the source branch.
-
destinationReference
public final String destinationReference()
The branch of the repository where the pull request changes are merged. Also known as the destination branch.
- Returns:
- The branch of the repository where the pull request changes are merged. Also known as the destination branch.
-
toBuilder
public Target.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Target.Builder,Target>
-
builder
public static Target.Builder builder()
-
serializableBuilderClass
public static Class<? extends Target.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
-
-