Class GenerateUploadUriParameter
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.GenerateUploadUriParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GenerateUploadUriParameter>
public final class GenerateUploadUriParameter
extends Object
implements com.azure.json.JsonSerializable<GenerateUploadUriParameter>
Properties for generating an upload URI.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GenerateUploadUriParameter class. -
Method Summary
Modifier and TypeMethodDescriptionblobName()
Get the blobName property: The blob name of the upload URI.static GenerateUploadUriParameter
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GenerateUploadUriParameter from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBlobName
(String blobName) Set the blobName property: The blob name of the upload URI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GenerateUploadUriParameter
public GenerateUploadUriParameter()Creates an instance of GenerateUploadUriParameter class.
-
-
Method Details
-
blobName
Get the blobName property: The blob name of the upload URI.- Returns:
- the blobName value.
-
withBlobName
Set the blobName property: The blob name of the upload URI.- Parameters:
blobName
- the blobName value to set.- Returns:
- the GenerateUploadUriParameter object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<GenerateUploadUriParameter>
- Throws:
IOException
-
fromJson
public static GenerateUploadUriParameter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GenerateUploadUriParameter from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GenerateUploadUriParameter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the GenerateUploadUriParameter.
-