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

/**
 * Details for an invalid transfer or forward.
 *
 * <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 Google Workspace Alert Center 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 TransferError extends com.google.api.client.json.GenericJson {

  /**
   * User's email address. This may be unavailable if the entity was deleted.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String email;

  /**
   * Type of entity being transferred to. For ring group members, this should always be USER.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String entityType;

  /**
   * Ring group or auto attendant ID. Not set for users.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String id;

  /**
   * Reason for the error.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String invalidReason;

  /**
   * User's full name, or the ring group / auto attendant name. This may be unavailable if the
   * entity was deleted.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * User's email address. This may be unavailable if the entity was deleted.
   * @return value or {@code null} for none
   */
  public java.lang.String getEmail() {
    return email;
  }

  /**
   * User's email address. This may be unavailable if the entity was deleted.
   * @param email email or {@code null} for none
   */
  public TransferError setEmail(java.lang.String email) {
    this.email = email;
    return this;
  }

  /**
   * Type of entity being transferred to. For ring group members, this should always be USER.
   * @return value or {@code null} for none
   */
  public java.lang.String getEntityType() {
    return entityType;
  }

  /**
   * Type of entity being transferred to. For ring group members, this should always be USER.
   * @param entityType entityType or {@code null} for none
   */
  public TransferError setEntityType(java.lang.String entityType) {
    this.entityType = entityType;
    return this;
  }

  /**
   * Ring group or auto attendant ID. Not set for users.
   * @return value or {@code null} for none
   */
  public java.lang.String getId() {
    return id;
  }

  /**
   * Ring group or auto attendant ID. Not set for users.
   * @param id id or {@code null} for none
   */
  public TransferError setId(java.lang.String id) {
    this.id = id;
    return this;
  }

  /**
   * Reason for the error.
   * @return value or {@code null} for none
   */
  public java.lang.String getInvalidReason() {
    return invalidReason;
  }

  /**
   * Reason for the error.
   * @param invalidReason invalidReason or {@code null} for none
   */
  public TransferError setInvalidReason(java.lang.String invalidReason) {
    this.invalidReason = invalidReason;
    return this;
  }

  /**
   * User's full name, or the ring group / auto attendant name. This may be unavailable if the
   * entity was deleted.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * User's full name, or the ring group / auto attendant name. This may be unavailable if the
   * entity was deleted.
   * @param name name or {@code null} for none
   */
  public TransferError setName(java.lang.String name) {
    this.name = name;
    return this;
  }

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

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

}
