ConnectionMonitorEndpoint Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ConnectionMonitorEndpoint

Implements

public final class ConnectionMonitorEndpoint
implements JsonSerializable<ConnectionMonitorEndpoint>

Describes the connection monitor endpoint.

Constructor Summary

Constructor Description
ConnectionMonitorEndpoint()

Creates an instance of ConnectionMonitorEndpoint class.

Method Summary

Modifier and Type Method and Description
String address()

Get the address property: Address of the connection monitor endpoint.

CoverageLevel coverageLevel()

Get the coverageLevel property: Test coverage for the endpoint.

ConnectionMonitorEndpointFilter filter()

Get the filter property: Filter field is getting deprecated and should not be used.

static ConnectionMonitorEndpoint fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorEndpoint from the JsonReader.

ConnectionMonitorEndpointLocationDetails locationDetails()

Get the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details.

String name()

Get the name property: The name of the connection monitor endpoint.

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.

ConnectionMonitorEndpointScope 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.

String subscriptionId()

Get the subscriptionId property: Subscription ID for connection monitor endpoint.

JsonWriter toJson(JsonWriter jsonWriter)
EndpointType type()

Get the type property: The endpoint type.

void validate()

Validates the instance.

ConnectionMonitorEndpoint withAddress(String address)

Set the address property: Address of the connection monitor endpoint.

ConnectionMonitorEndpoint withCoverageLevel(CoverageLevel coverageLevel)

Set the coverageLevel property: Test coverage for the endpoint.

ConnectionMonitorEndpoint withFilter(ConnectionMonitorEndpointFilter filter)

Set the filter property: Filter field is getting deprecated and should not be used.

ConnectionMonitorEndpoint withLocationDetails(ConnectionMonitorEndpointLocationDetails locationDetails)

Set the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details.

ConnectionMonitorEndpoint withName(String name)

Set the name property: The name of the connection monitor endpoint.

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.

ConnectionMonitorEndpoint withScope(ConnectionMonitorEndpointScope scope)

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

ConnectionMonitorEndpoint withSubscriptionId(String subscriptionId)

Set the subscriptionId property: Subscription ID for connection monitor endpoint.

ConnectionMonitorEndpoint withType(EndpointType type)

Set the type property: The endpoint type.

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorEndpoint

public ConnectionMonitorEndpoint()

Creates an instance of ConnectionMonitorEndpoint class.

Method Details

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.

coverageLevel

public CoverageLevel coverageLevel()

Get the coverageLevel property: Test coverage for the endpoint.

Returns:

the coverageLevel value.

filter

public ConnectionMonitorEndpointFilter 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.

fromJson

public static ConnectionMonitorEndpoint fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

name

public String name()

Get the name property: The name of the connection monitor endpoint.

Returns:

the name value.

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.

scope

public ConnectionMonitorEndpointScope 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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public EndpointType type()

Get the type property: The endpoint type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

withFilter

public ConnectionMonitorEndpoint withFilter(ConnectionMonitorEndpointFilter filter)

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.

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.

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.

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.

withScope

public ConnectionMonitorEndpoint withScope(ConnectionMonitorEndpointScope scope)

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.

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.

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.

Applies to