All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.network.NextHopParameters Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * 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 that define the source and destination endpoint.
 */
public class NextHopParameters {
    /**
     * 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 resource identifier of the target resource against which the action is to be performed.
     *
     * @return the targetResourceId value
     */
    public String targetResourceId() {
        return this.targetResourceId;
    }

    /**
     * Set the resource identifier of the target resource against which the action is to be performed.
     *
     * @param targetResourceId the targetResourceId value to set
     * @return the NextHopParameters object itself.
     */
    public NextHopParameters withTargetResourceId(String targetResourceId) {
        this.targetResourceId = targetResourceId;
        return this;
    }

    /**
     * Get the source IP address.
     *
     * @return the sourceIPAddress value
     */
    public String sourceIPAddress() {
        return this.sourceIPAddress;
    }

    /**
     * Set the source IP address.
     *
     * @param sourceIPAddress the sourceIPAddress value to set
     * @return the NextHopParameters object itself.
     */
    public NextHopParameters withSourceIPAddress(String sourceIPAddress) {
        this.sourceIPAddress = sourceIPAddress;
        return this;
    }

    /**
     * Get the destination IP address.
     *
     * @return the destinationIPAddress value
     */
    public String destinationIPAddress() {
        return this.destinationIPAddress;
    }

    /**
     * Set the destination IP address.
     *
     * @param destinationIPAddress the destinationIPAddress value to set
     * @return the NextHopParameters object itself.
     */
    public NextHopParameters withDestinationIPAddress(String destinationIPAddress) {
        this.destinationIPAddress = destinationIPAddress;
        return this;
    }

    /**
     * Get 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).
     *
     * @return the targetNicResourceId value
     */
    public String targetNicResourceId() {
        return this.targetNicResourceId;
    }

    /**
     * Set 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).
     *
     * @param targetNicResourceId the targetNicResourceId value to set
     * @return the NextHopParameters object itself.
     */
    public NextHopParameters withTargetNicResourceId(String targetNicResourceId) {
        this.targetNicResourceId = targetNicResourceId;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy