com.aliction.gitproviders.bitbucket.objects.BitbucketObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitbucket-client Show documentation
Show all versions of bitbucket-client Show documentation
Java Implementation to Bitbucket REST API
package com.aliction.gitproviders.bitbucket.objects;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* This is the base abstract class for all objects
* @author Aly Ibrahim
* Date: Oct 25, 2019
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class BitbucketObject {
private String uuid;
private String created_on;
private BitbucketObjectType type;
/**
*
* @param uuid - String uuid
* @param created_on - String creation date
* @param type - BitbucketObjectType type
*/
public BitbucketObject(@JsonProperty("uuid") final String uuid,
@JsonProperty("created_on") final String created_on,
@JsonProperty("type") final BitbucketObjectType type) {
super();
this.uuid = uuid;
this.created_on = created_on;
this.type = type;
}
/**
*
* @return object UUID
*/
public String getUuid() {
return uuid;
}
/**
*
* @return creation time of the object
*/
public String getCreated_on() {
return created_on;
}
/**
*
* @return object type
*/
public BitbucketObjectType getType() {
return type;
}
}