com.paypal.sdk.models.ShippingName Maven / Gradle / Ivy
/*
* PaypalServerSDKLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.paypal.sdk.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 ShippingName type.
*/
public class ShippingName {
private String fullName;
/**
* Default constructor.
*/
public ShippingName() {
}
/**
* Initialization constructor.
* @param fullName String value for fullName.
*/
public ShippingName(
String fullName) {
this.fullName = fullName;
}
/**
* Getter for FullName.
* When the party is a person, the party's full name.
* @return Returns the String
*/
@JsonGetter("full_name")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getFullName() {
return fullName;
}
/**
* Setter for FullName.
* When the party is a person, the party's full name.
* @param fullName Value for String
*/
@JsonSetter("full_name")
public void setFullName(String fullName) {
this.fullName = fullName;
}
/**
* Converts this ShippingName into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "ShippingName [" + "fullName=" + fullName + "]";
}
/**
* Builds a new {@link ShippingName.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link ShippingName.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.fullName(getFullName());
return builder;
}
/**
* Class to build instances of {@link ShippingName}.
*/
public static class Builder {
private String fullName;
/**
* Setter for fullName.
* @param fullName String value for fullName.
* @return Builder
*/
public Builder fullName(String fullName) {
this.fullName = fullName;
return this;
}
/**
* Builds a new {@link ShippingName} object using the set fields.
* @return {@link ShippingName}
*/
public ShippingName build() {
return new ShippingName(fullName);
}
}
}