Class EndpointBaseUpdateProperties
java.lang.Object
com.azure.resourcemanager.storagemover.models.EndpointBaseUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointBaseUpdateProperties>
- Direct Known Subclasses:
AzureStorageBlobContainerEndpointUpdateProperties,AzureStorageSmbFileShareEndpointUpdateProperties,NfsMountEndpointUpdateProperties,SmbMountEndpointUpdateProperties
public class EndpointBaseUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<EndpointBaseUpdateProperties>
The Endpoint resource, which contains information about file sources and targets.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EndpointBaseUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description for the Endpoint.Get the endpointType property: The Endpoint resource type.static EndpointBaseUpdatePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EndpointBaseUpdateProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description for the Endpoint.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
-
EndpointBaseUpdateProperties
public EndpointBaseUpdateProperties()Creates an instance of EndpointBaseUpdateProperties class.
-
-
Method Details
-
endpointType
Get the endpointType property: The Endpoint resource type.- Returns:
- the endpointType value.
-
description
Get the description property: A description for the Endpoint.- Returns:
- the description value.
-
withDescription
Set the description property: A description for the Endpoint.- Parameters:
description- the description value to set.- Returns:
- the EndpointBaseUpdateProperties 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<EndpointBaseUpdateProperties>- Throws:
IOException
-
fromJson
public static EndpointBaseUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EndpointBaseUpdateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EndpointBaseUpdateProperties 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 EndpointBaseUpdateProperties.
-