Class CreateCommitResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.codecommit.model.CodeCommitResponse
-
- software.amazon.awssdk.services.codecommit.model.CreateCommitResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateCommitResponse.Builder,CreateCommitResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateCommitResponse extends CodeCommitResponse implements ToCopyableBuilder<CreateCommitResponse.Builder,CreateCommitResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateCommitResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateCommitResponse.Builderbuilder()StringcommitId()The full commit ID of the commit that contains your committed file changes.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)List<FileMetadata>filesAdded()The files added as part of the committed file changes.List<FileMetadata>filesDeleted()The files deleted as part of the committed file changes.List<FileMetadata>filesUpdated()The files updated as part of the commited file changes.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasFilesAdded()For responses, this returns true if the service returned a value for the FilesAdded property.booleanhasFilesDeleted()For responses, this returns true if the service returned a value for the FilesDeleted property.booleanhasFilesUpdated()For responses, this returns true if the service returned a value for the FilesUpdated property.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CreateCommitResponse.Builder>serializableBuilderClass()CreateCommitResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtreeId()The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.-
Methods inherited from class software.amazon.awssdk.services.codecommit.model.CodeCommitResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
commitId
public final String commitId()
The full commit ID of the commit that contains your committed file changes.
- Returns:
- The full commit ID of the commit that contains your committed file changes.
-
treeId
public final String treeId()
The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
- Returns:
- The full SHA-1 pointer of the tree information for the commit that contains the commited file changes.
-
hasFilesAdded
public final boolean hasFilesAdded()
For responses, this returns true if the service returned a value for the FilesAdded property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
filesAdded
public final List<FileMetadata> filesAdded()
The files added as part of the committed file changes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFilesAdded()method.- Returns:
- The files added as part of the committed file changes.
-
hasFilesUpdated
public final boolean hasFilesUpdated()
For responses, this returns true if the service returned a value for the FilesUpdated property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
filesUpdated
public final List<FileMetadata> filesUpdated()
The files updated as part of the commited file changes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFilesUpdated()method.- Returns:
- The files updated as part of the commited file changes.
-
hasFilesDeleted
public final boolean hasFilesDeleted()
For responses, this returns true if the service returned a value for the FilesDeleted property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
filesDeleted
public final List<FileMetadata> filesDeleted()
The files deleted as part of the committed file changes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFilesDeleted()method.- Returns:
- The files deleted as part of the committed file changes.
-
toBuilder
public CreateCommitResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateCommitResponse.Builder,CreateCommitResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateCommitResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateCommitResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-