
com.microsoft.azure.management.network.implementation.NextHopParametersInner 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.fasterxml.jackson.annotation.JsonProperty;
/**
* Parameters that define the source and destination endpoint.
*/
public class NextHopParametersInner {
/**
* The resource identifier of the target resource against which the action
* is to be performed.
*/
@JsonProperty(value = "targetResourceId", required = true)
private String targetResourceId;
/**
* The source IP address.
*/
@JsonProperty(value = "sourceIPAddress", required = true)
private String sourceIPAddress;
/**
* The destination IP address.
*/
@JsonProperty(value = "destinationIPAddress", required = true)
private String destinationIPAddress;
/**
* The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any
* of the nics, 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 NextHopParametersInner object itself.
*/
public NextHopParametersInner withTargetResourceId(String targetResourceId) {
this.targetResourceId = targetResourceId;
return this;
}
/**
* Get the sourceIPAddress value.
*
* @return the sourceIPAddress value
*/
public String sourceIPAddress() {
return this.sourceIPAddress;
}
/**
* Set the sourceIPAddress value.
*
* @param sourceIPAddress the sourceIPAddress value to set
* @return the NextHopParametersInner object itself.
*/
public NextHopParametersInner withSourceIPAddress(String sourceIPAddress) {
this.sourceIPAddress = sourceIPAddress;
return this;
}
/**
* Get the destinationIPAddress value.
*
* @return the destinationIPAddress value
*/
public String destinationIPAddress() {
return this.destinationIPAddress;
}
/**
* Set the destinationIPAddress value.
*
* @param destinationIPAddress the destinationIPAddress value to set
* @return the NextHopParametersInner object itself.
*/
public NextHopParametersInner withDestinationIPAddress(String destinationIPAddress) {
this.destinationIPAddress = destinationIPAddress;
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 NextHopParametersInner object itself.
*/
public NextHopParametersInner withTargetNicResourceId(String targetNicResourceId) {
this.targetNicResourceId = targetNicResourceId;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy