Package com.jcabi.github
Class DeployKey.Smart
- java.lang.Object
-
- com.jcabi.github.DeployKey.Smart
-
- All Implemented Interfaces:
DeployKey,JsonPatchable,JsonReadable
- Enclosing interface:
- DeployKey
@Immutable @Loggable(1) public static final class DeployKey.Smart extends Object implements DeployKey
Smart DeployKey with extra features.- Suppressed Checkstyle violations:
- MultipleStringLiterals (500 lines)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.DeployKey
DeployKey.Smart
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.json.JsonObjectjson()Describe it in a JSON object.Stringkey()Get its key value.voidkey(String value)Change its value.intnumber()Get id of a deploy key.voidpatch(javax.json.JsonObject json)Patch using this JSON object.voidremove()Delete a deploy key.Stringtitle()Get its title.voidtitle(String text)Change its title.URLurl()Get its URL.
-
-
-
Constructor Detail
-
Smart
public Smart(DeployKey dkey)
Public ctor.- Parameters:
dkey- Deploy key
-
-
Method Detail
-
key
public String key() throws IOException
Get its key value.- Returns:
- Value of deploy key
- Throws:
IOException- If there is any I/O problem
-
key
public void key(String value) throws IOException
Change its value.- Parameters:
value- Title of deploy key- Throws:
IOException- If there is any I/O problem
-
url
public URL url() throws IOException
Get its URL.- Returns:
- URL of deploy key
- Throws:
IOException- If there is any I/O problem
-
title
public String title() throws IOException
Get its title.- Returns:
- Title of deploy key
- Throws:
IOException- If there is any I/O problem
-
title
public void title(String text) throws IOException
Change its title.- Parameters:
text- Title of deploy key- Throws:
IOException- If there is any I/O problem
-
json
public javax.json.JsonObject json() throws IOExceptionDescription copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
patch
public void patch(javax.json.JsonObject json) throws IOExceptionDescription copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
number
public int number()
Description copied from interface:DeployKeyGet id of a deploy key.
-
remove
public void remove() throws IOExceptionDescription copied from interface:DeployKeyDelete a deploy key.- Specified by:
removein interfaceDeployKey- Throws:
IOException- If there is any I/O problem- See Also:
- Remove a deploy key
-
-