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

com.microsoft.azure.management.network.NetworkConfigurationDiagnosticProfile 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 to compare with network configuration.
 */
public class NetworkConfigurationDiagnosticProfile {
    /**
     * 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.
     */
    @JsonProperty(value = "protocol", required = true)
    private String protocol;

    /**
     * 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.
     */
    @JsonProperty(value = "destination", required = true)
    private String destination;

    /**
     * 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'.
     *
     * @return the direction value
     */
    public Direction direction() {
        return this.direction;
    }

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy