Class AccessModeSettings
java.lang.Object
com.azure.resourcemanager.monitor.models.AccessModeSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AccessModeSettings>
public final class AccessModeSettings
extends Object
implements com.azure.json.JsonSerializable<AccessModeSettings>
Properties that define the scope private link mode settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the exclusions property: List of exclusions that override the default access mode settings for specific private endpoint connections.static AccessModeSettings
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AccessModeSettings from the JsonReader.Get the ingestionAccessMode property: Specifies the default access mode of ingestion through associated private endpoints in scope.Get the queryAccessMode property: Specifies the default access mode of queries through associated private endpoints in scope.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withExclusions
(List<AccessModeSettingsExclusion> exclusions) Set the exclusions property: List of exclusions that override the default access mode settings for specific private endpoint connections.withIngestionAccessMode
(AccessMode ingestionAccessMode) Set the ingestionAccessMode property: Specifies the default access mode of ingestion through associated private endpoints in scope.withQueryAccessMode
(AccessMode queryAccessMode) Set the queryAccessMode property: Specifies the default access mode of queries through associated private endpoints in scope.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
-
AccessModeSettings
public AccessModeSettings()Creates an instance of AccessModeSettings class.
-
-
Method Details
-
queryAccessMode
Get the queryAccessMode property: Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.- Returns:
- the queryAccessMode value.
-
withQueryAccessMode
Set the queryAccessMode property: Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.- Parameters:
queryAccessMode
- the queryAccessMode value to set.- Returns:
- the AccessModeSettings object itself.
-
ingestionAccessMode
Get the ingestionAccessMode property: Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.- Returns:
- the ingestionAccessMode value.
-
withIngestionAccessMode
Set the ingestionAccessMode property: Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.- Parameters:
ingestionAccessMode
- the ingestionAccessMode value to set.- Returns:
- the AccessModeSettings object itself.
-
exclusions
Get the exclusions property: List of exclusions that override the default access mode settings for specific private endpoint connections.- Returns:
- the exclusions value.
-
withExclusions
Set the exclusions property: List of exclusions that override the default access mode settings for specific private endpoint connections.- Parameters:
exclusions
- the exclusions value to set.- Returns:
- the AccessModeSettings 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<AccessModeSettings>
- Throws:
IOException
-
fromJson
Reads an instance of AccessModeSettings from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AccessModeSettings 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 AccessModeSettings.
-