io.camunda.connector.outbound.model.SqsMessageAttribute Maven / Gradle / Ivy
/*
* 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.outbound.model;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import java.util.Objects;
public class SqsMessageAttribute {
@JsonProperty("dataType")
@JsonAlias("DataType")
@NotBlank
private String dataType;
@JsonProperty("stringValue")
@JsonAlias("StringValue")
@NotBlank
private String stringValue;
public String getDataType() {
return dataType;
}
public void setDataType(String dataType) {
this.dataType = dataType;
}
public String getStringValue() {
return stringValue;
}
public void setStringValue(String stringValue) {
this.stringValue = stringValue;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SqsMessageAttribute that = (SqsMessageAttribute) o;
return dataType.equals(that.dataType) && stringValue.equals(that.stringValue);
}
@Override
public int hashCode() {
return Objects.hash(dataType, stringValue);
}
@Override
public String toString() {
return "SqsMessageAttribute{"
+ "dataType='"
+ dataType
+ '\''
+ ", stringValue='"
+ stringValue
+ '\''
+ '}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy