public class VaultResponse
extends java.lang.Object
VaultResponse is a common base class for the response objects returned by
all API methods. It contains the bare minimum of information common to all Vault
responses (e.g. the raw HTTP response, the number of retry attempts if any). API methods
which return additional information will use more specialized subclasses inheriting
from VaultResponse.| Constructor and Description |
|---|
VaultResponse(RestResponse restResponse,
int retries) |
| Modifier and Type | Method and Description |
|---|---|
void |
baseSetRenewable(java.lang.Boolean renewable)
Deprecated.
|
java.lang.Long |
getLeaseDuration() |
java.lang.String |
getLeaseId() |
java.lang.Boolean |
getRenewable() |
RestResponse |
getRestResponse() |
int |
getRetries() |
void |
setLeaseDuration(java.lang.Long leaseDuration) |
void |
setLeaseId(java.lang.String leaseId) |
void |
setRenewable(java.lang.Boolean renewable) |
void |
setRestResponse(RestResponse restResponse) |
void |
setRetries(int retries) |
public VaultResponse(RestResponse restResponse, int retries)
restResponse - The raw HTTP response from Vault.retries - The number of retry attempts that occurred during the API call (can be zero).public RestResponse getRestResponse()
public void setRestResponse(RestResponse restResponse)
public int getRetries()
public void setRetries(int retries)
public java.lang.String getLeaseId()
public void setLeaseId(java.lang.String leaseId)
public java.lang.Boolean getRenewable()
public void setRenewable(java.lang.Boolean renewable)
@Deprecated public void baseSetRenewable(java.lang.Boolean renewable)
public java.lang.Long getLeaseDuration()
public void setLeaseDuration(java.lang.Long leaseDuration)