// WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema

package com.getbase.models;

import com.fasterxml.jackson.annotation.JsonView;
import com.getbase.serializer.Views;



public class Source {
  protected @JsonView(Views.ReadOnly.class) Long id;
  protected @JsonView(Views.ReadOnly.class) Long creatorId;
  protected @JsonView(Views.ReadOnly.class) String createdAt;
  protected @JsonView(Views.ReadOnly.class) String updatedAt;
  protected @JsonView(Views.ReadWrite.class) String name;
  protected @JsonView(Views.ReadOnly.class) String resourceType;

  public Source() {
  }

  public Long getId() {
    return this.id;
  }

  public Long getCreatorId() {
    return this.creatorId;
  }

  public String getCreatedAt() {
    return this.createdAt;
  }

  public String getUpdatedAt() {
    return this.updatedAt;
  }

  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getResourceType() {
    return this.resourceType;
  }

  @Override
  public String toString() {
    return "Source{" +
          "id=" + id +
          ", creatorId=" + creatorId +
          ", createdAt='" + createdAt + '\'' +
          ", updatedAt='" + updatedAt + '\'' +
          ", name='" + name + '\'' +
          ", resourceType='" + resourceType + '\'' +
          "}";
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    Source source = (Source) o;

    if (id != null ? !id.equals(source.id) : source.id != null) return false;
    if (creatorId != null ? !creatorId.equals(source.creatorId) : source.creatorId != null) return false;
    if (createdAt != null ? !createdAt.equals(source.createdAt) : source.createdAt != null) return false;
    if (updatedAt != null ? !updatedAt.equals(source.updatedAt) : source.updatedAt != null) return false;
    if (name != null ? !name.equals(source.name) : source.name != null) return false;
    if (resourceType != null ? !resourceType.equals(source.resourceType) : source.resourceType != null) return false;
    return true;
  }

  @Override
  public int hashCode() {
    int result = id != null ? id.hashCode() : 0;
    result = 31 * result + (id != null ? id.hashCode() : 0);
    result = 31 * result + (creatorId != null ? creatorId.hashCode() : 0);
    result = 31 * result + (createdAt != null ? createdAt.hashCode() : 0);
    result = 31 * result + (updatedAt != null ? updatedAt.hashCode() : 0);
    result = 31 * result + (name != null ? name.hashCode() : 0);
    result = 31 * result + (resourceType != null ? resourceType.hashCode() : 0);
    return result;
  }
}

@@ -537,36 +537,37 @@
 nView(Views.Read
-Only
+Write
 .class) String r
@@ -1029,32 +1029,128 @@
 ourceType;%0A  %7D%0A%0A
+  public void setResourceType(String resourceType) %7B%0A    this.resourceType = resourceType;%0A  %7D%0A%0A
   @Override%0A  pu

set ReadWrite for resourceType