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

io.camunda.connector.sendgrid.SendGridTemplate Maven / Gradle / Ivy

There is a newer version: 8.6.2
Show newest version
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
 * under one or more contributor license agreements. Licensed under a proprietary license.
 * See the License.txt file for more information. You may not use this file
 * except in compliance with the proprietary license.
 */
package io.camunda.connector.sendgrid;

import jakarta.validation.constraints.NotEmpty;
import java.util.Map;
import java.util.Objects;

public class SendGridTemplate {
  @NotEmpty private String id;
  @NotEmpty private Map data;

  public String getId() {
    return id;
  }

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

  public Map getData() {
    return data;
  }

  public void setData(final Map data) {
    this.data = data;
  }

  @Override
  public boolean equals(final Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    final SendGridTemplate that = (SendGridTemplate) o;
    return Objects.equals(id, that.id) && Objects.equals(data, that.data);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, data);
  }

  @Override
  public String toString() {
    return "SendGridTemplate{" + "id='" + id + '\'' + ", data=" + data + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy