Class GetCommitResult
- java.lang.Object
-
- com.amazonaws.services.codecommit.model.GetCommitResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GetCommitResult extends Object implements Serializable, Cloneable
Represents the output of a get commit operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetCommitResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetCommitResult
clone()
boolean
equals(Object obj)
Commit
getCommit()
Information about the specified commit.int
hashCode()
void
setCommit(Commit commit)
Information about the specified commit.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetCommitResult
withCommit(Commit commit)
Information about the specified commit.
-
-
-
Method Detail
-
setCommit
public void setCommit(Commit commit)
Information about the specified commit.
- Parameters:
commit
- Information about the specified commit.
-
getCommit
public Commit getCommit()
Information about the specified commit.
- Returns:
- Information about the specified commit.
-
withCommit
public GetCommitResult withCommit(Commit commit)
Information about the specified commit.
- Parameters:
commit
- Information about the specified commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetCommitResult clone()
-
-