@Immutable @Loggable(value=1) public static final class ReleaseAsset.Smart extends Object implements ReleaseAsset
ReleaseAsset.Smart| Constructor and Description | 
|---|
| 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 Smart(ReleaseAsset ast)
ast - Release assetpublic URL url() throws IOException
IOException - If there is any I/O problempublic String name() throws IOException
IOException - If there is any I/O problempublic String label() throws IOException
IOException - If there is any I/O problempublic String state() throws IOException
IOException - If there is any I/O problempublic 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 problempublic Date createdAt() throws IOException
IOException - If there is any I/O problempublic Date updatedAt() throws IOException
IOException - If there is any I/O problempublic void name(String text) throws IOException
text - Name of release assetIOException - If there is any I/O problempublic void label(String text) throws IOException
text - Label of release assetIOException - If there is any I/O problempublic 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 problempublic InputStream raw() throws IOException
ReleaseAssetraw in interface ReleaseAssetIOException - If there is any I/O problempublic void patch(javax.json.JsonObject json)
           throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problempublic javax.json.JsonObject json()
                           throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.