mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 16:17:09 +00:00
* add builder pattern to java client and spring generator * regenerate samples * update doc --------- Co-authored-by: jpfinne <jeanpaul@finne.be>
This commit is contained in:
@@ -124,5 +124,68 @@ public class AdditionalPropertiesAnyType {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesAnyType instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesAnyType());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesAnyType instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesAnyType value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesAnyType.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesAnyType.Builder additionalProperties(Map<String, Object> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesAnyType instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesAnyType build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesAnyType.Builder builder() {
|
||||
return new AdditionalPropertiesAnyType.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesAnyType.Builder toBuilder() {
|
||||
AdditionalPropertiesAnyType.Builder builder = new AdditionalPropertiesAnyType.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -125,5 +125,68 @@ public class AdditionalPropertiesArray {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesArray instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesArray());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesArray instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesArray value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesArray.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesArray.Builder additionalProperties(Map<String, List> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesArray instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesArray build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesArray.Builder builder() {
|
||||
return new AdditionalPropertiesArray.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesArray.Builder toBuilder() {
|
||||
AdditionalPropertiesArray.Builder builder = new AdditionalPropertiesArray.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,5 +124,68 @@ public class AdditionalPropertiesBoolean {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesBoolean instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesBoolean());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesBoolean instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesBoolean value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesBoolean.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesBoolean.Builder additionalProperties(Map<String, Boolean> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesBoolean instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesBoolean build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesBoolean.Builder builder() {
|
||||
return new AdditionalPropertiesBoolean.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesBoolean.Builder toBuilder() {
|
||||
AdditionalPropertiesBoolean.Builder builder = new AdditionalPropertiesBoolean.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -410,5 +410,128 @@ public class AdditionalPropertiesClass {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesClass instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesClass());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesClass instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesClass value) {
|
||||
this.instance.setMapString(value.mapString);
|
||||
this.instance.setMapNumber(value.mapNumber);
|
||||
this.instance.setMapInteger(value.mapInteger);
|
||||
this.instance.setMapBoolean(value.mapBoolean);
|
||||
this.instance.setMapArrayInteger(value.mapArrayInteger);
|
||||
this.instance.setMapArrayAnytype(value.mapArrayAnytype);
|
||||
this.instance.setMapMapString(value.mapMapString);
|
||||
this.instance.setMapMapAnytype(value.mapMapAnytype);
|
||||
this.instance.setAnytype1(value.anytype1);
|
||||
this.instance.setAnytype2(value.anytype2);
|
||||
this.instance.setAnytype3(value.anytype3);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapString(Map<String, String> mapString) {
|
||||
this.instance.mapString(mapString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapNumber(Map<String, BigDecimal> mapNumber) {
|
||||
this.instance.mapNumber(mapNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapInteger(Map<String, Integer> mapInteger) {
|
||||
this.instance.mapInteger(mapInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapBoolean(Map<String, Boolean> mapBoolean) {
|
||||
this.instance.mapBoolean(mapBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
||||
this.instance.mapArrayInteger(mapArrayInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
||||
this.instance.mapArrayAnytype(mapArrayAnytype);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapMapString(Map<String, Map<String, String>> mapMapString) {
|
||||
this.instance.mapMapString(mapMapString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
||||
this.instance.mapMapAnytype(mapMapAnytype);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder anytype1(Object anytype1) {
|
||||
this.instance.anytype1(anytype1);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder anytype2(Object anytype2) {
|
||||
this.instance.anytype2(anytype2);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder anytype2(JsonNullable<Object> anytype2) {
|
||||
this.instance.anytype2 = anytype2;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass.Builder anytype3(Object anytype3) {
|
||||
this.instance.anytype3(anytype3);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesClass instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesClass build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesClass.Builder builder() {
|
||||
return new AdditionalPropertiesClass.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesClass.Builder toBuilder() {
|
||||
AdditionalPropertiesClass.Builder builder = new AdditionalPropertiesClass.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,5 +124,68 @@ public class AdditionalPropertiesInteger {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesInteger instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesInteger());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesInteger instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesInteger value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesInteger.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesInteger.Builder additionalProperties(Map<String, Integer> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesInteger instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesInteger build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesInteger.Builder builder() {
|
||||
return new AdditionalPropertiesInteger.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesInteger.Builder toBuilder() {
|
||||
AdditionalPropertiesInteger.Builder builder = new AdditionalPropertiesInteger.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -125,5 +125,68 @@ public class AdditionalPropertiesNumber {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesNumber instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesNumber());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesNumber instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesNumber value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesNumber.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesNumber.Builder additionalProperties(Map<String, BigDecimal> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesNumber instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesNumber build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesNumber.Builder builder() {
|
||||
return new AdditionalPropertiesNumber.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesNumber.Builder toBuilder() {
|
||||
AdditionalPropertiesNumber.Builder builder = new AdditionalPropertiesNumber.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -125,5 +125,68 @@ public class AdditionalPropertiesObject {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesObject instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesObject());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesObject instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesObject value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesObject.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesObject.Builder additionalProperties(Map<String, Map> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesObject instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesObject build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesObject.Builder builder() {
|
||||
return new AdditionalPropertiesObject.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesObject.Builder toBuilder() {
|
||||
AdditionalPropertiesObject.Builder builder = new AdditionalPropertiesObject.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -124,5 +124,68 @@ public class AdditionalPropertiesString {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private AdditionalPropertiesString instance;
|
||||
|
||||
public Builder() {
|
||||
this(new AdditionalPropertiesString());
|
||||
}
|
||||
|
||||
protected Builder(AdditionalPropertiesString instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(AdditionalPropertiesString value) {
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesString.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesString.Builder additionalProperties(Map<String, String> additionalProperties) {
|
||||
this.instance.additionalProperties = additionalProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built AdditionalPropertiesString instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public AdditionalPropertiesString build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static AdditionalPropertiesString.Builder builder() {
|
||||
return new AdditionalPropertiesString.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public AdditionalPropertiesString.Builder toBuilder() {
|
||||
AdditionalPropertiesString.Builder builder = new AdditionalPropertiesString.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -129,5 +129,69 @@ public class Animal {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Animal instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Animal());
|
||||
}
|
||||
|
||||
protected Builder(Animal instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Animal value) {
|
||||
this.instance.setClassName(value.className);
|
||||
this.instance.setColor(value.color);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Animal.Builder className(String className) {
|
||||
this.instance.className(className);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Animal.Builder color(String color) {
|
||||
this.instance.color(color);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Animal instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Animal build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Animal.Builder builder() {
|
||||
return new Animal.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Animal.Builder toBuilder() {
|
||||
Animal.Builder builder = new Animal.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -93,5 +93,63 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ArrayOfArrayOfNumberOnly instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ArrayOfArrayOfNumberOnly());
|
||||
}
|
||||
|
||||
protected Builder(ArrayOfArrayOfNumberOnly instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ArrayOfArrayOfNumberOnly value) {
|
||||
this.instance.setArrayArrayNumber(value.arrayArrayNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayOfArrayOfNumberOnly.Builder arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
this.instance.arrayArrayNumber(arrayArrayNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ArrayOfArrayOfNumberOnly instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ArrayOfArrayOfNumberOnly build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ArrayOfArrayOfNumberOnly.Builder builder() {
|
||||
return new ArrayOfArrayOfNumberOnly.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ArrayOfArrayOfNumberOnly.Builder toBuilder() {
|
||||
ArrayOfArrayOfNumberOnly.Builder builder = new ArrayOfArrayOfNumberOnly.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -93,5 +93,63 @@ public class ArrayOfNumberOnly {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ArrayOfNumberOnly instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ArrayOfNumberOnly());
|
||||
}
|
||||
|
||||
protected Builder(ArrayOfNumberOnly instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ArrayOfNumberOnly value) {
|
||||
this.instance.setArrayNumber(value.arrayNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayOfNumberOnly.Builder arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
this.instance.arrayNumber(arrayNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ArrayOfNumberOnly instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ArrayOfNumberOnly build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ArrayOfNumberOnly.Builder builder() {
|
||||
return new ArrayOfNumberOnly.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ArrayOfNumberOnly.Builder toBuilder() {
|
||||
ArrayOfNumberOnly.Builder builder = new ArrayOfNumberOnly.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -159,5 +159,75 @@ public class ArrayTest {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ArrayTest instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ArrayTest());
|
||||
}
|
||||
|
||||
protected Builder(ArrayTest instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ArrayTest value) {
|
||||
this.instance.setArrayOfString(value.arrayOfString);
|
||||
this.instance.setArrayArrayOfInteger(value.arrayArrayOfInteger);
|
||||
this.instance.setArrayArrayOfModel(value.arrayArrayOfModel);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest.Builder arrayOfString(List<String> arrayOfString) {
|
||||
this.instance.arrayOfString(arrayOfString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest.Builder arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||
this.instance.arrayArrayOfInteger(arrayArrayOfInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest.Builder arrayArrayOfModel(List<List<@Valid ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
this.instance.arrayArrayOfModel(arrayArrayOfModel);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ArrayTest instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ArrayTest build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ArrayTest.Builder builder() {
|
||||
return new ArrayTest.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ArrayTest.Builder toBuilder() {
|
||||
ArrayTest.Builder builder = new ArrayTest.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -153,5 +153,84 @@ public class BigCat extends Cat {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder extends Cat.Builder {
|
||||
|
||||
private BigCat instance;
|
||||
|
||||
public Builder() {
|
||||
this(new BigCat());
|
||||
}
|
||||
|
||||
protected Builder(BigCat instance) {
|
||||
super(instance); // the parent builder shares the same instance
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(BigCat value) {
|
||||
super.copyOf(instance);
|
||||
this.instance.setKind(value.kind);
|
||||
return this;
|
||||
}
|
||||
|
||||
public BigCat.Builder kind(KindEnum kind) {
|
||||
this.instance.kind(kind);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigCat.Builder declawed(Boolean declawed) {
|
||||
this.instance.declawed(declawed);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigCat.Builder className(String className) {
|
||||
this.instance.className(className);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigCat.Builder color(String color) {
|
||||
this.instance.color(color);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built BigCat instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public BigCat build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
super.build();
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static BigCat.Builder builder() {
|
||||
return new BigCat.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public BigCat.Builder toBuilder() {
|
||||
BigCat.Builder builder = new BigCat.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -200,5 +200,93 @@ public class Capitalization {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Capitalization instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Capitalization());
|
||||
}
|
||||
|
||||
protected Builder(Capitalization instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Capitalization value) {
|
||||
this.instance.setSmallCamel(value.smallCamel);
|
||||
this.instance.setCapitalCamel(value.capitalCamel);
|
||||
this.instance.setSmallSnake(value.smallSnake);
|
||||
this.instance.setCapitalSnake(value.capitalSnake);
|
||||
this.instance.setScAETHFlowPoints(value.scAETHFlowPoints);
|
||||
this.instance.setATTNAME(value.ATT_NAME);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Capitalization.Builder smallCamel(String smallCamel) {
|
||||
this.instance.smallCamel(smallCamel);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Capitalization.Builder capitalCamel(String capitalCamel) {
|
||||
this.instance.capitalCamel(capitalCamel);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Capitalization.Builder smallSnake(String smallSnake) {
|
||||
this.instance.smallSnake(smallSnake);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Capitalization.Builder capitalSnake(String capitalSnake) {
|
||||
this.instance.capitalSnake(capitalSnake);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Capitalization.Builder scAETHFlowPoints(String scAETHFlowPoints) {
|
||||
this.instance.scAETHFlowPoints(scAETHFlowPoints);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Capitalization.Builder ATT_NAME(String ATT_NAME) {
|
||||
this.instance.ATT_NAME(ATT_NAME);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Capitalization instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Capitalization build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Capitalization.Builder builder() {
|
||||
return new Capitalization.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Capitalization.Builder toBuilder() {
|
||||
Capitalization.Builder builder = new Capitalization.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -116,5 +116,78 @@ public class Cat extends Animal {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder extends Animal.Builder {
|
||||
|
||||
private Cat instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Cat());
|
||||
}
|
||||
|
||||
protected Builder(Cat instance) {
|
||||
super(instance); // the parent builder shares the same instance
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Cat value) {
|
||||
super.copyOf(instance);
|
||||
this.instance.setDeclawed(value.declawed);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Cat.Builder declawed(Boolean declawed) {
|
||||
this.instance.declawed(declawed);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cat.Builder className(String className) {
|
||||
this.instance.className(className);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cat.Builder color(String color) {
|
||||
this.instance.color(color);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Cat instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Cat build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
super.build();
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Cat.Builder builder() {
|
||||
return new Cat.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Cat.Builder toBuilder() {
|
||||
Cat.Builder builder = new Cat.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -115,5 +115,69 @@ public class Category {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Category instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Category());
|
||||
}
|
||||
|
||||
protected Builder(Category instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Category value) {
|
||||
this.instance.setId(value.id);
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Category.Builder id(Long id) {
|
||||
this.instance.id(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Category.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Category instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Category build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Category.Builder builder() {
|
||||
return new Category.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Category.Builder toBuilder() {
|
||||
Category.Builder builder = new Category.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -111,5 +111,83 @@ public class ChildWithNullable extends ParentWithNullable {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder extends ParentWithNullable.Builder {
|
||||
|
||||
private ChildWithNullable instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ChildWithNullable());
|
||||
}
|
||||
|
||||
protected Builder(ChildWithNullable instance) {
|
||||
super(instance); // the parent builder shares the same instance
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ChildWithNullable value) {
|
||||
super.copyOf(instance);
|
||||
this.instance.setOtherProperty(value.otherProperty);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChildWithNullable.Builder otherProperty(String otherProperty) {
|
||||
this.instance.otherProperty(otherProperty);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChildWithNullable.Builder type(TypeEnum type) {
|
||||
this.instance.type(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChildWithNullable.Builder nullableProperty(String nullableProperty) {
|
||||
this.instance.nullableProperty(nullableProperty);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChildWithNullable.Builder nullableProperty(JsonNullable<String> nullableProperty) {
|
||||
this.instance.setNullableProperty(nullableProperty);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ChildWithNullable instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ChildWithNullable build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
super.build();
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ChildWithNullable.Builder builder() {
|
||||
return new ChildWithNullable.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ChildWithNullable.Builder toBuilder() {
|
||||
ChildWithNullable.Builder builder = new ChildWithNullable.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -81,5 +81,63 @@ public class ClassModel {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ClassModel instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ClassModel());
|
||||
}
|
||||
|
||||
protected Builder(ClassModel instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ClassModel value) {
|
||||
this.instance.setPropertyClass(value.propertyClass);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ClassModel.Builder propertyClass(String propertyClass) {
|
||||
this.instance.propertyClass(propertyClass);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ClassModel instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ClassModel build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ClassModel.Builder builder() {
|
||||
return new ClassModel.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ClassModel.Builder toBuilder() {
|
||||
ClassModel.Builder builder = new ClassModel.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -80,5 +80,63 @@ public class Client {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Client instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Client());
|
||||
}
|
||||
|
||||
protected Builder(Client instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Client value) {
|
||||
this.instance.setClient(value.client);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Client.Builder client(String client) {
|
||||
this.instance.client(client);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Client instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Client build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Client.Builder builder() {
|
||||
return new Client.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Client.Builder toBuilder() {
|
||||
Client.Builder builder = new Client.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -216,5 +216,96 @@ public class ContainerDefaultValue {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ContainerDefaultValue instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ContainerDefaultValue());
|
||||
}
|
||||
|
||||
protected Builder(ContainerDefaultValue instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ContainerDefaultValue value) {
|
||||
this.instance.setNullableArray(value.nullableArray);
|
||||
this.instance.setNullableRequiredArray(value.nullableRequiredArray);
|
||||
this.instance.setRequiredArray(value.requiredArray);
|
||||
this.instance.setNullableArrayWithDefault(value.nullableArrayWithDefault);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder nullableArray(List<String> nullableArray) {
|
||||
this.instance.nullableArray(nullableArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder nullableArray(JsonNullable<List<String>> nullableArray) {
|
||||
this.instance.nullableArray = nullableArray;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder nullableRequiredArray(List<String> nullableRequiredArray) {
|
||||
this.instance.nullableRequiredArray(nullableRequiredArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder nullableRequiredArray(JsonNullable<List<String>> nullableRequiredArray) {
|
||||
this.instance.nullableRequiredArray = nullableRequiredArray;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder requiredArray(List<String> requiredArray) {
|
||||
this.instance.requiredArray(requiredArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder nullableArrayWithDefault(List<String> nullableArrayWithDefault) {
|
||||
this.instance.nullableArrayWithDefault(nullableArrayWithDefault);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ContainerDefaultValue.Builder nullableArrayWithDefault(JsonNullable<List<String>> nullableArrayWithDefault) {
|
||||
this.instance.nullableArrayWithDefault = nullableArrayWithDefault;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ContainerDefaultValue instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ContainerDefaultValue build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ContainerDefaultValue.Builder builder() {
|
||||
return new ContainerDefaultValue.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ContainerDefaultValue.Builder toBuilder() {
|
||||
ContainerDefaultValue.Builder builder = new ContainerDefaultValue.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -108,5 +108,78 @@ public class Dog extends Animal {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder extends Animal.Builder {
|
||||
|
||||
private Dog instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Dog());
|
||||
}
|
||||
|
||||
protected Builder(Dog instance) {
|
||||
super(instance); // the parent builder shares the same instance
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Dog value) {
|
||||
super.copyOf(instance);
|
||||
this.instance.setBreed(value.breed);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Dog.Builder breed(String breed) {
|
||||
this.instance.breed(breed);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dog.Builder className(String className) {
|
||||
this.instance.className(className);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dog.Builder color(String color) {
|
||||
this.instance.color(color);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Dog instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Dog build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
super.build();
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Dog.Builder builder() {
|
||||
return new Dog.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Dog.Builder toBuilder() {
|
||||
Dog.Builder builder = new Dog.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -187,5 +187,69 @@ public class EnumArrays {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private EnumArrays instance;
|
||||
|
||||
public Builder() {
|
||||
this(new EnumArrays());
|
||||
}
|
||||
|
||||
protected Builder(EnumArrays instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(EnumArrays value) {
|
||||
this.instance.setJustSymbol(value.justSymbol);
|
||||
this.instance.setArrayEnum(value.arrayEnum);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumArrays.Builder justSymbol(JustSymbolEnum justSymbol) {
|
||||
this.instance.justSymbol(justSymbol);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumArrays.Builder arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||
this.instance.arrayEnum(arrayEnum);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built EnumArrays instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public EnumArrays build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static EnumArrays.Builder builder() {
|
||||
return new EnumArrays.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public EnumArrays.Builder toBuilder() {
|
||||
EnumArrays.Builder builder = new EnumArrays.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -335,5 +335,87 @@ public class EnumTest {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private EnumTest instance;
|
||||
|
||||
public Builder() {
|
||||
this(new EnumTest());
|
||||
}
|
||||
|
||||
protected Builder(EnumTest instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(EnumTest value) {
|
||||
this.instance.setEnumString(value.enumString);
|
||||
this.instance.setEnumStringRequired(value.enumStringRequired);
|
||||
this.instance.setEnumInteger(value.enumInteger);
|
||||
this.instance.setEnumNumber(value.enumNumber);
|
||||
this.instance.setOuterEnum(value.outerEnum);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumTest.Builder enumString(EnumStringEnum enumString) {
|
||||
this.instance.enumString(enumString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumTest.Builder enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
|
||||
this.instance.enumStringRequired(enumStringRequired);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumTest.Builder enumInteger(EnumIntegerEnum enumInteger) {
|
||||
this.instance.enumInteger(enumInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumTest.Builder enumNumber(EnumNumberEnum enumNumber) {
|
||||
this.instance.enumNumber(enumNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public EnumTest.Builder outerEnum(OuterEnum outerEnum) {
|
||||
this.instance.outerEnum(outerEnum);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built EnumTest instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public EnumTest build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static EnumTest.Builder builder() {
|
||||
return new EnumTest.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public EnumTest.Builder toBuilder() {
|
||||
EnumTest.Builder builder = new EnumTest.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -81,5 +81,63 @@ public class File {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private File instance;
|
||||
|
||||
public Builder() {
|
||||
this(new File());
|
||||
}
|
||||
|
||||
protected Builder(File instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(File value) {
|
||||
this.instance.setSourceURI(value.sourceURI);
|
||||
return this;
|
||||
}
|
||||
|
||||
public File.Builder sourceURI(String sourceURI) {
|
||||
this.instance.sourceURI(sourceURI);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built File instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public File build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static File.Builder builder() {
|
||||
return new File.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public File.Builder toBuilder() {
|
||||
File.Builder builder = new File.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -117,5 +117,69 @@ public class FileSchemaTestClass {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private FileSchemaTestClass instance;
|
||||
|
||||
public Builder() {
|
||||
this(new FileSchemaTestClass());
|
||||
}
|
||||
|
||||
protected Builder(FileSchemaTestClass instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(FileSchemaTestClass value) {
|
||||
this.instance.setFile(value.file);
|
||||
this.instance.setFiles(value.files);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass.Builder file(File file) {
|
||||
this.instance.file(file);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass.Builder files(List<@Valid File> files) {
|
||||
this.instance.files(files);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built FileSchemaTestClass instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public FileSchemaTestClass build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static FileSchemaTestClass.Builder builder() {
|
||||
return new FileSchemaTestClass.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public FileSchemaTestClass.Builder toBuilder() {
|
||||
FileSchemaTestClass.Builder builder = new FileSchemaTestClass.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -426,5 +426,141 @@ public class FormatTest {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private FormatTest instance;
|
||||
|
||||
public Builder() {
|
||||
this(new FormatTest());
|
||||
}
|
||||
|
||||
protected Builder(FormatTest instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(FormatTest value) {
|
||||
this.instance.setInteger(value.integer);
|
||||
this.instance.setInt32(value.int32);
|
||||
this.instance.setInt64(value.int64);
|
||||
this.instance.setNumber(value.number);
|
||||
this.instance.setFloat(value._float);
|
||||
this.instance.setDouble(value._double);
|
||||
this.instance.setString(value.string);
|
||||
this.instance.setByte(value._byte);
|
||||
this.instance.setBinary(value.binary);
|
||||
this.instance.setDate(value.date);
|
||||
this.instance.setDateTime(value.dateTime);
|
||||
this.instance.setUuid(value.uuid);
|
||||
this.instance.setPassword(value.password);
|
||||
this.instance.setBigDecimal(value.bigDecimal);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder integer(Integer integer) {
|
||||
this.instance.integer(integer);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder int32(Integer int32) {
|
||||
this.instance.int32(int32);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder int64(Long int64) {
|
||||
this.instance.int64(int64);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder number(BigDecimal number) {
|
||||
this.instance.number(number);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder _float(Float _float) {
|
||||
this.instance._float(_float);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder _double(Double _double) {
|
||||
this.instance._double(_double);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder string(String string) {
|
||||
this.instance.string(string);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder _byte(byte[] _byte) {
|
||||
this.instance._byte(_byte);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder binary(org.springframework.core.io.Resource binary) {
|
||||
this.instance.binary(binary);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder date(LocalDate date) {
|
||||
this.instance.date(date);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder dateTime(OffsetDateTime dateTime) {
|
||||
this.instance.dateTime(dateTime);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder uuid(UUID uuid) {
|
||||
this.instance.uuid(uuid);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder password(String password) {
|
||||
this.instance.password(password);
|
||||
return this;
|
||||
}
|
||||
|
||||
public FormatTest.Builder bigDecimal(BigDecimal bigDecimal) {
|
||||
this.instance.bigDecimal(bigDecimal);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built FormatTest instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public FormatTest build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static FormatTest.Builder builder() {
|
||||
return new FormatTest.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public FormatTest.Builder toBuilder() {
|
||||
FormatTest.Builder builder = new FormatTest.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -106,5 +106,69 @@ public class HasOnlyReadOnly {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private HasOnlyReadOnly instance;
|
||||
|
||||
public Builder() {
|
||||
this(new HasOnlyReadOnly());
|
||||
}
|
||||
|
||||
protected Builder(HasOnlyReadOnly instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(HasOnlyReadOnly value) {
|
||||
this.instance.setBar(value.bar);
|
||||
this.instance.setFoo(value.foo);
|
||||
return this;
|
||||
}
|
||||
|
||||
public HasOnlyReadOnly.Builder bar(String bar) {
|
||||
this.instance.bar(bar);
|
||||
return this;
|
||||
}
|
||||
|
||||
public HasOnlyReadOnly.Builder foo(String foo) {
|
||||
this.instance.foo(foo);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built HasOnlyReadOnly instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public HasOnlyReadOnly build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static HasOnlyReadOnly.Builder builder() {
|
||||
return new HasOnlyReadOnly.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public HasOnlyReadOnly.Builder toBuilder() {
|
||||
HasOnlyReadOnly.Builder builder = new HasOnlyReadOnly.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -226,5 +226,81 @@ public class MapTest {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private MapTest instance;
|
||||
|
||||
public Builder() {
|
||||
this(new MapTest());
|
||||
}
|
||||
|
||||
protected Builder(MapTest instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(MapTest value) {
|
||||
this.instance.setMapMapOfString(value.mapMapOfString);
|
||||
this.instance.setMapOfEnumString(value.mapOfEnumString);
|
||||
this.instance.setDirectMap(value.directMap);
|
||||
this.instance.setIndirectMap(value.indirectMap);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MapTest.Builder mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
this.instance.mapMapOfString(mapMapOfString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MapTest.Builder mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||
this.instance.mapOfEnumString(mapOfEnumString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MapTest.Builder directMap(Map<String, Boolean> directMap) {
|
||||
this.instance.directMap(directMap);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MapTest.Builder indirectMap(Map<String, Boolean> indirectMap) {
|
||||
this.instance.indirectMap(indirectMap);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built MapTest instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public MapTest build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static MapTest.Builder builder() {
|
||||
return new MapTest.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public MapTest.Builder toBuilder() {
|
||||
MapTest.Builder builder = new MapTest.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -144,5 +144,75 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private MixedPropertiesAndAdditionalPropertiesClass instance;
|
||||
|
||||
public Builder() {
|
||||
this(new MixedPropertiesAndAdditionalPropertiesClass());
|
||||
}
|
||||
|
||||
protected Builder(MixedPropertiesAndAdditionalPropertiesClass instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(MixedPropertiesAndAdditionalPropertiesClass value) {
|
||||
this.instance.setUuid(value.uuid);
|
||||
this.instance.setDateTime(value.dateTime);
|
||||
this.instance.setMap(value.map);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass.Builder uuid(UUID uuid) {
|
||||
this.instance.uuid(uuid);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass.Builder dateTime(OffsetDateTime dateTime) {
|
||||
this.instance.dateTime(dateTime);
|
||||
return this;
|
||||
}
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass.Builder map(Map<String, Animal> map) {
|
||||
this.instance.map(map);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built MixedPropertiesAndAdditionalPropertiesClass instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public MixedPropertiesAndAdditionalPropertiesClass build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static MixedPropertiesAndAdditionalPropertiesClass.Builder builder() {
|
||||
return new MixedPropertiesAndAdditionalPropertiesClass.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public MixedPropertiesAndAdditionalPropertiesClass.Builder toBuilder() {
|
||||
MixedPropertiesAndAdditionalPropertiesClass.Builder builder = new MixedPropertiesAndAdditionalPropertiesClass.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -107,5 +107,69 @@ public class Model200Response {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Model200Response instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Model200Response());
|
||||
}
|
||||
|
||||
protected Builder(Model200Response instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Model200Response value) {
|
||||
this.instance.setName(value.name);
|
||||
this.instance.setPropertyClass(value.propertyClass);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Model200Response.Builder name(Integer name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Model200Response.Builder propertyClass(String propertyClass) {
|
||||
this.instance.propertyClass(propertyClass);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Model200Response instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Model200Response build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Model200Response.Builder builder() {
|
||||
return new Model200Response.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Model200Response.Builder toBuilder() {
|
||||
Model200Response.Builder builder = new Model200Response.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -130,5 +130,75 @@ public class ModelApiResponse {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ModelApiResponse instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ModelApiResponse());
|
||||
}
|
||||
|
||||
protected Builder(ModelApiResponse instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ModelApiResponse value) {
|
||||
this.instance.setCode(value.code);
|
||||
this.instance.setType(value.type);
|
||||
this.instance.setMessage(value.message);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ModelApiResponse.Builder code(Integer code) {
|
||||
this.instance.code(code);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ModelApiResponse.Builder type(String type) {
|
||||
this.instance.type(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ModelApiResponse.Builder message(String message) {
|
||||
this.instance.message(message);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ModelApiResponse instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ModelApiResponse build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ModelApiResponse.Builder builder() {
|
||||
return new ModelApiResponse.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ModelApiResponse.Builder toBuilder() {
|
||||
ModelApiResponse.Builder builder = new ModelApiResponse.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -82,5 +82,63 @@ public class ModelList {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ModelList instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ModelList());
|
||||
}
|
||||
|
||||
protected Builder(ModelList instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ModelList value) {
|
||||
this.instance.set123list(value._123list);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ModelList.Builder _123list(String _123list) {
|
||||
this.instance._123list(_123list);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ModelList instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ModelList build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ModelList.Builder builder() {
|
||||
return new ModelList.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ModelList.Builder toBuilder() {
|
||||
ModelList.Builder builder = new ModelList.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -83,5 +83,63 @@ public class ModelReturn {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ModelReturn instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ModelReturn());
|
||||
}
|
||||
|
||||
protected Builder(ModelReturn instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ModelReturn value) {
|
||||
this.instance.setReturn(value._return);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ModelReturn.Builder _return(Integer _return) {
|
||||
this.instance._return(_return);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ModelReturn instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ModelReturn build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ModelReturn.Builder builder() {
|
||||
return new ModelReturn.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ModelReturn.Builder toBuilder() {
|
||||
ModelReturn.Builder builder = new ModelReturn.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -164,5 +164,81 @@ public class Name {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Name instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Name());
|
||||
}
|
||||
|
||||
protected Builder(Name instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Name value) {
|
||||
this.instance.setName(value.name);
|
||||
this.instance.setSnakeCase(value.snakeCase);
|
||||
this.instance.setProperty(value.property);
|
||||
this.instance.set123number(value._123number);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Name.Builder name(Integer name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Name.Builder snakeCase(Integer snakeCase) {
|
||||
this.instance.snakeCase(snakeCase);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Name.Builder property(String property) {
|
||||
this.instance.property(property);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Name.Builder _123number(Integer _123number) {
|
||||
this.instance._123number(_123number);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Name instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Name build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Name.Builder builder() {
|
||||
return new Name.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Name.Builder toBuilder() {
|
||||
Name.Builder builder = new Name.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -105,5 +105,68 @@ public class NullableMapProperty {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private NullableMapProperty instance;
|
||||
|
||||
public Builder() {
|
||||
this(new NullableMapProperty());
|
||||
}
|
||||
|
||||
protected Builder(NullableMapProperty instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(NullableMapProperty value) {
|
||||
this.instance.setLanguageValues(value.languageValues);
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableMapProperty.Builder languageValues(Map<String, String> languageValues) {
|
||||
this.instance.languageValues(languageValues);
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableMapProperty.Builder languageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||
this.instance.languageValues = languageValues;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built NullableMapProperty instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public NullableMapProperty build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static NullableMapProperty.Builder builder() {
|
||||
return new NullableMapProperty.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public NullableMapProperty.Builder toBuilder() {
|
||||
NullableMapProperty.Builder builder = new NullableMapProperty.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -81,5 +81,63 @@ public class NumberOnly {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private NumberOnly instance;
|
||||
|
||||
public Builder() {
|
||||
this(new NumberOnly());
|
||||
}
|
||||
|
||||
protected Builder(NumberOnly instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(NumberOnly value) {
|
||||
this.instance.setJustNumber(value.justNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public NumberOnly.Builder justNumber(BigDecimal justNumber) {
|
||||
this.instance.justNumber(justNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built NumberOnly instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public NumberOnly build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static NumberOnly.Builder builder() {
|
||||
return new NumberOnly.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public NumberOnly.Builder toBuilder() {
|
||||
NumberOnly.Builder builder = new NumberOnly.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -241,5 +241,93 @@ public class Order {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Order instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Order());
|
||||
}
|
||||
|
||||
protected Builder(Order instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Order value) {
|
||||
this.instance.setId(value.id);
|
||||
this.instance.setPetId(value.petId);
|
||||
this.instance.setQuantity(value.quantity);
|
||||
this.instance.setShipDate(value.shipDate);
|
||||
this.instance.setStatus(value.status);
|
||||
this.instance.setComplete(value.complete);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Order.Builder id(Long id) {
|
||||
this.instance.id(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Order.Builder petId(Long petId) {
|
||||
this.instance.petId(petId);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Order.Builder quantity(Integer quantity) {
|
||||
this.instance.quantity(quantity);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Order.Builder shipDate(OffsetDateTime shipDate) {
|
||||
this.instance.shipDate(shipDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Order.Builder status(StatusEnum status) {
|
||||
this.instance.status(status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Order.Builder complete(Boolean complete) {
|
||||
this.instance.complete(complete);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Order instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Order build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Order.Builder builder() {
|
||||
return new Order.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Order.Builder toBuilder() {
|
||||
Order.Builder builder = new Order.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -129,5 +129,75 @@ public class OuterComposite {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private OuterComposite instance;
|
||||
|
||||
public Builder() {
|
||||
this(new OuterComposite());
|
||||
}
|
||||
|
||||
protected Builder(OuterComposite instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(OuterComposite value) {
|
||||
this.instance.setMyNumber(value.myNumber);
|
||||
this.instance.setMyString(value.myString);
|
||||
this.instance.setMyBoolean(value.myBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public OuterComposite.Builder myNumber(BigDecimal myNumber) {
|
||||
this.instance.myNumber(myNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public OuterComposite.Builder myString(String myString) {
|
||||
this.instance.myString(myString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public OuterComposite.Builder myBoolean(Boolean myBoolean) {
|
||||
this.instance.myBoolean(myBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built OuterComposite instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public OuterComposite build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static OuterComposite.Builder builder() {
|
||||
return new OuterComposite.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public OuterComposite.Builder toBuilder() {
|
||||
OuterComposite.Builder builder = new OuterComposite.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -164,5 +164,74 @@ public class ParentWithNullable {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ParentWithNullable instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ParentWithNullable());
|
||||
}
|
||||
|
||||
protected Builder(ParentWithNullable instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ParentWithNullable value) {
|
||||
this.instance.setType(value.type);
|
||||
this.instance.setNullableProperty(value.nullableProperty);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ParentWithNullable.Builder type(TypeEnum type) {
|
||||
this.instance.type(type);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ParentWithNullable.Builder nullableProperty(String nullableProperty) {
|
||||
this.instance.nullableProperty(nullableProperty);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ParentWithNullable.Builder nullableProperty(JsonNullable<String> nullableProperty) {
|
||||
this.instance.nullableProperty = nullableProperty;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ParentWithNullable instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ParentWithNullable build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ParentWithNullable.Builder builder() {
|
||||
return new ParentWithNullable.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ParentWithNullable.Builder toBuilder() {
|
||||
ParentWithNullable.Builder builder = new ParentWithNullable.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -284,5 +284,95 @@ public class Pet {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Pet instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Pet());
|
||||
}
|
||||
|
||||
protected Builder(Pet instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Pet value) {
|
||||
this.instance.setId(value.id);
|
||||
this.instance.setCategory(value.category);
|
||||
this.instance.setName(value.name);
|
||||
this.instance.setPhotoUrls(value.photoUrls);
|
||||
this.instance.setTags(value.tags);
|
||||
this.instance.setStatus(value.status);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Pet.Builder id(Long id) {
|
||||
this.instance.id(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Pet.Builder category(Category category) {
|
||||
this.instance.category(category);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Pet.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Pet.Builder photoUrls(Set<String> photoUrls) {
|
||||
this.instance.photoUrls(photoUrls);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Pet.Builder tags(List<@Valid Tag> tags) {
|
||||
this.instance.tags(tags);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public Pet.Builder status(StatusEnum status) {
|
||||
this.instance.status(status);
|
||||
return this;
|
||||
}
|
||||
@Deprecated
|
||||
|
||||
/**
|
||||
* returns a built Pet instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Pet build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Pet.Builder builder() {
|
||||
return new Pet.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Pet.Builder toBuilder() {
|
||||
Pet.Builder builder = new Pet.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -104,5 +104,69 @@ public class ReadOnlyFirst {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ReadOnlyFirst instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ReadOnlyFirst());
|
||||
}
|
||||
|
||||
protected Builder(ReadOnlyFirst instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ReadOnlyFirst value) {
|
||||
this.instance.setBar(value.bar);
|
||||
this.instance.setBaz(value.baz);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ReadOnlyFirst.Builder bar(String bar) {
|
||||
this.instance.bar(bar);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ReadOnlyFirst.Builder baz(String baz) {
|
||||
this.instance.baz(baz);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ReadOnlyFirst instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ReadOnlyFirst build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ReadOnlyFirst.Builder builder() {
|
||||
return new ReadOnlyFirst.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ReadOnlyFirst.Builder toBuilder() {
|
||||
ReadOnlyFirst.Builder builder = new ReadOnlyFirst.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -152,5 +152,81 @@ public class ResponseObjectWithDifferentFieldNames {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private ResponseObjectWithDifferentFieldNames instance;
|
||||
|
||||
public Builder() {
|
||||
this(new ResponseObjectWithDifferentFieldNames());
|
||||
}
|
||||
|
||||
protected Builder(ResponseObjectWithDifferentFieldNames instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(ResponseObjectWithDifferentFieldNames value) {
|
||||
this.instance.setNormalPropertyName(value.normalPropertyName);
|
||||
this.instance.setUPPERCASEPROPERTYSNAKE(value.UPPER_CASE_PROPERTY_SNAKE);
|
||||
this.instance.setLowerCasePropertyDashes(value.lowerCasePropertyDashes);
|
||||
this.instance.setPropertyNameWithSpaces(value.propertyNameWithSpaces);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames.Builder normalPropertyName(String normalPropertyName) {
|
||||
this.instance.normalPropertyName(normalPropertyName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames.Builder UPPER_CASE_PROPERTY_SNAKE(String UPPER_CASE_PROPERTY_SNAKE) {
|
||||
this.instance.UPPER_CASE_PROPERTY_SNAKE(UPPER_CASE_PROPERTY_SNAKE);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames.Builder lowerCasePropertyDashes(String lowerCasePropertyDashes) {
|
||||
this.instance.lowerCasePropertyDashes(lowerCasePropertyDashes);
|
||||
return this;
|
||||
}
|
||||
|
||||
public ResponseObjectWithDifferentFieldNames.Builder propertyNameWithSpaces(String propertyNameWithSpaces) {
|
||||
this.instance.propertyNameWithSpaces(propertyNameWithSpaces);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built ResponseObjectWithDifferentFieldNames instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public ResponseObjectWithDifferentFieldNames build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static ResponseObjectWithDifferentFieldNames.Builder builder() {
|
||||
return new ResponseObjectWithDifferentFieldNames.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public ResponseObjectWithDifferentFieldNames.Builder toBuilder() {
|
||||
ResponseObjectWithDifferentFieldNames.Builder builder = new ResponseObjectWithDifferentFieldNames.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -82,5 +82,63 @@ public class SpecialModelName {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private SpecialModelName instance;
|
||||
|
||||
public Builder() {
|
||||
this(new SpecialModelName());
|
||||
}
|
||||
|
||||
protected Builder(SpecialModelName instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(SpecialModelName value) {
|
||||
this.instance.set$SpecialPropertyName(value.$specialPropertyName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public SpecialModelName.Builder $specialPropertyName(Long $specialPropertyName) {
|
||||
this.instance.$specialPropertyName($specialPropertyName);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built SpecialModelName instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public SpecialModelName build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static SpecialModelName.Builder builder() {
|
||||
return new SpecialModelName.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public SpecialModelName.Builder toBuilder() {
|
||||
SpecialModelName.Builder builder = new SpecialModelName.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -104,5 +104,69 @@ public class Tag {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private Tag instance;
|
||||
|
||||
public Builder() {
|
||||
this(new Tag());
|
||||
}
|
||||
|
||||
protected Builder(Tag instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(Tag value) {
|
||||
this.instance.setId(value.id);
|
||||
this.instance.setName(value.name);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Tag.Builder id(Long id) {
|
||||
this.instance.id(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Tag.Builder name(String name) {
|
||||
this.instance.name(name);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built Tag instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public Tag build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static Tag.Builder builder() {
|
||||
return new Tag.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public Tag.Builder toBuilder() {
|
||||
Tag.Builder builder = new Tag.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -204,5 +204,87 @@ public class TypeHolderDefault {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private TypeHolderDefault instance;
|
||||
|
||||
public Builder() {
|
||||
this(new TypeHolderDefault());
|
||||
}
|
||||
|
||||
protected Builder(TypeHolderDefault instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(TypeHolderDefault value) {
|
||||
this.instance.setStringItem(value.stringItem);
|
||||
this.instance.setNumberItem(value.numberItem);
|
||||
this.instance.setIntegerItem(value.integerItem);
|
||||
this.instance.setBoolItem(value.boolItem);
|
||||
this.instance.setArrayItem(value.arrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderDefault.Builder stringItem(String stringItem) {
|
||||
this.instance.stringItem(stringItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderDefault.Builder numberItem(BigDecimal numberItem) {
|
||||
this.instance.numberItem(numberItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderDefault.Builder integerItem(Integer integerItem) {
|
||||
this.instance.integerItem(integerItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderDefault.Builder boolItem(Boolean boolItem) {
|
||||
this.instance.boolItem(boolItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderDefault.Builder arrayItem(List<Integer> arrayItem) {
|
||||
this.instance.arrayItem(arrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built TypeHolderDefault instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public TypeHolderDefault build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static TypeHolderDefault.Builder builder() {
|
||||
return new TypeHolderDefault.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public TypeHolderDefault.Builder toBuilder() {
|
||||
TypeHolderDefault.Builder builder = new TypeHolderDefault.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -229,5 +229,93 @@ public class TypeHolderExample {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private TypeHolderExample instance;
|
||||
|
||||
public Builder() {
|
||||
this(new TypeHolderExample());
|
||||
}
|
||||
|
||||
protected Builder(TypeHolderExample instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(TypeHolderExample value) {
|
||||
this.instance.setStringItem(value.stringItem);
|
||||
this.instance.setNumberItem(value.numberItem);
|
||||
this.instance.setFloatItem(value.floatItem);
|
||||
this.instance.setIntegerItem(value.integerItem);
|
||||
this.instance.setBoolItem(value.boolItem);
|
||||
this.instance.setArrayItem(value.arrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderExample.Builder stringItem(String stringItem) {
|
||||
this.instance.stringItem(stringItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderExample.Builder numberItem(BigDecimal numberItem) {
|
||||
this.instance.numberItem(numberItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderExample.Builder floatItem(Float floatItem) {
|
||||
this.instance.floatItem(floatItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderExample.Builder integerItem(Integer integerItem) {
|
||||
this.instance.integerItem(integerItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderExample.Builder boolItem(Boolean boolItem) {
|
||||
this.instance.boolItem(boolItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
public TypeHolderExample.Builder arrayItem(List<Integer> arrayItem) {
|
||||
this.instance.arrayItem(arrayItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built TypeHolderExample instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public TypeHolderExample build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static TypeHolderExample.Builder builder() {
|
||||
return new TypeHolderExample.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public TypeHolderExample.Builder toBuilder() {
|
||||
TypeHolderExample.Builder builder = new TypeHolderExample.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -248,5 +248,105 @@ public class User {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private User instance;
|
||||
|
||||
public Builder() {
|
||||
this(new User());
|
||||
}
|
||||
|
||||
protected Builder(User instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(User value) {
|
||||
this.instance.setId(value.id);
|
||||
this.instance.setUsername(value.username);
|
||||
this.instance.setFirstName(value.firstName);
|
||||
this.instance.setLastName(value.lastName);
|
||||
this.instance.setEmail(value.email);
|
||||
this.instance.setPassword(value.password);
|
||||
this.instance.setPhone(value.phone);
|
||||
this.instance.setUserStatus(value.userStatus);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder id(Long id) {
|
||||
this.instance.id(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder username(String username) {
|
||||
this.instance.username(username);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder firstName(String firstName) {
|
||||
this.instance.firstName(firstName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder lastName(String lastName) {
|
||||
this.instance.lastName(lastName);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder email(String email) {
|
||||
this.instance.email(email);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder password(String password) {
|
||||
this.instance.password(password);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder phone(String phone) {
|
||||
this.instance.phone(phone);
|
||||
return this;
|
||||
}
|
||||
|
||||
public User.Builder userStatus(Integer userStatus) {
|
||||
this.instance.userStatus(userStatus);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built User instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public User build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static User.Builder builder() {
|
||||
return new User.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public User.Builder toBuilder() {
|
||||
User.Builder builder = new User.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -837,5 +837,231 @@ public class XmlItem {
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private XmlItem instance;
|
||||
|
||||
public Builder() {
|
||||
this(new XmlItem());
|
||||
}
|
||||
|
||||
protected Builder(XmlItem instance) {
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
protected Builder copyOf(XmlItem value) {
|
||||
this.instance.setAttributeString(value.attributeString);
|
||||
this.instance.setAttributeNumber(value.attributeNumber);
|
||||
this.instance.setAttributeInteger(value.attributeInteger);
|
||||
this.instance.setAttributeBoolean(value.attributeBoolean);
|
||||
this.instance.setWrappedArray(value.wrappedArray);
|
||||
this.instance.setNameString(value.nameString);
|
||||
this.instance.setNameNumber(value.nameNumber);
|
||||
this.instance.setNameInteger(value.nameInteger);
|
||||
this.instance.setNameBoolean(value.nameBoolean);
|
||||
this.instance.setNameArray(value.nameArray);
|
||||
this.instance.setNameWrappedArray(value.nameWrappedArray);
|
||||
this.instance.setPrefixString(value.prefixString);
|
||||
this.instance.setPrefixNumber(value.prefixNumber);
|
||||
this.instance.setPrefixInteger(value.prefixInteger);
|
||||
this.instance.setPrefixBoolean(value.prefixBoolean);
|
||||
this.instance.setPrefixArray(value.prefixArray);
|
||||
this.instance.setPrefixWrappedArray(value.prefixWrappedArray);
|
||||
this.instance.setNamespaceString(value.namespaceString);
|
||||
this.instance.setNamespaceNumber(value.namespaceNumber);
|
||||
this.instance.setNamespaceInteger(value.namespaceInteger);
|
||||
this.instance.setNamespaceBoolean(value.namespaceBoolean);
|
||||
this.instance.setNamespaceArray(value.namespaceArray);
|
||||
this.instance.setNamespaceWrappedArray(value.namespaceWrappedArray);
|
||||
this.instance.setPrefixNsString(value.prefixNsString);
|
||||
this.instance.setPrefixNsNumber(value.prefixNsNumber);
|
||||
this.instance.setPrefixNsInteger(value.prefixNsInteger);
|
||||
this.instance.setPrefixNsBoolean(value.prefixNsBoolean);
|
||||
this.instance.setPrefixNsArray(value.prefixNsArray);
|
||||
this.instance.setPrefixNsWrappedArray(value.prefixNsWrappedArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder attributeString(String attributeString) {
|
||||
this.instance.attributeString(attributeString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder attributeNumber(BigDecimal attributeNumber) {
|
||||
this.instance.attributeNumber(attributeNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder attributeInteger(Integer attributeInteger) {
|
||||
this.instance.attributeInteger(attributeInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder attributeBoolean(Boolean attributeBoolean) {
|
||||
this.instance.attributeBoolean(attributeBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder wrappedArray(List<Integer> wrappedArray) {
|
||||
this.instance.wrappedArray(wrappedArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder nameString(String nameString) {
|
||||
this.instance.nameString(nameString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder nameNumber(BigDecimal nameNumber) {
|
||||
this.instance.nameNumber(nameNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder nameInteger(Integer nameInteger) {
|
||||
this.instance.nameInteger(nameInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder nameBoolean(Boolean nameBoolean) {
|
||||
this.instance.nameBoolean(nameBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder nameArray(List<Integer> nameArray) {
|
||||
this.instance.nameArray(nameArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder nameWrappedArray(List<Integer> nameWrappedArray) {
|
||||
this.instance.nameWrappedArray(nameWrappedArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixString(String prefixString) {
|
||||
this.instance.prefixString(prefixString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNumber(BigDecimal prefixNumber) {
|
||||
this.instance.prefixNumber(prefixNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixInteger(Integer prefixInteger) {
|
||||
this.instance.prefixInteger(prefixInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixBoolean(Boolean prefixBoolean) {
|
||||
this.instance.prefixBoolean(prefixBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixArray(List<Integer> prefixArray) {
|
||||
this.instance.prefixArray(prefixArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixWrappedArray(List<Integer> prefixWrappedArray) {
|
||||
this.instance.prefixWrappedArray(prefixWrappedArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder namespaceString(String namespaceString) {
|
||||
this.instance.namespaceString(namespaceString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder namespaceNumber(BigDecimal namespaceNumber) {
|
||||
this.instance.namespaceNumber(namespaceNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder namespaceInteger(Integer namespaceInteger) {
|
||||
this.instance.namespaceInteger(namespaceInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder namespaceBoolean(Boolean namespaceBoolean) {
|
||||
this.instance.namespaceBoolean(namespaceBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder namespaceArray(List<Integer> namespaceArray) {
|
||||
this.instance.namespaceArray(namespaceArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
|
||||
this.instance.namespaceWrappedArray(namespaceWrappedArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNsString(String prefixNsString) {
|
||||
this.instance.prefixNsString(prefixNsString);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNsNumber(BigDecimal prefixNsNumber) {
|
||||
this.instance.prefixNsNumber(prefixNsNumber);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNsInteger(Integer prefixNsInteger) {
|
||||
this.instance.prefixNsInteger(prefixNsInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNsBoolean(Boolean prefixNsBoolean) {
|
||||
this.instance.prefixNsBoolean(prefixNsBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNsArray(List<Integer> prefixNsArray) {
|
||||
this.instance.prefixNsArray(prefixNsArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public XmlItem.Builder prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
|
||||
this.instance.prefixNsWrappedArray(prefixNsWrappedArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a built XmlItem instance.
|
||||
*
|
||||
* The builder is not reusable (NullPointerException)
|
||||
*/
|
||||
public XmlItem build() {
|
||||
try {
|
||||
return this.instance;
|
||||
} finally {
|
||||
// ensure that this.instance is not reused
|
||||
this.instance = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass() + "=(" + instance + ")";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with no initialized field (except for the default values).
|
||||
*/
|
||||
public static XmlItem.Builder builder() {
|
||||
return new XmlItem.Builder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a builder with a shallow copy of this instance.
|
||||
*/
|
||||
public XmlItem.Builder toBuilder() {
|
||||
XmlItem.Builder builder = new XmlItem.Builder();
|
||||
return builder.copyOf(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user