Class ConnectivityCheckRequest
java.lang.Object
com.azure.resourcemanager.apimanagement.models.ConnectivityCheckRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectivityCheckRequest>
public final class ConnectivityCheckRequest
extends Object
implements com.azure.json.JsonSerializable<ConnectivityCheckRequest>
A request to perform the connectivity check operation on a API Management service.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectivityCheckRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destination property: The connectivity check operation destination.static ConnectivityCheckRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectivityCheckRequest from the JsonReader.Get the preferredIpVersion property: The IP version to be used.protocol()Get the protocol property: The request's protocol.Get the protocolConfiguration property: Protocol-specific configuration.source()Get the source property: Definitions about the connectivity check origin.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestination(ConnectivityCheckRequestDestination destination) Set the destination property: The connectivity check operation destination.withPreferredIpVersion(PreferredIpVersion preferredIpVersion) Set the preferredIpVersion property: The IP version to be used.withProtocol(ConnectivityCheckProtocol protocol) Set the protocol property: The request's protocol.withProtocolConfiguration(ConnectivityCheckRequestProtocolConfiguration protocolConfiguration) Set the protocolConfiguration property: Protocol-specific configuration.Set the source property: Definitions about the connectivity check origin.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ConnectivityCheckRequest
public ConnectivityCheckRequest()Creates an instance of ConnectivityCheckRequest class.
-
-
Method Details
-
source
Get the source property: Definitions about the connectivity check origin.- Returns:
- the source value.
-
withSource
Set the source property: Definitions about the connectivity check origin.- Parameters:
source- the source value to set.- Returns:
- the ConnectivityCheckRequest object itself.
-
destination
Get the destination property: The connectivity check operation destination.- Returns:
- the destination value.
-
withDestination
Set the destination property: The connectivity check operation destination.- Parameters:
destination- the destination value to set.- Returns:
- the ConnectivityCheckRequest object itself.
-
preferredIpVersion
Get the preferredIpVersion property: The IP version to be used. Only IPv4 is supported for now.- Returns:
- the preferredIpVersion value.
-
withPreferredIpVersion
Set the preferredIpVersion property: The IP version to be used. Only IPv4 is supported for now.- Parameters:
preferredIpVersion- the preferredIpVersion value to set.- Returns:
- the ConnectivityCheckRequest object itself.
-
protocol
Get the protocol property: The request's protocol. Specific protocol configuration can be available based on this selection. The specified destination address must be coherent with this value.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: The request's protocol. Specific protocol configuration can be available based on this selection. The specified destination address must be coherent with this value.- Parameters:
protocol- the protocol value to set.- Returns:
- the ConnectivityCheckRequest object itself.
-
protocolConfiguration
Get the protocolConfiguration property: Protocol-specific configuration.- Returns:
- the protocolConfiguration value.
-
withProtocolConfiguration
public ConnectivityCheckRequest withProtocolConfiguration(ConnectivityCheckRequestProtocolConfiguration protocolConfiguration) Set the protocolConfiguration property: Protocol-specific configuration.- Parameters:
protocolConfiguration- the protocolConfiguration value to set.- Returns:
- the ConnectivityCheckRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ConnectivityCheckRequest>- Throws:
IOException
-
fromJson
public static ConnectivityCheckRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectivityCheckRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectivityCheckRequest 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 ConnectivityCheckRequest.
-