Class DataProviderMetadata
java.lang.Object
com.azure.resourcemanager.appservice.models.DataProviderMetadata
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataProviderMetadata>
public final class DataProviderMetadata
extends Object
implements com.azure.json.JsonSerializable<DataProviderMetadata>
Additional configuration for a data providers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataProviderMetadata
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataProviderMetadata from the JsonReader.Get the propertyBag property: Settings for the data provider.Get the providerName property: The providerName property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withProviderName
(String providerName) Set the providerName property: The providerName property.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
-
DataProviderMetadata
public DataProviderMetadata()Creates an instance of DataProviderMetadata class.
-
-
Method Details
-
providerName
Get the providerName property: The providerName property.- Returns:
- the providerName value.
-
withProviderName
Set the providerName property: The providerName property.- Parameters:
providerName
- the providerName value to set.- Returns:
- the DataProviderMetadata object itself.
-
propertyBag
Get the propertyBag property: Settings for the data provider.- Returns:
- the propertyBag value.
-
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<DataProviderMetadata>
- Throws:
IOException
-
fromJson
public static DataProviderMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DataProviderMetadata from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DataProviderMetadata 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 DataProviderMetadata.
-