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 Details

    • AccessModeSettingsExclusion

      public AccessModeSettingsExclusion()
      Creates an instance of AccessModeSettingsExclusion class.
  • Method Details

    • privateEndpointConnectionName

      public String 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

      public AccessMode 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

      public AccessModeSettingsExclusion withQueryAccessMode(AccessMode queryAccessMode)
      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

      public AccessMode 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

      public AccessModeSettingsExclusion withIngestionAccessMode(AccessMode ingestionAccessMode)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.