Class LinkedServiceProperties
java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.LinkedServiceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LinkedServiceProperties>
public final class LinkedServiceProperties
extends Object
implements com.azure.json.JsonSerializable<LinkedServiceProperties>
Linked service properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LinkedServiceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkedServicePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LinkedServiceProperties from the JsonReader.Get the provisioningState property: The provisioning state of the linked service.Get the resourceId property: The resource id of the resource that will be linked to the workspace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withProvisioningState(LinkedServiceEntityStatus provisioningState) Set the provisioningState property: The provisioning state of the linked service.withResourceId(String resourceId) Set the resourceId property: The resource id of the resource that will be linked to the workspace.withWriteAccessResourceId(String writeAccessResourceId) Set the writeAccessResourceId property: The resource id of the resource that will be linked to the workspace.Get the writeAccessResourceId property: The resource id of the resource that will be linked to the workspace.Methods inherited from class 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
-
LinkedServiceProperties
public LinkedServiceProperties()Creates an instance of LinkedServiceProperties class.
-
-
Method Details
-
resourceId
Get the resourceId property: The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the LinkedServiceProperties object itself.
-
writeAccessResourceId
Get the writeAccessResourceId property: The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access.- Returns:
- the writeAccessResourceId value.
-
withWriteAccessResourceId
Set the writeAccessResourceId property: The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access.- Parameters:
writeAccessResourceId- the writeAccessResourceId value to set.- Returns:
- the LinkedServiceProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the linked service.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: The provisioning state of the linked service.- Parameters:
provisioningState- the provisioningState value to set.- Returns:
- the LinkedServiceProperties object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LinkedServiceProperties>- Throws:
IOException
-
fromJson
public static LinkedServiceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LinkedServiceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LinkedServiceProperties 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 LinkedServiceProperties.
-