21
21
*
22
22
*/
23
23
24
- package org .springdoc .core .fn .builders ;
24
+ package org .springdoc .core .fn .builders . apiresponse ;
25
25
26
26
import java .lang .annotation .Annotation ;
27
27
36
36
* The type Api response builder.
37
37
* @author bnasslahsen
38
38
*/
39
- public class ApiResponseBuilder {
39
+ public class Builder {
40
40
41
41
/**
42
42
* A short description of the response.
@@ -85,16 +85,16 @@ public class ApiResponseBuilder {
85
85
/**
86
86
* Instantiates a new Api response builder.
87
87
*/
88
- private ApiResponseBuilder () {
88
+ private Builder () {
89
89
}
90
90
91
91
/**
92
92
* Builder api response builder.
93
93
*
94
94
* @return the api response builder
95
95
*/
96
- public static ApiResponseBuilder builder () {
97
- return new ApiResponseBuilder ();
96
+ public static Builder apiResponse () {
97
+ return new Builder ();
98
98
}
99
99
100
100
/**
@@ -103,7 +103,7 @@ public static ApiResponseBuilder builder() {
103
103
* @param description the description
104
104
* @return the api response builder
105
105
*/
106
- public ApiResponseBuilder description (String description ) {
106
+ public Builder description (String description ) {
107
107
this .description = description ;
108
108
return this ;
109
109
}
@@ -114,7 +114,7 @@ public ApiResponseBuilder description(String description) {
114
114
* @param responseCode the response code
115
115
* @return the api response builder
116
116
*/
117
- public ApiResponseBuilder responseCode (String responseCode ) {
117
+ public Builder responseCode (String responseCode ) {
118
118
this .responseCode = responseCode ;
119
119
return this ;
120
120
}
@@ -125,7 +125,7 @@ public ApiResponseBuilder responseCode(String responseCode) {
125
125
* @param headers the headers
126
126
* @return the api response builder
127
127
*/
128
- public ApiResponseBuilder header (HeaderBuilder headers ) {
128
+ public Builder header (org . springdoc . core . fn . builders . header . Builder headers ) {
129
129
this .headers = ArrayUtils .add (this .headers , headers .build ());
130
130
return this ;
131
131
}
@@ -136,7 +136,7 @@ public ApiResponseBuilder header(HeaderBuilder headers) {
136
136
* @param linkBuilder the link builder
137
137
* @return the api response builder
138
138
*/
139
- public ApiResponseBuilder link (LinkBuilder linkBuilder ) {
139
+ public Builder link (org . springdoc . core . fn . builders . link . Builder linkBuilder ) {
140
140
this .links = ArrayUtils .add (this .links , linkBuilder .build ());
141
141
return this ;
142
142
}
@@ -147,7 +147,7 @@ public ApiResponseBuilder link(LinkBuilder linkBuilder) {
147
147
* @param contentBuilder the content builder
148
148
* @return the api response builder
149
149
*/
150
- public ApiResponseBuilder content (ContentBuilder contentBuilder ) {
150
+ public Builder content (org . springdoc . core . fn . builders . content . Builder contentBuilder ) {
151
151
this .content = ArrayUtils .add (this .content , contentBuilder .build ());
152
152
return this ;
153
153
}
@@ -158,8 +158,8 @@ public ApiResponseBuilder content(ContentBuilder contentBuilder) {
158
158
* @param clazz the clazz
159
159
* @return the api response builder
160
160
*/
161
- public ApiResponseBuilder implementation (Class clazz ) {
162
- this .content = ArrayUtils .add (this .content , ContentBuilder . builder ().schema (SchemaBuilder . builder ().implementation (clazz )).build ());
161
+ public Builder implementation (Class clazz ) {
162
+ this .content = ArrayUtils .add (this .content , org . springdoc . core . fn . builders . content . Builder . content ().schema (org . springdoc . core . fn . builders . schema . Builder . schema ().implementation (clazz )).build ());
163
163
return this ;
164
164
}
165
165
@@ -169,8 +169,8 @@ public ApiResponseBuilder implementation(Class clazz) {
169
169
* @param clazz the clazz
170
170
* @return the api response builder
171
171
*/
172
- public ApiResponseBuilder implementationArray (Class clazz ) {
173
- this .content = ArrayUtils .add (this .content , ContentBuilder . builder ().array (ArraySchemaBuilder . builder ().schema (SchemaBuilder . builder ().implementation (clazz ))).build ());
172
+ public Builder implementationArray (Class clazz ) {
173
+ this .content = ArrayUtils .add (this .content , org . springdoc . core . fn . builders . content . Builder . content ().array (org . springdoc . core . fn . builders . arrayschema . Builder . arraySchema ().schema (org . springdoc . core . fn . builders . schema . Builder . schema ().implementation (clazz ))).build ());
174
174
return this ;
175
175
}
176
176
@@ -180,7 +180,7 @@ public ApiResponseBuilder implementationArray(Class clazz) {
180
180
* @param extensionBuilder the extension builder
181
181
* @return the api response builder
182
182
*/
183
- public ApiResponseBuilder extension (ExtensionBuilder extensionBuilder ) {
183
+ public Builder extension (org . springdoc . core . fn . builders . extension . Builder extensionBuilder ) {
184
184
this .extensions = ArrayUtils .add (this .extensions , extensionBuilder .build ());
185
185
return this ;
186
186
}
@@ -191,7 +191,7 @@ public ApiResponseBuilder extension(ExtensionBuilder extensionBuilder) {
191
191
* @param ref the ref
192
192
* @return the api response builder
193
193
*/
194
- public ApiResponseBuilder ref (String ref ) {
194
+ public Builder ref (String ref ) {
195
195
this .ref = ref ;
196
196
return this ;
197
197
}
0 commit comments