Package io.lakefs.clients.api.model
Class StagingLocation
- java.lang.Object
-
- io.lakefs.clients.api.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_TOKEN
-
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 stringStringgetPhysicalAddress()Get physicalAddressStringgetPresignedUrl()if presign=true is passed in the request, this field will contain a presigned URL to use when uploadingStringgetToken()opaque staging token to use to link uploaded objectinthashCode()StagingLocationphysicalAddress(String physicalAddress)StagingLocationpresignedUrl(String presignedUrl)voidsetPhysicalAddress(String physicalAddress)voidsetPresignedUrl(String presignedUrl)voidsetToken(String token)StringtoJson()Convert an instance of StagingLocation to an JSON stringStagingLocationtoken(String token)StringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object 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_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRESIGNED_URL
public static final String SERIALIZED_NAME_PRESIGNED_URL
- 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)
-
token
public StagingLocation token(String token)
-
getToken
@Nonnull public String getToken()
opaque staging token to use to link uploaded object- Returns:
- token
-
setToken
public void setToken(String token)
-
presignedUrl
public StagingLocation presignedUrl(String presignedUrl)
-
getPresignedUrl
@Nullable public String getPresignedUrl()
if presign=true is passed in the request, this field will contain a presigned URL to use when uploading- Returns:
- presignedUrl
-
setPresignedUrl
public void setPresignedUrl(String presignedUrl)
-
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 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
-
-