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 Summary
ConstructorDescriptionCreates an instance of ConnectionMonitorEndpoint class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()
Get the address property: Address of the connection monitor endpoint.Get the coverageLevel property: Test coverage for the endpoint.filter()
Get the filter property: Filter field is getting deprecated and should not be used.static ConnectionMonitorEndpoint
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionMonitorEndpoint from the JsonReader.Get the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details.name()
Get the name property: The name of the connection monitor endpoint.Get the resourceId property: Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type.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.Get the subscriptionId property: Subscription ID for connection monitor endpoint.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The endpoint type.void
validate()
Validates the instance.withAddress
(String address) Set the address property: Address of the connection monitor endpoint.withCoverageLevel
(CoverageLevel coverageLevel) Set the coverageLevel property: Test coverage for the endpoint.Set the filter property: Filter field is getting deprecated and should not be used.withLocationDetails
(ConnectionMonitorEndpointLocationDetails locationDetails) Set the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details.Set the name property: The name of the connection monitor endpoint.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.Set the scope property: Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork.withSubscriptionId
(String subscriptionId) Set the subscriptionId property: Subscription ID for connection monitor endpoint.withType
(EndpointType type) Set the type property: The endpoint type.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
-
ConnectionMonitorEndpoint
public ConnectionMonitorEndpoint()Creates an instance of ConnectionMonitorEndpoint class.
-
-
Method Details
-
name
Get the name property: The name of the connection monitor endpoint.- Returns:
- the name value.
-
withName
Set the name property: The name of the connection monitor endpoint.- Parameters:
name
- the name value to set.- Returns:
- the ConnectionMonitorEndpoint object itself.
-
type
Get the type property: The endpoint type.- Returns:
- the type value.
-
withType
Set the type property: The endpoint type.- Parameters:
type
- the type value to set.- Returns:
- the ConnectionMonitorEndpoint object itself.
-
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
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
Get the address property: Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, ArcMachine, MMAWorkspaceMachine endpoint type.- Returns:
- the address value.
-
withAddress
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
Get the coverageLevel property: Test coverage for the endpoint.- Returns:
- the coverageLevel value.
-
withCoverageLevel
Set the coverageLevel property: Test coverage for the endpoint.- Parameters:
coverageLevel
- the coverageLevel value to set.- Returns:
- the ConnectionMonitorEndpoint object itself.
-
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
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
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
- Specified by:
toJson
in interfacecom.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.
-