@Immutable @Loggable(value=1) public static final class DeployKey.Smart extends Object implements DeployKey
DeployKey.Smart
Modifier and Type | Method and Description |
---|---|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
key()
Get its key value.
|
void |
key(String value)
Change its value.
|
int |
number()
Get id of a deploy key.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
void |
remove()
Delete a deploy key.
|
String |
title()
Get its title.
|
void |
title(String text)
Change its title.
|
URL |
url()
Get its URL.
|
public Smart(DeployKey dkey)
dkey
- Deploy keypublic String key() throws IOException
IOException
- If there is any I/O problempublic void key(String value) throws IOException
value
- Title of deploy keyIOException
- If there is any I/O problempublic URL url() throws IOException
IOException
- If there is any I/O problempublic String title() throws IOException
IOException
- If there is any I/O problempublic void title(String text) throws IOException
text
- Title of deploy keyIOException
- If there is any I/O problempublic 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()
DeployKey
public void remove() throws IOException
DeployKey
remove
in interface DeployKey
IOException
- If there is any I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.