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_CREATED_ATstatic StringJSON_PROPERTY_FINGERPRINTstatic StringJSON_PROPERTY_PREFERREDstatic StringJSON_PROPERTY_PUBLIC_KEYstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description CheckoutKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutKeycreatedAt(OffsetDateTime createdAt)booleanequals(Object o)CheckoutKeyfingerprint(String fingerprint)OffsetDateTimegetCreatedAt()The date and time the checkout key was created.StringgetFingerprint()An SSH key fingerprint.BooleangetPreferred()A boolean value that indicates if this key is preferred.StringgetPublicKey()A public SSH key.CheckoutKey.TypeEnumgetType()The type of checkout key.inthashCode()CheckoutKeypreferred(Boolean preferred)CheckoutKeypublicKey(String publicKey)voidsetCreatedAt(OffsetDateTime createdAt)voidsetFingerprint(String fingerprint)voidsetPreferred(Boolean preferred)voidsetPublicKey(String publicKey)voidsetType(CheckoutKey.TypeEnum type)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_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- 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)
-
createdAt
public CheckoutKey createdAt(OffsetDateTime createdAt)
-
getCreatedAt
public OffsetDateTime getCreatedAt()
The date and time the checkout key was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
-