Class EndpointBaseProperties
java.lang.Object
com.azure.resourcemanager.storagemover.models.EndpointBaseProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointBaseProperties>
- Direct Known Subclasses:
AzureStorageBlobContainerEndpointProperties,AzureStorageSmbFileShareEndpointProperties,NfsMountEndpointProperties,SmbMountEndpointProperties
public class EndpointBaseProperties
extends Object
implements com.azure.json.JsonSerializable<EndpointBaseProperties>
The resource specific properties for the Storage Mover resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EndpointBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description for the Endpoint.Get the endpointType property: The Endpoint resource type.static EndpointBasePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EndpointBaseProperties from the JsonReader.Get the provisioningState property: The provisioning state of this resource.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
-
EndpointBaseProperties
public EndpointBaseProperties()Creates an instance of EndpointBaseProperties 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 EndpointBaseProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of this resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointBaseProperties>- Throws:
IOException
-
fromJson
public static EndpointBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EndpointBaseProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EndpointBaseProperties 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 EndpointBaseProperties.
-