Class BitbucketCloudBranch
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.client.branch.BitbucketCloudBranch
-
- All Implemented Interfaces:
BitbucketBranch
public class BitbucketCloudBranch extends Object implements BitbucketBranch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketCloudBranch.Head
Deprecated.static class
BitbucketCloudBranch.Target
-
Constructor Summary
Constructors Constructor Description BitbucketCloudBranch(String name, BitbucketCloudBranch.Target target, List<BitbucketCloudBranch.Head> heads)
BitbucketCloudBranch(String name, String hash, long dateInMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAuthor()
Returns the head commit author for this branch.long
getDateMillis()
String
getMessage()
Returns the head commit message for this branch.String
getName()
String
getRawNode()
boolean
isActive()
void
setAuthor(String authorName)
void
setCommitClosure(Callable<BitbucketCommit> commitClosure)
void
setDateMillis(long dateInMillis)
void
setMessage(String message)
void
setRawNode(String hash)
-
-
-
Constructor Detail
-
BitbucketCloudBranch
public BitbucketCloudBranch(@NonNull String name, @Nullable BitbucketCloudBranch.Target target, @Nullable List<BitbucketCloudBranch.Head> heads)
-
-
Method Detail
-
getRawNode
public String getRawNode()
- Specified by:
getRawNode
in interfaceBitbucketBranch
- Returns:
- the head commit node of this branch
-
setDateMillis
public void setDateMillis(long dateInMillis)
-
setRawNode
public void setRawNode(String hash)
-
getName
public String getName()
- Specified by:
getName
in interfaceBitbucketBranch
- Returns:
- the branch name
-
getDateMillis
public long getDateMillis()
- Specified by:
getDateMillis
in interfaceBitbucketBranch
- Returns:
- the commit milliseconds from epoch
-
isActive
public boolean isActive()
-
getMessage
public String getMessage()
Description copied from interface:BitbucketBranch
Returns the head commit message for this branch.- Specified by:
getMessage
in interfaceBitbucketBranch
- Returns:
- the head commit message of this branch
-
setMessage
public void setMessage(String message)
-
getAuthor
public String getAuthor()
Description copied from interface:BitbucketBranch
Returns the head commit author for this branch.- Specified by:
getAuthor
in interfaceBitbucketBranch
- Returns:
- the head commit author of this branch
-
setAuthor
public void setAuthor(String authorName)
-
setCommitClosure
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setCommitClosure(Callable<BitbucketCommit> commitClosure)
-
-