com.shell.apitest.models.ErrorUserAccess Maven / Gradle / Ivy
/*
* ShellCardManagementAPIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.shell.apitest.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 ErrorUserAccess type.
*/
public class ErrorUserAccess {
private ErrorUserAccessError error;
/**
* Default constructor.
*/
public ErrorUserAccess() {
}
/**
* Initialization constructor.
* @param error ErrorUserAccessError value for error.
*/
public ErrorUserAccess(
ErrorUserAccessError error) {
this.error = error;
}
/**
* Getter for Error.
* @return Returns the ErrorUserAccessError
*/
@JsonGetter("Error")
@JsonInclude(JsonInclude.Include.NON_NULL)
public ErrorUserAccessError getError() {
return error;
}
/**
* Setter for Error.
* @param error Value for ErrorUserAccessError
*/
@JsonSetter("Error")
public void setError(ErrorUserAccessError error) {
this.error = error;
}
/**
* Converts this ErrorUserAccess into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "ErrorUserAccess [" + "error=" + error + "]";
}
/**
* Builds a new {@link ErrorUserAccess.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link ErrorUserAccess.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.error(getError());
return builder;
}
/**
* Class to build instances of {@link ErrorUserAccess}.
*/
public static class Builder {
private ErrorUserAccessError error;
/**
* Setter for error.
* @param error ErrorUserAccessError value for error.
* @return Builder
*/
public Builder error(ErrorUserAccessError error) {
this.error = error;
return this;
}
/**
* Builds a new {@link ErrorUserAccess} object using the set fields.
* @return {@link ErrorUserAccess}
*/
public ErrorUserAccess build() {
return new ErrorUserAccess(error);
}
}
}