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;
import com.fasterxml.jackson.annotation.JsonProperty;
Parameters to compare with network configuration.
/**
* Parameters to compare with network configuration.
*/
public class NetworkConfigurationDiagnosticProfile {
The direction of the traffic. Possible values include: 'Inbound',
'Outbound'.
/**
* The direction of the traffic. Possible values include: 'Inbound',
* 'Outbound'.
*/
@JsonProperty(value = "direction", required = true)
private Direction direction;
Protocol to be verified on. Accepted values are '*', TCP, UDP.
/**
* Protocol to be verified on. Accepted values are '*', TCP, UDP.
*/
@JsonProperty(value = "protocol", required = true)
private String protocol;
Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
/**
* Traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
*/
@JsonProperty(value = "source", required = true)
private String source;
Traffic destination. Accepted values are: '*', IP Address/CIDR, Service
Tag.
/**
* Traffic destination. Accepted values are: '*', IP Address/CIDR, Service
* Tag.
*/
@JsonProperty(value = "destination", required = true)
private String destination;
Traffic destination port. Accepted values are '*' and a single port in
the range (0 - 65535).
/**
* Traffic destination port. Accepted values are '*' and a single port in
* the range (0 - 65535).
*/
@JsonProperty(value = "destinationPort", required = true)
private String destinationPort;
Get the direction of the traffic. Possible values include: 'Inbound', 'Outbound'.
Returns: the direction value
/**
* Get the direction of the traffic. Possible values include: 'Inbound', 'Outbound'.
*
* @return the direction value
*/
public Direction direction() {
return this.direction;
}
Set the direction of the traffic. Possible values include: 'Inbound', 'Outbound'.
Params: - direction – the direction value to set
Returns: the NetworkConfigurationDiagnosticProfile object itself.
/**
* Set the direction of the traffic. Possible values include: 'Inbound', 'Outbound'.
*
* @param direction the direction value to set
* @return the NetworkConfigurationDiagnosticProfile object itself.
*/
public NetworkConfigurationDiagnosticProfile withDirection(Direction direction) {
this.direction = direction;
return this;
}
Get protocol to be verified on. Accepted values are '*', TCP, UDP.
Returns: the protocol value
/**
* Get protocol to be verified on. Accepted values are '*', TCP, UDP.
*
* @return the protocol value
*/
public String protocol() {
return this.protocol;
}
Set protocol to be verified on. Accepted values are '*', TCP, UDP.
Params: - protocol – the protocol value to set
Returns: the NetworkConfigurationDiagnosticProfile object itself.
/**
* Set protocol to be verified on. Accepted values are '*', TCP, UDP.
*
* @param protocol the protocol value to set
* @return the NetworkConfigurationDiagnosticProfile object itself.
*/
public NetworkConfigurationDiagnosticProfile withProtocol(String protocol) {
this.protocol = protocol;
return this;
}
Get traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
Returns: the source value
/**
* Get traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
*
* @return the source value
*/
public String source() {
return this.source;
}
Set traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
Params: - source – the source value to set
Returns: the NetworkConfigurationDiagnosticProfile object itself.
/**
* Set traffic source. Accepted values are '*', IP Address/CIDR, Service Tag.
*
* @param source the source value to set
* @return the NetworkConfigurationDiagnosticProfile object itself.
*/
public NetworkConfigurationDiagnosticProfile withSource(String source) {
this.source = source;
return this;
}
Get traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.
Returns: the destination value
/**
* Get traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.
*
* @return the destination value
*/
public String destination() {
return this.destination;
}
Set traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.
Params: - destination – the destination value to set
Returns: the NetworkConfigurationDiagnosticProfile object itself.
/**
* Set traffic destination. Accepted values are: '*', IP Address/CIDR, Service Tag.
*
* @param destination the destination value to set
* @return the NetworkConfigurationDiagnosticProfile object itself.
*/
public NetworkConfigurationDiagnosticProfile withDestination(String destination) {
this.destination = destination;
return this;
}
Get traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).
Returns: the destinationPort value
/**
* Get traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).
*
* @return the destinationPort value
*/
public String destinationPort() {
return this.destinationPort;
}
Set traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).
Params: - destinationPort – the destinationPort value to set
Returns: the NetworkConfigurationDiagnosticProfile object itself.
/**
* Set traffic destination port. Accepted values are '*' and a single port in the range (0 - 65535).
*
* @param destinationPort the destinationPort value to set
* @return the NetworkConfigurationDiagnosticProfile object itself.
*/
public NetworkConfigurationDiagnosticProfile withDestinationPort(String destinationPort) {
this.destinationPort = destinationPort;
return this;
}
}