@Immutable @Loggable(value=1) public static final class ReleaseAsset.Smart extends Object implements ReleaseAsset
ReleaseAsset.Smart| Constructor and Description |
|---|
ReleaseAsset.Smart(ReleaseAsset ast)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
contentType()
Get its content type.
|
Date |
createdAt()
When it was created.
|
int |
downloadCount()
Get its downloadCount.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
label()
Get its label.
|
void |
label(String text)
Change its label.
|
String |
name()
Get its name.
|
void |
name(String text)
Change its name.
|
int |
number()
Number.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
InputStream |
raw()
Gets release asset raw content.
|
Release |
release()
The release we're in.
|
void |
remove()
Delete the release asset.
|
int |
size()
Get its size.
|
String |
state()
Get its state.
|
Date |
updatedAt()
When it was updated.
|
URL |
url()
Get its URL.
|
public ReleaseAsset.Smart(@NotNull(message="ast can\'t be NULL")
ReleaseAsset ast)
ast - Release asset@NotNull(message="URL is never NULL") public URL url() throws IOException
IOException - If there is any I/O problem@NotNull(message="name is never NULL") public String name() throws IOException
IOException - If there is any I/O problem@NotNull(message="label is never NULL") public String label() throws IOException
IOException - If there is any I/O problem@NotNull(message="state is never NULL") public String state() throws IOException
IOException - If there is any I/O problem@NotNull(message="type is never NULL") public String contentType() throws IOException
IOException - If there is any I/O problempublic int size()
throws IOException
IOException - If there is any I/O problempublic int downloadCount()
throws IOException
IOException - If there is any I/O problem@NotNull(message="date is never NULL") public Date createdAt() throws IOException
IOException - If there is any I/O problem@NotNull(message="date is never NULL") public Date updatedAt() throws IOException
IOException - If there is any I/O problempublic void name(@NotNull(message="text can\'t be NULL")
String text)
throws IOException
text - Name of release assetIOException - If there is any I/O problempublic void label(@NotNull(message="text can\'t be NULL")
String text)
throws IOException
text - Label of release assetIOException - If there is any I/O problem@NotNull(message="release is never NULL") public Release release()
ReleaseAssetrelease in interface ReleaseAssetpublic int number()
ReleaseAssetnumber in interface ReleaseAssetpublic void remove()
throws IOException
ReleaseAssetremove in interface ReleaseAssetIOException - If there is any I/O problem@NotNull(message="input stream is never NULL") public InputStream raw() throws IOException
ReleaseAssetraw in interface ReleaseAssetIOException - If there is any I/O problempublic void patch(@NotNull(message="JSON is never NULL")
javax.json.JsonObject json)
throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problem@NotNull(message="JSON is never NULL")
public javax.json.JsonObject json()
throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.