Class ScopedResourceProperties
java.lang.Object
com.azure.resourcemanager.monitor.fluent.models.ScopedResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScopedResourceProperties>
public final class ScopedResourceProperties
extends Object
implements com.azure.json.JsonSerializable<ScopedResourceProperties>
Properties of a private link scoped resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ScopedResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopedResourceProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ScopedResourceProperties from the JsonReader.Get the linkedResourceId property: The resource id of the scoped Azure monitor resource.Get the provisioningState property: State of the private endpoint connection.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withLinkedResourceId
(String linkedResourceId) Set the linkedResourceId property: The resource id of the scoped Azure monitor resource.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
-
ScopedResourceProperties
public ScopedResourceProperties()Creates an instance of ScopedResourceProperties class.
-
-
Method Details
-
linkedResourceId
Get the linkedResourceId property: The resource id of the scoped Azure monitor resource.- Returns:
- the linkedResourceId value.
-
withLinkedResourceId
Set the linkedResourceId property: The resource id of the scoped Azure monitor resource.- Parameters:
linkedResourceId
- the linkedResourceId value to set.- Returns:
- the ScopedResourceProperties object itself.
-
provisioningState
Get the provisioningState property: State of the private endpoint connection.- Returns:
- the provisioningState 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<ScopedResourceProperties>
- Throws:
IOException
-
fromJson
public static ScopedResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ScopedResourceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ScopedResourceProperties 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 ScopedResourceProperties.
-