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

com.mailslurp.models.ConnectorDto Maven / Gradle / Ivy

Go to download

Official MailSlurp email API - create real inboxes then send and receive emails and attachments from tests and code.

The newest version!
/*
 * MailSlurp API
 * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more.  ## Resources  - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
 *
 * The version of the OpenAPI document: 6.5.2
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.mailslurp.models;

import java.util.Objects;
import java.util.Arrays;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.util.UUID;

/**
 * ConnectorDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ConnectorDto {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private UUID id;

  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_ENABLED = "enabled";
  @SerializedName(SERIALIZED_NAME_ENABLED)
  private Boolean enabled;

  public static final String SERIALIZED_NAME_USER_ID = "userId";
  @SerializedName(SERIALIZED_NAME_USER_ID)
  private UUID userId;

  public static final String SERIALIZED_NAME_INBOX_ID = "inboxId";
  @SerializedName(SERIALIZED_NAME_INBOX_ID)
  private UUID inboxId;

  public static final String SERIALIZED_NAME_SYNC_ENABLED = "syncEnabled";
  @SerializedName(SERIALIZED_NAME_SYNC_ENABLED)
  private Boolean syncEnabled;

  /**
   * Gets or Sets syncScheduleType
   */
  @JsonAdapter(SyncScheduleTypeEnum.Adapter.class)
  public enum SyncScheduleTypeEnum {
    INTERVAL("INTERVAL");

    private String value;

    SyncScheduleTypeEnum(String value) {
      this.value = value;
    }

    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    public static SyncScheduleTypeEnum fromValue(String value) {
      for (SyncScheduleTypeEnum b : SyncScheduleTypeEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      return null;
    }

    public static class Adapter extends TypeAdapter {
      @Override
      public void write(final JsonWriter jsonWriter, final SyncScheduleTypeEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public SyncScheduleTypeEnum read(final JsonReader jsonReader) throws IOException {
        String value =  jsonReader.nextString();
        return SyncScheduleTypeEnum.fromValue(value);
      }
    }
  }

  public static final String SERIALIZED_NAME_SYNC_SCHEDULE_TYPE = "syncScheduleType";
  @SerializedName(SERIALIZED_NAME_SYNC_SCHEDULE_TYPE)
  private SyncScheduleTypeEnum syncScheduleType;

  public static final String SERIALIZED_NAME_SYNC_INTERVAL = "syncInterval";
  @SerializedName(SERIALIZED_NAME_SYNC_INTERVAL)
  private Integer syncInterval;

  public static final String SERIALIZED_NAME_HAS_IMAP_CONNECTION = "hasImapConnection";
  @SerializedName(SERIALIZED_NAME_HAS_IMAP_CONNECTION)
  private Boolean hasImapConnection;

  public static final String SERIALIZED_NAME_HAS_SMTP_CONNECTION = "hasSmtpConnection";
  @SerializedName(SERIALIZED_NAME_HAS_SMTP_CONNECTION)
  private Boolean hasSmtpConnection;

  public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
  @SerializedName(SERIALIZED_NAME_CREATED_AT)
  private OffsetDateTime createdAt;


  public ConnectorDto id(UUID id) {
    
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(required = true, value = "")

  public UUID getId() {
    return id;
  }


  public void setId(UUID id) {
    this.id = id;
  }


  public ConnectorDto name(String name) {
    
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getName() {
    return name;
  }


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


  public ConnectorDto enabled(Boolean enabled) {
    
    this.enabled = enabled;
    return this;
  }

   /**
   * Get enabled
   * @return enabled
  **/
  @ApiModelProperty(required = true, value = "")

  public Boolean getEnabled() {
    return enabled;
  }


  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }


  public ConnectorDto userId(UUID userId) {
    
    this.userId = userId;
    return this;
  }

   /**
   * Get userId
   * @return userId
  **/
  @ApiModelProperty(required = true, value = "")

  public UUID getUserId() {
    return userId;
  }


  public void setUserId(UUID userId) {
    this.userId = userId;
  }


  public ConnectorDto inboxId(UUID inboxId) {
    
    this.inboxId = inboxId;
    return this;
  }

   /**
   * Get inboxId
   * @return inboxId
  **/
  @ApiModelProperty(required = true, value = "")

  public UUID getInboxId() {
    return inboxId;
  }


  public void setInboxId(UUID inboxId) {
    this.inboxId = inboxId;
  }


  public ConnectorDto syncEnabled(Boolean syncEnabled) {
    
    this.syncEnabled = syncEnabled;
    return this;
  }

   /**
   * Get syncEnabled
   * @return syncEnabled
  **/
  @ApiModelProperty(required = true, value = "")

  public Boolean getSyncEnabled() {
    return syncEnabled;
  }


  public void setSyncEnabled(Boolean syncEnabled) {
    this.syncEnabled = syncEnabled;
  }


  public ConnectorDto syncScheduleType(SyncScheduleTypeEnum syncScheduleType) {
    
    this.syncScheduleType = syncScheduleType;
    return this;
  }

   /**
   * Get syncScheduleType
   * @return syncScheduleType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public SyncScheduleTypeEnum getSyncScheduleType() {
    return syncScheduleType;
  }


  public void setSyncScheduleType(SyncScheduleTypeEnum syncScheduleType) {
    this.syncScheduleType = syncScheduleType;
  }


  public ConnectorDto syncInterval(Integer syncInterval) {
    
    this.syncInterval = syncInterval;
    return this;
  }

   /**
   * Get syncInterval
   * @return syncInterval
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getSyncInterval() {
    return syncInterval;
  }


  public void setSyncInterval(Integer syncInterval) {
    this.syncInterval = syncInterval;
  }


  public ConnectorDto hasImapConnection(Boolean hasImapConnection) {
    
    this.hasImapConnection = hasImapConnection;
    return this;
  }

   /**
   * Get hasImapConnection
   * @return hasImapConnection
  **/
  @ApiModelProperty(required = true, value = "")

  public Boolean getHasImapConnection() {
    return hasImapConnection;
  }


  public void setHasImapConnection(Boolean hasImapConnection) {
    this.hasImapConnection = hasImapConnection;
  }


  public ConnectorDto hasSmtpConnection(Boolean hasSmtpConnection) {
    
    this.hasSmtpConnection = hasSmtpConnection;
    return this;
  }

   /**
   * Get hasSmtpConnection
   * @return hasSmtpConnection
  **/
  @ApiModelProperty(required = true, value = "")

  public Boolean getHasSmtpConnection() {
    return hasSmtpConnection;
  }


  public void setHasSmtpConnection(Boolean hasSmtpConnection) {
    this.hasSmtpConnection = hasSmtpConnection;
  }


  public ConnectorDto createdAt(OffsetDateTime createdAt) {
    
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Get createdAt
   * @return createdAt
  **/
  @ApiModelProperty(required = true, value = "")

  public OffsetDateTime getCreatedAt() {
    return createdAt;
  }


  public void setCreatedAt(OffsetDateTime createdAt) {
    this.createdAt = createdAt;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConnectorDto connectorDto = (ConnectorDto) o;
    return Objects.equals(this.id, connectorDto.id) &&
        Objects.equals(this.name, connectorDto.name) &&
        Objects.equals(this.enabled, connectorDto.enabled) &&
        Objects.equals(this.userId, connectorDto.userId) &&
        Objects.equals(this.inboxId, connectorDto.inboxId) &&
        Objects.equals(this.syncEnabled, connectorDto.syncEnabled) &&
        Objects.equals(this.syncScheduleType, connectorDto.syncScheduleType) &&
        Objects.equals(this.syncInterval, connectorDto.syncInterval) &&
        Objects.equals(this.hasImapConnection, connectorDto.hasImapConnection) &&
        Objects.equals(this.hasSmtpConnection, connectorDto.hasSmtpConnection) &&
        Objects.equals(this.createdAt, connectorDto.createdAt);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, enabled, userId, inboxId, syncEnabled, syncScheduleType, syncInterval, hasImapConnection, hasSmtpConnection, createdAt);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConnectorDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    userId: ").append(toIndentedString(userId)).append("\n");
    sb.append("    inboxId: ").append(toIndentedString(inboxId)).append("\n");
    sb.append("    syncEnabled: ").append(toIndentedString(syncEnabled)).append("\n");
    sb.append("    syncScheduleType: ").append(toIndentedString(syncScheduleType)).append("\n");
    sb.append("    syncInterval: ").append(toIndentedString(syncInterval)).append("\n");
    sb.append("    hasImapConnection: ").append(toIndentedString(hasImapConnection)).append("\n");
    sb.append("    hasSmtpConnection: ").append(toIndentedString(hasSmtpConnection)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).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 - 2024 Weber Informatics LLC | Privacy Policy