Package io.gitea.model
Class CreateKeyOption
- java.lang.Object
-
- io.gitea.model.CreateKeyOption
-
public class CreateKeyOption extends java.lang.ObjectCreateKeyOption options when creating a key
-
-
Constructor Summary
Constructors Constructor Description CreateKeyOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetKey()An armored SSH key to addjava.lang.StringgetTitle()Title of the key to addinthashCode()java.lang.BooleanisReadOnly()Describe if the key has only read access or read/writeCreateKeyOptionkey(java.lang.String key)CreateKeyOptionreadOnly(java.lang.Boolean readOnly)voidsetKey(java.lang.String key)voidsetReadOnly(java.lang.Boolean readOnly)voidsetTitle(java.lang.String title)CreateKeyOptiontitle(java.lang.String title)java.lang.StringtoString()
-
-
-
Method Detail
-
key
public CreateKeyOption key(java.lang.String key)
-
getKey
public java.lang.String getKey()
An armored SSH key to add- Returns:
- key
-
setKey
public void setKey(java.lang.String key)
-
readOnly
public CreateKeyOption readOnly(java.lang.Boolean readOnly)
-
isReadOnly
public java.lang.Boolean isReadOnly()
Describe if the key has only read access or read/write- Returns:
- readOnly
-
setReadOnly
public void setReadOnly(java.lang.Boolean readOnly)
-
title
public CreateKeyOption title(java.lang.String title)
-
getTitle
public java.lang.String getTitle()
Title of the key to add- Returns:
- title
-
setTitle
public void setTitle(java.lang.String title)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-