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

io.swagger.client.model.Group Maven / Gradle / Ivy

/*
 * DocxMerge
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package io.swagger.client.model;

import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.client.model.TemplateGroup;
import io.swagger.client.model.Tenant;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.threeten.bp.OffsetDateTime;

/**
 * Group
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2018-12-11T02:42:35.962+01:00[Europe/Madrid]")public class Group {

  @SerializedName("name")
  private String name = null;

  @SerializedName("templateGroups")
  private List templateGroups = null;

  @SerializedName("id")
  private String id = null;

  @SerializedName("created")
  private OffsetDateTime created = null;

  @SerializedName("modified")
  private OffsetDateTime modified = null;

  @SerializedName("tenant")
  private Tenant tenant = null;

  @SerializedName("tenantId")
  private String tenantId = null;
  public Group name(String name) {
    this.name = name;
    return this;
  }

  

  /**
  * Get name
  * @return name
  **/
  @Schema(description = "")
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public Group templateGroups(List templateGroups) {
    this.templateGroups = templateGroups;
    return this;
  }

  public Group addTemplateGroupsItem(TemplateGroup templateGroupsItem) {
    if (this.templateGroups == null) {
      this.templateGroups = new ArrayList();
    }
    this.templateGroups.add(templateGroupsItem);
    return this;
  }

  /**
  * Get templateGroups
  * @return templateGroups
  **/
  @Schema(description = "")
  public List getTemplateGroups() {
    return templateGroups;
  }
  public void setTemplateGroups(List templateGroups) {
    this.templateGroups = templateGroups;
  }
  public Group id(String id) {
    this.id = id;
    return this;
  }

  

  /**
  * Get id
  * @return id
  **/
  @Schema(description = "")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }
  public Group created(OffsetDateTime created) {
    this.created = created;
    return this;
  }

  

  /**
  * Get created
  * @return created
  **/
  @Schema(description = "")
  public OffsetDateTime getCreated() {
    return created;
  }
  public void setCreated(OffsetDateTime created) {
    this.created = created;
  }
  public Group modified(OffsetDateTime modified) {
    this.modified = modified;
    return this;
  }

  

  /**
  * Get modified
  * @return modified
  **/
  @Schema(description = "")
  public OffsetDateTime getModified() {
    return modified;
  }
  public void setModified(OffsetDateTime modified) {
    this.modified = modified;
  }
  public Group tenant(Tenant tenant) {
    this.tenant = tenant;
    return this;
  }

  

  /**
  * Get tenant
  * @return tenant
  **/
  @Schema(description = "")
  public Tenant getTenant() {
    return tenant;
  }
  public void setTenant(Tenant tenant) {
    this.tenant = tenant;
  }
  public Group tenantId(String tenantId) {
    this.tenantId = tenantId;
    return this;
  }

  

  /**
  * Get tenantId
  * @return tenantId
  **/
  @Schema(required = true, description = "")
  public String getTenantId() {
    return tenantId;
  }
  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }
  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Group group = (Group) o;
    return Objects.equals(this.name, group.name) &&
        Objects.equals(this.templateGroups, group.templateGroups) &&
        Objects.equals(this.id, group.id) &&
        Objects.equals(this.created, group.created) &&
        Objects.equals(this.modified, group.modified) &&
        Objects.equals(this.tenant, group.tenant) &&
        Objects.equals(this.tenantId, group.tenantId);
  }

  @Override
  public int hashCode() {
    return java.util.Objects.hash(name, templateGroups, id, created, modified, tenant, tenantId);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Group {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    templateGroups: ").append(toIndentedString(templateGroups)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    modified: ").append(toIndentedString(modified)).append("\n");
    sb.append("    tenant: ").append(toIndentedString(tenant)).append("\n");
    sb.append("    tenantId: ").append(toIndentedString(tenantId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy