@Immutable @Loggable(value=1) public static final class DeployKey.Smart extends Object implements DeployKey
DeployKey.Smart
Constructor and Description |
---|
DeployKey.Smart(DeployKey dkey)
Public ctor.
|
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.
|
@NotNull(message="key is never NULL") public String key() throws IOException
IOException
- If there is any I/O problempublic void key(@NotNull(message="value can\'t be NULL") String value) throws IOException
value
- Title of deploy keyIOException
- If there is any I/O problem@NotNull(message="URL can\'t be NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="title is never NULL") public String title() throws IOException
IOException
- If there is any I/O problempublic void title(@NotNull(message="text can\'t be NULL") String text) throws IOException
text
- Title of deploy keyIOException
- If there is any I/O problem@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(@NotNull(message="JSON is never NULL") 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–2014 jcabi.com. All rights reserved.