ConnectionMonitorEndpoint Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. ConnectionMonitorEndpoint
- com.
Implements
public final class ConnectionMonitorEndpoint
implements JsonSerializable<ConnectionMonitorEndpoint>
Describes the connection monitor endpoint.
Constructor Summary
Constructor | Description |
---|---|
ConnectionMonitorEndpoint() |
Creates an instance of Connection |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
address()
Get the address property: Address of the connection monitor endpoint. |
Coverage |
coverageLevel()
Get the coverage |
Connection |
filter()
Get the filter property: Filter field is getting deprecated and should not be used. |
static
Connection |
fromJson(JsonReader jsonReader)
Reads an instance of Connection |
Connection |
locationDetails()
Get the location |
String |
name()
Get the name property: The name of the connection monitor endpoint. |
String |
resourceId()
Get the resource |
Connection |
scope()
Get the scope property: Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, Azure |
String |
subscriptionId()
Get the subscription |
Json |
toJson(JsonWriter jsonWriter) |
Endpoint |
type()
Get the type property: The endpoint type. |
void |
validate()
Validates the instance. |
Connection |
withAddress(String address)
Set the address property: Address of the connection monitor endpoint. |
Connection |
withCoverageLevel(CoverageLevel coverageLevel)
Set the coverage |
Connection |
withFilter(ConnectionMonitorEndpointFilter filter)
Set the filter property: Filter field is getting deprecated and should not be used. |
Connection |
withLocationDetails(ConnectionMonitorEndpointLocationDetails locationDetails)
Set the location |
Connection |
withName(String name)
Set the name property: The name of the connection monitor endpoint. |
Connection |
withResourceId(String resourceId)
Set the resource |
Connection |
withScope(ConnectionMonitorEndpointScope scope)
Set the scope property: Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, Azure |
Connection |
withSubscriptionId(String subscriptionId)
Set the subscription |
Connection |
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:
coverageLevel
public CoverageLevel coverageLevel()
Get the coverageLevel property: Test coverage for the endpoint.
Returns:
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:
fromJson
public static ConnectionMonitorEndpoint fromJson(JsonReader jsonReader)
Reads an instance of ConnectionMonitorEndpoint from the JsonReader.
Parameters:
Returns:
Throws:
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:
name
public String name()
Get the name property: The name of the connection monitor endpoint.
Returns:
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:
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:
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:
toJson
type
public EndpointType type()
Get the type property: The endpoint type.
Returns:
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:
Returns:
withCoverageLevel
public ConnectionMonitorEndpoint withCoverageLevel(CoverageLevel coverageLevel)
Set the coverageLevel property: Test coverage for the endpoint.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withName
public ConnectionMonitorEndpoint withName(String name)
Set the name property: The name of the connection monitor endpoint.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withType
public ConnectionMonitorEndpoint withType(EndpointType type)
Set the type property: The endpoint type.
Parameters:
Returns:
Applies to
Azure SDK for Java