Class AccessModeSettingsExclusion
java.lang.Object
com.azure.resourcemanager.monitor.models.AccessModeSettingsExclusion
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessModeSettingsExclusion>
public final class AccessModeSettingsExclusion
extends Object
implements com.azure.json.JsonSerializable<AccessModeSettingsExclusion>
Properties that define the scope private link mode settings exclusion item. This setting applies to a specific
private endpoint connection and overrides the default settings for that private endpoint connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AccessModeSettingsExclusion class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessModeSettingsExclusion
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AccessModeSettingsExclusion from the JsonReader.Get the ingestionAccessMode property: Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion.Get the privateEndpointConnectionName property: The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.Get the queryAccessMode property: Specifies the access mode of queries through the specified private endpoint connection in the exclusion.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withIngestionAccessMode
(AccessMode ingestionAccessMode) Set the ingestionAccessMode property: Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion.withPrivateEndpointConnectionName
(String privateEndpointConnectionName) Set the privateEndpointConnectionName property: The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.withQueryAccessMode
(AccessMode queryAccessMode) Set the queryAccessMode property: Specifies the access mode of queries through the specified private endpoint connection in the exclusion.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
-
AccessModeSettingsExclusion
public AccessModeSettingsExclusion()Creates an instance of AccessModeSettingsExclusion class.
-
-
Method Details
-
privateEndpointConnectionName
Get the privateEndpointConnectionName property: The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.- Returns:
- the privateEndpointConnectionName value.
-
withPrivateEndpointConnectionName
public AccessModeSettingsExclusion withPrivateEndpointConnectionName(String privateEndpointConnectionName) Set the privateEndpointConnectionName property: The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings.- Parameters:
privateEndpointConnectionName
- the privateEndpointConnectionName value to set.- Returns:
- the AccessModeSettingsExclusion object itself.
-
queryAccessMode
Get the queryAccessMode property: Specifies the access mode of queries through the specified private endpoint connection in the exclusion.- Returns:
- the queryAccessMode value.
-
withQueryAccessMode
Set the queryAccessMode property: Specifies the access mode of queries through the specified private endpoint connection in the exclusion.- Parameters:
queryAccessMode
- the queryAccessMode value to set.- Returns:
- the AccessModeSettingsExclusion object itself.
-
ingestionAccessMode
Get the ingestionAccessMode property: Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion.- Returns:
- the ingestionAccessMode value.
-
withIngestionAccessMode
Set the ingestionAccessMode property: Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion.- Parameters:
ingestionAccessMode
- the ingestionAccessMode value to set.- Returns:
- the AccessModeSettingsExclusion object itself.
-
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<AccessModeSettingsExclusion>
- Throws:
IOException
-
fromJson
public static AccessModeSettingsExclusion fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AccessModeSettingsExclusion from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AccessModeSettingsExclusion 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 AccessModeSettingsExclusion.
-