Package io.lakefs.clients.sdk.model
Class VersionConfig
- java.lang.Object
-
- io.lakefs.clients.sdk.model.VersionConfig
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VersionConfig extends Object
VersionConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionConfig.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LATEST_VERSIONstatic StringSERIALIZED_NAME_UPGRADE_RECOMMENDEDstatic StringSERIALIZED_NAME_UPGRADE_URLstatic StringSERIALIZED_NAME_VERSION
-
Constructor Summary
Constructors Constructor Description VersionConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static VersionConfigfromJson(String jsonString)Create an instance of VersionConfig given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetLatestVersion()Get latestVersionBooleangetUpgradeRecommended()Get upgradeRecommendedStringgetUpgradeUrl()Get upgradeUrlStringgetVersion()Get versioninthashCode()VersionConfiglatestVersion(String latestVersion)VersionConfigputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetLatestVersion(String latestVersion)voidsetUpgradeRecommended(Boolean upgradeRecommended)voidsetUpgradeUrl(String upgradeUrl)voidsetVersion(String version)StringtoJson()Convert an instance of VersionConfig to an JSON stringStringtoString()VersionConfigupgradeRecommended(Boolean upgradeRecommended)VersionConfigupgradeUrl(String upgradeUrl)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundVersionConfigversion(String version)
-
-
-
Field Detail
-
SERIALIZED_NAME_VERSION
public static final String SERIALIZED_NAME_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LATEST_VERSION
public static final String SERIALIZED_NAME_LATEST_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPGRADE_RECOMMENDED
public static final String SERIALIZED_NAME_UPGRADE_RECOMMENDED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPGRADE_URL
public static final String SERIALIZED_NAME_UPGRADE_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
version
public VersionConfig version(String version)
-
setVersion
public void setVersion(String version)
-
latestVersion
public VersionConfig latestVersion(String latestVersion)
-
getLatestVersion
@Nullable public String getLatestVersion()
Get latestVersion- Returns:
- latestVersion
-
setLatestVersion
public void setLatestVersion(String latestVersion)
-
upgradeRecommended
public VersionConfig upgradeRecommended(Boolean upgradeRecommended)
-
getUpgradeRecommended
@Nullable public Boolean getUpgradeRecommended()
Get upgradeRecommended- Returns:
- upgradeRecommended
-
setUpgradeRecommended
public void setUpgradeRecommended(Boolean upgradeRecommended)
-
upgradeUrl
public VersionConfig upgradeUrl(String upgradeUrl)
-
setUpgradeUrl
public void setUpgradeUrl(String upgradeUrl)
-
putAdditionalProperty
public VersionConfig 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 VersionConfig 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 VersionConfig
-
fromJson
public static VersionConfig fromJson(String jsonString) throws IOException
Create an instance of VersionConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VersionConfig
- Throws:
IOException- if the JSON string is invalid with respect to VersionConfig
-
toJson
public String toJson()
Convert an instance of VersionConfig to an JSON string- Returns:
- JSON string
-
-