com.sinch.sdk.domains.sms.models.dto.v1.UpdateGroupRequestAutoUpdateRemoveDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
/*
* API Overview | Sinch
* Sinch SMS API is one of the easiest APIs we offer and enables you to add fast and reliable global SMS to your applications. Send single messages, scheduled batch messages, use available message templates and more.
*
* The version of the OpenAPI document: v1
* 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.sinch.sdk.domains.sms.models.dto.v1;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.Objects;
/** Keyword to be sent in MO to remove from a group. */
@JsonPropertyOrder({
UpdateGroupRequestAutoUpdateRemoveDto.JSON_PROPERTY_FIRST_WORD,
UpdateGroupRequestAutoUpdateRemoveDto.JSON_PROPERTY_SECOND_WORD
})
@JsonFilter("uninitializedFilter")
@JsonInclude(value = JsonInclude.Include.CUSTOM)
public class UpdateGroupRequestAutoUpdateRemoveDto {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_FIRST_WORD = "first_word";
private String firstWord;
private boolean firstWordDefined = false;
public static final String JSON_PROPERTY_SECOND_WORD = "second_word";
private String secondWord;
private boolean secondWordDefined = false;
public UpdateGroupRequestAutoUpdateRemoveDto() {}
public UpdateGroupRequestAutoUpdateRemoveDto firstWord(String firstWord) {
this.firstWord = firstWord;
this.firstWordDefined = true;
return this;
}
/**
* Opt-out keyword. For example, \"LEAVE\" if `auto_update.to` is a dedicated
* long/short number or a unique brand keyword like \"Sinch\" (if it is a shared short
* code). Constraints: Must be one word.
*
* @return firstWord
*/
@JsonProperty(JSON_PROPERTY_FIRST_WORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFirstWord() {
return firstWord;
}
@JsonIgnore
public boolean getFirstWordDefined() {
return firstWordDefined;
}
@JsonProperty(JSON_PROPERTY_FIRST_WORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFirstWord(String firstWord) {
this.firstWord = firstWord;
this.firstWordDefined = true;
}
public UpdateGroupRequestAutoUpdateRemoveDto secondWord(String secondWord) {
this.secondWord = secondWord;
this.secondWordDefined = true;
return this;
}
/**
* Opt-out keyword. For example, \"LEAVE\" if `auto_update.to` is a shared
* short code. Constraints: Must be one word.
*
* @return secondWord
*/
@JsonProperty(JSON_PROPERTY_SECOND_WORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSecondWord() {
return secondWord;
}
@JsonIgnore
public boolean getSecondWordDefined() {
return secondWordDefined;
}
@JsonProperty(JSON_PROPERTY_SECOND_WORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSecondWord(String secondWord) {
this.secondWord = secondWord;
this.secondWordDefined = true;
}
/** Return true if this UpdateGroup_request_auto_update_remove object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateGroupRequestAutoUpdateRemoveDto updateGroupRequestAutoUpdateRemove =
(UpdateGroupRequestAutoUpdateRemoveDto) o;
return Objects.equals(this.firstWord, updateGroupRequestAutoUpdateRemove.firstWord)
&& Objects.equals(this.secondWord, updateGroupRequestAutoUpdateRemove.secondWord);
}
@Override
public int hashCode() {
return Objects.hash(firstWord, secondWord);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateGroupRequestAutoUpdateRemoveDto {\n");
sb.append(" firstWord: ").append(toIndentedString(firstWord)).append("\n");
sb.append(" secondWord: ").append(toIndentedString(secondWord)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy