ConnectionMonitorResultProperties Class

public final class ConnectionMonitorResultProperties
extends ConnectionMonitorParameters

Describes the properties of a connection monitor.

Constructor Summary

Constructor Description
ConnectionMonitorResultProperties()

Creates an instance of ConnectionMonitorResultProperties class.

Method Summary

Modifier and Type Method and Description
ConnectionMonitorType connectionMonitorType()

Get the connectionMonitorType property: Type of connection monitor.

static ConnectionMonitorResultProperties fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorResultProperties from the JsonReader.

String monitoringStatus()

Get the monitoringStatus property: The monitoring status of the connection monitor.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the connection monitor.

OffsetDateTime startTime()

Get the startTime property: The date and time when the connection monitor was started.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionMonitorResultProperties withAutoStart(Boolean autoStart)

Set the autoStart property: Determines if the connection monitor will start automatically once created.

ConnectionMonitorResultProperties withDestination(ConnectionMonitorDestination destination)

Set the destination property: Describes the destination of connection monitor.

ConnectionMonitorResultProperties withEndpoints(List<ConnectionMonitorEndpoint> endpoints)

Set the endpoints property: List of connection monitor endpoints.

ConnectionMonitorResultProperties withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds)

Set the monitoringIntervalInSeconds property: Monitoring interval in seconds.

ConnectionMonitorResultProperties withNotes(String notes)

Set the notes property: Optional notes to be associated with the connection monitor.

ConnectionMonitorResultProperties withOutputs(List<ConnectionMonitorOutput> outputs)

Set the outputs property: List of connection monitor outputs.

ConnectionMonitorResultProperties withSource(ConnectionMonitorSource source)

Set the source property: Describes the source of connection monitor.

ConnectionMonitorResultProperties withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations)

Set the testConfigurations property: List of connection monitor test configurations.

ConnectionMonitorResultProperties withTestGroups(List<ConnectionMonitorTestGroup> testGroups)

Set the testGroups property: List of connection monitor test groups.

Methods inherited from ConnectionMonitorParameters

Methods inherited from java.lang.Object

Constructor Details

ConnectionMonitorResultProperties

public ConnectionMonitorResultProperties()

Creates an instance of ConnectionMonitorResultProperties class.

Method Details

connectionMonitorType

public ConnectionMonitorType connectionMonitorType()

Get the connectionMonitorType property: Type of connection monitor.

Returns:

the connectionMonitorType value.

fromJson

public static ConnectionMonitorResultProperties fromJson(JsonReader jsonReader)

Reads an instance of ConnectionMonitorResultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionMonitorResultProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ConnectionMonitorResultProperties.

monitoringStatus

public String monitoringStatus()

Get the monitoringStatus property: The monitoring status of the connection monitor.

Returns:

the monitoringStatus value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the connection monitor.

Returns:

the provisioningState value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The date and time when the connection monitor was started.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ConnectionMonitorResultProperties.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ConnectionMonitorResultProperties.validate()

withAutoStart

public ConnectionMonitorResultProperties withAutoStart(Boolean autoStart)

Set the autoStart property: Determines if the connection monitor will start automatically once created.

Overrides:

ConnectionMonitorResultProperties.withAutoStart(Boolean autoStart)

Parameters:

autoStart

withDestination

public ConnectionMonitorResultProperties withDestination(ConnectionMonitorDestination destination)

Set the destination property: Describes the destination of connection monitor.

Overrides:

ConnectionMonitorResultProperties.withDestination(ConnectionMonitorDestination destination)

Parameters:

destination

withEndpoints

public ConnectionMonitorResultProperties withEndpoints(List<ConnectionMonitorEndpoint> endpoints)

Set the endpoints property: List of connection monitor endpoints.

Overrides:

ConnectionMonitorResultProperties.withEndpoints(List<ConnectionMonitorEndpoint> endpoints)

Parameters:

endpoints

withMonitoringIntervalInSeconds

public ConnectionMonitorResultProperties withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds)

Set the monitoringIntervalInSeconds property: Monitoring interval in seconds.

Overrides:

ConnectionMonitorResultProperties.withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds)

Parameters:

monitoringIntervalInSeconds

withNotes

public ConnectionMonitorResultProperties withNotes(String notes)

Set the notes property: Optional notes to be associated with the connection monitor.

Overrides:

ConnectionMonitorResultProperties.withNotes(String notes)

Parameters:

notes

withOutputs

public ConnectionMonitorResultProperties withOutputs(List<ConnectionMonitorOutput> outputs)

Set the outputs property: List of connection monitor outputs.

Overrides:

ConnectionMonitorResultProperties.withOutputs(List<ConnectionMonitorOutput> outputs)

Parameters:

outputs

withSource

public ConnectionMonitorResultProperties withSource(ConnectionMonitorSource source)

Set the source property: Describes the source of connection monitor.

Overrides:

ConnectionMonitorResultProperties.withSource(ConnectionMonitorSource source)

Parameters:

source

withTestConfigurations

public ConnectionMonitorResultProperties withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations)

Set the testConfigurations property: List of connection monitor test configurations.

Overrides:

ConnectionMonitorResultProperties.withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations)

Parameters:

testConfigurations

withTestGroups

public ConnectionMonitorResultProperties withTestGroups(List<ConnectionMonitorTestGroup> testGroups)

Set the testGroups property: List of connection monitor test groups.

Overrides:

ConnectionMonitorResultProperties.withTestGroups(List<ConnectionMonitorTestGroup> testGroups)

Parameters:

testGroups

Applies to