Class TroubleshootingProperties
java.lang.Object
com.azure.resourcemanager.network.fluent.models.TroubleshootingProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TroubleshootingProperties>
public final class TroubleshootingProperties
extends Object
implements com.azure.json.JsonSerializable<TroubleshootingProperties>
Storage location provided for troubleshoot.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TroubleshootingProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TroubleshootingPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TroubleshootingProperties from the JsonReader.Get the storageId property: The ID for the storage account to save the troubleshoot result.Get the storagePath property: The path to the blob to save the troubleshoot result in.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withStorageId(String storageId) Set the storageId property: The ID for the storage account to save the troubleshoot result.withStoragePath(String storagePath) Set the storagePath property: The path to the blob to save the troubleshoot result in.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
-
TroubleshootingProperties
public TroubleshootingProperties()Creates an instance of TroubleshootingProperties class.
-
-
Method Details
-
storageId
Get the storageId property: The ID for the storage account to save the troubleshoot result.- Returns:
- the storageId value.
-
withStorageId
Set the storageId property: The ID for the storage account to save the troubleshoot result.- Parameters:
storageId- the storageId value to set.- Returns:
- the TroubleshootingProperties object itself.
-
storagePath
Get the storagePath property: The path to the blob to save the troubleshoot result in.- Returns:
- the storagePath value.
-
withStoragePath
Set the storagePath property: The path to the blob to save the troubleshoot result in.- Parameters:
storagePath- the storagePath value to set.- Returns:
- the TroubleshootingProperties 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<TroubleshootingProperties>- Throws:
IOException
-
fromJson
public static TroubleshootingProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TroubleshootingProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TroubleshootingProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the TroubleshootingProperties.
-