Class ConnectionMonitorEndpoint

java.lang.Object
com.azure.resourcemanager.network.models.ConnectionMonitorEndpoint
All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionMonitorEndpoint>

public final class ConnectionMonitorEndpoint extends Object implements com.azure.json.JsonSerializable<ConnectionMonitorEndpoint>
Describes the connection monitor endpoint.
  • Constructor Details

    • ConnectionMonitorEndpoint

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

    • name

      public String name()
      Get the name property: The name of the connection monitor endpoint.
      Returns:
      the name value.
    • withName

      public ConnectionMonitorEndpoint withName(String name)
      Set the name property: The name of the connection monitor endpoint.
      Parameters:
      name - the name value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • type

      public EndpointType type()
      Get the type property: The endpoint type.
      Returns:
      the type value.
    • withType

      public ConnectionMonitorEndpoint withType(EndpointType type)
      Set the type property: The endpoint type.
      Parameters:
      type - the type value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type.
      Returns:
      the resourceId value.
    • withResourceId

      public ConnectionMonitorEndpoint withResourceId(String resourceId)
      Set the resourceId property: Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • address

      public String address()
      Get the address property: Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, ArcMachine, MMAWorkspaceMachine endpoint type.
      Returns:
      the address value.
    • withAddress

      public ConnectionMonitorEndpoint withAddress(String address)
      Set the address property: Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, ArcMachine, MMAWorkspaceMachine endpoint type.
      Parameters:
      address - the address value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • filter

      Get the filter property: Filter field is getting deprecated and should not be used. Instead use Include/Exclude scope fields for it.
      Returns:
      the filter value.
    • withFilter

      Set the filter property: Filter field is getting deprecated and should not be used. Instead use Include/Exclude scope fields for it.
      Parameters:
      filter - the filter value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • scope

      Get the scope property: Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork.
      Returns:
      the scope value.
    • withScope

      Set the scope property: Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork.
      Parameters:
      scope - the scope value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • coverageLevel

      public CoverageLevel coverageLevel()
      Get the coverageLevel property: Test coverage for the endpoint.
      Returns:
      the coverageLevel value.
    • withCoverageLevel

      public ConnectionMonitorEndpoint withCoverageLevel(CoverageLevel coverageLevel)
      Set the coverageLevel property: Test coverage for the endpoint.
      Parameters:
      coverageLevel - the coverageLevel value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • locationDetails

      public ConnectionMonitorEndpointLocationDetails locationDetails()
      Get the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details.
      Returns:
      the locationDetails value.
    • withLocationDetails

      public ConnectionMonitorEndpoint withLocationDetails(ConnectionMonitorEndpointLocationDetails locationDetails)
      Set the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details.
      Parameters:
      locationDetails - the locationDetails value to set.
      Returns:
      the ConnectionMonitorEndpoint object itself.
    • subscriptionId

      public String subscriptionId()
      Get the subscriptionId property: Subscription ID for connection monitor endpoint. It's an optional parameter which is being used for 'AzureArcNetwork' type endpoint.
      Returns:
      the subscriptionId value.
    • withSubscriptionId

      public ConnectionMonitorEndpoint withSubscriptionId(String subscriptionId)
      Set the subscriptionId property: Subscription ID for connection monitor endpoint. It's an optional parameter which is being used for 'AzureArcNetwork' type endpoint.
      Parameters:
      subscriptionId - the subscriptionId value to set.
      Returns:
      the ConnectionMonitorEndpoint 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<ConnectionMonitorEndpoint>
      Throws:
      IOException
    • fromJson

      public static ConnectionMonitorEndpoint fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ConnectionMonitorEndpoint from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ConnectionMonitorEndpoint 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 ConnectionMonitorEndpoint.