com.bandwidth.multifactorauth.models.TwoFactorVerifyCodeResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.bandwidth.multifactorauth.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for TwoFactorVerifyCodeResponse type.
*/
public class TwoFactorVerifyCodeResponse {
@JsonInclude(JsonInclude.Include.NON_NULL)
private Boolean valid;
/**
* Default constructor.
*/
public TwoFactorVerifyCodeResponse() {
}
/**
* Initialization constructor.
* @param valid Boolean value for valid.
*/
public TwoFactorVerifyCodeResponse(
Boolean valid) {
this.valid = valid;
}
/**
* Getter for Valid.
* @return Returns the Boolean
*/
@JsonGetter("valid")
public Boolean getValid() {
return valid;
}
/**
* Setter for Valid.
* @param valid Value for Boolean
*/
@JsonSetter("valid")
public void setValid(Boolean valid) {
this.valid = valid;
}
/**
* Converts this TwoFactorVerifyCodeResponse into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "TwoFactorVerifyCodeResponse [" + "valid=" + valid + "]";
}
/**
* Builds a new {@link TwoFactorVerifyCodeResponse.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link TwoFactorVerifyCodeResponse.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.valid(getValid());
return builder;
}
/**
* Class to build instances of {@link TwoFactorVerifyCodeResponse}.
*/
public static class Builder {
private Boolean valid;
/**
* Setter for valid.
* @param valid Boolean value for valid.
* @return Builder
*/
public Builder valid(Boolean valid) {
this.valid = valid;
return this;
}
/**
* Builds a new {@link TwoFactorVerifyCodeResponse} object using the set fields.
* @return {@link TwoFactorVerifyCodeResponse}
*/
public TwoFactorVerifyCodeResponse build() {
return new TwoFactorVerifyCodeResponse(valid);
}
}
}