Class BitbucketCloudCommit
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.client.branch.BitbucketCloudCommit
-
- All Implemented Interfaces:
BitbucketCommit
public class BitbucketCloudCommit extends Object implements BitbucketCommit
-
-
Constructor Summary
Constructors Constructor Description BitbucketCloudCommit(String message, String date, String hash, BitbucketCloudAuthor author)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
Returns the head commit author for this branch.String
getDate()
long
getDateMillis()
String
getHash()
String
getMessage()
void
setAuthor(String author)
void
setDate(String date)
void
setHash(String hash)
void
setMessage(String message)
-
-
-
Constructor Detail
-
BitbucketCloudCommit
public BitbucketCloudCommit(@Nullable String message, @Nullable String date, @NonNull String hash, @Nullable BitbucketCloudAuthor author)
-
-
Method Detail
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceBitbucketCommit
- Returns:
- commit message
-
getDate
public String getDate()
- Specified by:
getDate
in interfaceBitbucketCommit
- Returns:
- the commit date in ISO format
-
getHash
public String getHash()
- Specified by:
getHash
in interfaceBitbucketCommit
- Returns:
- the commit hash (complete, not reduced)
-
setMessage
public void setMessage(String message)
-
setDate
public void setDate(String date)
-
setHash
public void setHash(String hash)
-
getDateMillis
public long getDateMillis()
- Specified by:
getDateMillis
in interfaceBitbucketCommit
- Returns:
- commit time in milliseconds (Java timestamp)
-
getAuthor
public String getAuthor()
Description copied from interface:BitbucketCommit
Returns the head commit author for this branch.- Specified by:
getAuthor
in interfaceBitbucketCommit
- Returns:
- the head commit author of this branch
-
setAuthor
public void setAuthor(String author)
-
-