Package com.circleci.client.v2.model
Class CheckoutKey
- java.lang.Object
-
- com.circleci.client.v2.model.CheckoutKey
-
public class CheckoutKey extends Object
CheckoutKey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutKey.TypeEnumThe type of checkout key.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FINGERPRINTstatic StringJSON_PROPERTY_PREFERREDstatic StringJSON_PROPERTY_PUBLIC_KEYstatic StringJSON_PROPERTY_TIMEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description CheckoutKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CheckoutKeyfingerprint(String fingerprint)StringgetFingerprint()An SSH key fingerprint.BooleangetPreferred()A boolean value that indicates if this key is preferred.StringgetPublicKey()A public SSH key.OffsetDateTimegetTime()The date and time the checkout key was created.CheckoutKey.TypeEnumgetType()The type of checkout key.inthashCode()CheckoutKeypreferred(Boolean preferred)CheckoutKeypublicKey(String publicKey)voidsetFingerprint(String fingerprint)voidsetPreferred(Boolean preferred)voidsetPublicKey(String publicKey)voidsetTime(OffsetDateTime time)voidsetType(CheckoutKey.TypeEnum type)CheckoutKeytime(OffsetDateTime time)StringtoString()CheckoutKeytype(CheckoutKey.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_PUBLIC_KEY
public static final String JSON_PROPERTY_PUBLIC_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FINGERPRINT
public static final String JSON_PROPERTY_FINGERPRINT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PREFERRED
public static final String JSON_PROPERTY_PREFERRED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME
public static final String JSON_PROPERTY_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
publicKey
public CheckoutKey publicKey(String publicKey)
-
getPublicKey
public String getPublicKey()
A public SSH key.- Returns:
- publicKey
-
setPublicKey
public void setPublicKey(String publicKey)
-
type
public CheckoutKey type(CheckoutKey.TypeEnum type)
-
getType
public CheckoutKey.TypeEnum getType()
The type of checkout key. This may be either `deploy-key` or `github-user-key`.- Returns:
- type
-
setType
public void setType(CheckoutKey.TypeEnum type)
-
fingerprint
public CheckoutKey fingerprint(String fingerprint)
-
getFingerprint
public String getFingerprint()
An SSH key fingerprint.- Returns:
- fingerprint
-
setFingerprint
public void setFingerprint(String fingerprint)
-
preferred
public CheckoutKey preferred(Boolean preferred)
-
getPreferred
public Boolean getPreferred()
A boolean value that indicates if this key is preferred.- Returns:
- preferred
-
setPreferred
public void setPreferred(Boolean preferred)
-
time
public CheckoutKey time(OffsetDateTime time)
-
getTime
public OffsetDateTime getTime()
The date and time the checkout key was created.- Returns:
- time
-
setTime
public void setTime(OffsetDateTime time)
-
-