
com.microsoft.azure.management.network.implementation.VerificationIPFlowParametersInner Maven / Gradle / Ivy
/**
* 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.Direction;
import com.microsoft.azure.management.network.Protocol;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Parameters that define the IP flow to be verified.
*/
public class VerificationIPFlowParametersInner {
/**
* The ID of the target resource to perform next-hop on.
*/
@JsonProperty(value = "targetResourceId", required = true)
private String targetResourceId;
/**
* The direction of the packet represented as a 5-tuple. Possible values
* include: 'Inbound', 'Outbound'.
*/
@JsonProperty(value = "direction", required = true)
private Direction direction;
/**
* Protocol to be verified on. Possible values include: 'TCP', 'UDP'.
*/
@JsonProperty(value = "protocol", required = true)
private Protocol protocol;
/**
* The local port. Acceptable values are a single integer in the range
* (0-65535). Support for * for the source port, which depends on the
* direction.
*/
@JsonProperty(value = "localPort", required = true)
private String localPort;
/**
* The remote port. Acceptable values are a single integer in the range
* (0-65535). Support for * for the source port, which depends on the
* direction.
*/
@JsonProperty(value = "remotePort", required = true)
private String remotePort;
/**
* The local IP address. Acceptable values are valid IPv4 addresses.
*/
@JsonProperty(value = "localIPAddress", required = true)
private String localIPAddress;
/**
* The remote IP address. Acceptable values are valid IPv4 addresses.
*/
@JsonProperty(value = "remoteIPAddress", required = true)
private String remoteIPAddress;
/**
* The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any
* of them, then this parameter must be specified. Otherwise optional).
*/
@JsonProperty(value = "targetNicResourceId")
private String targetNicResourceId;
/**
* Get the targetResourceId value.
*
* @return the targetResourceId value
*/
public String targetResourceId() {
return this.targetResourceId;
}
/**
* Set the targetResourceId value.
*
* @param targetResourceId the targetResourceId value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withTargetResourceId(String targetResourceId) {
this.targetResourceId = targetResourceId;
return this;
}
/**
* Get the direction value.
*
* @return the direction value
*/
public Direction direction() {
return this.direction;
}
/**
* Set the direction value.
*
* @param direction the direction value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withDirection(Direction direction) {
this.direction = direction;
return this;
}
/**
* Get the protocol value.
*
* @return the protocol value
*/
public Protocol protocol() {
return this.protocol;
}
/**
* Set the protocol value.
*
* @param protocol the protocol value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withProtocol(Protocol protocol) {
this.protocol = protocol;
return this;
}
/**
* Get the localPort value.
*
* @return the localPort value
*/
public String localPort() {
return this.localPort;
}
/**
* Set the localPort value.
*
* @param localPort the localPort value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withLocalPort(String localPort) {
this.localPort = localPort;
return this;
}
/**
* Get the remotePort value.
*
* @return the remotePort value
*/
public String remotePort() {
return this.remotePort;
}
/**
* Set the remotePort value.
*
* @param remotePort the remotePort value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withRemotePort(String remotePort) {
this.remotePort = remotePort;
return this;
}
/**
* Get the localIPAddress value.
*
* @return the localIPAddress value
*/
public String localIPAddress() {
return this.localIPAddress;
}
/**
* Set the localIPAddress value.
*
* @param localIPAddress the localIPAddress value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withLocalIPAddress(String localIPAddress) {
this.localIPAddress = localIPAddress;
return this;
}
/**
* Get the remoteIPAddress value.
*
* @return the remoteIPAddress value
*/
public String remoteIPAddress() {
return this.remoteIPAddress;
}
/**
* Set the remoteIPAddress value.
*
* @param remoteIPAddress the remoteIPAddress value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withRemoteIPAddress(String remoteIPAddress) {
this.remoteIPAddress = remoteIPAddress;
return this;
}
/**
* Get the targetNicResourceId value.
*
* @return the targetNicResourceId value
*/
public String targetNicResourceId() {
return this.targetNicResourceId;
}
/**
* Set the targetNicResourceId value.
*
* @param targetNicResourceId the targetNicResourceId value to set
* @return the VerificationIPFlowParametersInner object itself.
*/
public VerificationIPFlowParametersInner withTargetNicResourceId(String targetNicResourceId) {
this.targetNicResourceId = targetNicResourceId;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy