Package io.lakefs.clients.sdk.model
Class StsAuthRequest
- java.lang.Object
-
- io.lakefs.clients.sdk.model.StsAuthRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class StsAuthRequest extends Object
StsAuthRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStsAuthRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_REDIRECT_URIstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_TTL_SECONDS
-
Constructor Summary
Constructors Constructor Description StsAuthRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StsAuthRequestcode(String code)booleanequals(Object o)static StsAuthRequestfromJson(String jsonString)Create an instance of StsAuthRequest given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetCode()Get codeStringgetRedirectUri()Get redirectUriStringgetState()Get stateLonggetTtlSeconds()The time-to-live for the generated token in seconds.inthashCode()StsAuthRequestputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.StsAuthRequestredirectUri(String redirectUri)voidsetCode(String code)voidsetRedirectUri(String redirectUri)voidsetState(String state)voidsetTtlSeconds(Long ttlSeconds)StsAuthRequeststate(String state)StringtoJson()Convert an instance of StsAuthRequest to an JSON stringStringtoString()StsAuthRequestttlSeconds(Long ttlSeconds)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CODE
public static final String SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REDIRECT_URI
public static final String SERIALIZED_NAME_REDIRECT_URI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TTL_SECONDS
public static final String SERIALIZED_NAME_TTL_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public StsAuthRequest code(String code)
-
setCode
public void setCode(String code)
-
state
public StsAuthRequest state(String state)
-
setState
public void setState(String state)
-
redirectUri
public StsAuthRequest redirectUri(String redirectUri)
-
setRedirectUri
public void setRedirectUri(String redirectUri)
-
ttlSeconds
public StsAuthRequest ttlSeconds(Long ttlSeconds)
-
getTtlSeconds
@Nullable public Long getTtlSeconds()
The time-to-live for the generated token in seconds. The default value is 3600 seconds (1 hour) maximum time allowed is 12 hours.- Returns:
- ttlSeconds
-
setTtlSeconds
public void setTtlSeconds(Long ttlSeconds)
-
putAdditionalProperty
public StsAuthRequest putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the StsAuthRequest instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to StsAuthRequest
-
fromJson
public static StsAuthRequest fromJson(String jsonString) throws IOException
Create an instance of StsAuthRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StsAuthRequest
- Throws:
IOException- if the JSON string is invalid with respect to StsAuthRequest
-
toJson
public String toJson()
Convert an instance of StsAuthRequest to an JSON string- Returns:
- JSON string
-
-