/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.networkmanagement.v1beta1.model;

/**
 * For display only. Metadata associated with a Compute Engine forwarding rule.
 *
 * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
 * transmitted over HTTP when working with the Network Management API. For a detailed explanation
 * see:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class ForwardingRuleInfo extends com.google.api.client.json.GenericJson {

  /**
   * Name of a Compute Engine forwarding rule.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * Port range defined in the forwarding rule that matches the test.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String matchedPortRange;

  /**
   * Protocol defined in the forwarding rule that matches the test.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String matchedProtocol;

  /**
   * Network URI. Only valid for Internal Load Balancer.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String networkUri;

  /**
   * Target type of the forwarding rule.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String target;

  /**
   * URI of a Compute Engine forwarding rule.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String uri;

  /**
   * VIP of the forwarding rule.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String vip;

  /**
   * Name of a Compute Engine forwarding rule.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Name of a Compute Engine forwarding rule.
   * @param displayName displayName or {@code null} for none
   */
  public ForwardingRuleInfo setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * Port range defined in the forwarding rule that matches the test.
   * @return value or {@code null} for none
   */
  public java.lang.String getMatchedPortRange() {
    return matchedPortRange;
  }

  /**
   * Port range defined in the forwarding rule that matches the test.
   * @param matchedPortRange matchedPortRange or {@code null} for none
   */
  public ForwardingRuleInfo setMatchedPortRange(java.lang.String matchedPortRange) {
    this.matchedPortRange = matchedPortRange;
    return this;
  }

  /**
   * Protocol defined in the forwarding rule that matches the test.
   * @return value or {@code null} for none
   */
  public java.lang.String getMatchedProtocol() {
    return matchedProtocol;
  }

  /**
   * Protocol defined in the forwarding rule that matches the test.
   * @param matchedProtocol matchedProtocol or {@code null} for none
   */
  public ForwardingRuleInfo setMatchedProtocol(java.lang.String matchedProtocol) {
    this.matchedProtocol = matchedProtocol;
    return this;
  }

  /**
   * Network URI. Only valid for Internal Load Balancer.
   * @return value or {@code null} for none
   */
  public java.lang.String getNetworkUri() {
    return networkUri;
  }

  /**
   * Network URI. Only valid for Internal Load Balancer.
   * @param networkUri networkUri or {@code null} for none
   */
  public ForwardingRuleInfo setNetworkUri(java.lang.String networkUri) {
    this.networkUri = networkUri;
    return this;
  }

  /**
   * Target type of the forwarding rule.
   * @return value or {@code null} for none
   */
  public java.lang.String getTarget() {
    return target;
  }

  /**
   * Target type of the forwarding rule.
   * @param target target or {@code null} for none
   */
  public ForwardingRuleInfo setTarget(java.lang.String target) {
    this.target = target;
    return this;
  }

  /**
   * URI of a Compute Engine forwarding rule.
   * @return value or {@code null} for none
   */
  public java.lang.String getUri() {
    return uri;
  }

  /**
   * URI of a Compute Engine forwarding rule.
   * @param uri uri or {@code null} for none
   */
  public ForwardingRuleInfo setUri(java.lang.String uri) {
    this.uri = uri;
    return this;
  }

  /**
   * VIP of the forwarding rule.
   * @return value or {@code null} for none
   */
  public java.lang.String getVip() {
    return vip;
  }

  /**
   * VIP of the forwarding rule.
   * @param vip vip or {@code null} for none
   */
  public ForwardingRuleInfo setVip(java.lang.String vip) {
    this.vip = vip;
    return this;
  }

  @Override
  public ForwardingRuleInfo set(String fieldName, Object value) {
    return (ForwardingRuleInfo) super.set(fieldName, value);
  }

  @Override
  public ForwardingRuleInfo clone() {
    return (ForwardingRuleInfo) super.clone();
  }

}
