Issue 20804: Add java nullability annotations (#20806)

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.

* issue-20804: Add nullability annotations to Java generated clients

Motivation:
Be able to use generated clients in code checked by tools like NullAway.
This commit is contained in:
Nicolas Vervelle
2025-03-25 16:01:17 +01:00
committed by GitHub
parent d81b5a37d1
commit 8ca3543436
228 changed files with 4520 additions and 4421 deletions

View File

@@ -90,7 +90,7 @@ public class AnotherFakeApi {
* @return CompletableFuture<Client>
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Client> call123testSpecialTags(Client client) throws ApiException {
public CompletableFuture<Client> call123testSpecialTags(@javax.annotation.Nonnull Client client) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client);
return memberVarHttpClient.sendAsync(
@@ -121,7 +121,7 @@ public class AnotherFakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Client&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Client>> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
public CompletableFuture<ApiResponse<Client>> call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = call123testSpecialTagsRequestBuilder(client);
return memberVarHttpClient.sendAsync(
@@ -152,7 +152,7 @@ public class AnotherFakeApi {
}
}
private HttpRequest.Builder call123testSpecialTagsRequestBuilder(Client client) throws ApiException {
private HttpRequest.Builder call123testSpecialTagsRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");

View File

@@ -281,7 +281,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Boolean&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Boolean> fakeOuterBooleanSerialize(Boolean body) throws ApiException {
public CompletableFuture<Boolean> fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterBooleanSerializeRequestBuilder(body);
return memberVarHttpClient.sendAsync(
@@ -312,7 +312,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Boolean&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Boolean>> fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws ApiException {
public CompletableFuture<ApiResponse<Boolean>> fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterBooleanSerializeRequestBuilder(body);
return memberVarHttpClient.sendAsync(
@@ -343,7 +343,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(Boolean body) throws ApiException {
private HttpRequest.Builder fakeOuterBooleanSerializeRequestBuilder(@javax.annotation.Nullable Boolean body) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -376,7 +376,7 @@ public class FakeApi {
* @return CompletableFuture&lt;OuterComposite&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<OuterComposite> fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
public CompletableFuture<OuterComposite> fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite);
return memberVarHttpClient.sendAsync(
@@ -407,7 +407,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;OuterComposite&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<OuterComposite>> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws ApiException {
public CompletableFuture<ApiResponse<OuterComposite>> fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterCompositeSerializeRequestBuilder(outerComposite);
return memberVarHttpClient.sendAsync(
@@ -438,7 +438,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(OuterComposite outerComposite) throws ApiException {
private HttpRequest.Builder fakeOuterCompositeSerializeRequestBuilder(@javax.annotation.Nullable OuterComposite outerComposite) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -471,7 +471,7 @@ public class FakeApi {
* @return CompletableFuture&lt;BigDecimal&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<BigDecimal> fakeOuterNumberSerialize(BigDecimal body) throws ApiException {
public CompletableFuture<BigDecimal> fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterNumberSerializeRequestBuilder(body);
return memberVarHttpClient.sendAsync(
@@ -502,7 +502,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;BigDecimal&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<BigDecimal>> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws ApiException {
public CompletableFuture<ApiResponse<BigDecimal>> fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterNumberSerializeRequestBuilder(body);
return memberVarHttpClient.sendAsync(
@@ -533,7 +533,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(BigDecimal body) throws ApiException {
private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(@javax.annotation.Nullable BigDecimal body) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -566,7 +566,7 @@ public class FakeApi {
* @return CompletableFuture&lt;String&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<String> fakeOuterStringSerialize(String body) throws ApiException {
public CompletableFuture<String> fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body);
return memberVarHttpClient.sendAsync(
@@ -597,7 +597,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;String&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<String>> fakeOuterStringSerializeWithHttpInfo(String body) throws ApiException {
public CompletableFuture<ApiResponse<String>> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body);
return memberVarHttpClient.sendAsync(
@@ -628,7 +628,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(String body) throws ApiException {
private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable String body) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -830,7 +830,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testAdditionalPropertiesReference(Map<String, Object> requestBody) throws ApiException {
public CompletableFuture<Void> testAdditionalPropertiesReference(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testAdditionalPropertiesReferenceRequestBuilder(requestBody);
return memberVarHttpClient.sendAsync(
@@ -854,7 +854,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testAdditionalPropertiesReferenceWithHttpInfo(Map<String, Object> requestBody) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testAdditionalPropertiesReferenceRequestBuilder(requestBody);
return memberVarHttpClient.sendAsync(
@@ -877,7 +877,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(Map<String, Object> requestBody) throws ApiException {
private HttpRequest.Builder testAdditionalPropertiesReferenceRequestBuilder(@javax.annotation.Nonnull Map<String, Object> requestBody) throws ApiException {
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testAdditionalPropertiesReference");
@@ -914,7 +914,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
public CompletableFuture<Void> testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass);
return memberVarHttpClient.sendAsync(
@@ -938,7 +938,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(fileSchemaTestClass);
return memberVarHttpClient.sendAsync(
@@ -961,7 +961,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
private HttpRequest.Builder testBodyWithFileSchemaRequestBuilder(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws ApiException {
// verify the required parameter 'fileSchemaTestClass' is set
if (fileSchemaTestClass == null) {
throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
@@ -999,7 +999,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testBodyWithQueryParams(String query, User user) throws ApiException {
public CompletableFuture<Void> testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user);
return memberVarHttpClient.sendAsync(
@@ -1024,7 +1024,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testBodyWithQueryParamsRequestBuilder(query, user);
return memberVarHttpClient.sendAsync(
@@ -1047,7 +1047,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(String query, User user) throws ApiException {
private HttpRequest.Builder testBodyWithQueryParamsRequestBuilder(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws ApiException {
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
@@ -1103,7 +1103,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Client&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Client> testClientModel(Client client) throws ApiException {
public CompletableFuture<Client> testClientModel(@javax.annotation.Nonnull Client client) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client);
return memberVarHttpClient.sendAsync(
@@ -1134,7 +1134,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Client&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Client>> testClientModelWithHttpInfo(Client client) throws ApiException {
public CompletableFuture<ApiResponse<Client>> testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testClientModelRequestBuilder(client);
return memberVarHttpClient.sendAsync(
@@ -1165,7 +1165,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testClientModelRequestBuilder(Client client) throws ApiException {
private HttpRequest.Builder testClientModelRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
@@ -1215,7 +1215,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
public CompletableFuture<Void> testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testEndpointParametersRequestBuilder(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
return memberVarHttpClient.sendAsync(
@@ -1252,7 +1252,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testEndpointParametersWithHttpInfo(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testEndpointParametersRequestBuilder(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
return memberVarHttpClient.sendAsync(
@@ -1275,7 +1275,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testEndpointParametersRequestBuilder(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws ApiException {
private HttpRequest.Builder testEndpointParametersRequestBuilder(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws ApiException {
// verify the required parameter 'number' is set
if (number == null) {
throw new ApiException(400, "Missing the required parameter 'number' when calling testEndpointParameters");
@@ -1378,7 +1378,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
public CompletableFuture<Void> testEnumParameters(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
return memberVarHttpClient.sendAsync(
@@ -1409,7 +1409,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testEnumParametersWithHttpInfo(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testEnumParametersRequestBuilder(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
return memberVarHttpClient.sendAsync(
@@ -1432,7 +1432,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testEnumParametersRequestBuilder(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws ApiException {
private HttpRequest.Builder testEnumParametersRequestBuilder(@javax.annotation.Nullable List<String> enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List<String> enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List<String> enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -1506,11 +1506,17 @@ public class FakeApi {
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException {
@javax.annotation.Nonnull
Integer requiredStringGroup = apiRequest.requiredStringGroup();
@javax.annotation.Nonnull
Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup();
@javax.annotation.Nonnull
Long requiredInt64Group = apiRequest.requiredInt64Group();
@javax.annotation.Nullable
Integer stringGroup = apiRequest.stringGroup();
@javax.annotation.Nullable
Boolean booleanGroup = apiRequest.booleanGroup();
@javax.annotation.Nullable
Long int64Group = apiRequest.int64Group();
return testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
}
@@ -1544,7 +1550,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
public CompletableFuture<Void> testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testGroupParametersRequestBuilder(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
return memberVarHttpClient.sendAsync(
@@ -1573,7 +1579,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testGroupParametersWithHttpInfo(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testGroupParametersRequestBuilder(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
return memberVarHttpClient.sendAsync(
@@ -1596,7 +1602,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testGroupParametersRequestBuilder(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {
private HttpRequest.Builder testGroupParametersRequestBuilder(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws ApiException {
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup == null) {
throw new ApiException(400, "Missing the required parameter 'requiredStringGroup' when calling testGroupParameters");
@@ -1657,11 +1663,17 @@ public class FakeApi {
public static final class APItestGroupParametersRequest {
@javax.annotation.Nonnull
private Integer requiredStringGroup; // Required String in group parameters (required)
@javax.annotation.Nonnull
private Boolean requiredBooleanGroup; // Required Boolean in group parameters (required)
@javax.annotation.Nonnull
private Long requiredInt64Group; // Required Integer in group parameters (required)
@javax.annotation.Nullable
private Integer stringGroup; // String in group parameters (optional)
@javax.annotation.Nullable
private Boolean booleanGroup; // Boolean in group parameters (optional)
@javax.annotation.Nullable
private Long int64Group; // Integer in group parameters (optional)
private APItestGroupParametersRequest(Builder builder) {
@@ -1672,21 +1684,27 @@ public class FakeApi {
this.booleanGroup = builder.booleanGroup;
this.int64Group = builder.int64Group;
}
@javax.annotation.Nonnull
public Integer requiredStringGroup() {
return requiredStringGroup;
}
@javax.annotation.Nonnull
public Boolean requiredBooleanGroup() {
return requiredBooleanGroup;
}
@javax.annotation.Nonnull
public Long requiredInt64Group() {
return requiredInt64Group;
}
@javax.annotation.Nullable
public Integer stringGroup() {
return stringGroup;
}
@javax.annotation.Nullable
public Boolean booleanGroup() {
return booleanGroup;
}
@javax.annotation.Nullable
public Long int64Group() {
return int64Group;
}
@@ -1702,27 +1720,27 @@ public class FakeApi {
private Boolean booleanGroup;
private Long int64Group;
public Builder requiredStringGroup(Integer requiredStringGroup) {
public Builder requiredStringGroup(@javax.annotation.Nonnull Integer requiredStringGroup) {
this.requiredStringGroup = requiredStringGroup;
return this;
}
public Builder requiredBooleanGroup(Boolean requiredBooleanGroup) {
public Builder requiredBooleanGroup(@javax.annotation.Nonnull Boolean requiredBooleanGroup) {
this.requiredBooleanGroup = requiredBooleanGroup;
return this;
}
public Builder requiredInt64Group(Long requiredInt64Group) {
public Builder requiredInt64Group(@javax.annotation.Nonnull Long requiredInt64Group) {
this.requiredInt64Group = requiredInt64Group;
return this;
}
public Builder stringGroup(Integer stringGroup) {
public Builder stringGroup(@javax.annotation.Nullable Integer stringGroup) {
this.stringGroup = stringGroup;
return this;
}
public Builder booleanGroup(Boolean booleanGroup) {
public Builder booleanGroup(@javax.annotation.Nullable Boolean booleanGroup) {
this.booleanGroup = booleanGroup;
return this;
}
public Builder int64Group(Long int64Group) {
public Builder int64Group(@javax.annotation.Nullable Long int64Group) {
this.int64Group = int64Group;
return this;
}
@@ -1739,7 +1757,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testInlineAdditionalProperties(Map<String, String> requestBody) throws ApiException {
public CompletableFuture<Void> testInlineAdditionalProperties(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody);
return memberVarHttpClient.sendAsync(
@@ -1763,7 +1781,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(requestBody);
return memberVarHttpClient.sendAsync(
@@ -1786,7 +1804,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(Map<String, String> requestBody) throws ApiException {
private HttpRequest.Builder testInlineAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
@@ -1823,7 +1841,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testInlineFreeformAdditionalProperties(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
public CompletableFuture<Void> testInlineFreeformAdditionalProperties(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testInlineFreeformAdditionalPropertiesRequestBuilder(testInlineFreeformAdditionalPropertiesRequest);
return memberVarHttpClient.sendAsync(
@@ -1847,7 +1865,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testInlineFreeformAdditionalPropertiesRequestBuilder(testInlineFreeformAdditionalPropertiesRequest);
return memberVarHttpClient.sendAsync(
@@ -1870,7 +1888,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
private HttpRequest.Builder testInlineFreeformAdditionalPropertiesRequestBuilder(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws ApiException {
// verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set
if (testInlineFreeformAdditionalPropertiesRequest == null) {
throw new ApiException(400, "Missing the required parameter 'testInlineFreeformAdditionalPropertiesRequest' when calling testInlineFreeformAdditionalProperties");
@@ -1908,7 +1926,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testJsonFormData(String param, String param2) throws ApiException {
public CompletableFuture<Void> testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testJsonFormDataRequestBuilder(param, param2);
return memberVarHttpClient.sendAsync(
@@ -1933,7 +1951,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testJsonFormDataWithHttpInfo(String param, String param2) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testJsonFormDataRequestBuilder(param, param2);
return memberVarHttpClient.sendAsync(
@@ -1956,7 +1974,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testJsonFormDataRequestBuilder(String param, String param2) throws ApiException {
private HttpRequest.Builder testJsonFormDataRequestBuilder(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws ApiException {
// verify the required parameter 'param' is set
if (param == null) {
throw new ApiException(400, "Missing the required parameter 'param' when calling testJsonFormData");
@@ -2012,7 +2030,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
public CompletableFuture<Void> testQueryParameterCollectionFormat(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context);
return memberVarHttpClient.sendAsync(
@@ -2040,7 +2058,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testQueryParameterCollectionFormatWithHttpInfo(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testQueryParameterCollectionFormatRequestBuilder(pipe, ioutil, http, url, context);
return memberVarHttpClient.sendAsync(
@@ -2063,7 +2081,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {
private HttpRequest.Builder testQueryParameterCollectionFormatRequestBuilder(@javax.annotation.Nonnull List<String> pipe, @javax.annotation.Nonnull List<String> ioutil, @javax.annotation.Nonnull List<String> http, @javax.annotation.Nonnull List<String> url, @javax.annotation.Nonnull List<String> context) throws ApiException {
// verify the required parameter 'pipe' is set
if (pipe == null) {
throw new ApiException(400, "Missing the required parameter 'pipe' when calling testQueryParameterCollectionFormat");
@@ -2133,7 +2151,7 @@ public class FakeApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> testStringMapReference(Map<String, String> requestBody) throws ApiException {
public CompletableFuture<Void> testStringMapReference(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testStringMapReferenceRequestBuilder(requestBody);
return memberVarHttpClient.sendAsync(
@@ -2157,7 +2175,7 @@ public class FakeApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> testStringMapReferenceWithHttpInfo(Map<String, String> requestBody) throws ApiException {
public CompletableFuture<ApiResponse<Void>> testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testStringMapReferenceRequestBuilder(requestBody);
return memberVarHttpClient.sendAsync(
@@ -2180,7 +2198,7 @@ public class FakeApi {
}
}
private HttpRequest.Builder testStringMapReferenceRequestBuilder(Map<String, String> requestBody) throws ApiException {
private HttpRequest.Builder testStringMapReferenceRequestBuilder(@javax.annotation.Nonnull Map<String, String> requestBody) throws ApiException {
// verify the required parameter 'requestBody' is set
if (requestBody == null) {
throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testStringMapReference");

View File

@@ -96,7 +96,7 @@ public class FakeClassnameTags123Api {
* @return CompletableFuture&lt;Client&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Client> testClassname(Client client) throws ApiException {
public CompletableFuture<Client> testClassname(@javax.annotation.Nonnull Client client) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client);
return memberVarHttpClient.sendAsync(
@@ -127,7 +127,7 @@ public class FakeClassnameTags123Api {
* @return CompletableFuture&lt;ApiResponse&lt;Client&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Client>> testClassnameWithHttpInfo(Client client) throws ApiException {
public CompletableFuture<ApiResponse<Client>> testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = testClassnameRequestBuilder(client);
return memberVarHttpClient.sendAsync(
@@ -158,7 +158,7 @@ public class FakeClassnameTags123Api {
}
}
private HttpRequest.Builder testClassnameRequestBuilder(Client client) throws ApiException {
private HttpRequest.Builder testClassnameRequestBuilder(@javax.annotation.Nonnull Client client) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");

View File

@@ -98,7 +98,7 @@ public class PetApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> addPet(Pet pet) throws ApiException {
public CompletableFuture<Void> addPet(@javax.annotation.Nonnull Pet pet) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet);
return memberVarHttpClient.sendAsync(
@@ -122,7 +122,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> addPetWithHttpInfo(Pet pet) throws ApiException {
public CompletableFuture<ApiResponse<Void>> addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = addPetRequestBuilder(pet);
return memberVarHttpClient.sendAsync(
@@ -145,7 +145,7 @@ public class PetApi {
}
}
private HttpRequest.Builder addPetRequestBuilder(Pet pet) throws ApiException {
private HttpRequest.Builder addPetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
@@ -183,7 +183,7 @@ public class PetApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> deletePet(Long petId, String apiKey) throws ApiException {
public CompletableFuture<Void> deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey);
return memberVarHttpClient.sendAsync(
@@ -208,7 +208,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> deletePetWithHttpInfo(Long petId, String apiKey) throws ApiException {
public CompletableFuture<ApiResponse<Void>> deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = deletePetRequestBuilder(petId, apiKey);
return memberVarHttpClient.sendAsync(
@@ -231,7 +231,7 @@ public class PetApi {
}
}
private HttpRequest.Builder deletePetRequestBuilder(Long petId, String apiKey) throws ApiException {
private HttpRequest.Builder deletePetRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet");
@@ -266,7 +266,7 @@ public class PetApi {
* @return CompletableFuture&lt;List&lt;Pet&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<List<Pet>> findPetsByStatus(List<String> status) throws ApiException {
public CompletableFuture<List<Pet>> findPetsByStatus(@javax.annotation.Nonnull List<String> status) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status);
return memberVarHttpClient.sendAsync(
@@ -297,7 +297,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;List&lt;Pet&gt;&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<List<Pet>>> findPetsByStatusWithHttpInfo(List<String> status) throws ApiException {
public CompletableFuture<ApiResponse<List<Pet>>> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List<String> status) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = findPetsByStatusRequestBuilder(status);
return memberVarHttpClient.sendAsync(
@@ -328,7 +328,7 @@ public class PetApi {
}
}
private HttpRequest.Builder findPetsByStatusRequestBuilder(List<String> status) throws ApiException {
private HttpRequest.Builder findPetsByStatusRequestBuilder(@javax.annotation.Nonnull List<String> status) throws ApiException {
// verify the required parameter 'status' is set
if (status == null) {
throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");
@@ -376,7 +376,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
public CompletableFuture<List<Pet>> findPetsByTags(List<String> tags) throws ApiException {
public CompletableFuture<List<Pet>> findPetsByTags(@javax.annotation.Nonnull List<String> tags) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags);
return memberVarHttpClient.sendAsync(
@@ -409,7 +409,7 @@ public class PetApi {
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<List<Pet>>> findPetsByTagsWithHttpInfo(List<String> tags) throws ApiException {
public CompletableFuture<ApiResponse<List<Pet>>> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List<String> tags) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = findPetsByTagsRequestBuilder(tags);
return memberVarHttpClient.sendAsync(
@@ -440,7 +440,7 @@ public class PetApi {
}
}
private HttpRequest.Builder findPetsByTagsRequestBuilder(List<String> tags) throws ApiException {
private HttpRequest.Builder findPetsByTagsRequestBuilder(@javax.annotation.Nonnull List<String> tags) throws ApiException {
// verify the required parameter 'tags' is set
if (tags == null) {
throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");
@@ -486,7 +486,7 @@ public class PetApi {
* @return CompletableFuture&lt;Pet&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Pet> getPetById(Long petId) throws ApiException {
public CompletableFuture<Pet> getPetById(@javax.annotation.Nonnull Long petId) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId);
return memberVarHttpClient.sendAsync(
@@ -517,7 +517,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;Pet&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Pet>> getPetByIdWithHttpInfo(Long petId) throws ApiException {
public CompletableFuture<ApiResponse<Pet>> getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = getPetByIdRequestBuilder(petId);
return memberVarHttpClient.sendAsync(
@@ -548,7 +548,7 @@ public class PetApi {
}
}
private HttpRequest.Builder getPetByIdRequestBuilder(Long petId) throws ApiException {
private HttpRequest.Builder getPetByIdRequestBuilder(@javax.annotation.Nonnull Long petId) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException(400, "Missing the required parameter 'petId' when calling getPetById");
@@ -580,7 +580,7 @@ public class PetApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> updatePet(Pet pet) throws ApiException {
public CompletableFuture<Void> updatePet(@javax.annotation.Nonnull Pet pet) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet);
return memberVarHttpClient.sendAsync(
@@ -604,7 +604,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> updatePetWithHttpInfo(Pet pet) throws ApiException {
public CompletableFuture<ApiResponse<Void>> updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = updatePetRequestBuilder(pet);
return memberVarHttpClient.sendAsync(
@@ -627,7 +627,7 @@ public class PetApi {
}
}
private HttpRequest.Builder updatePetRequestBuilder(Pet pet) throws ApiException {
private HttpRequest.Builder updatePetRequestBuilder(@javax.annotation.Nonnull Pet pet) throws ApiException {
// verify the required parameter 'pet' is set
if (pet == null) {
throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
@@ -666,7 +666,7 @@ public class PetApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> updatePetWithForm(Long petId, String name, String status) throws ApiException {
public CompletableFuture<Void> updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status);
return memberVarHttpClient.sendAsync(
@@ -692,7 +692,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws ApiException {
public CompletableFuture<ApiResponse<Void>> updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = updatePetWithFormRequestBuilder(petId, name, status);
return memberVarHttpClient.sendAsync(
@@ -715,7 +715,7 @@ public class PetApi {
}
}
private HttpRequest.Builder updatePetWithFormRequestBuilder(Long petId, String name, String status) throws ApiException {
private HttpRequest.Builder updatePetWithFormRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException(400, "Missing the required parameter 'petId' when calling updatePetWithForm");
@@ -766,7 +766,7 @@ public class PetApi {
* @return CompletableFuture&lt;ModelApiResponse&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ModelApiResponse> uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException {
public CompletableFuture<ModelApiResponse> uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file);
return memberVarHttpClient.sendAsync(
@@ -799,7 +799,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;ModelApiResponse&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<ModelApiResponse>> uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws ApiException {
public CompletableFuture<ApiResponse<ModelApiResponse>> uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = uploadFileRequestBuilder(petId, additionalMetadata, _file);
return memberVarHttpClient.sendAsync(
@@ -830,7 +830,7 @@ public class PetApi {
}
}
private HttpRequest.Builder uploadFileRequestBuilder(Long petId, String additionalMetadata, File _file) throws ApiException {
private HttpRequest.Builder uploadFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFile");
@@ -898,7 +898,7 @@ public class PetApi {
* @return CompletableFuture&lt;ModelApiResponse&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ModelApiResponse> uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
public CompletableFuture<ModelApiResponse> uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = uploadFileWithRequiredFileRequestBuilder(petId, requiredFile, additionalMetadata);
return memberVarHttpClient.sendAsync(
@@ -931,7 +931,7 @@ public class PetApi {
* @return CompletableFuture&lt;ApiResponse&lt;ModelApiResponse&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<ModelApiResponse>> uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
public CompletableFuture<ApiResponse<ModelApiResponse>> uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = uploadFileWithRequiredFileRequestBuilder(petId, requiredFile, additionalMetadata);
return memberVarHttpClient.sendAsync(
@@ -962,7 +962,7 @@ public class PetApi {
}
}
private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(Long petId, File requiredFile, String additionalMetadata) throws ApiException {
private HttpRequest.Builder uploadFileWithRequiredFileRequestBuilder(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws ApiException {
// verify the required parameter 'petId' is set
if (petId == null) {
throw new ApiException(400, "Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");

View File

@@ -96,7 +96,7 @@ public class StoreApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> deleteOrder(String orderId) throws ApiException {
public CompletableFuture<Void> deleteOrder(@javax.annotation.Nonnull String orderId) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId);
return memberVarHttpClient.sendAsync(
@@ -120,7 +120,7 @@ public class StoreApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> deleteOrderWithHttpInfo(String orderId) throws ApiException {
public CompletableFuture<ApiResponse<Void>> deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = deleteOrderRequestBuilder(orderId);
return memberVarHttpClient.sendAsync(
@@ -143,7 +143,7 @@ public class StoreApi {
}
}
private HttpRequest.Builder deleteOrderRequestBuilder(String orderId) throws ApiException {
private HttpRequest.Builder deleteOrderRequestBuilder(@javax.annotation.Nonnull String orderId) throws ApiException {
// verify the required parameter 'orderId' is set
if (orderId == null) {
throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");
@@ -262,7 +262,7 @@ public class StoreApi {
* @return CompletableFuture&lt;Order&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Order> getOrderById(Long orderId) throws ApiException {
public CompletableFuture<Order> getOrderById(@javax.annotation.Nonnull Long orderId) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId);
return memberVarHttpClient.sendAsync(
@@ -293,7 +293,7 @@ public class StoreApi {
* @return CompletableFuture&lt;ApiResponse&lt;Order&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Order>> getOrderByIdWithHttpInfo(Long orderId) throws ApiException {
public CompletableFuture<ApiResponse<Order>> getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = getOrderByIdRequestBuilder(orderId);
return memberVarHttpClient.sendAsync(
@@ -324,7 +324,7 @@ public class StoreApi {
}
}
private HttpRequest.Builder getOrderByIdRequestBuilder(Long orderId) throws ApiException {
private HttpRequest.Builder getOrderByIdRequestBuilder(@javax.annotation.Nonnull Long orderId) throws ApiException {
// verify the required parameter 'orderId' is set
if (orderId == null) {
throw new ApiException(400, "Missing the required parameter 'orderId' when calling getOrderById");
@@ -356,7 +356,7 @@ public class StoreApi {
* @return CompletableFuture&lt;Order&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Order> placeOrder(Order order) throws ApiException {
public CompletableFuture<Order> placeOrder(@javax.annotation.Nonnull Order order) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order);
return memberVarHttpClient.sendAsync(
@@ -387,7 +387,7 @@ public class StoreApi {
* @return CompletableFuture&lt;ApiResponse&lt;Order&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Order>> placeOrderWithHttpInfo(Order order) throws ApiException {
public CompletableFuture<ApiResponse<Order>> placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = placeOrderRequestBuilder(order);
return memberVarHttpClient.sendAsync(
@@ -418,7 +418,7 @@ public class StoreApi {
}
}
private HttpRequest.Builder placeOrderRequestBuilder(Order order) throws ApiException {
private HttpRequest.Builder placeOrderRequestBuilder(@javax.annotation.Nonnull Order order) throws ApiException {
// verify the required parameter 'order' is set
if (order == null) {
throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");

View File

@@ -97,7 +97,7 @@ public class UserApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> createUser(User user) throws ApiException {
public CompletableFuture<Void> createUser(@javax.annotation.Nonnull User user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user);
return memberVarHttpClient.sendAsync(
@@ -121,7 +121,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> createUserWithHttpInfo(User user) throws ApiException {
public CompletableFuture<ApiResponse<Void>> createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = createUserRequestBuilder(user);
return memberVarHttpClient.sendAsync(
@@ -144,7 +144,7 @@ public class UserApi {
}
}
private HttpRequest.Builder createUserRequestBuilder(User user) throws ApiException {
private HttpRequest.Builder createUserRequestBuilder(@javax.annotation.Nonnull User user) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
@@ -181,7 +181,7 @@ public class UserApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> createUsersWithArrayInput(List<User> user) throws ApiException {
public CompletableFuture<Void> createUsersWithArrayInput(@javax.annotation.Nonnull List<User> user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user);
return memberVarHttpClient.sendAsync(
@@ -205,7 +205,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> createUsersWithArrayInputWithHttpInfo(List<User> user) throws ApiException {
public CompletableFuture<ApiResponse<Void>> createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List<User> user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = createUsersWithArrayInputRequestBuilder(user);
return memberVarHttpClient.sendAsync(
@@ -228,7 +228,7 @@ public class UserApi {
}
}
private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(List<User> user) throws ApiException {
private HttpRequest.Builder createUsersWithArrayInputRequestBuilder(@javax.annotation.Nonnull List<User> user) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
@@ -265,7 +265,7 @@ public class UserApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> createUsersWithListInput(List<User> user) throws ApiException {
public CompletableFuture<Void> createUsersWithListInput(@javax.annotation.Nonnull List<User> user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user);
return memberVarHttpClient.sendAsync(
@@ -289,7 +289,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> createUsersWithListInputWithHttpInfo(List<User> user) throws ApiException {
public CompletableFuture<ApiResponse<Void>> createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List<User> user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = createUsersWithListInputRequestBuilder(user);
return memberVarHttpClient.sendAsync(
@@ -312,7 +312,7 @@ public class UserApi {
}
}
private HttpRequest.Builder createUsersWithListInputRequestBuilder(List<User> user) throws ApiException {
private HttpRequest.Builder createUsersWithListInputRequestBuilder(@javax.annotation.Nonnull List<User> user) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
@@ -349,7 +349,7 @@ public class UserApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> deleteUser(String username) throws ApiException {
public CompletableFuture<Void> deleteUser(@javax.annotation.Nonnull String username) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username);
return memberVarHttpClient.sendAsync(
@@ -373,7 +373,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> deleteUserWithHttpInfo(String username) throws ApiException {
public CompletableFuture<ApiResponse<Void>> deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = deleteUserRequestBuilder(username);
return memberVarHttpClient.sendAsync(
@@ -396,7 +396,7 @@ public class UserApi {
}
}
private HttpRequest.Builder deleteUserRequestBuilder(String username) throws ApiException {
private HttpRequest.Builder deleteUserRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling deleteUser");
@@ -428,7 +428,7 @@ public class UserApi {
* @return CompletableFuture&lt;User&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<User> getUserByName(String username) throws ApiException {
public CompletableFuture<User> getUserByName(@javax.annotation.Nonnull String username) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username);
return memberVarHttpClient.sendAsync(
@@ -459,7 +459,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;User&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<User>> getUserByNameWithHttpInfo(String username) throws ApiException {
public CompletableFuture<ApiResponse<User>> getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = getUserByNameRequestBuilder(username);
return memberVarHttpClient.sendAsync(
@@ -490,7 +490,7 @@ public class UserApi {
}
}
private HttpRequest.Builder getUserByNameRequestBuilder(String username) throws ApiException {
private HttpRequest.Builder getUserByNameRequestBuilder(@javax.annotation.Nonnull String username) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling getUserByName");
@@ -523,7 +523,7 @@ public class UserApi {
* @return CompletableFuture&lt;String&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<String> loginUser(String username, String password) throws ApiException {
public CompletableFuture<String> loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password);
return memberVarHttpClient.sendAsync(
@@ -555,7 +555,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;String&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<String>> loginUserWithHttpInfo(String username, String password) throws ApiException {
public CompletableFuture<ApiResponse<String>> loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = loginUserRequestBuilder(username, password);
return memberVarHttpClient.sendAsync(
@@ -586,7 +586,7 @@ public class UserApi {
}
}
private HttpRequest.Builder loginUserRequestBuilder(String username, String password) throws ApiException {
private HttpRequest.Builder loginUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");
@@ -711,7 +711,7 @@ public class UserApi {
* @return CompletableFuture&lt;Void&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<Void> updateUser(String username, User user) throws ApiException {
public CompletableFuture<Void> updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user);
return memberVarHttpClient.sendAsync(
@@ -736,7 +736,7 @@ public class UserApi {
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
* @throws ApiException if fails to make API call
*/
public CompletableFuture<ApiResponse<Void>> updateUserWithHttpInfo(String username, User user) throws ApiException {
public CompletableFuture<ApiResponse<Void>> updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
try {
HttpRequest.Builder localVarRequestBuilder = updateUserRequestBuilder(username, user);
return memberVarHttpClient.sendAsync(
@@ -759,7 +759,7 @@ public class UserApi {
}
}
private HttpRequest.Builder updateUserRequestBuilder(String username, User user) throws ApiException {
private HttpRequest.Builder updateUserRequestBuilder(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");