Class SourceUploadDefinitionInner
java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.SourceUploadDefinitionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceUploadDefinitionInner>
public final class SourceUploadDefinitionInner
extends Object
implements com.azure.json.JsonSerializable<SourceUploadDefinitionInner>
The properties of a response to source upload request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SourceUploadDefinitionInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceUploadDefinitionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SourceUploadDefinitionInner from the JsonReader.Get the relativePath property: The relative path to the source.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the uploadUrl property: The URL where the client can upload the source.voidvalidate()Validates the instance.withRelativePath(String relativePath) Set the relativePath property: The relative path to the source.withUploadUrl(String uploadUrl) Set the uploadUrl property: The URL where the client can upload the source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SourceUploadDefinitionInner
public SourceUploadDefinitionInner()Creates an instance of SourceUploadDefinitionInner class.
-
-
Method Details
-
uploadUrl
Get the uploadUrl property: The URL where the client can upload the source.- Returns:
- the uploadUrl value.
-
withUploadUrl
Set the uploadUrl property: The URL where the client can upload the source.- Parameters:
uploadUrl- the uploadUrl value to set.- Returns:
- the SourceUploadDefinitionInner object itself.
-
relativePath
Get the relativePath property: The relative path to the source. This is used to submit the subsequent queue build request.- Returns:
- the relativePath value.
-
withRelativePath
Set the relativePath property: The relative path to the source. This is used to submit the subsequent queue build request.- Parameters:
relativePath- the relativePath value to set.- Returns:
- the SourceUploadDefinitionInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SourceUploadDefinitionInner>- Throws:
IOException
-
fromJson
public static SourceUploadDefinitionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SourceUploadDefinitionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SourceUploadDefinitionInner 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 SourceUploadDefinitionInner.
-