com.maxio.advancedbilling.models.UpdateMetafield Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of advanced-billing-sdk Show documentation
Show all versions of advanced-billing-sdk Show documentation
Ultimate billing and pricing flexibility for B2B SaaS.
Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.
The newest version!
/*
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.maxio.advancedbilling.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import io.apimatic.core.types.BaseModel;
import java.util.List;
/**
* This is a model class for UpdateMetafield type.
*/
public class UpdateMetafield
extends BaseModel {
private String currentName;
private String name;
private MetafieldScope scope;
private MetafieldInput inputType;
private List mEnum;
/**
* Default constructor.
*/
public UpdateMetafield() {
}
/**
* Initialization constructor.
* @param currentName String value for currentName.
* @param name String value for name.
* @param scope MetafieldScope value for scope.
* @param inputType MetafieldInput value for inputType.
* @param mEnum List of String value for mEnum.
*/
public UpdateMetafield(
String currentName,
String name,
MetafieldScope scope,
MetafieldInput inputType,
List mEnum) {
this.currentName = currentName;
this.name = name;
this.scope = scope;
this.inputType = inputType;
this.mEnum = mEnum;
}
/**
* Getter for CurrentName.
* @return Returns the String
*/
@JsonGetter("current_name")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getCurrentName() {
return currentName;
}
/**
* Setter for CurrentName.
* @param currentName Value for String
*/
@JsonSetter("current_name")
public void setCurrentName(String currentName) {
this.currentName = currentName;
}
/**
* Getter for Name.
* @return Returns the String
*/
@JsonGetter("name")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getName() {
return name;
}
/**
* Setter for Name.
* @param name Value for String
*/
@JsonSetter("name")
public void setName(String name) {
this.name = name;
}
/**
* Getter for Scope.
* Warning: When updating a metafield's scope attribute, all scope attributes must be passed.
* Partially complete scope attributes will override the existing settings.
* @return Returns the MetafieldScope
*/
@JsonGetter("scope")
@JsonInclude(JsonInclude.Include.NON_NULL)
public MetafieldScope getScope() {
return scope;
}
/**
* Setter for Scope.
* Warning: When updating a metafield's scope attribute, all scope attributes must be passed.
* Partially complete scope attributes will override the existing settings.
* @param scope Value for MetafieldScope
*/
@JsonSetter("scope")
public void setScope(MetafieldScope scope) {
this.scope = scope;
}
/**
* Getter for InputType.
* Indicates how data should be added to the metafield. For example, a text type is just a
* string, so a given metafield of this type can have any value attached. On the other hand,
* dropdown and radio have a set of allowed values that can be input, and appear differently on
* a Public Signup Page. Defaults to 'text'
* @return Returns the MetafieldInput
*/
@JsonGetter("input_type")
@JsonInclude(JsonInclude.Include.NON_NULL)
public MetafieldInput getInputType() {
return inputType;
}
/**
* Setter for InputType.
* Indicates how data should be added to the metafield. For example, a text type is just a
* string, so a given metafield of this type can have any value attached. On the other hand,
* dropdown and radio have a set of allowed values that can be input, and appear differently on
* a Public Signup Page. Defaults to 'text'
* @param inputType Value for MetafieldInput
*/
@JsonSetter("input_type")
public void setInputType(MetafieldInput inputType) {
this.inputType = inputType;
}
/**
* Getter for Enum.
* Only applicable when input_type is radio or dropdown
* @return Returns the List of String
*/
@JsonGetter("enum")
@JsonInclude(JsonInclude.Include.NON_NULL)
public List getEnum() {
return mEnum;
}
/**
* Setter for Enum.
* Only applicable when input_type is radio or dropdown
* @param mEnum Value for List of String
*/
@JsonSetter("enum")
public void setEnum(List mEnum) {
this.mEnum = mEnum;
}
/**
* Converts this UpdateMetafield into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "UpdateMetafield [" + "currentName=" + currentName + ", name=" + name + ", scope="
+ scope + ", inputType=" + inputType + ", mEnum=" + mEnum
+ ", additionalProperties=" + getAdditionalProperties() + "]";
}
/**
* Builds a new {@link UpdateMetafield.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link UpdateMetafield.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.currentName(getCurrentName())
.name(getName())
.scope(getScope())
.inputType(getInputType())
.mEnum(getEnum());
return builder;
}
/**
* Class to build instances of {@link UpdateMetafield}.
*/
public static class Builder {
private String currentName;
private String name;
private MetafieldScope scope;
private MetafieldInput inputType;
private List mEnum;
/**
* Setter for currentName.
* @param currentName String value for currentName.
* @return Builder
*/
public Builder currentName(String currentName) {
this.currentName = currentName;
return this;
}
/**
* Setter for name.
* @param name String value for name.
* @return Builder
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* Setter for scope.
* @param scope MetafieldScope value for scope.
* @return Builder
*/
public Builder scope(MetafieldScope scope) {
this.scope = scope;
return this;
}
/**
* Setter for inputType.
* @param inputType MetafieldInput value for inputType.
* @return Builder
*/
public Builder inputType(MetafieldInput inputType) {
this.inputType = inputType;
return this;
}
/**
* Setter for mEnum.
* @param mEnum List of String value for mEnum.
* @return Builder
*/
public Builder mEnum(List mEnum) {
this.mEnum = mEnum;
return this;
}
/**
* Builds a new {@link UpdateMetafield} object using the set fields.
* @return {@link UpdateMetafield}
*/
public UpdateMetafield build() {
return new UpdateMetafield(currentName, name, scope, inputType, mEnum);
}
}
}