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

/**
 * Roster profile information.
 *
 * <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 Cloud Search 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 AppsDynamiteFrontendRoster extends com.google.api.client.json.GenericJson {

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String avatarUrl;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private AppsDynamiteRosterId id;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer membershipCount;

  /**
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Roster gaia key, usually an email address. Set in looking up rosters response.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String rosterGaiaKey;

  /**
   * Roster deletion state - considered active unless set to deleted
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String rosterState;

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getAvatarUrl() {
    return avatarUrl;
  }

  /**
   * @param avatarUrl avatarUrl or {@code null} for none
   */
  public AppsDynamiteFrontendRoster setAvatarUrl(java.lang.String avatarUrl) {
    this.avatarUrl = avatarUrl;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public AppsDynamiteRosterId getId() {
    return id;
  }

  /**
   * @param id id or {@code null} for none
   */
  public AppsDynamiteFrontendRoster setId(AppsDynamiteRosterId id) {
    this.id = id;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.Integer getMembershipCount() {
    return membershipCount;
  }

  /**
   * @param membershipCount membershipCount or {@code null} for none
   */
  public AppsDynamiteFrontendRoster setMembershipCount(java.lang.Integer membershipCount) {
    this.membershipCount = membershipCount;
    return this;
  }

  /**
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * @param name name or {@code null} for none
   */
  public AppsDynamiteFrontendRoster setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Roster gaia key, usually an email address. Set in looking up rosters response.
   * @return value or {@code null} for none
   */
  public java.lang.String getRosterGaiaKey() {
    return rosterGaiaKey;
  }

  /**
   * Roster gaia key, usually an email address. Set in looking up rosters response.
   * @param rosterGaiaKey rosterGaiaKey or {@code null} for none
   */
  public AppsDynamiteFrontendRoster setRosterGaiaKey(java.lang.String rosterGaiaKey) {
    this.rosterGaiaKey = rosterGaiaKey;
    return this;
  }

  /**
   * Roster deletion state - considered active unless set to deleted
   * @return value or {@code null} for none
   */
  public java.lang.String getRosterState() {
    return rosterState;
  }

  /**
   * Roster deletion state - considered active unless set to deleted
   * @param rosterState rosterState or {@code null} for none
   */
  public AppsDynamiteFrontendRoster setRosterState(java.lang.String rosterState) {
    this.rosterState = rosterState;
    return this;
  }

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

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

}
