Package io.lakefs.clients.sdk.model
Class StagingLocation
- java.lang.Object
-
- io.lakefs.clients.sdk.model.StagingLocation
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class StagingLocation extends Object
location for placing an object when staging it
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStagingLocation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PHYSICAL_ADDRESSstatic StringSERIALIZED_NAME_PRESIGNED_URLstatic StringSERIALIZED_NAME_PRESIGNED_URL_EXPIRY
-
Constructor Summary
Constructors Constructor Description StagingLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static StagingLocationfromJson(String jsonString)Create an instance of StagingLocation given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetPhysicalAddress()Get physicalAddressStringgetPresignedUrl()if presign=true is passed in the request, this field will contain a pre-signed URL to use when uploadingLonggetPresignedUrlExpiry()If present and nonzero, physical_address is a pre-signed URL and will expire at this Unix Epoch time.inthashCode()StagingLocationphysicalAddress(String physicalAddress)StagingLocationpresignedUrl(String presignedUrl)StagingLocationpresignedUrlExpiry(Long presignedUrlExpiry)StagingLocationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetPhysicalAddress(String physicalAddress)voidsetPresignedUrl(String presignedUrl)voidsetPresignedUrlExpiry(Long presignedUrlExpiry)StringtoJson()Convert an instance of StagingLocation to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PHYSICAL_ADDRESS
public static final String SERIALIZED_NAME_PHYSICAL_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRESIGNED_URL
public static final String SERIALIZED_NAME_PRESIGNED_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRESIGNED_URL_EXPIRY
public static final String SERIALIZED_NAME_PRESIGNED_URL_EXPIRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
physicalAddress
public StagingLocation physicalAddress(String physicalAddress)
-
getPhysicalAddress
@Nullable public String getPhysicalAddress()
Get physicalAddress- Returns:
- physicalAddress
-
setPhysicalAddress
public void setPhysicalAddress(String physicalAddress)
-
presignedUrl
public StagingLocation presignedUrl(String presignedUrl)
-
getPresignedUrl
@Nullable public String getPresignedUrl()
if presign=true is passed in the request, this field will contain a pre-signed URL to use when uploading- Returns:
- presignedUrl
-
setPresignedUrl
public void setPresignedUrl(String presignedUrl)
-
presignedUrlExpiry
public StagingLocation presignedUrlExpiry(Long presignedUrlExpiry)
-
getPresignedUrlExpiry
@Nullable public Long getPresignedUrlExpiry()
If present and nonzero, physical_address is a pre-signed URL and will expire at this Unix Epoch time. This will be shorter than the pre-signed URL lifetime if an authentication token is about to expire. This field is *optional*.- Returns:
- presignedUrlExpiry
-
setPresignedUrlExpiry
public void setPresignedUrlExpiry(Long presignedUrlExpiry)
-
putAdditionalProperty
public StagingLocation 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 StagingLocation 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 StagingLocation
-
fromJson
public static StagingLocation fromJson(String jsonString) throws IOException
Create an instance of StagingLocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StagingLocation
- Throws:
IOException- if the JSON string is invalid with respect to StagingLocation
-
toJson
public String toJson()
Convert an instance of StagingLocation to an JSON string- Returns:
- JSON string
-
-