Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network.implementation; import com.microsoft.azure.management.network.ConnectionMonitorSource; import com.microsoft.azure.management.network.ConnectionMonitorDestination; import java.util.List; import com.microsoft.azure.management.network.ConnectionMonitorEndpoint; import com.microsoft.azure.management.network.ConnectionMonitorTestConfiguration; import com.microsoft.azure.management.network.ConnectionMonitorTestGroup; import com.microsoft.azure.management.network.ConnectionMonitorOutput; import com.microsoft.azure.management.network.ProvisioningState; import org.joda.time.DateTime; import com.microsoft.azure.management.network.ConnectionMonitorType; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource;
Information about the connection monitor.
/** * Information about the connection monitor. */
@JsonFlatten public class ConnectionMonitorResultInner extends Resource {
A unique read-only string that changes whenever the resource is updated.
/** * A unique read-only string that changes whenever the resource is updated. */
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag;
Describes the source of connection monitor.
/** * Describes the source of connection monitor. */
@JsonProperty(value = "properties.source") private ConnectionMonitorSource source;
Describes the destination of connection monitor.
/** * Describes the destination of connection monitor. */
@JsonProperty(value = "properties.destination") private ConnectionMonitorDestination destination;
Determines if the connection monitor will start automatically once created.
/** * Determines if the connection monitor will start automatically once * created. */
@JsonProperty(value = "properties.autoStart") private Boolean autoStart;
Monitoring interval in seconds.
/** * Monitoring interval in seconds. */
@JsonProperty(value = "properties.monitoringIntervalInSeconds") private Integer monitoringIntervalInSeconds;
List of connection monitor endpoints.
/** * List of connection monitor endpoints. */
@JsonProperty(value = "properties.endpoints") private List<ConnectionMonitorEndpoint> endpoints;
List of connection monitor test configurations.
/** * List of connection monitor test configurations. */
@JsonProperty(value = "properties.testConfigurations") private List<ConnectionMonitorTestConfiguration> testConfigurations;
List of connection monitor test groups.
/** * List of connection monitor test groups. */
@JsonProperty(value = "properties.testGroups") private List<ConnectionMonitorTestGroup> testGroups;
List of connection monitor outputs.
/** * List of connection monitor outputs. */
@JsonProperty(value = "properties.outputs") private List<ConnectionMonitorOutput> outputs;
Optional notes to be associated with the connection monitor.
/** * Optional notes to be associated with the connection monitor. */
@JsonProperty(value = "properties.notes") private String notes;
The provisioning state of the connection monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the connection monitor. Possible values * include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
The date and time when the connection monitor was started.
/** * The date and time when the connection monitor was started. */
@JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime startTime;
The monitoring status of the connection monitor.
/** * The monitoring status of the connection monitor. */
@JsonProperty(value = "properties.monitoringStatus", access = JsonProperty.Access.WRITE_ONLY) private String monitoringStatus;
Type of connection monitor. Possible values include: 'MultiEndpoint', 'SingleSourceDestination'.
/** * Type of connection monitor. Possible values include: 'MultiEndpoint', * 'SingleSourceDestination'. */
@JsonProperty(value = "properties.connectionMonitorType", access = JsonProperty.Access.WRITE_ONLY) private ConnectionMonitorType connectionMonitorType;
Get a unique read-only string that changes whenever the resource is updated.
Returns:the etag value
/** * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */
public String etag() { return this.etag; }
Get describes the source of connection monitor.
Returns:the source value
/** * Get describes the source of connection monitor. * * @return the source value */
public ConnectionMonitorSource source() { return this.source; }
Set describes the source of connection monitor.
Params:
  • source – the source value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set describes the source of connection monitor. * * @param source the source value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withSource(ConnectionMonitorSource source) { this.source = source; return this; }
Get describes the destination of connection monitor.
Returns:the destination value
/** * Get describes the destination of connection monitor. * * @return the destination value */
public ConnectionMonitorDestination destination() { return this.destination; }
Set describes the destination of connection monitor.
Params:
  • destination – the destination value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set describes the destination of connection monitor. * * @param destination the destination value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withDestination(ConnectionMonitorDestination destination) { this.destination = destination; return this; }
Get determines if the connection monitor will start automatically once created.
Returns:the autoStart value
/** * Get determines if the connection monitor will start automatically once created. * * @return the autoStart value */
public Boolean autoStart() { return this.autoStart; }
Set determines if the connection monitor will start automatically once created.
Params:
  • autoStart – the autoStart value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set determines if the connection monitor will start automatically once created. * * @param autoStart the autoStart value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withAutoStart(Boolean autoStart) { this.autoStart = autoStart; return this; }
Get monitoring interval in seconds.
Returns:the monitoringIntervalInSeconds value
/** * Get monitoring interval in seconds. * * @return the monitoringIntervalInSeconds value */
public Integer monitoringIntervalInSeconds() { return this.monitoringIntervalInSeconds; }
Set monitoring interval in seconds.
Params:
  • monitoringIntervalInSeconds – the monitoringIntervalInSeconds value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set monitoring interval in seconds. * * @param monitoringIntervalInSeconds the monitoringIntervalInSeconds value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withMonitoringIntervalInSeconds(Integer monitoringIntervalInSeconds) { this.monitoringIntervalInSeconds = monitoringIntervalInSeconds; return this; }
Get list of connection monitor endpoints.
Returns:the endpoints value
/** * Get list of connection monitor endpoints. * * @return the endpoints value */
public List<ConnectionMonitorEndpoint> endpoints() { return this.endpoints; }
Set list of connection monitor endpoints.
Params:
  • endpoints – the endpoints value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set list of connection monitor endpoints. * * @param endpoints the endpoints value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withEndpoints(List<ConnectionMonitorEndpoint> endpoints) { this.endpoints = endpoints; return this; }
Get list of connection monitor test configurations.
Returns:the testConfigurations value
/** * Get list of connection monitor test configurations. * * @return the testConfigurations value */
public List<ConnectionMonitorTestConfiguration> testConfigurations() { return this.testConfigurations; }
Set list of connection monitor test configurations.
Params:
  • testConfigurations – the testConfigurations value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set list of connection monitor test configurations. * * @param testConfigurations the testConfigurations value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withTestConfigurations(List<ConnectionMonitorTestConfiguration> testConfigurations) { this.testConfigurations = testConfigurations; return this; }
Get list of connection monitor test groups.
Returns:the testGroups value
/** * Get list of connection monitor test groups. * * @return the testGroups value */
public List<ConnectionMonitorTestGroup> testGroups() { return this.testGroups; }
Set list of connection monitor test groups.
Params:
  • testGroups – the testGroups value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set list of connection monitor test groups. * * @param testGroups the testGroups value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withTestGroups(List<ConnectionMonitorTestGroup> testGroups) { this.testGroups = testGroups; return this; }
Get list of connection monitor outputs.
Returns:the outputs value
/** * Get list of connection monitor outputs. * * @return the outputs value */
public List<ConnectionMonitorOutput> outputs() { return this.outputs; }
Set list of connection monitor outputs.
Params:
  • outputs – the outputs value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set list of connection monitor outputs. * * @param outputs the outputs value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withOutputs(List<ConnectionMonitorOutput> outputs) { this.outputs = outputs; return this; }
Get optional notes to be associated with the connection monitor.
Returns:the notes value
/** * Get optional notes to be associated with the connection monitor. * * @return the notes value */
public String notes() { return this.notes; }
Set optional notes to be associated with the connection monitor.
Params:
  • notes – the notes value to set
Returns:the ConnectionMonitorResultInner object itself.
/** * Set optional notes to be associated with the connection monitor. * * @param notes the notes value to set * @return the ConnectionMonitorResultInner object itself. */
public ConnectionMonitorResultInner withNotes(String notes) { this.notes = notes; return this; }
Get the provisioning state of the connection monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the connection monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get the date and time when the connection monitor was started.
Returns:the startTime value
/** * Get the date and time when the connection monitor was started. * * @return the startTime value */
public DateTime startTime() { return this.startTime; }
Get the monitoring status of the connection monitor.
Returns:the monitoringStatus value
/** * Get the monitoring status of the connection monitor. * * @return the monitoringStatus value */
public String monitoringStatus() { return this.monitoringStatus; }
Get type of connection monitor. Possible values include: 'MultiEndpoint', 'SingleSourceDestination'.
Returns:the connectionMonitorType value
/** * Get type of connection monitor. Possible values include: 'MultiEndpoint', 'SingleSourceDestination'. * * @return the connectionMonitorType value */
public ConnectionMonitorType connectionMonitorType() { return this.connectionMonitorType; } }