Package com.github.tadukoo.github.pojo
Class GitHubReleaseAsset
java.lang.Object
com.github.tadukoo.util.pojo.AbstractMappedPojo
com.github.tadukoo.parsing.json.AbstractJSONClass
com.github.tadukoo.github.pojo.GitHubReleaseAsset
- All Implemented Interfaces:
com.github.tadukoo.parsing.json.JSONClass,com.github.tadukoo.parsing.json.JSONObject,com.github.tadukoo.util.pojo.MappedPojo
public class GitHubReleaseAsset
extends com.github.tadukoo.parsing.json.AbstractJSONClass
GitHub Release Asset represents a Release Asset JSON object from GitHub's REST API.
- Version:
- Alpha v.0.1
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new GitHub Release AssetGitHubReleaseAsset(com.github.tadukoo.util.pojo.MappedPojo pojo) Creates a new GitHub Release and uses the pojo to populate fields -
Method Summary
Modifier and TypeMethodDescriptiongetId()getLabel()getName()getSize()getState()getUrl()voidsetBrowserDownloadUrl(String browserDownloadUrl) Sets the Browser Download URL of the Release AssetvoidsetContentType(String contentType) Sets the content type of the Release AssetvoidsetCreatedAt(String createdAt) Sets when the Release Asset was createdvoidsetDownloadCount(Double downloadCount) Sets the download count of the Release AssetvoidSets the ID of the Release AssetvoidSets the label of the Release AssetvoidSets the name of the Release AssetvoidSets the Node ID of the Release AssetvoidSets the size of the Release AssetvoidSets the state of the Release AssetvoidsetUpdatedAt(String updatedAt) Sets when the Release Asset was updatedvoidsetUploader(GitHubUser uploader) Sets the uploader of the Release AssetvoidSets the URL of the Release AssetMethods inherited from class com.github.tadukoo.util.pojo.AbstractMappedPojo
getMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tadukoo.parsing.json.JSONClass
buildJSON, convertToJSON, getJSONArrayItem, getJSONArrayItemNoThrow, getJSONArrayItemNoThrowMethods inherited from interface com.github.tadukoo.util.pojo.MappedPojo
clear, getItem, getKeys, getListItem, getListItemNoThrow, getListItemNoThrow, getMap, getPojoItem, getPojoItemNoThrow, getPojoItemNoThrow, hasItem, hasKey, isEmpty, removeItem, setItem
-
Constructor Details
-
GitHubReleaseAsset
public GitHubReleaseAsset()Creates a new GitHub Release Asset -
GitHubReleaseAsset
public GitHubReleaseAsset(com.github.tadukoo.util.pojo.MappedPojo pojo) Creates a new GitHub Release and uses the pojo to populate fields- Parameters:
pojo- The MappedPojo to use to populate fields
-
-
Method Details
-
getUrl
- Returns:
- The URL of the Release Asset
-
setUrl
Sets the URL of the Release Asset- Parameters:
url- The URL of the Release Asset
-
getBrowserDownloadUrl
- Returns:
- The Browser Download URL of the Release Asset
-
setBrowserDownloadUrl
Sets the Browser Download URL of the Release Asset- Parameters:
browserDownloadUrl- The Browser Download URL of the Release Asset
-
getId
- Returns:
- The ID of the Release Asset
-
setId
Sets the ID of the Release Asset- Parameters:
id- The ID of the Release Asset
-
getNodeId
- Returns:
- The Node ID of the Release Asset
-
setNodeId
Sets the Node ID of the Release Asset- Parameters:
nodeId- The Node ID of the Release Asset
-
getName
- Returns:
- The name of the Release Asset
-
setName
Sets the name of the Release Asset- Parameters:
name- The name of the Release Asset
-
getLabel
- Returns:
- The Label of the Release Asset
-
setLabel
Sets the label of the Release Asset- Parameters:
label- The label of the Release Asset
-
getState
- Returns:
- The state of the Release Asset
-
setState
Sets the state of the Release Asset- Parameters:
state- The state of the Release Asset
-
getContentType
- Returns:
- The content type of the Release Asset
-
setContentType
Sets the content type of the Release Asset- Parameters:
contentType- The content type of the Release Asset
-
getSize
- Returns:
- The size of the Release Asset
-
setSize
Sets the size of the Release Asset- Parameters:
size- The size of the Release Asset
-
getDownloadCount
- Returns:
- The download count of the Release Asset
-
setDownloadCount
Sets the download count of the Release Asset- Parameters:
downloadCount- The download count of the Release Asset
-
getCreatedAt
- Returns:
- When the Release Asset was created
-
setCreatedAt
Sets when the Release Asset was created- Parameters:
createdAt- When the Release Asset was created
-
getUpdatedAt
- Returns:
- When the Release Asset was updated
-
setUpdatedAt
Sets when the Release Asset was updated- Parameters:
updatedAt- When the Release Asset was updated
-
getUploader
public GitHubUser getUploader() throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException- Returns:
- The uploader of the Release Asset
- Throws:
NoSuchMethodException- SeeConstructor.newInstance(Object...)IllegalAccessException- SeeConstructor.newInstance(Object...)InvocationTargetException- SeeConstructor.newInstance(Object...)InstantiationException- SeeConstructor.newInstance(Object...)
-
setUploader
Sets the uploader of the Release Asset- Parameters:
uploader- The uploader of the Release Asset
-