
com.infobip.model.TfaApplicationResponse Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Represents TfaApplicationResponse model.
*/
public class TfaApplicationResponse {
private String applicationId;
private TfaApplicationConfiguration _configuration;
private Boolean enabled;
private String name;
/**
* Sets applicationId.
*
* Field description:
* The ID of the application that represents your service, e.g. 2FA for login, 2FA for changing the password, etc.
*
* @param applicationId
* @return This {@link TfaApplicationResponse instance}.
*/
public TfaApplicationResponse applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* Returns applicationId.
*
* Field description:
* The ID of the application that represents your service, e.g. 2FA for login, 2FA for changing the password, etc.
*
* @return applicationId
*/
@JsonProperty("applicationId")
public String getApplicationId() {
return applicationId;
}
/**
* Sets applicationId.
*
* Field description:
* The ID of the application that represents your service, e.g. 2FA for login, 2FA for changing the password, etc.
*
* @param applicationId
*/
@JsonProperty("applicationId")
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
/**
* Sets _configuration.
*
* @param _configuration
* @return This {@link TfaApplicationResponse instance}.
*/
public TfaApplicationResponse _configuration(TfaApplicationConfiguration _configuration) {
this._configuration = _configuration;
return this;
}
/**
* Returns _configuration.
*
* @return _configuration
*/
@JsonProperty("configuration")
public TfaApplicationConfiguration getConfiguration() {
return _configuration;
}
/**
* Sets _configuration.
*
* @param _configuration
*/
@JsonProperty("configuration")
public void setConfiguration(TfaApplicationConfiguration _configuration) {
this._configuration = _configuration;
}
/**
* Sets enabled.
*
* Field description:
* Indicates whether the created application is enabled.
*
* @param enabled
* @return This {@link TfaApplicationResponse instance}.
*/
public TfaApplicationResponse enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Returns enabled.
*
* Field description:
* Indicates whether the created application is enabled.
*
* @return enabled
*/
@JsonProperty("enabled")
public Boolean getEnabled() {
return enabled;
}
/**
* Sets enabled.
*
* Field description:
* Indicates whether the created application is enabled.
*
* @param enabled
*/
@JsonProperty("enabled")
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
* Sets name.
*
* Field description:
* 2FA application name.
*
* @param name
* @return This {@link TfaApplicationResponse instance}.
*/
public TfaApplicationResponse name(String name) {
this.name = name;
return this;
}
/**
* Returns name.
*
* Field description:
* 2FA application name.
*
* @return name
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Sets name.
*
* Field description:
* 2FA application name.
*
* @param name
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TfaApplicationResponse tfaApplicationResponse = (TfaApplicationResponse) o;
return Objects.equals(this.applicationId, tfaApplicationResponse.applicationId)
&& Objects.equals(this._configuration, tfaApplicationResponse._configuration)
&& Objects.equals(this.enabled, tfaApplicationResponse.enabled)
&& Objects.equals(this.name, tfaApplicationResponse.name);
}
@Override
public int hashCode() {
return Objects.hash(applicationId, _configuration, enabled, name);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class TfaApplicationResponse {")
.append(newLine)
.append(" applicationId: ")
.append(toIndentedString(applicationId))
.append(newLine)
.append(" _configuration: ")
.append(toIndentedString(_configuration))
.append(newLine)
.append(" enabled: ")
.append(toIndentedString(enabled))
.append(newLine)
.append(" name: ")
.append(toIndentedString(name))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}