Package io.lakefs.clients.api.model
Class VersionConfig
- java.lang.Object
-
- io.lakefs.clients.api.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_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 stringBooleangetUpgradeRecommended()Get upgradeRecommendedStringgetUpgradeUrl()Get upgradeUrlStringgetVersion()Get versioninthashCode()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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object 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_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)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object 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
-
-