/*
 * 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.v1.model;

/**
 * For display only. Metadata associated with a Compute Engine instance.
 *
 * <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 InstanceInfo extends com.google.api.client.json.GenericJson {

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

  /**
   * External IP address of the network interface.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String externalIp;

  /**
   * Name of the network interface of a Compute Engine instance.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key("interface")
  private java.lang.String interface__;

  /**
   * Internal IP address of the network interface.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String internalIp;

  /**
   * Network tags configured on the instance.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> networkTags;

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

  /**
   * Service account authorized for the instance.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String serviceAccount;

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

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

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

  /**
   * External IP address of the network interface.
   * @return value or {@code null} for none
   */
  public java.lang.String getExternalIp() {
    return externalIp;
  }

  /**
   * External IP address of the network interface.
   * @param externalIp externalIp or {@code null} for none
   */
  public InstanceInfo setExternalIp(java.lang.String externalIp) {
    this.externalIp = externalIp;
    return this;
  }

  /**
   * Name of the network interface of a Compute Engine instance.
   * @return value or {@code null} for none
   */
  public java.lang.String getInterface() {
    return interface__;
  }

  /**
   * Name of the network interface of a Compute Engine instance.
   * @param interface__ interface__ or {@code null} for none
   */
  public InstanceInfo setInterface(java.lang.String interface__) {
    this.interface__ = interface__;
    return this;
  }

  /**
   * Internal IP address of the network interface.
   * @return value or {@code null} for none
   */
  public java.lang.String getInternalIp() {
    return internalIp;
  }

  /**
   * Internal IP address of the network interface.
   * @param internalIp internalIp or {@code null} for none
   */
  public InstanceInfo setInternalIp(java.lang.String internalIp) {
    this.internalIp = internalIp;
    return this;
  }

  /**
   * Network tags configured on the instance.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getNetworkTags() {
    return networkTags;
  }

  /**
   * Network tags configured on the instance.
   * @param networkTags networkTags or {@code null} for none
   */
  public InstanceInfo setNetworkTags(java.util.List<java.lang.String> networkTags) {
    this.networkTags = networkTags;
    return this;
  }

  /**
   * URI of a Compute Engine network.
   * @return value or {@code null} for none
   */
  public java.lang.String getNetworkUri() {
    return networkUri;
  }

  /**
   * URI of a Compute Engine network.
   * @param networkUri networkUri or {@code null} for none
   */
  public InstanceInfo setNetworkUri(java.lang.String networkUri) {
    this.networkUri = networkUri;
    return this;
  }

  /**
   * Service account authorized for the instance.
   * @return value or {@code null} for none
   */
  public java.lang.String getServiceAccount() {
    return serviceAccount;
  }

  /**
   * Service account authorized for the instance.
   * @param serviceAccount serviceAccount or {@code null} for none
   */
  public InstanceInfo setServiceAccount(java.lang.String serviceAccount) {
    this.serviceAccount = serviceAccount;
    return this;
  }

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

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

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

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

}
