@Immutable @Loggable(value=1) public static final class Release.Smart extends Object implements Release
Release.Smart
Modifier and Type | Method and Description |
---|---|
ReleaseAssets |
assets()
Get all release assets of this release.
|
URL |
assetsUrl()
Get release assets url.
|
String |
body()
Get release body.
|
void |
body(String text)
Change its body.
|
String |
commitish()
Get release target commitish.
|
void |
commitish(String text)
Change its target commitish.
|
Date |
createdAt()
Get release creation date.
|
void |
delete()
Deletes a release.
|
boolean |
draft()
Is release draft.
|
void |
draft(boolean draft)
Change its status.
|
boolean |
hasBody()
Has release body.
|
boolean |
hasName()
Does this release have a name?
|
boolean |
hasTag()
Has release tag?
|
URL |
htmlUrl()
Get release html url.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
name()
Get release name.
|
void |
name(String text)
Change its name.
|
int |
number()
Release id.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
boolean |
prerelease()
Is it prerelease.
|
void |
prerelease(boolean pre)
Change its prerelease.
|
Date |
publishedAt()
Get release publication date.
|
Repo |
repo()
Owner of them.
|
String |
tag()
Get release tag name.
|
void |
tag(String text)
Change its tag name.
|
URL |
uploadUrl()
Get release upload url.
|
URL |
url()
Get release url.
|
public Smart(Release original)
original
- Original releasepublic javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problempublic int number()
Release
public ReleaseAssets assets()
Release
assets
in interface Release
public URL url() throws IOException
IOException
- If there is any I/O problempublic URL htmlUrl() throws IOException
IOException
- If there is any I/O problempublic URL assetsUrl() throws IOException
IOException
- If there is any I/O problempublic URL uploadUrl() throws IOException
IOException
- If there is any I/O problempublic String tag() throws IOException
IOException
- If there is any I/O problempublic boolean hasTag() throws IOException
IOException
- If there is any I/O problempublic void tag(String text) throws IOException
text
- Tag nameIOException
- If there is any I/O problempublic String commitish() throws IOException
IOException
- If there is any I/O problempublic void commitish(String text) throws IOException
text
- Target commitish.IOException
- If there is any I/O problempublic boolean hasName() throws IOException
IOException
- If there is any I/O problempublic String name() throws IOException
hasName()
first.IOException
- If there is any I/O problempublic void name(String text) throws IOException
text
- Name of release.IOException
- If there is any I/O problempublic boolean hasBody() throws IOException
IOException
- If there is any I/O problempublic String body() throws IOException
IOException
- If there is any I/O problempublic void body(String text) throws IOException
text
- Text describing the contents of the tagIOException
- If there is any I/O problempublic Date createdAt() throws IOException
IOException
- If there is any I/O problempublic Date publishedAt() throws IOException
IOException
- If there is any I/O problempublic boolean draft() throws IOException
IOException
- If there is any I/O problempublic void draft(boolean draft) throws IOException
draft
- True makes the release a draft.IOException
- If there is any I/O problempublic boolean prerelease() throws IOException
IOException
- If there is any I/O problempublic void prerelease(boolean pre) throws IOException
pre
- True to identify the release as a prerelease.IOException
- If there is any I/O problempublic void delete() throws IOException
Release
delete
in interface Release
IOException
- If any I/O problems occur.Copyright © 2012–2018 jcabi.com. All rights reserved.