From 6e7ba4287fea63802866e0dff4ffb854e28c5f7a Mon Sep 17 00:00:00 2001 From: Cameron Koegel <53310569+ckoegel@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:17:36 -0500 Subject: [PATCH 1/3] SWI-6496 Fix Media Tests (#159) * update to 7.9.0 * update media API * fix merge --- .openapi-generator/VERSION | 2 +- README.md | 4 +- build.gradle | 7 +- build.sbt | 5 +- custom_templates/api.mustache | 597 ++++++++++++++++++ openapi-config.yml | 1 + openapitools.json | 2 +- .../java/com/bandwidth/sdk/ApiClient.java | 34 +- .../java/com/bandwidth/sdk/ApiException.java | 2 +- .../java/com/bandwidth/sdk/Configuration.java | 2 +- src/main/java/com/bandwidth/sdk/JSON.java | 19 +- src/main/java/com/bandwidth/sdk/Pair.java | 2 +- .../bandwidth/sdk/ServerConfiguration.java | 15 +- .../com/bandwidth/sdk/ServerVariable.java | 15 +- .../java/com/bandwidth/sdk/StringUtil.java | 2 +- .../java/com/bandwidth/sdk/api/MediaApi.java | 27 +- .../com/bandwidth/sdk/auth/ApiKeyAuth.java | 2 +- .../com/bandwidth/sdk/auth/HttpBasicAuth.java | 2 - .../bandwidth/sdk/auth/HttpBearerAuth.java | 2 +- .../sdk/model/AbstractOpenApiSchema.java | 2 +- .../sdk/model/AccountStatistics.java | 47 +- .../bandwidth/sdk/model/AnswerCallback.java | 95 ++- .../sdk/model/BridgeCompleteCallback.java | 103 ++- .../model/BridgeTargetCompleteCallback.java | 91 ++- .../sdk/model/CallRecordingMetadata.java | 115 ++-- .../com/bandwidth/sdk/model/CallState.java | 111 ++-- .../sdk/model/CallTranscription.java | 55 +- .../sdk/model/CallTranscriptionMetadata.java | 51 +- .../sdk/model/CallTranscriptionResponse.java | 55 +- .../com/bandwidth/sdk/model/CodeRequest.java | 63 +- .../com/bandwidth/sdk/model/Conference.java | 71 +-- .../model/ConferenceCompletedCallback.java | 59 +- .../sdk/model/ConferenceCreatedCallback.java | 59 +- .../bandwidth/sdk/model/ConferenceMember.java | 63 +- .../model/ConferenceMemberExitCallback.java | 71 +-- .../model/ConferenceMemberJoinCallback.java | 71 +-- .../ConferenceRecordingAvailableCallback.java | 95 ++- .../model/ConferenceRecordingMetadata.java | 87 ++- .../sdk/model/ConferenceRedirectCallback.java | 59 +- .../com/bandwidth/sdk/model/CreateCall.java | 123 ++-- .../sdk/model/CreateCallResponse.java | 123 ++-- .../sdk/model/CreateLookupResponse.java | 47 +- .../sdk/model/CreateMessageRequestError.java | 51 +- .../bandwidth/sdk/model/DeferredResult.java | 47 +- .../sdk/model/DisconnectCallback.java | 107 ++-- .../com/bandwidth/sdk/model/Diversion.java | 67 +- .../com/bandwidth/sdk/model/DtmfCallback.java | 107 ++-- .../com/bandwidth/sdk/model/FieldError.java | 47 +- .../bandwidth/sdk/model/GatherCallback.java | 111 ++-- .../sdk/model/InboundMessageCallback.java | 59 +- .../model/InboundMessageCallbackMessage.java | 87 ++- .../bandwidth/sdk/model/InitiateCallback.java | 87 ++- .../bandwidth/sdk/model/ListMessageItem.java | 107 ++-- .../bandwidth/sdk/model/LookupRequest.java | 43 +- .../com/bandwidth/sdk/model/LookupResult.java | 75 ++- .../com/bandwidth/sdk/model/LookupStatus.java | 55 +- .../MachineDetectionCompleteCallback.java | 95 ++- .../model/MachineDetectionConfiguration.java | 99 ++- .../sdk/model/MachineDetectionResult.java | 47 +- .../java/com/bandwidth/sdk/model/Media.java | 51 +- .../java/com/bandwidth/sdk/model/Message.java | 91 ++- .../sdk/model/MessageDeliveredCallback.java | 59 +- .../MessageDeliveredCallbackMessage.java | 87 ++- .../sdk/model/MessageFailedCallback.java | 63 +- .../model/MessageFailedCallbackMessage.java | 87 ++- .../bandwidth/sdk/model/MessageRequest.java | 71 +-- .../sdk/model/MessageSendingCallback.java | 59 +- .../model/MessageSendingCallbackMessage.java | 87 ++- .../com/bandwidth/sdk/model/MessagesList.java | 51 +- .../sdk/model/MessagingCodeResponse.java | 43 +- .../sdk/model/MessagingRequestError.java | 47 +- .../sdk/model/MfaForbiddenRequestError.java | 43 +- .../bandwidth/sdk/model/MfaRequestError.java | 47 +- .../model/MfaUnauthorizedRequestError.java | 43 +- .../com/bandwidth/sdk/model/PageInfo.java | 55 +- .../sdk/model/RecordingAvailableCallback.java | 127 ++-- .../sdk/model/RecordingCompleteCallback.java | 127 ++-- .../model/RecordingTranscriptionMetadata.java | 55 +- .../sdk/model/RecordingTranscriptions.java | 43 +- .../bandwidth/sdk/model/RedirectCallback.java | 103 ++- .../com/bandwidth/sdk/model/StirShaken.java | 51 +- .../java/com/bandwidth/sdk/model/Tag.java | 47 +- .../sdk/model/TnLookupRequestError.java | 43 +- .../sdk/model/TranscribeRecording.java | 67 +- .../bandwidth/sdk/model/Transcription.java | 47 +- .../model/TranscriptionAvailableCallback.java | 123 ++-- .../sdk/model/TransferAnswerCallback.java | 99 ++- .../sdk/model/TransferCompleteCallback.java | 111 ++-- .../sdk/model/TransferDisconnectCallback.java | 119 ++-- .../com/bandwidth/sdk/model/UpdateCall.java | 79 ++- .../sdk/model/UpdateCallRecording.java | 43 +- .../bandwidth/sdk/model/UpdateConference.java | 75 ++- .../sdk/model/UpdateConferenceMember.java | 51 +- .../sdk/model/VerifyCodeRequest.java | 55 +- .../sdk/model/VerifyCodeResponse.java | 43 +- .../bandwidth/sdk/model/VoiceApiError.java | 51 +- .../sdk/model/VoiceCodeResponse.java | 43 +- 97 files changed, 3448 insertions(+), 2887 deletions(-) create mode 100644 custom_templates/api.mustache diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 93c8ddab..4bc5d618 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.9.0 diff --git a/README.md b/README.md index 7a2b1594..a1254273 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bandwidth - API version: 1.0.0 - - Generator version: 7.6.0 + - Generator version: 7.9.0 Bandwidth's Communication APIs @@ -85,7 +85,7 @@ import com.bandwidth.sdk.ApiClient; import com.bandwidth.sdk.ApiException; import com.bandwidth.sdk.Configuration; import com.bandwidth.sdk.auth.*; -import com.bandwidth.sdk.models.*; +import com.bandwidth.sdk.model.*; import com.bandwidth.sdk.api.CallsApi; public class Example { diff --git a/build.gradle b/build.gradle index 9f33620e..7e11e0b0 100644 --- a/build.gradle +++ b/build.gradle @@ -112,14 +112,13 @@ dependencies { implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0' implementation 'com.google.code.gson:gson:2.9.1' implementation 'io.gsonfire:gson-fire:1.9.0' - implementation 'javax.ws.rs:jsr311-api:1.1.1' - implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' + implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' implementation 'org.openapitools:jackson-databind-nullable:0.2.6' implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.mockito:mockito-core:3.12.4' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' } javadoc { diff --git a/build.sbt b/build.sbt index c186322a..8ce42414 100644 --- a/build.sbt +++ b/build.sbt @@ -14,14 +14,13 @@ lazy val root = (project in file(".")). "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", "com.google.code.gson" % "gson" % "2.9.1", "org.apache.commons" % "commons-lang3" % "3.12.0", - "javax.ws.rs" % "jsr311-api" % "1.1.1", - "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1", + "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", "org.openapitools" % "jackson-databind-nullable" % "0.2.6", "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % "test", + "org.junit.jupiter" % "junit-jupiter-api" % "5.10.3" % "test", "com.novocode" % "junit-interface" % "0.10" % "test", "org.mockito" % "mockito-core" % "3.12.4" % "test" ) diff --git a/custom_templates/api.mustache b/custom_templates/api.mustache new file mode 100644 index 00000000..da2d1c2c --- /dev/null +++ b/custom_templates/api.mustache @@ -0,0 +1,597 @@ +{{>licenseInfo}} + +package {{package}}; + +import {{invokerPackage}}.ApiCallback; +import {{invokerPackage}}.ApiClient; +import {{invokerPackage}}.ApiException; +{{#dynamicOperations}} +import {{invokerPackage}}.ApiOperation; +{{/dynamicOperations}} +import {{invokerPackage}}.ApiResponse; +import {{invokerPackage}}.Configuration; +import {{invokerPackage}}.Pair; +import {{invokerPackage}}.ProgressRequestBody; +import {{invokerPackage}}.ProgressResponseBody; +{{#performBeanValidation}} +import {{invokerPackage}}.BeanValidationException; +{{/performBeanValidation}} + +import com.google.gson.reflect.TypeToken; +{{#dynamicOperations}} +import io.swagger.v3.oas.models.Operation; +import io.swagger.v3.oas.models.parameters.Parameter; +{{/dynamicOperations}} + +import java.io.IOException; + +{{#useBeanValidation}} +import {{javaxPackage}}.validation.constraints.*; +import {{javaxPackage}}.validation.Valid; +{{/useBeanValidation}} +{{#performBeanValidation}} +import {{javaxPackage}}.validation.ConstraintViolation; +import {{javaxPackage}}.validation.Validation; +import {{javaxPackage}}.validation.ValidatorFactory; +import {{javaxPackage}}.validation.executable.ExecutableValidator; +import java.util.Set; +import java.lang.reflect.Method; +import java.lang.reflect.Type; +{{/performBeanValidation}} + +{{#imports}}import {{import}}; +{{/imports}} + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +{{#supportStreaming}} +import java.io.InputStream; +{{/supportStreaming}} + +{{#operations}} +public class {{classname}} { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public {{classname}}() { + this(Configuration.getDefaultApiClient()); + } + + public {{classname}}(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + {{#operation}} + {{^vendorExtensions.x-group-parameters}}/** + * Build call for {{operationId}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Call({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { {{#servers}}"{{{url}}}"{{^-last}}, {{/-last}}{{/servers}} }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; + + // create path and map variables + {{^dynamicOperations}} + String localVarPath = "{{{path}}}"{{#pathParams}} + .replace("{" + "{{baseName}}" + "}", localVarApiClient.escapeString({{#collectionFormat}}localVarApiClient.collectionPathParameterToString("{{{collectionFormat}}}", {{{paramName}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}.toString(){{/collectionFormat}})){{/pathParams}}; + {{/dynamicOperations}} + {{#dynamicOperations}} + ApiOperation apiOperation = localVarApiClient.getOperationLookupMap().get("{{{operationId}}}"); + if (apiOperation == null) { + throw new ApiException("Operation not found in OAS"); + } + Operation operation = apiOperation.getOperation(); + String localVarPath = apiOperation.getPath(); + Map paramMap = new HashMap<>(); + {{#allParams}} + {{^isFormParam}} + {{^isBodyParam}} + paramMap.put("{{baseName}}", {{paramName}}); + {{/isBodyParam}} + {{/isFormParam}} + {{/allParams}} + {{/dynamicOperations}} + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + {{#formParams}} + if ({{paramName}} != null) { + localVarFormParams.put("{{baseName}}", {{paramName}}); + } + + {{/formParams}} + {{^dynamicOperations}} + {{#queryParams}} + if ({{paramName}} != null) { + {{#isFreeFormObject}}localVarQueryParams.addAll(localVarApiClient.freeFormParameterToPairs({{paramName}}));{{/isFreeFormObject}}{{^isFreeFormObject}}{{#collectionFormat}}localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("{{{.}}}", {{/collectionFormat}}{{^collectionFormat}}localVarQueryParams.addAll(localVarApiClient.parameterToPair({{/collectionFormat}}"{{baseName}}", {{paramName}}));{{/isFreeFormObject}} + } + + {{/queryParams}} + {{#constantParams}} + {{#isQueryParam}} + // Set client side default value of Query Param "{{baseName}}". + localVarCollectionQueryParams.add(new Pair("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}})); + + {{/isQueryParam}} + {{/constantParams}} + {{#constantParams}} + {{#isHeaderParam}} + // Set client side default value of Header Param "{{baseName}}". + localVarHeaderParams.put("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}}); + + {{/isHeaderParam}} + {{/constantParams}} + {{#cookieParams}} + if ({{paramName}} != null) { + localVarCookieParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); + } + + {{/cookieParams}} + {{#constantParams}} + {{#isCookieParam}} + // Set client side default value of Cookie Param "{{baseName}}". + localVarCookieParams.put("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}}); + + {{/isCookieParam}} + {{/constantParams}} + {{/dynamicOperations}} + {{#dynamicOperations}} + localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams); + + {{/dynamicOperations}} + final String[] localVarAccepts = { + {{#produces}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/produces}} + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + {{#consumes}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/consumes}} + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + {{#headerParams}} + + if ({{paramName}} != null) { + localVarHeaderParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); + } + + {{/headerParams}} + + String[] localVarAuthNames = new String[] { {{#withAWSV4Signature}}"AWS4Auth"{{/withAWSV4Signature}}{{#authMethods}}{{#-first}}{{#withAWSV4Signature}}, {{/withAWSV4Signature}}{{/-first}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} }; + return localVarApiClient.buildCall(basePath, localVarPath, {{^dynamicOperations}}"{{httpMethod}}"{{/dynamicOperations}}{{#dynamicOperations}}apiOperation.getMethod(){{/dynamicOperations}}, localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + @SuppressWarnings("rawtypes") + private okhttp3.Call {{operationId}}ValidateBeforeCall({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { + {{^performBeanValidation}} + {{#allParams}} + {{#required}} + // verify the required parameter '{{paramName}}' is set + if ({{paramName}} == null) { + throw new ApiException("Missing the required parameter '{{paramName}}' when calling {{operationId}}(Async)"); + } + + {{/required}} + {{/allParams}} + return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); + + {{/performBeanValidation}} + {{#performBeanValidation}} + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { {{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }; + Method method = this.getClass().getMethod("{{operationId}}WithHttpInfo"{{#allParams}}, {{#isArray}}java.util.List{{/isArray}}{{#isMap}}java.util.Map{{/isMap}}{{^isArray}}{{^isMap}}{{{dataType}}}{{/isMap}}{{/isArray}}.class{{/allParams}}); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + {{/performBeanValidation}} + } + + {{^vendorExtensions.x-group-parameters}} + /** + * {{summary}} + * {{notes}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}}{{#returnType}} + * @return {{.}}{{/returnType}} + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + {{#vendorExtensions.x-streaming}} + public {{#returnType}}InputStream {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + {{#returnType}}InputStream localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + return localVarResp;{{/returnType}} + } + {{/vendorExtensions.x-streaming}} + {{^vendorExtensions.x-streaming}} + public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + return localVarResp.getData();{{/returnType}} + } + {{/vendorExtensions.x-streaming}} + {{/vendorExtensions.x-group-parameters}} + + {{^vendorExtensions.x-group-parameters}}/** + * {{summary}} + * {{notes}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} + * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-streaming}} InputStream {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); + {{#returnType}} + {{#errorObjectType}} + try { + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.executeStream(localVarCall, localVarReturnType); + } catch (ApiException e) { + e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken<{{{errorObjectType}}}>(){}.getType())); + throw e; + } + {{/errorObjectType}} + {{^errorObjectType}} + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.executeStream(localVarCall, localVarReturnType); + {{/errorObjectType}} + {{/returnType}} + } + {{/vendorExtensions.x-streaming}}{{^vendorExtensions.x-streaming}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { + okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); + {{^returnType}} + return localVarApiClient.execute(localVarCall); + {{/returnType}} + {{#returnType}} + {{#errorObjectType}} + try { + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } catch (ApiException e) { + e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken<{{{errorObjectType}}}>(){}.getType())); + throw e; + } + {{/errorObjectType}} + {{^errorObjectType}} + Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + {{/errorObjectType}} + {{/returnType}} + } + {{/vendorExtensions.x-streaming}} + + {{^vendorExtensions.x-group-parameters}}/** + * {{summary}} (asynchronously) + * {{notes}}{{#allParams}} + * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { + + okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}_callback); + {{#returnType}}Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);{{/returnType}}{{^returnType}}localVarApiClient.executeAsync(localVarCall, _callback);{{/returnType}} + return localVarCall; + } + {{#vendorExtensions.x-group-parameters}} + + public class API{{operationId}}Request { + {{#requiredParams}} + private final {{{dataType}}} {{paramName}}; + {{/requiredParams}} + {{#optionalParams}} + private {{{dataType}}} {{paramName}}; + {{/optionalParams}} + + private API{{operationId}}Request({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { + {{#requiredParams}} + this.{{paramName}} = {{paramName}}; + {{/requiredParams}} + } + + {{#optionalParams}} + /** + * Set {{paramName}} + * @param {{paramName}} {{description}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}) + * @return API{{operationId}}Request + */ + public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { + this.{{paramName}} = {{paramName}}; + return this; + } + + {{/optionalParams}} + /** + * Build call for {{operationId}} + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); + } + + /** + * Execute {{operationId}} request{{#returnType}} + * @return {{.}}{{/returnType}} + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + {{^vendorExtensions.x-streaming}} + public {{{returnType}}}{{^returnType}}void{{/returnType}} execute() throws ApiException { + {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} + return localVarResp.getData();{{/returnType}} + } + {{/vendorExtensions.x-streaming}} + {{#vendorExtensions.x-streaming}} + public InputStream execute() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + } + {{/vendorExtensions.x-streaming}} + + /** + * Execute {{operationId}} request with HTTP info returned + * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + {{^vendorExtensions.x-streaming}} + public ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> executeWithHttpInfo() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + } + {{/vendorExtensions.x-streaming}} + {{#vendorExtensions.x-streaming}} + public InputStream executeWithHttpInfo() throws ApiException { + return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + } + {{/vendorExtensions.x-streaming}} + + /** + * Execute {{operationId}} request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public okhttp3.Call executeAsync(final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { + return {{operationId}}Async({{#allParams}}{{paramName}}, {{/allParams}}_callback); + } + } + + /** + * {{summary}} + * {{notes}}{{#requiredParams}} + * @param {{paramName}} {{description}} (required){{/requiredParams}} + * @return API{{operationId}}Request + {{#responses.0}} + * @http.response.details + + + {{#responses}} + + {{/responses}} +
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
+ {{/responses.0}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + {{#externalDocs}} + * {{description}} + * @see {{summary}} Documentation + {{/externalDocs}} + */ + {{#isDeprecated}} + @Deprecated + {{/isDeprecated}} + public API{{operationId}}Request {{operationId}}({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { + return new API{{operationId}}Request({{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}); + } + {{/vendorExtensions.x-group-parameters}} + {{/operation}} +} +{{/operations}} diff --git a/openapi-config.yml b/openapi-config.yml index ddbd9299..7ae18384 100644 --- a/openapi-config.yml +++ b/openapi-config.yml @@ -13,3 +13,4 @@ modelPackage: com.bandwidth.sdk.model library: okhttp-gson licenseName: MIT useEnumCaseInsensitive: true +templateDir: custom_templates diff --git a/openapitools.json b/openapitools.json index 5c50d6a2..f80faaa6 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.6.0" + "version": "7.9.0" } } diff --git a/src/main/java/com/bandwidth/sdk/ApiClient.java b/src/main/java/com/bandwidth/sdk/ApiClient.java index 35e36a6d..5307b00f 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -735,6 +735,30 @@ public List parameterToPairs(String collectionFormat, String name, Collect return params; } + /** + * Formats the specified free-form query parameters to a list of {@code Pair} objects. + * + * @param value The free-form query parameters. + * @return A list of {@code Pair} objects. + */ + public List freeFormParameterToPairs(Object value) { + List params = new ArrayList<>(); + + // preconditions + if (value == null || !(value instanceof Map )) { + return params; + } + + final Map valuesMap = (Map) value; + + for (Map.Entry entry : valuesMap.entrySet()) { + params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); + } + + return params; + } + + /** * Formats the specified collection path parameter to a string value. * @@ -1173,10 +1197,6 @@ public Call buildCall(String baseUrl, String path, String method, List que * @throws com.bandwidth.sdk.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); // prepare HTTP request body @@ -1204,10 +1224,12 @@ public Request buildRequest(String baseUrl, String path, String method, List updatedQueryParams = new ArrayList<>(queryParams); + // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - final Request.Builder reqBuilder = new Request.Builder().url(url); + final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); processHeaderParams(headerParams, reqBuilder); processCookieParams(cookieParams, reqBuilder); diff --git a/src/main/java/com/bandwidth/sdk/ApiException.java b/src/main/java/com/bandwidth/sdk/ApiException.java index a1c6b060..bbd45785 100644 --- a/src/main/java/com/bandwidth/sdk/ApiException.java +++ b/src/main/java/com/bandwidth/sdk/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/bandwidth/sdk/Configuration.java b/src/main/java/com/bandwidth/sdk/Configuration.java index 612351ee..08715453 100644 --- a/src/main/java/com/bandwidth/sdk/Configuration.java +++ b/src/main/java/com/bandwidth/sdk/Configuration.java @@ -13,7 +13,7 @@ package com.bandwidth.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Configuration { public static final String VERSION = "10.1.0"; diff --git a/src/main/java/com/bandwidth/sdk/JSON.java b/src/main/java/com/bandwidth/sdk/JSON.java index 0659d01f..fce101a7 100644 --- a/src/main/java/com/bandwidth/sdk/JSON.java +++ b/src/main/java/com/bandwidth/sdk/JSON.java @@ -13,11 +13,11 @@ package com.bandwidth.sdk; -import com.fasterxml.jackson.databind.util.StdDateFormat; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import com.google.gson.JsonElement; @@ -31,16 +31,14 @@ import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.time.ZoneId; -import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.Date; import java.util.Locale; import java.util.Map; import java.util.HashMap; -import java.util.TimeZone; /* * A JSON utility class @@ -57,11 +55,6 @@ public class JSON { private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - private static final StdDateFormat sdf = new StdDateFormat() - .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault())) - .withColonInTimeZone(true); - private static final DateTimeFormatter dtf = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - @SuppressWarnings("unchecked") public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() @@ -409,7 +402,7 @@ public java.sql.Date read(JsonReader in) throws IOException { if (dateFormat != null) { return new java.sql.Date(dateFormat.parse(date).getTime()); } - return new java.sql.Date(sdf.parse(date).getTime()); + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -419,7 +412,7 @@ public java.sql.Date read(JsonReader in) throws IOException { /** * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, DateTimeFormatter will be used. + * If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { @@ -444,7 +437,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = date.toInstant().atOffset(ZoneOffset.UTC).format(dtf); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -463,7 +456,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return sdf.parse(date); + return ISO8601Utils.parse(date, new ParsePosition(0)); } catch (ParseException e) { throw new JsonParseException(e); } diff --git a/src/main/java/com/bandwidth/sdk/Pair.java b/src/main/java/com/bandwidth/sdk/Pair.java index bb9a088b..161813c1 100644 --- a/src/main/java/com/bandwidth/sdk/Pair.java +++ b/src/main/java/com/bandwidth/sdk/Pair.java @@ -13,7 +13,7 @@ package com.bandwidth.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java index b02050dc..756f34a3 100644 --- a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java @@ -1,3 +1,16 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package com.bandwidth.sdk; import java.util.Map; @@ -5,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/bandwidth/sdk/ServerVariable.java b/src/main/java/com/bandwidth/sdk/ServerVariable.java index bc89b1ba..9786d338 100644 --- a/src/main/java/com/bandwidth/sdk/ServerVariable.java +++ b/src/main/java/com/bandwidth/sdk/ServerVariable.java @@ -1,3 +1,16 @@ +/* + * Bandwidth + * Bandwidth's Communication APIs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: letstalk@bandwidth.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package com.bandwidth.sdk; import java.util.HashSet; @@ -5,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/bandwidth/sdk/StringUtil.java b/src/main/java/com/bandwidth/sdk/StringUtil.java index 6b85f153..6169441b 100644 --- a/src/main/java/com/bandwidth/sdk/StringUtil.java +++ b/src/main/java/com/bandwidth/sdk/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/bandwidth/sdk/api/MediaApi.java b/src/main/java/com/bandwidth/sdk/api/MediaApi.java index 33b0008a..6612638a 100644 --- a/src/main/java/com/bandwidth/sdk/api/MediaApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MediaApi.java @@ -448,10 +448,6 @@ public okhttp3.Call listMediaCall(String accountId, String continuationToken, fi Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (continuationToken != null) { - localVarHeaderParams.put("Continuation-Token", localVarApiClient.parameterToString(continuationToken)); - } - final String[] localVarAccepts = { "application/json" }; @@ -467,6 +463,11 @@ public okhttp3.Call listMediaCall(String accountId, String continuationToken, fi localVarHeaderParams.put("Content-Type", localVarContentType); } + if (continuationToken != null) { + localVarHeaderParams.put("Continuation-Token", localVarApiClient.parameterToString(continuationToken)); + } + + String[] localVarAuthNames = new String[] { "Basic" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @@ -615,14 +616,6 @@ public okhttp3.Call uploadMediaCall(String accountId, String mediaId, File body, Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (contentType != null) { - localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); - } - - if (cacheControl != null) { - localVarHeaderParams.put("Cache-Control", localVarApiClient.parameterToString(cacheControl)); - } - final String[] localVarAccepts = { "application/json" }; @@ -682,6 +675,16 @@ public okhttp3.Call uploadMediaCall(String accountId, String mediaId, File body, localVarHeaderParams.put("Content-Type", localVarContentType); } + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + + if (cacheControl != null) { + localVarHeaderParams.put("Cache-Control", localVarApiClient.parameterToString(cacheControl)); + } + + String[] localVarAuthNames = new String[] { "Basic" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } diff --git a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java index a091f358..605123e4 100644 --- a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java b/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java index d313b5b0..2f3bc4f8 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBasicAuth.java @@ -22,8 +22,6 @@ import java.util.Map; import java.util.List; -import java.io.UnsupportedEncodingException; - public class HttpBasicAuth implements Authentication { private String username; private String password; diff --git a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java index 4d95d13c..942a7a45 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java index 60cd0928..19e68c2b 100644 --- a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java index 70c75675..38a7a496 100644 --- a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java +++ b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * AccountStatistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountStatistics { public static final String SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE = "currentCallQueueSize"; @SerializedName(SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE) @@ -67,10 +66,10 @@ public AccountStatistics currentCallQueueSize(Integer currentCallQueueSize) { return this; } - /** + /** * The number of calls currently enqueued. * @return currentCallQueueSize - **/ + */ @javax.annotation.Nullable public Integer getCurrentCallQueueSize() { return currentCallQueueSize; @@ -86,10 +85,10 @@ public AccountStatistics maxCallQueueSize(Integer maxCallQueueSize) { return this; } - /** + /** * The maximum size of the queue before outgoing calls start being rejected. * @return maxCallQueueSize - **/ + */ @javax.annotation.Nullable public Integer getMaxCallQueueSize() { return maxCallQueueSize; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AccountStatistics - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AccountStatistics + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AccountStatistics.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -287,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AccountStatistics given an JSON string - * - * @param jsonString JSON string - * @return An instance of AccountStatistics - * @throws IOException if the JSON string is invalid with respect to AccountStatistics - */ + /** + * Create an instance of AccountStatistics given an JSON string + * + * @param jsonString JSON string + * @return An instance of AccountStatistics + * @throws IOException if the JSON string is invalid with respect to AccountStatistics + */ public static AccountStatistics fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AccountStatistics.class); } - /** - * Convert an instance of AccountStatistics to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AccountStatistics to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java index 837c8aa0..a57f18e7 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Answer event is sent to the answerUrl specified in the createCall request when an outbound call is answered. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -120,10 +119,10 @@ public AnswerCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -139,10 +138,10 @@ public AnswerCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -158,10 +157,10 @@ public AnswerCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -177,10 +176,10 @@ public AnswerCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -196,10 +195,10 @@ public AnswerCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -215,10 +214,10 @@ public AnswerCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -234,10 +233,10 @@ public AnswerCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -253,10 +252,10 @@ public AnswerCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -272,10 +271,10 @@ public AnswerCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -291,10 +290,10 @@ public AnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -310,10 +309,10 @@ public AnswerCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -329,10 +328,10 @@ public AnswerCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -348,10 +347,10 @@ public AnswerCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -367,10 +366,10 @@ public AnswerCallback machineDetectionResult(MachineDetectionResult machineDetec return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - **/ + */ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; @@ -528,12 +527,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to AnswerCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to AnswerCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!AnswerCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -647,22 +646,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of AnswerCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of AnswerCallback - * @throws IOException if the JSON string is invalid with respect to AnswerCallback - */ + /** + * Create an instance of AnswerCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of AnswerCallback + * @throws IOException if the JSON string is invalid with respect to AnswerCallback + */ public static AnswerCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, AnswerCallback.class); } - /** - * Convert an instance of AnswerCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of AnswerCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java index 83671f6b..5fddd064 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * If the target call leaves the <Bridge>, then this callback is sent to the bridgeCompleteUrl, and the BXML returned in it is executed on the call. If this webhook is sent, the Bridge Target Complete webhook is NOT sent. This callback is also sent if any problem occurs that prevents the calls to be bridged. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -127,10 +126,10 @@ public BridgeCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -146,10 +145,10 @@ public BridgeCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -165,10 +164,10 @@ public BridgeCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -184,10 +183,10 @@ public BridgeCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -203,10 +202,10 @@ public BridgeCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -222,10 +221,10 @@ public BridgeCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -241,10 +240,10 @@ public BridgeCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -260,10 +259,10 @@ public BridgeCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -279,10 +278,10 @@ public BridgeCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -298,10 +297,10 @@ public BridgeCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -317,10 +316,10 @@ public BridgeCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -336,10 +335,10 @@ public BridgeCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -355,10 +354,10 @@ public BridgeCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -374,10 +373,10 @@ public BridgeCompleteCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -393,10 +392,10 @@ public BridgeCompleteCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -412,10 +411,10 @@ public BridgeCompleteCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -579,12 +578,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BridgeCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BridgeCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BridgeCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -703,22 +702,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of BridgeCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of BridgeCompleteCallback - * @throws IOException if the JSON string is invalid with respect to BridgeCompleteCallback - */ + /** + * Create an instance of BridgeCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of BridgeCompleteCallback + * @throws IOException if the JSON string is invalid with respect to BridgeCompleteCallback + */ public static BridgeCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, BridgeCompleteCallback.class); } - /** - * Convert an instance of BridgeCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of BridgeCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java index b7159a07..a4454556 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * If the originating call leaves the <Bridge>, then this callback is sent to the bridgeTargetCompleteUrl, and the BXML returned in it is executed on the target call. If this webhook is sent, the Bridge Complete webhook is NOT sent. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -115,10 +114,10 @@ public BridgeTargetCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -134,10 +133,10 @@ public BridgeTargetCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -153,10 +152,10 @@ public BridgeTargetCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -172,10 +171,10 @@ public BridgeTargetCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -191,10 +190,10 @@ public BridgeTargetCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -210,10 +209,10 @@ public BridgeTargetCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -229,10 +228,10 @@ public BridgeTargetCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -248,10 +247,10 @@ public BridgeTargetCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -267,10 +266,10 @@ public BridgeTargetCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -286,10 +285,10 @@ public BridgeTargetCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -305,10 +304,10 @@ public BridgeTargetCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -324,10 +323,10 @@ public BridgeTargetCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -343,10 +342,10 @@ public BridgeTargetCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -501,12 +500,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to BridgeTargetCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to BridgeTargetCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!BridgeTargetCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -616,22 +615,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of BridgeTargetCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of BridgeTargetCompleteCallback - * @throws IOException if the JSON string is invalid with respect to BridgeTargetCompleteCallback - */ + /** + * Create an instance of BridgeTargetCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of BridgeTargetCompleteCallback + * @throws IOException if the JSON string is invalid with respect to BridgeTargetCompleteCallback + */ public static BridgeTargetCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, BridgeTargetCompleteCallback.class); } - /** - * Convert an instance of BridgeTargetCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of BridgeTargetCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java index 3ebe6945..1d540844 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,7 +54,7 @@ /** * CallRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallRecordingMetadata { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -141,10 +140,10 @@ public CallRecordingMetadata applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -160,10 +159,10 @@ public CallRecordingMetadata accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -179,10 +178,10 @@ public CallRecordingMetadata callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -198,10 +197,10 @@ public CallRecordingMetadata parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -217,10 +216,10 @@ public CallRecordingMetadata recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -236,10 +235,10 @@ public CallRecordingMetadata to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -255,10 +254,10 @@ public CallRecordingMetadata from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -274,10 +273,10 @@ public CallRecordingMetadata transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -293,10 +292,10 @@ public CallRecordingMetadata transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -312,10 +311,10 @@ public CallRecordingMetadata duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -331,10 +330,10 @@ public CallRecordingMetadata direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -350,10 +349,10 @@ public CallRecordingMetadata channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -369,10 +368,10 @@ public CallRecordingMetadata startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -388,10 +387,10 @@ public CallRecordingMetadata endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -407,10 +406,10 @@ public CallRecordingMetadata fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -426,10 +425,10 @@ public CallRecordingMetadata status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -445,10 +444,10 @@ public CallRecordingMetadata mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -464,10 +463,10 @@ public CallRecordingMetadata transcription(RecordingTranscriptionMetadata transc return this; } - /** + /** * Get transcription * @return transcription - **/ + */ @javax.annotation.Nullable public RecordingTranscriptionMetadata getTranscription() { return transcription; @@ -483,10 +482,10 @@ public CallRecordingMetadata recordingName(String recordingName) { return this; } - /** + /** * A name to identify this recording. * @return recordingName - **/ + */ @javax.annotation.Nullable public String getRecordingName() { return recordingName; @@ -659,12 +658,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallRecordingMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallRecordingMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallRecordingMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -797,22 +796,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallRecordingMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallRecordingMetadata - * @throws IOException if the JSON string is invalid with respect to CallRecordingMetadata - */ + /** + * Create an instance of CallRecordingMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallRecordingMetadata + * @throws IOException if the JSON string is invalid with respect to CallRecordingMetadata + */ public static CallRecordingMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallRecordingMetadata.class); } - /** - * Convert an instance of CallRecordingMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallRecordingMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallState.java b/src/main/java/com/bandwidth/sdk/model/CallState.java index d0f13890..8926cda1 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallState.java +++ b/src/main/java/com/bandwidth/sdk/model/CallState.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * CallState */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallState { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -136,10 +135,10 @@ public CallState applicationId(String applicationId) { return this; } - /** + /** * The application id associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -155,10 +154,10 @@ public CallState accountId(String accountId) { return this; } - /** + /** * The account id associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -174,10 +173,10 @@ public CallState callId(String callId) { return this; } - /** + /** * The programmable voice API call ID. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -193,10 +192,10 @@ public CallState parentCallId(String parentCallId) { return this; } - /** + /** * The A-leg call id, set only if this call is the B-leg of a [`<Transfer>`](/docs/voice/bxml/transfer). * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -212,10 +211,10 @@ public CallState to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555), or if the call was to a SIP URI, the SIP URI. * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -231,10 +230,10 @@ public CallState from(String from) { return this; } - /** + /** * The phone number that made the call, in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -250,10 +249,10 @@ public CallState direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -269,10 +268,10 @@ public CallState state(String state) { return this; } - /** + /** * The current state of the call. Current possible values are `queued`, `initiated`, `answered` and `disconnected`. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return state - **/ + */ @javax.annotation.Nullable public String getState() { return state; @@ -296,10 +295,10 @@ public CallState putStirShakenItem(String key, String stirShakenItem) { return this; } - /** + /** * For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request `Identity` header. The verification status is stored in the call state `stirShaken` property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are `TN-Verification-Passed` or `TN-Verification-Failed`. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are `A` (full), `B` (partial) or `C` (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the `stirShaken` object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken). * @return stirShaken - **/ + */ @javax.annotation.Nullable public Map getStirShaken() { return stirShaken; @@ -315,10 +314,10 @@ public CallState identity(String identity) { return this; } - /** + /** * The value of the `Identity` header from the inbound invite request. Only present for inbound calls and if the account is configured to forward this header. * @return identity - **/ + */ @javax.annotation.Nullable public String getIdentity() { return identity; @@ -334,10 +333,10 @@ public CallState enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * The time this call was placed in queue. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -353,10 +352,10 @@ public CallState startTime(OffsetDateTime startTime) { return this; } - /** + /** * The time the call was initiated, in ISO 8601 format. `null` if the call is still in your queue. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -372,10 +371,10 @@ public CallState answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Populated once the call has been answered, with the time in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -391,10 +390,10 @@ public CallState endTime(OffsetDateTime endTime) { return this; } - /** + /** * Populated once the call has ended, with the time in ISO 8601 format. * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -410,10 +409,10 @@ public CallState disconnectCause(String disconnectCause) { return this; } - /** + /** * | Cause | Description | |:------|:------------| | `hangup`| One party hung up the call, a [`<Hangup>`](../../bxml/verbs/hangup.md) verb was executed, or there was no more BXML to execute; it indicates that the call ended normally. | | `busy` | Callee was busy. | | `timeout` | Call wasn't answered before the `callTimeout` was reached. | | `cancel` | Call was cancelled by its originator while it was ringing. | | `rejected` | Call was rejected by the callee. | | `callback-error` | BXML callback couldn't be delivered to your callback server. | | `invalid-bxml` | Invalid BXML was returned in response to a callback. | | `application-error` | An unsupported action was tried on the call, e.g. trying to play a .ogg audio. | | `account-limit` | Account rate limits were reached. | | `node-capacity-exceeded` | System maximum capacity was reached. | | `error` | Some error not described in any of the other causes happened on the call. | | `unknown` | Unknown error happened on the call. | Note: This list is not exhaustive and other values can appear in the future. * @return disconnectCause - **/ + */ @javax.annotation.Nullable public String getDisconnectCause() { return disconnectCause; @@ -429,10 +428,10 @@ public CallState errorMessage(String errorMessage) { return this; } - /** + /** * Populated only if the call ended with an error, with text explaining the reason. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -448,10 +447,10 @@ public CallState errorId(String errorId) { return this; } - /** + /** * Populated only if the call ended with an error, with a Bandwidth internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -467,10 +466,10 @@ public CallState lastUpdate(OffsetDateTime lastUpdate) { return this; } - /** + /** * The last time the call had a state update, in ISO 8601 format. * @return lastUpdate - **/ + */ @javax.annotation.Nullable public OffsetDateTime getLastUpdate() { return lastUpdate; @@ -640,12 +639,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallState - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallState + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallState.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -764,22 +763,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallState given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallState - * @throws IOException if the JSON string is invalid with respect to CallState - */ + /** + * Create an instance of CallState given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallState + * @throws IOException if the JSON string is invalid with respect to CallState + */ public static CallState fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallState.class); } - /** - * Convert an instance of CallState to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallState to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java index 6508819f..23f372f0 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * CallTranscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallTranscription { public static final String SERIALIZED_NAME_DETECTED_LANGUAGE = "detectedLanguage"; @SerializedName(SERIALIZED_NAME_DETECTED_LANGUAGE) @@ -77,10 +76,10 @@ public CallTranscription detectedLanguage(CallTranscriptionDetectedLanguageEnum return this; } - /** + /** * Get detectedLanguage * @return detectedLanguage - **/ + */ @javax.annotation.Nullable public CallTranscriptionDetectedLanguageEnum getDetectedLanguage() { return detectedLanguage; @@ -96,10 +95,10 @@ public CallTranscription track(CallTranscriptionTrackEnum track) { return this; } - /** + /** * Get track * @return track - **/ + */ @javax.annotation.Nullable public CallTranscriptionTrackEnum getTrack() { return track; @@ -115,10 +114,10 @@ public CallTranscription transcript(String transcript) { return this; } - /** + /** * The transcription itself. * @return transcript - **/ + */ @javax.annotation.Nullable public String getTranscript() { return transcript; @@ -134,12 +133,12 @@ public CallTranscription confidence(Double confidence) { return this; } - /** + /** * How confident the transcription engine was in transcribing the associated audio (from `0` to `1`). * minimum: 0 * maximum: 1 * @return confidence - **/ + */ @javax.annotation.Nullable public Double getConfidence() { return confidence; @@ -256,12 +255,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallTranscription - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallTranscription + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallTranscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -354,22 +353,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallTranscription given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallTranscription - * @throws IOException if the JSON string is invalid with respect to CallTranscription - */ + /** + * Create an instance of CallTranscription given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallTranscription + * @throws IOException if the JSON string is invalid with respect to CallTranscription + */ public static CallTranscription fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallTranscription.class); } - /** - * Convert an instance of CallTranscription to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallTranscription to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java index fa0ccf13..682601b6 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * CallTranscriptionMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallTranscriptionMetadata { public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) @@ -71,10 +70,10 @@ public CallTranscriptionMetadata transcriptionId(String transcriptionId) { return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - **/ + */ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; @@ -90,10 +89,10 @@ public CallTranscriptionMetadata transcriptionName(String transcriptionName) { return this; } - /** + /** * The programmable voice API transcription name. This name could be provided by the user when creating the transcription. * @return transcriptionName - **/ + */ @javax.annotation.Nullable public String getTranscriptionName() { return transcriptionName; @@ -109,10 +108,10 @@ public CallTranscriptionMetadata transcriptionUrl(String transcriptionUrl) { return this; } - /** + /** * A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice/#operation/getCallTranscription) endpoint. * @return transcriptionUrl - **/ + */ @javax.annotation.Nullable public String getTranscriptionUrl() { return transcriptionUrl; @@ -226,12 +225,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallTranscriptionMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -322,22 +321,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallTranscriptionMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallTranscriptionMetadata - * @throws IOException if the JSON string is invalid with respect to CallTranscriptionMetadata - */ + /** + * Create an instance of CallTranscriptionMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallTranscriptionMetadata + * @throws IOException if the JSON string is invalid with respect to CallTranscriptionMetadata + */ public static CallTranscriptionMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallTranscriptionMetadata.class); } - /** - * Convert an instance of CallTranscriptionMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallTranscriptionMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java index 1814433e..9e2e6e8d 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * CallTranscriptionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -78,10 +77,10 @@ public CallTranscriptionResponse accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -97,10 +96,10 @@ public CallTranscriptionResponse callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -116,10 +115,10 @@ public CallTranscriptionResponse transcriptionId(String transcriptionId) { return this; } - /** + /** * The programmable voice API transcription ID. * @return transcriptionId - **/ + */ @javax.annotation.Nullable public String getTranscriptionId() { return transcriptionId; @@ -143,10 +142,10 @@ public CallTranscriptionResponse addTracksItem(CallTranscription tracksItem) { return this; } - /** + /** * Get tracks * @return tracks - **/ + */ @javax.annotation.Nullable public List getTracks() { return tracks; @@ -263,12 +262,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CallTranscriptionResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CallTranscriptionResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -373,22 +372,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CallTranscriptionResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CallTranscriptionResponse - * @throws IOException if the JSON string is invalid with respect to CallTranscriptionResponse - */ + /** + * Create an instance of CallTranscriptionResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CallTranscriptionResponse + * @throws IOException if the JSON string is invalid with respect to CallTranscriptionResponse + */ public static CallTranscriptionResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CallTranscriptionResponse.class); } - /** - * Convert an instance of CallTranscriptionResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CallTranscriptionResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java index 59a827f8..f3c2141f 100644 --- a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * CodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -83,10 +82,10 @@ public CodeRequest to(String to) { return this; } - /** + /** * The phone number to send the mfa code to. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -102,10 +101,10 @@ public CodeRequest from(String from) { return this; } - /** + /** * The application phone number, the sender of the mfa code. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -121,10 +120,10 @@ public CodeRequest applicationId(String applicationId) { return this; } - /** + /** * The application unique ID, obtained from Bandwidth. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -140,10 +139,10 @@ public CodeRequest scope(String scope) { return this; } - /** + /** * An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\". * @return scope - **/ + */ @javax.annotation.Nullable public String getScope() { return scope; @@ -159,10 +158,10 @@ public CodeRequest message(String message) { return this; } - /** + /** * The message format of the mfa code. There are three values that the system will replace \"{CODE}\", \"{NAME}\", \"{SCOPE}\". The \"{SCOPE}\" and \"{NAME} value template are optional, while \"{CODE}\" must be supplied. As the name would suggest, code will be replace with the actual mfa code. Name is replaced with the application name, configured during provisioning of mfa. The scope value is the same value sent during the call and partitioned by the server. * @return message - **/ + */ @javax.annotation.Nonnull public String getMessage() { return message; @@ -178,12 +177,12 @@ public CodeRequest digits(Integer digits) { return this; } - /** + /** * The number of digits for your mfa code. The valid number ranges from 2 to 8, inclusively. * minimum: 4 * maximum: 8 * @return digits - **/ + */ @javax.annotation.Nonnull public Integer getDigits() { return digits; @@ -311,12 +310,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("digits"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CodeRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CodeRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CodeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -420,22 +419,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CodeRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of CodeRequest - * @throws IOException if the JSON string is invalid with respect to CodeRequest - */ + /** + * Create an instance of CodeRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of CodeRequest + * @throws IOException if the JSON string is invalid with respect to CodeRequest + */ public static CodeRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CodeRequest.class); } - /** - * Convert an instance of CodeRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CodeRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Conference.java b/src/main/java/com/bandwidth/sdk/model/Conference.java index 509a0b15..26a4bcc3 100644 --- a/src/main/java/com/bandwidth/sdk/model/Conference.java +++ b/src/main/java/com/bandwidth/sdk/model/Conference.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,7 +55,7 @@ /** * Conference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Conference { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -98,10 +97,10 @@ public Conference id(String id) { return this; } - /** + /** * The Bandwidth-generated conference ID. * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -117,10 +116,10 @@ public Conference name(String name) { return this; } - /** + /** * The name of the conference, as specified by your application. * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -136,10 +135,10 @@ public Conference createdTime(OffsetDateTime createdTime) { return this; } - /** + /** * The time the conference was initiated, in ISO 8601 format. * @return createdTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCreatedTime() { return createdTime; @@ -155,10 +154,10 @@ public Conference completedTime(OffsetDateTime completedTime) { return this; } - /** + /** * The time the conference was terminated, in ISO 8601 format. * @return completedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCompletedTime() { return completedTime; @@ -174,10 +173,10 @@ public Conference conferenceEventUrl(URI conferenceEventUrl) { return this; } - /** + /** * The URL to send the conference-related events. * @return conferenceEventUrl - **/ + */ @javax.annotation.Nullable public URI getConferenceEventUrl() { return conferenceEventUrl; @@ -193,10 +192,10 @@ public Conference conferenceEventMethod(CallbackMethodEnum conferenceEventMethod return this; } - /** + /** * Get conferenceEventMethod * @return conferenceEventMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getConferenceEventMethod() { return conferenceEventMethod; @@ -212,10 +211,10 @@ public Conference tag(String tag) { return this; } - /** + /** * The custom string attached to the conference that will be sent with callbacks. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -239,10 +238,10 @@ public Conference addActiveMembersItem(ConferenceMember activeMembersItem) { return this; } - /** + /** * A list of active members of the conference. Omitted if this is a response to the [Get Conferences endpoint](/apis/voice#tag/Conferences/operation/listConferences). * @return activeMembers - **/ + */ @javax.annotation.Nullable public List getActiveMembers() { return activeMembers; @@ -382,12 +381,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Conference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Conference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Conference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -499,22 +498,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Conference given an JSON string - * - * @param jsonString JSON string - * @return An instance of Conference - * @throws IOException if the JSON string is invalid with respect to Conference - */ + /** + * Create an instance of Conference given an JSON string + * + * @param jsonString JSON string + * @return An instance of Conference + * @throws IOException if the JSON string is invalid with respect to Conference + */ public static Conference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Conference.class); } - /** - * Convert an instance of Conference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Conference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java index 257c8bad..83f2d420 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Completed event is fired when the last member leaves the conference. The response to this event may not contain BXML. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceCompletedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -81,10 +80,10 @@ public ConferenceCompletedCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -100,10 +99,10 @@ public ConferenceCompletedCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -119,10 +118,10 @@ public ConferenceCompletedCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -138,10 +137,10 @@ public ConferenceCompletedCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -157,10 +156,10 @@ public ConferenceCompletedCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -291,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceCompletedCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceCompletedCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceCompletedCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceCompletedCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceCompletedCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceCompletedCallback - */ + /** + * Create an instance of ConferenceCompletedCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceCompletedCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceCompletedCallback + */ public static ConferenceCompletedCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceCompletedCallback.class); } - /** - * Convert an instance of ConferenceCompletedCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceCompletedCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java index d0cb449d..59f0ca41 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Created event is fired whenever a new conference that specified a callbackUrl is created. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceCreatedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -81,10 +80,10 @@ public ConferenceCreatedCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -100,10 +99,10 @@ public ConferenceCreatedCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -119,10 +118,10 @@ public ConferenceCreatedCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -138,10 +137,10 @@ public ConferenceCreatedCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -157,10 +156,10 @@ public ConferenceCreatedCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -291,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceCreatedCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceCreatedCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceCreatedCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceCreatedCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceCreatedCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceCreatedCallback - */ + /** + * Create an instance of ConferenceCreatedCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceCreatedCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceCreatedCallback + */ public static ConferenceCreatedCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceCreatedCallback.class); } - /** - * Convert an instance of ConferenceCreatedCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceCreatedCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java index 9d1902e5..80cbf433 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * ConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceMember { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -87,10 +86,10 @@ public ConferenceMember callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -106,10 +105,10 @@ public ConferenceMember conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -125,10 +124,10 @@ public ConferenceMember memberUrl(URI memberUrl) { return this; } - /** + /** * A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member's [Get Conference Member](/apis/voice/#operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice/#operation/updateConferenceMember) endpoint. * @return memberUrl - **/ + */ @javax.annotation.Nullable public URI getMemberUrl() { return memberUrl; @@ -144,10 +143,10 @@ public ConferenceMember mute(Boolean mute) { return this; } - /** + /** * Whether or not this member is currently muted. Members who are muted are still able to hear other participants. If used in a PUT request, updates this member's mute status. Has no effect if omitted. * @return mute - **/ + */ @javax.annotation.Nullable public Boolean getMute() { return mute; @@ -163,10 +162,10 @@ public ConferenceMember hold(Boolean hold) { return this; } - /** + /** * Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. If used in a PUT request, updates this member's hold status. Has no effect if omitted. * @return hold - **/ + */ @javax.annotation.Nullable public Boolean getHold() { return hold; @@ -190,10 +189,10 @@ public ConferenceMember addCallIdsToCoachItem(String callIdsToCoachItem) { return this; } - /** + /** * If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. If present in a PUT request, modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. * @return callIdsToCoach - **/ + */ @javax.annotation.Nullable public List getCallIdsToCoach() { return callIdsToCoach; @@ -327,12 +326,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceMember - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceMember + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -427,22 +426,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceMember - * @throws IOException if the JSON string is invalid with respect to ConferenceMember - */ + /** + * Create an instance of ConferenceMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceMember + * @throws IOException if the JSON string is invalid with respect to ConferenceMember + */ public static ConferenceMember fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceMember.class); } - /** - * Convert an instance of ConferenceMember to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceMember to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java index ce9ca9f6..6532e391 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Member Exit event is fired whenever a caller exits a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceMemberExitCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -93,10 +92,10 @@ public ConferenceMemberExitCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -112,10 +111,10 @@ public ConferenceMemberExitCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -131,10 +130,10 @@ public ConferenceMemberExitCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -150,10 +149,10 @@ public ConferenceMemberExitCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -169,10 +168,10 @@ public ConferenceMemberExitCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -188,10 +187,10 @@ public ConferenceMemberExitCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -207,10 +206,10 @@ public ConferenceMemberExitCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -226,10 +225,10 @@ public ConferenceMemberExitCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -369,12 +368,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberExitCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberExitCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceMemberExitCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -477,22 +476,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceMemberExitCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceMemberExitCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceMemberExitCallback - */ + /** + * Create an instance of ConferenceMemberExitCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceMemberExitCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceMemberExitCallback + */ public static ConferenceMemberExitCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceMemberExitCallback.class); } - /** - * Convert an instance of ConferenceMemberExitCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceMemberExitCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java index 0aeecc46..8c8e6877 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Member Join event is fired whenever a caller joins a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceMemberJoinCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -93,10 +92,10 @@ public ConferenceMemberJoinCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -112,10 +111,10 @@ public ConferenceMemberJoinCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -131,10 +130,10 @@ public ConferenceMemberJoinCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -150,10 +149,10 @@ public ConferenceMemberJoinCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -169,10 +168,10 @@ public ConferenceMemberJoinCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -188,10 +187,10 @@ public ConferenceMemberJoinCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -207,10 +206,10 @@ public ConferenceMemberJoinCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -226,10 +225,10 @@ public ConferenceMemberJoinCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -369,12 +368,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberJoinCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceMemberJoinCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceMemberJoinCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -477,22 +476,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceMemberJoinCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceMemberJoinCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceMemberJoinCallback - */ + /** + * Create an instance of ConferenceMemberJoinCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceMemberJoinCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceMemberJoinCallback + */ public static ConferenceMemberJoinCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceMemberJoinCallback.class); } - /** - * Convert an instance of ConferenceMemberJoinCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceMemberJoinCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java index 2663f047..97754c60 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The Conference Recording Available event is sent after a conference recording has been processed. It indicates that the recording is available for download. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceRecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -119,10 +118,10 @@ public ConferenceRecordingAvailableCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -138,10 +137,10 @@ public ConferenceRecordingAvailableCallback eventTime(OffsetDateTime eventTime) return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -157,10 +156,10 @@ public ConferenceRecordingAvailableCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -176,10 +175,10 @@ public ConferenceRecordingAvailableCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -195,10 +194,10 @@ public ConferenceRecordingAvailableCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -214,10 +213,10 @@ public ConferenceRecordingAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -233,10 +232,10 @@ public ConferenceRecordingAvailableCallback channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -252,10 +251,10 @@ public ConferenceRecordingAvailableCallback startTime(OffsetDateTime startTime) return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -271,10 +270,10 @@ public ConferenceRecordingAvailableCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -290,10 +289,10 @@ public ConferenceRecordingAvailableCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -309,10 +308,10 @@ public ConferenceRecordingAvailableCallback fileFormat(FileFormatEnum fileFormat return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -328,10 +327,10 @@ public ConferenceRecordingAvailableCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -347,10 +346,10 @@ public ConferenceRecordingAvailableCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -366,10 +365,10 @@ public ConferenceRecordingAvailableCallback status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -527,12 +526,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingAvailableCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingAvailableCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceRecordingAvailableCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -645,22 +644,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceRecordingAvailableCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceRecordingAvailableCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingAvailableCallback - */ + /** + * Create an instance of ConferenceRecordingAvailableCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceRecordingAvailableCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingAvailableCallback + */ public static ConferenceRecordingAvailableCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceRecordingAvailableCallback.class); } - /** - * Convert an instance of ConferenceRecordingAvailableCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceRecordingAvailableCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java index 1dcb0d10..0f9c8f21 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * ConferenceRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceRecordingMetadata { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) @@ -111,10 +110,10 @@ public ConferenceRecordingMetadata accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -130,10 +129,10 @@ public ConferenceRecordingMetadata conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -149,10 +148,10 @@ public ConferenceRecordingMetadata name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -168,10 +167,10 @@ public ConferenceRecordingMetadata recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -187,10 +186,10 @@ public ConferenceRecordingMetadata duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -206,10 +205,10 @@ public ConferenceRecordingMetadata channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -225,10 +224,10 @@ public ConferenceRecordingMetadata startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -244,10 +243,10 @@ public ConferenceRecordingMetadata endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -263,10 +262,10 @@ public ConferenceRecordingMetadata fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -282,10 +281,10 @@ public ConferenceRecordingMetadata status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -301,10 +300,10 @@ public ConferenceRecordingMetadata mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -320,10 +319,10 @@ public ConferenceRecordingMetadata recordingName(String recordingName) { return this; } - /** + /** * A name to identify this recording. * @return recordingName - **/ + */ @javax.annotation.Nullable public String getRecordingName() { return recordingName; @@ -475,12 +474,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceRecordingMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceRecordingMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -590,22 +589,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceRecordingMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceRecordingMetadata - * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingMetadata - */ + /** + * Create an instance of ConferenceRecordingMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceRecordingMetadata + * @throws IOException if the JSON string is invalid with respect to ConferenceRecordingMetadata + */ public static ConferenceRecordingMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceRecordingMetadata.class); } - /** - * Convert an instance of ConferenceRecordingMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceRecordingMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java index 0857f61d..d34b6d1a 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * The Conference Redirect event is fired whenever an existing conference is modified via a POST request made to the /conferences/{conferenceId} endpoint. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ConferenceRedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -81,10 +80,10 @@ public ConferenceRedirectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -100,10 +99,10 @@ public ConferenceRedirectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -119,10 +118,10 @@ public ConferenceRedirectCallback conferenceId(String conferenceId) { return this; } - /** + /** * The unique, Bandwidth-generated ID of the conference that was recorded * @return conferenceId - **/ + */ @javax.annotation.Nullable public String getConferenceId() { return conferenceId; @@ -138,10 +137,10 @@ public ConferenceRedirectCallback name(String name) { return this; } - /** + /** * The user-specified name of the conference that was recorded * @return name - **/ + */ @javax.annotation.Nullable public String getName() { return name; @@ -157,10 +156,10 @@ public ConferenceRedirectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -291,12 +290,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ConferenceRedirectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ConferenceRedirectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ConferenceRedirectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ConferenceRedirectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of ConferenceRedirectCallback - * @throws IOException if the JSON string is invalid with respect to ConferenceRedirectCallback - */ + /** + * Create an instance of ConferenceRedirectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of ConferenceRedirectCallback + * @throws IOException if the JSON string is invalid with respect to ConferenceRedirectCallback + */ public static ConferenceRedirectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ConferenceRedirectCallback.class); } - /** - * Convert an instance of ConferenceRedirectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ConferenceRedirectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCall.java b/src/main/java/com/bandwidth/sdk/model/CreateCall.java index b232eccb..691d8f46 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCall.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * CreateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCall { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -147,10 +146,10 @@ public CreateCall to(String to) { return this; } - /** + /** * The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -166,10 +165,10 @@ public CreateCall from(String from) { return this; } - /** + /** * A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -185,10 +184,10 @@ public CreateCall privacy(Boolean privacy) { return this; } - /** + /** * Hide the calling number. The `displayName` field can be used to customize the displayed name. * @return privacy - **/ + */ @javax.annotation.Nullable public Boolean getPrivacy() { return privacy; @@ -204,10 +203,10 @@ public CreateCall displayName(String displayName) { return this; } - /** + /** * The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. * @return displayName - **/ + */ @javax.annotation.Nullable public String getDisplayName() { return displayName; @@ -223,10 +222,10 @@ public CreateCall uui(String uui) { return this; } - /** + /** * A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt' and 'base64' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators. * @return uui - **/ + */ @javax.annotation.Nullable public String getUui() { return uui; @@ -242,10 +241,10 @@ public CreateCall applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the `from` number. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -261,10 +260,10 @@ public CreateCall answerUrl(URI answerUrl) { return this; } - /** + /** * The full URL to send the <a href='/docs/voice/webhooks/answer'>Answer</a> event to when the called party answers. This endpoint should return the first <a href='/docs/voice/bxml'>BXML document</a> to be executed in the call. Must use `https` if specifying `username` and `password`. * @return answerUrl - **/ + */ @javax.annotation.Nonnull public URI getAnswerUrl() { return answerUrl; @@ -280,10 +279,10 @@ public CreateCall answerMethod(CallbackMethodEnum answerMethod) { return this; } - /** + /** * Get answerMethod * @return answerMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; @@ -299,10 +298,10 @@ public CreateCall username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -318,10 +317,10 @@ public CreateCall password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -337,10 +336,10 @@ public CreateCall answerFallbackUrl(URI answerFallbackUrl) { return this; } - /** + /** * A fallback url which, if provided, will be used to retry the `answer` webhook delivery in case `answerUrl` fails to respond Must use `https` if specifying `fallbackUsername` and `fallbackPassword`. * @return answerFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getAnswerFallbackUrl() { return answerFallbackUrl; @@ -356,10 +355,10 @@ public CreateCall answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; @@ -375,10 +374,10 @@ public CreateCall fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -394,10 +393,10 @@ public CreateCall fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -413,10 +412,10 @@ public CreateCall disconnectUrl(URI disconnectUrl) { return this; } - /** + /** * The URL to send the <a href='/docs/voice/webhooks/disconnect'>Disconnect</a> event to when the call ends. This event does not expect a BXML response. * @return disconnectUrl - **/ + */ @javax.annotation.Nullable public URI getDisconnectUrl() { return disconnectUrl; @@ -432,10 +431,10 @@ public CreateCall disconnectMethod(CallbackMethodEnum disconnectMethod) { return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; @@ -451,12 +450,12 @@ public CreateCall callTimeout(Double callTimeout) { return this; } - /** + /** * The timeout (in seconds) for the callee to answer the call after it starts ringing. If the call does not start ringing within 30s, the call will be cancelled regardless of this value. Can be any numeric value (including decimals) between 1 and 300. * minimum: 1 * maximum: 300 * @return callTimeout - **/ + */ @javax.annotation.Nullable public Double getCallTimeout() { return callTimeout; @@ -472,12 +471,12 @@ public CreateCall callbackTimeout(Double callbackTimeout) { return this; } - /** + /** * This is the timeout (in seconds) to use when delivering webhooks for the call. Can be any numeric value (including decimals) between 1 and 25. * minimum: 1 * maximum: 25 * @return callbackTimeout - **/ + */ @javax.annotation.Nullable public Double getCallbackTimeout() { return callbackTimeout; @@ -493,10 +492,10 @@ public CreateCall machineDetection(MachineDetectionConfiguration machineDetectio return this; } - /** + /** * Get machineDetection * @return machineDetection - **/ + */ @javax.annotation.Nullable public MachineDetectionConfiguration getMachineDetection() { return machineDetection; @@ -512,12 +511,12 @@ public CreateCall priority(Integer priority) { return this; } - /** + /** * The priority of this call over other calls from your account. For example, if during a call your application needs to place a new call and bridge it with the current call, you might want to create the call with priority 1 so that it will be the next call picked off your queue, ahead of other less time sensitive calls. A lower value means higher priority, so a priority 1 call takes precedence over a priority 2 call. * minimum: 1 * maximum: 5 * @return priority - **/ + */ @javax.annotation.Nullable public Integer getPriority() { return priority; @@ -533,10 +532,10 @@ public CreateCall tag(String tag) { return this; } - /** + /** * A custom string that will be sent with all webhooks for this call unless overwritten by a future <a href='/docs/voice/bxml/tag'>`<Tag>`</a> verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -719,12 +718,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("answerUrl"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateCall - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateCall + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateCall.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -868,22 +867,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateCall given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateCall - * @throws IOException if the JSON string is invalid with respect to CreateCall - */ + /** + * Create an instance of CreateCall given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateCall + * @throws IOException if the JSON string is invalid with respect to CreateCall + */ public static CreateCall fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateCall.class); } - /** - * Convert an instance of CreateCall to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateCall to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java index 78bf72b6..880bf270 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * CreateCallResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCallResponse { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -147,10 +146,10 @@ public CreateCallResponse applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the `from` number. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -166,10 +165,10 @@ public CreateCallResponse accountId(String accountId) { return this; } - /** + /** * The bandwidth account ID associated with the call. * @return accountId - **/ + */ @javax.annotation.Nonnull public String getAccountId() { return accountId; @@ -185,10 +184,10 @@ public CreateCallResponse callId(String callId) { return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - **/ + */ @javax.annotation.Nonnull public String getCallId() { return callId; @@ -204,10 +203,10 @@ public CreateCallResponse to(String to) { return this; } - /** + /** * Recipient of the outgoing call. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -223,10 +222,10 @@ public CreateCallResponse from(String from) { return this; } - /** + /** * Phone number that created the outbound call. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -242,10 +241,10 @@ public CreateCallResponse enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * The time at which the call was accepted into the queue. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -261,10 +260,10 @@ public CreateCallResponse callUrl(URI callUrl) { return this; } - /** + /** * The URL to update this call's state. * @return callUrl - **/ + */ @javax.annotation.Nonnull public URI getCallUrl() { return callUrl; @@ -280,10 +279,10 @@ public CreateCallResponse callTimeout(Double callTimeout) { return this; } - /** + /** * The timeout (in seconds) for the callee to answer the call after it starts ringing. * @return callTimeout - **/ + */ @javax.annotation.Nullable public Double getCallTimeout() { return callTimeout; @@ -299,10 +298,10 @@ public CreateCallResponse callbackTimeout(Double callbackTimeout) { return this; } - /** + /** * This is the timeout (in seconds) to use when delivering webhooks for the call. * @return callbackTimeout - **/ + */ @javax.annotation.Nullable public Double getCallbackTimeout() { return callbackTimeout; @@ -318,10 +317,10 @@ public CreateCallResponse tag(String tag) { return this; } - /** + /** * Custom tag value. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -337,10 +336,10 @@ public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod) { return this; } - /** + /** * Get answerMethod * @return answerMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerMethod() { return answerMethod; @@ -356,10 +355,10 @@ public CreateCallResponse answerUrl(URI answerUrl) { return this; } - /** + /** * URL to deliver the `answer` event webhook. * @return answerUrl - **/ + */ @javax.annotation.Nonnull public URI getAnswerUrl() { return answerUrl; @@ -375,10 +374,10 @@ public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallback return this; } - /** + /** * Get answerFallbackMethod * @return answerFallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; @@ -394,10 +393,10 @@ public CreateCallResponse answerFallbackUrl(URI answerFallbackUrl) { return this; } - /** + /** * Fallback URL to deliver the `answer` event webhook. * @return answerFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getAnswerFallbackUrl() { return answerFallbackUrl; @@ -413,10 +412,10 @@ public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod) return this; } - /** + /** * Get disconnectMethod * @return disconnectMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; @@ -432,10 +431,10 @@ public CreateCallResponse disconnectUrl(URI disconnectUrl) { return this; } - /** + /** * URL to deliver the `disconnect` event webhook. * @return disconnectUrl - **/ + */ @javax.annotation.Nullable public URI getDisconnectUrl() { return disconnectUrl; @@ -451,10 +450,10 @@ public CreateCallResponse username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -470,10 +469,10 @@ public CreateCallResponse password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -489,10 +488,10 @@ public CreateCallResponse fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -508,10 +507,10 @@ public CreateCallResponse fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -527,10 +526,10 @@ public CreateCallResponse priority(Integer priority) { return this; } - /** + /** * The priority of this call over other calls from your account. * @return priority - **/ + */ @javax.annotation.Nullable public Integer getPriority() { return priority; @@ -718,12 +717,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("disconnectMethod"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateCallResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateCallResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateCallResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -862,22 +861,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateCallResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateCallResponse - * @throws IOException if the JSON string is invalid with respect to CreateCallResponse - */ + /** + * Create an instance of CreateCallResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateCallResponse + * @throws IOException if the JSON string is invalid with respect to CreateCallResponse + */ public static CreateCallResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateCallResponse.class); } - /** - * Convert an instance of CreateCallResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateCallResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java index 35a1012c..a5839c6a 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * The request has been accepted for processing but not yet finished and in a terminal state (COMPLETE, PARTIAL_COMPLETE, or FAILED). */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateLookupResponse { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -68,10 +67,10 @@ public CreateLookupResponse requestId(String requestId) { return this; } - /** + /** * The phone number lookup request ID from Bandwidth. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -87,10 +86,10 @@ public CreateLookupResponse status(LookupStatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; @@ -201,12 +200,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateLookupResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateLookupResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateLookupResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -295,22 +294,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateLookupResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateLookupResponse - * @throws IOException if the JSON string is invalid with respect to CreateLookupResponse - */ + /** + * Create an instance of CreateLookupResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateLookupResponse + * @throws IOException if the JSON string is invalid with respect to CreateLookupResponse + */ public static CreateLookupResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateLookupResponse.class); } - /** - * Convert an instance of CreateLookupResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateLookupResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java index 9191f939..078dd0d5 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * CreateMessageRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateMessageRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -74,10 +73,10 @@ public CreateMessageRequestError type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -93,10 +92,10 @@ public CreateMessageRequestError description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -120,10 +119,10 @@ public CreateMessageRequestError addFieldErrorsItem(FieldError fieldErrorsItem) return this; } - /** + /** * Get fieldErrors * @return fieldErrors - **/ + */ @javax.annotation.Nullable public List getFieldErrors() { return fieldErrors; @@ -239,12 +238,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("description"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to CreateMessageRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to CreateMessageRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!CreateMessageRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -353,22 +352,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of CreateMessageRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of CreateMessageRequestError - * @throws IOException if the JSON string is invalid with respect to CreateMessageRequestError - */ + /** + * Create an instance of CreateMessageRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateMessageRequestError + * @throws IOException if the JSON string is invalid with respect to CreateMessageRequestError + */ public static CreateMessageRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, CreateMessageRequestError.class); } - /** - * Convert an instance of CreateMessageRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of CreateMessageRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java index ae14eab6..e9d80841 100644 --- a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java +++ b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * DeferredResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DeferredResult { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) @@ -67,10 +66,10 @@ public DeferredResult result(Object result) { return this; } - /** + /** * Get result * @return result - **/ + */ @javax.annotation.Nullable public Object getResult() { return result; @@ -86,10 +85,10 @@ public DeferredResult setOrExpired(Boolean setOrExpired) { return this; } - /** + /** * Get setOrExpired * @return setOrExpired - **/ + */ @javax.annotation.Nullable public Boolean getSetOrExpired() { return setOrExpired; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DeferredResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DeferredResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DeferredResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -287,22 +286,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DeferredResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of DeferredResult - * @throws IOException if the JSON string is invalid with respect to DeferredResult - */ + /** + * Create an instance of DeferredResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of DeferredResult + * @throws IOException if the JSON string is invalid with respect to DeferredResult + */ public static DeferredResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DeferredResult.class); } - /** - * Convert an instance of DeferredResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DeferredResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java index ca295a14..f7535530 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The Disconnect event is fired when a call ends, for any reason. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -131,10 +130,10 @@ public DisconnectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -150,10 +149,10 @@ public DisconnectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -169,10 +168,10 @@ public DisconnectCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -188,10 +187,10 @@ public DisconnectCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -207,10 +206,10 @@ public DisconnectCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -226,10 +225,10 @@ public DisconnectCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -245,10 +244,10 @@ public DisconnectCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -264,10 +263,10 @@ public DisconnectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -283,10 +282,10 @@ public DisconnectCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -302,10 +301,10 @@ public DisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -321,10 +320,10 @@ public DisconnectCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -340,10 +339,10 @@ public DisconnectCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -359,10 +358,10 @@ public DisconnectCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -378,10 +377,10 @@ public DisconnectCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -397,10 +396,10 @@ public DisconnectCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -416,10 +415,10 @@ public DisconnectCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -435,10 +434,10 @@ public DisconnectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -605,12 +604,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DisconnectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DisconnectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DisconnectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -729,22 +728,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DisconnectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of DisconnectCallback - * @throws IOException if the JSON string is invalid with respect to DisconnectCallback - */ + /** + * Create an instance of DisconnectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of DisconnectCallback + * @throws IOException if the JSON string is invalid with respect to DisconnectCallback + */ public static DisconnectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DisconnectCallback.class); } - /** - * Convert an instance of DisconnectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DisconnectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Diversion.java b/src/main/java/com/bandwidth/sdk/model/Diversion.java index 3e7ccb17..1082c8ef 100644 --- a/src/main/java/com/bandwidth/sdk/model/Diversion.java +++ b/src/main/java/com/bandwidth/sdk/model/Diversion.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Diversion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Diversion { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) @@ -87,10 +86,10 @@ public Diversion reason(String reason) { return this; } - /** + /** * The reason for the diversion. Common values: unknown, user-busy, no-answer, unavailable, unconditional, time-of-day, do-not-disturb, deflection, follow-me, out-of-service, away. * @return reason - **/ + */ @javax.annotation.Nullable public String getReason() { return reason; @@ -106,10 +105,10 @@ public Diversion privacy(String privacy) { return this; } - /** + /** * off or full * @return privacy - **/ + */ @javax.annotation.Nullable public String getPrivacy() { return privacy; @@ -125,10 +124,10 @@ public Diversion screen(String screen) { return this; } - /** + /** * No if the number was provided by the user, yes if the number was provided by the network * @return screen - **/ + */ @javax.annotation.Nullable public String getScreen() { return screen; @@ -144,10 +143,10 @@ public Diversion counter(String counter) { return this; } - /** + /** * The number of diversions that have occurred * @return counter - **/ + */ @javax.annotation.Nullable public String getCounter() { return counter; @@ -163,10 +162,10 @@ public Diversion limit(String limit) { return this; } - /** + /** * The maximum number of diversions allowed for this session * @return limit - **/ + */ @javax.annotation.Nullable public String getLimit() { return limit; @@ -182,10 +181,10 @@ public Diversion unknown(String unknown) { return this; } - /** + /** * The normal list of values is not exhaustive. Your application must be tolerant of unlisted keys and unlisted values of those keys. * @return unknown - **/ + */ @javax.annotation.Nullable public String getUnknown() { return unknown; @@ -201,10 +200,10 @@ public Diversion origTo(String origTo) { return this; } - /** + /** * Always present. Indicates the last telephone number that the call was diverted from. * @return origTo - **/ + */ @javax.annotation.Nullable public String getOrigTo() { return origTo; @@ -330,12 +329,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Diversion - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Diversion + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Diversion.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -438,22 +437,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Diversion given an JSON string - * - * @param jsonString JSON string - * @return An instance of Diversion - * @throws IOException if the JSON string is invalid with respect to Diversion - */ + /** + * Create an instance of Diversion given an JSON string + * + * @param jsonString JSON string + * @return An instance of Diversion + * @throws IOException if the JSON string is invalid with respect to Diversion + */ public static Diversion fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Diversion.class); } - /** - * Convert an instance of Diversion to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Diversion to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java index d10fbab4..6b9812eb 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The DTMF event is sent for every digit detected after a <StartGather> verb is executed. You may not respond to this event with BXML. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DtmfCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -131,10 +130,10 @@ public DtmfCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -150,10 +149,10 @@ public DtmfCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -169,10 +168,10 @@ public DtmfCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -188,10 +187,10 @@ public DtmfCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -207,10 +206,10 @@ public DtmfCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -226,10 +225,10 @@ public DtmfCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -245,10 +244,10 @@ public DtmfCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -264,10 +263,10 @@ public DtmfCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -283,10 +282,10 @@ public DtmfCallback digit(String digit) { return this; } - /** + /** * The digit collected in the call. * @return digit - **/ + */ @javax.annotation.Nullable public String getDigit() { return digit; @@ -302,10 +301,10 @@ public DtmfCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -321,10 +320,10 @@ public DtmfCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -340,10 +339,10 @@ public DtmfCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -359,10 +358,10 @@ public DtmfCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -378,10 +377,10 @@ public DtmfCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -397,10 +396,10 @@ public DtmfCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -416,10 +415,10 @@ public DtmfCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -435,10 +434,10 @@ public DtmfCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -605,12 +604,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to DtmfCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to DtmfCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!DtmfCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -732,22 +731,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of DtmfCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of DtmfCallback - * @throws IOException if the JSON string is invalid with respect to DtmfCallback - */ + /** + * Create an instance of DtmfCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of DtmfCallback + * @throws IOException if the JSON string is invalid with respect to DtmfCallback + */ public static DtmfCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, DtmfCallback.class); } - /** - * Convert an instance of DtmfCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of DtmfCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/FieldError.java b/src/main/java/com/bandwidth/sdk/model/FieldError.java index 92914b7e..dccddd62 100644 --- a/src/main/java/com/bandwidth/sdk/model/FieldError.java +++ b/src/main/java/com/bandwidth/sdk/model/FieldError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * FieldError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FieldError { public static final String SERIALIZED_NAME_FIELD_NAME = "fieldName"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) @@ -67,10 +66,10 @@ public FieldError fieldName(String fieldName) { return this; } - /** + /** * The name of the field that contains the error * @return fieldName - **/ + */ @javax.annotation.Nullable public String getFieldName() { return fieldName; @@ -86,10 +85,10 @@ public FieldError description(String description) { return this; } - /** + /** * The error associated with the field * @return description - **/ + */ @javax.annotation.Nullable public String getDescription() { return description; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to FieldError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to FieldError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!FieldError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of FieldError given an JSON string - * - * @param jsonString JSON string - * @return An instance of FieldError - * @throws IOException if the JSON string is invalid with respect to FieldError - */ + /** + * Create an instance of FieldError given an JSON string + * + * @param jsonString JSON string + * @return An instance of FieldError + * @throws IOException if the JSON string is invalid with respect to FieldError + */ public static FieldError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, FieldError.class); } - /** - * Convert an instance of FieldError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of FieldError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index 77e14b64..f45fe885 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The gather event is sent after a <Gather> verb is executed. Its purpose is to report the gathered digits to the calling application. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GatherCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -135,10 +134,10 @@ public GatherCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -154,10 +153,10 @@ public GatherCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -173,10 +172,10 @@ public GatherCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -192,10 +191,10 @@ public GatherCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -211,10 +210,10 @@ public GatherCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -230,10 +229,10 @@ public GatherCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -249,10 +248,10 @@ public GatherCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -268,10 +267,10 @@ public GatherCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -287,10 +286,10 @@ public GatherCallback digits(String digits) { return this; } - /** + /** * (optional) The digits, letters, and/or symbols entered by the user. The string is empty if a timeout occurred before any buttons were pressed. * @return digits - **/ + */ @javax.annotation.Nullable public String getDigits() { return digits; @@ -306,10 +305,10 @@ public GatherCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -325,10 +324,10 @@ public GatherCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -344,10 +343,10 @@ public GatherCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -363,10 +362,10 @@ public GatherCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -382,10 +381,10 @@ public GatherCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -401,10 +400,10 @@ public GatherCallback terminatingDigit(String terminatingDigit) { return this; } - /** + /** * (optional) The digit the user pressed to end the gather. Empty string value if no terminating digit was pressed. * @return terminatingDigit - **/ + */ @javax.annotation.Nullable public String getTerminatingDigit() { return terminatingDigit; @@ -420,10 +419,10 @@ public GatherCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -439,10 +438,10 @@ public GatherCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -458,10 +457,10 @@ public GatherCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -631,12 +630,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to GatherCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to GatherCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!GatherCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -761,22 +760,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of GatherCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of GatherCallback - * @throws IOException if the JSON string is invalid with respect to GatherCallback - */ + /** + * Create an instance of GatherCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of GatherCallback + * @throws IOException if the JSON string is invalid with respect to GatherCallback + */ public static GatherCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, GatherCallback.class); } - /** - * Convert an instance of GatherCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of GatherCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java index 8dca880d..2440039b 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Inbound Message Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InboundMessageCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,10 +80,10 @@ public InboundMessageCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -100,10 +99,10 @@ public InboundMessageCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -119,10 +118,10 @@ public InboundMessageCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -138,10 +137,10 @@ public InboundMessageCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -157,10 +156,10 @@ public InboundMessageCallback message(InboundMessageCallbackMessage message) { return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public InboundMessageCallbackMessage getMessage() { return message; @@ -285,12 +284,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("message"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InboundMessageCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InboundMessageCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of InboundMessageCallback - * @throws IOException if the JSON string is invalid with respect to InboundMessageCallback - */ + /** + * Create an instance of InboundMessageCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of InboundMessageCallback + * @throws IOException if the JSON string is invalid with respect to InboundMessageCallback + */ public static InboundMessageCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InboundMessageCallback.class); } - /** - * Convert an instance of InboundMessageCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InboundMessageCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java index ac08aa7e..525bcf46 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Inbound Message Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public InboundMessageCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public InboundMessageCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public InboundMessageCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public InboundMessageCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public InboundMessageCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public InboundMessageCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public InboundMessageCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public InboundMessageCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public InboundMessageCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public InboundMessageCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -321,10 +320,10 @@ public InboundMessageCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -340,10 +339,10 @@ public InboundMessageCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -493,12 +492,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("text"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InboundMessageCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InboundMessageCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -621,22 +620,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InboundMessageCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of InboundMessageCallbackMessage - * @throws IOException if the JSON string is invalid with respect to InboundMessageCallbackMessage - */ + /** + * Create an instance of InboundMessageCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of InboundMessageCallbackMessage + * @throws IOException if the JSON string is invalid with respect to InboundMessageCallbackMessage + */ public static InboundMessageCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InboundMessageCallbackMessage.class); } - /** - * Convert an instance of InboundMessageCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InboundMessageCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java index c1a87bd5..ea9c01c8 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Initiate event is fired when an inbound call is received for a Telephone Number on your Account. It is sent to the URL specified in the application associated with the location (sip-peer) that the called telephone number belongs to. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InitiateCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -112,10 +111,10 @@ public InitiateCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -131,10 +130,10 @@ public InitiateCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -150,10 +149,10 @@ public InitiateCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -169,10 +168,10 @@ public InitiateCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -188,10 +187,10 @@ public InitiateCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -207,10 +206,10 @@ public InitiateCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -226,10 +225,10 @@ public InitiateCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -245,10 +244,10 @@ public InitiateCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -264,10 +263,10 @@ public InitiateCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -283,10 +282,10 @@ public InitiateCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -302,10 +301,10 @@ public InitiateCallback diversion(Diversion diversion) { return this; } - /** + /** * Get diversion * @return diversion - **/ + */ @javax.annotation.Nullable public Diversion getDiversion() { return diversion; @@ -321,10 +320,10 @@ public InitiateCallback stirShaken(StirShaken stirShaken) { return this; } - /** + /** * Get stirShaken * @return stirShaken - **/ + */ @javax.annotation.Nullable public StirShaken getStirShaken() { return stirShaken; @@ -465,12 +464,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to InitiateCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to InitiateCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!InitiateCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -585,22 +584,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of InitiateCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of InitiateCallback - * @throws IOException if the JSON string is invalid with respect to InitiateCallback - */ + /** + * Create an instance of InitiateCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of InitiateCallback + * @throws IOException if the JSON string is invalid with respect to InitiateCallback + */ public static InitiateCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, InitiateCallback.class); } - /** - * Convert an instance of InitiateCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of InitiateCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java index 988186b3..1f9925a1 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * ListMessageItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ListMessageItem { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -132,10 +131,10 @@ public ListMessageItem messageId(String messageId) { return this; } - /** + /** * The message id * @return messageId - **/ + */ @javax.annotation.Nullable public String getMessageId() { return messageId; @@ -151,10 +150,10 @@ public ListMessageItem accountId(String accountId) { return this; } - /** + /** * The account id associated with this message. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -170,10 +169,10 @@ public ListMessageItem sourceTn(String sourceTn) { return this; } - /** + /** * The source phone number of the message. * @return sourceTn - **/ + */ @javax.annotation.Nullable public String getSourceTn() { return sourceTn; @@ -189,10 +188,10 @@ public ListMessageItem destinationTn(String destinationTn) { return this; } - /** + /** * The recipient phone number of the message. * @return destinationTn - **/ + */ @javax.annotation.Nullable public String getDestinationTn() { return destinationTn; @@ -208,10 +207,10 @@ public ListMessageItem messageStatus(MessageStatusEnum messageStatus) { return this; } - /** + /** * Get messageStatus * @return messageStatus - **/ + */ @javax.annotation.Nullable public MessageStatusEnum getMessageStatus() { return messageStatus; @@ -227,10 +226,10 @@ public ListMessageItem messageDirection(ListMessageDirectionEnum messageDirectio return this; } - /** + /** * Get messageDirection * @return messageDirection - **/ + */ @javax.annotation.Nullable public ListMessageDirectionEnum getMessageDirection() { return messageDirection; @@ -246,10 +245,10 @@ public ListMessageItem messageType(MessageTypeEnum messageType) { return this; } - /** + /** * Get messageType * @return messageType - **/ + */ @javax.annotation.Nullable public MessageTypeEnum getMessageType() { return messageType; @@ -265,10 +264,10 @@ public ListMessageItem segmentCount(Integer segmentCount) { return this; } - /** + /** * The number of segments the message was sent as. * @return segmentCount - **/ + */ @javax.annotation.Nullable public Integer getSegmentCount() { return segmentCount; @@ -284,10 +283,10 @@ public ListMessageItem errorCode(Integer errorCode) { return this; } - /** + /** * The numeric error code of the message. * @return errorCode - **/ + */ @javax.annotation.Nullable public Integer getErrorCode() { return errorCode; @@ -303,10 +302,10 @@ public ListMessageItem receiveTime(OffsetDateTime receiveTime) { return this; } - /** + /** * The ISO 8601 datetime of the message. * @return receiveTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getReceiveTime() { return receiveTime; @@ -322,10 +321,10 @@ public ListMessageItem carrierName(String carrierName) { return this; } - /** + /** * The name of the carrier. Not currently supported for MMS coming soon. * @return carrierName - **/ + */ @javax.annotation.Nullable public String getCarrierName() { return carrierName; @@ -341,10 +340,10 @@ public ListMessageItem messageSize(Integer messageSize) { return this; } - /** + /** * The size of the message including message content and headers. * @return messageSize - **/ + */ @javax.annotation.Nullable public Integer getMessageSize() { return messageSize; @@ -360,10 +359,10 @@ public ListMessageItem messageLength(Integer messageLength) { return this; } - /** + /** * The length of the message content. * @return messageLength - **/ + */ @javax.annotation.Nullable public Integer getMessageLength() { return messageLength; @@ -379,10 +378,10 @@ public ListMessageItem attachmentCount(Integer attachmentCount) { return this; } - /** + /** * The number of attachments the message has. * @return attachmentCount - **/ + */ @javax.annotation.Nullable public Integer getAttachmentCount() { return attachmentCount; @@ -398,10 +397,10 @@ public ListMessageItem recipientCount(Integer recipientCount) { return this; } - /** + /** * The number of recipients the message has. * @return recipientCount - **/ + */ @javax.annotation.Nullable public Integer getRecipientCount() { return recipientCount; @@ -417,10 +416,10 @@ public ListMessageItem campaignClass(String campaignClass) { return this; } - /** + /** * The campaign class of the message if it has one. * @return campaignClass - **/ + */ @javax.annotation.Nullable public String getCampaignClass() { return campaignClass; @@ -436,10 +435,10 @@ public ListMessageItem campaignId(String campaignId) { return this; } - /** + /** * The campaign ID of the message if it has one. * @return campaignId - **/ + */ @javax.annotation.Nullable public String getCampaignId() { return campaignId; @@ -606,12 +605,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to ListMessageItem - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ListMessageItem + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!ListMessageItem.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -726,22 +725,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of ListMessageItem given an JSON string - * - * @param jsonString JSON string - * @return An instance of ListMessageItem - * @throws IOException if the JSON string is invalid with respect to ListMessageItem - */ + /** + * Create an instance of ListMessageItem given an JSON string + * + * @param jsonString JSON string + * @return An instance of ListMessageItem + * @throws IOException if the JSON string is invalid with respect to ListMessageItem + */ public static ListMessageItem fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, ListMessageItem.class); } - /** - * Convert an instance of ListMessageItem to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of ListMessageItem to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java index 75414526..f09f7fdc 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Create phone number lookup request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class LookupRequest { public static final String SERIALIZED_NAME_TNS = "tns"; @SerializedName(SERIALIZED_NAME_TNS) @@ -73,10 +72,10 @@ public LookupRequest addTnsItem(String tnsItem) { return this; } - /** + /** * Get tns * @return tns - **/ + */ @javax.annotation.Nonnull public List getTns() { return tns; @@ -185,12 +184,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("tns"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookupRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LookupRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LookupRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -285,22 +284,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LookupRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookupRequest - * @throws IOException if the JSON string is invalid with respect to LookupRequest - */ + /** + * Create an instance of LookupRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LookupRequest + * @throws IOException if the JSON string is invalid with respect to LookupRequest + */ public static LookupRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LookupRequest.class); } - /** - * Convert an instance of LookupRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LookupRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupResult.java b/src/main/java/com/bandwidth/sdk/model/LookupResult.java index e9079cb3..846acd11 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupResult.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupResult.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Carrier information results for the specified telephone number. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class LookupResult { public static final String SERIALIZED_NAME_RESPONSE_CODE = "Response Code"; @SerializedName(SERIALIZED_NAME_RESPONSE_CODE) @@ -95,10 +94,10 @@ public LookupResult responseCode(Integer responseCode) { return this; } - /** + /** * Our vendor's response code. * @return responseCode - **/ + */ @javax.annotation.Nullable public Integer getResponseCode() { return responseCode; @@ -114,10 +113,10 @@ public LookupResult message(String message) { return this; } - /** + /** * Message associated with the response code. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -133,10 +132,10 @@ public LookupResult e164Format(String e164Format) { return this; } - /** + /** * The telephone number in E.164 format. * @return e164Format - **/ + */ @javax.annotation.Nullable public String getE164Format() { return e164Format; @@ -152,10 +151,10 @@ public LookupResult formatted(String formatted) { return this; } - /** + /** * The formatted version of the telephone number. * @return formatted - **/ + */ @javax.annotation.Nullable public String getFormatted() { return formatted; @@ -171,10 +170,10 @@ public LookupResult country(String country) { return this; } - /** + /** * The country of the telephone number. * @return country - **/ + */ @javax.annotation.Nullable public String getCountry() { return country; @@ -190,10 +189,10 @@ public LookupResult lineType(String lineType) { return this; } - /** + /** * The line type of the telephone number. * @return lineType - **/ + */ @javax.annotation.Nullable public String getLineType() { return lineType; @@ -209,10 +208,10 @@ public LookupResult lineProvider(String lineProvider) { return this; } - /** + /** * The messaging service provider of the telephone number. * @return lineProvider - **/ + */ @javax.annotation.Nullable public String getLineProvider() { return lineProvider; @@ -228,10 +227,10 @@ public LookupResult mobileCountryCode(String mobileCountryCode) { return this; } - /** + /** * The first half of the Home Network Identity (HNI). * @return mobileCountryCode - **/ + */ @javax.annotation.Nullable public String getMobileCountryCode() { return mobileCountryCode; @@ -247,10 +246,10 @@ public LookupResult mobileNetworkCode(String mobileNetworkCode) { return this; } - /** + /** * The second half of the HNI. * @return mobileNetworkCode - **/ + */ @javax.annotation.Nullable public String getMobileNetworkCode() { return mobileNetworkCode; @@ -382,12 +381,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookupResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LookupResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LookupResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -493,22 +492,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LookupResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookupResult - * @throws IOException if the JSON string is invalid with respect to LookupResult - */ + /** + * Create an instance of LookupResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of LookupResult + * @throws IOException if the JSON string is invalid with respect to LookupResult + */ public static LookupResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LookupResult.class); } - /** - * Convert an instance of LookupResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LookupResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java index dfca01c8..cdc1ac26 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * If requestId exists, the result for that request is returned. See the Examples for details on the various responses that you can receive. Generally, if you see a Response Code of 0 in a result for a TN, information will be available for it. Any other Response Code will indicate no information was available for the TN. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class LookupStatus { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) @@ -79,10 +78,10 @@ public LookupStatus requestId(String requestId) { return this; } - /** + /** * The requestId. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -98,10 +97,10 @@ public LookupStatus status(LookupStatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public LookupStatusEnum getStatus() { return status; @@ -125,10 +124,10 @@ public LookupStatus addResultItem(LookupResult resultItem) { return this; } - /** + /** * The carrier information results for the specified telephone number. * @return result - **/ + */ @javax.annotation.Nullable public List getResult() { return result; @@ -152,10 +151,10 @@ public LookupStatus addFailedTelephoneNumbersItem(String failedTelephoneNumbersI return this; } - /** + /** * The telephone numbers whose lookup failed. * @return failedTelephoneNumbers - **/ + */ @javax.annotation.Nullable public List getFailedTelephoneNumbers() { return failedTelephoneNumbers; @@ -272,12 +271,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to LookupStatus - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to LookupStatus + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!LookupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -384,22 +383,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of LookupStatus given an JSON string - * - * @param jsonString JSON string - * @return An instance of LookupStatus - * @throws IOException if the JSON string is invalid with respect to LookupStatus - */ + /** + * Create an instance of LookupStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of LookupStatus + * @throws IOException if the JSON string is invalid with respect to LookupStatus + */ public static LookupStatus fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, LookupStatus.class); } - /** - * Convert an instance of LookupStatus to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of LookupStatus to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index 31ee19f2..5cf68101 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * This event is sent to the url informed when requesting a machine detection operation. It contains the machine detection operation result, which can be: human, answering-machine, silence, timeout, error. This event is not sent when sync answering machine detection mode is chosen. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -120,10 +119,10 @@ public MachineDetectionCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -139,10 +138,10 @@ public MachineDetectionCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -158,10 +157,10 @@ public MachineDetectionCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -177,10 +176,10 @@ public MachineDetectionCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -196,10 +195,10 @@ public MachineDetectionCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -215,10 +214,10 @@ public MachineDetectionCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -234,10 +233,10 @@ public MachineDetectionCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -253,10 +252,10 @@ public MachineDetectionCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -272,10 +271,10 @@ public MachineDetectionCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -291,10 +290,10 @@ public MachineDetectionCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -310,10 +309,10 @@ public MachineDetectionCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -329,10 +328,10 @@ public MachineDetectionCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -348,10 +347,10 @@ public MachineDetectionCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -367,10 +366,10 @@ public MachineDetectionCompleteCallback machineDetectionResult(MachineDetectionR return this; } - /** + /** * Get machineDetectionResult * @return machineDetectionResult - **/ + */ @javax.annotation.Nullable public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; @@ -528,12 +527,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MachineDetectionCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MachineDetectionCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MachineDetectionCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -647,22 +646,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MachineDetectionCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MachineDetectionCompleteCallback - * @throws IOException if the JSON string is invalid with respect to MachineDetectionCompleteCallback - */ + /** + * Create an instance of MachineDetectionCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MachineDetectionCompleteCallback + * @throws IOException if the JSON string is invalid with respect to MachineDetectionCompleteCallback + */ public static MachineDetectionCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MachineDetectionCompleteCallback.class); } - /** - * Convert an instance of MachineDetectionCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MachineDetectionCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java index 86785f36..5b22e432 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The machine detection request used to perform <a href='/docs/voice/guides/machineDetection'>machine detection</a> on the call. Currently, there is an issue where decimal values are not getting processed correctly. Please use whole number values. We are working to resolve this issue. Please contact Bandwidth Support if you need more information. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MachineDetectionConfiguration { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) @@ -123,10 +122,10 @@ public MachineDetectionConfiguration mode(MachineDetectionModeEnum mode) { return this; } - /** + /** * Get mode * @return mode - **/ + */ @javax.annotation.Nullable public MachineDetectionModeEnum getMode() { return mode; @@ -142,10 +141,10 @@ public MachineDetectionConfiguration detectionTimeout(Double detectionTimeout) { return this; } - /** + /** * The timeout used for the whole operation, in seconds. If no result is determined in this period, a callback with a `timeout` result is sent. * @return detectionTimeout - **/ + */ @javax.annotation.Nullable public Double getDetectionTimeout() { return detectionTimeout; @@ -161,10 +160,10 @@ public MachineDetectionConfiguration silenceTimeout(Double silenceTimeout) { return this; } - /** + /** * If no speech is detected in this period, a callback with a 'silence' result is sent. * @return silenceTimeout - **/ + */ @javax.annotation.Nullable public Double getSilenceTimeout() { return silenceTimeout; @@ -180,10 +179,10 @@ public MachineDetectionConfiguration speechThreshold(Double speechThreshold) { return this; } - /** + /** * When speech has ended and a result couldn't be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be 'answering-machine'. If the length of speech detected is below this threshold, the result will be 'human'. * @return speechThreshold - **/ + */ @javax.annotation.Nullable public Double getSpeechThreshold() { return speechThreshold; @@ -199,10 +198,10 @@ public MachineDetectionConfiguration speechEndThreshold(Double speechEndThreshol return this; } - /** + /** * Amount of silence (in seconds) before assuming the callee has finished speaking. * @return speechEndThreshold - **/ + */ @javax.annotation.Nullable public Double getSpeechEndThreshold() { return speechEndThreshold; @@ -218,10 +217,10 @@ public MachineDetectionConfiguration machineSpeechEndThreshold(Double machineSpe return this; } - /** + /** * When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. * @return machineSpeechEndThreshold - **/ + */ @javax.annotation.Nullable public Double getMachineSpeechEndThreshold() { return machineSpeechEndThreshold; @@ -237,10 +236,10 @@ public MachineDetectionConfiguration delayResult(Boolean delayResult) { return this; } - /** + /** * If set to 'true' and if an answering machine is detected, the 'answering-machine' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the 'detectionTimeout' is exceeded. If false, the 'answering-machine' result is sent immediately. * @return delayResult - **/ + */ @javax.annotation.Nullable public Boolean getDelayResult() { return delayResult; @@ -256,10 +255,10 @@ public MachineDetectionConfiguration callbackUrl(URI callbackUrl) { return this; } - /** + /** * The URL to send the 'machineDetectionComplete' webhook when the detection is completed. Only for 'async' mode. * @return callbackUrl - **/ + */ @javax.annotation.Nullable public URI getCallbackUrl() { return callbackUrl; @@ -275,10 +274,10 @@ public MachineDetectionConfiguration callbackMethod(CallbackMethodEnum callbackM return this; } - /** + /** * Get callbackMethod * @return callbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; @@ -294,10 +293,10 @@ public MachineDetectionConfiguration username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -313,10 +312,10 @@ public MachineDetectionConfiguration password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -332,10 +331,10 @@ public MachineDetectionConfiguration fallbackUrl(URI fallbackUrl) { return this; } - /** + /** * A fallback URL which, if provided, will be used to retry the machine detection complete webhook delivery in case `callbackUrl` fails to respond * @return fallbackUrl - **/ + */ @javax.annotation.Nullable public URI getFallbackUrl() { return fallbackUrl; @@ -351,10 +350,10 @@ public MachineDetectionConfiguration fallbackMethod(CallbackMethodEnum fallbackM return this; } - /** + /** * Get fallbackMethod * @return fallbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getFallbackMethod() { return fallbackMethod; @@ -370,10 +369,10 @@ public MachineDetectionConfiguration fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -389,10 +388,10 @@ public MachineDetectionConfiguration fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -553,12 +552,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MachineDetectionConfiguration - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MachineDetectionConfiguration + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MachineDetectionConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -670,22 +669,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MachineDetectionConfiguration given an JSON string - * - * @param jsonString JSON string - * @return An instance of MachineDetectionConfiguration - * @throws IOException if the JSON string is invalid with respect to MachineDetectionConfiguration - */ + /** + * Create an instance of MachineDetectionConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of MachineDetectionConfiguration + * @throws IOException if the JSON string is invalid with respect to MachineDetectionConfiguration + */ public static MachineDetectionConfiguration fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MachineDetectionConfiguration.class); } - /** - * Convert an instance of MachineDetectionConfiguration to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MachineDetectionConfiguration to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java index f3ff2b2e..b33891ea 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * (optional) if machine detection was requested in sync mode, the result will be specified here. Possible values are the same as the async counterpart: Machine Detection Complete */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MachineDetectionResult { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) @@ -67,10 +66,10 @@ public MachineDetectionResult value(String value) { return this; } - /** + /** * Possible values are answering-machine, human, silence, timeout, or error. * @return value - **/ + */ @javax.annotation.Nullable public String getValue() { return value; @@ -86,10 +85,10 @@ public MachineDetectionResult duration(String duration) { return this; } - /** + /** * The amount of time it took to determine the result. * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MachineDetectionResult - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MachineDetectionResult + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MachineDetectionResult.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MachineDetectionResult given an JSON string - * - * @param jsonString JSON string - * @return An instance of MachineDetectionResult - * @throws IOException if the JSON string is invalid with respect to MachineDetectionResult - */ + /** + * Create an instance of MachineDetectionResult given an JSON string + * + * @param jsonString JSON string + * @return An instance of MachineDetectionResult + * @throws IOException if the JSON string is invalid with respect to MachineDetectionResult + */ public static MachineDetectionResult fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MachineDetectionResult.class); } - /** - * Convert an instance of MachineDetectionResult to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MachineDetectionResult to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Media.java b/src/main/java/com/bandwidth/sdk/model/Media.java index f31d58bf..6271307d 100644 --- a/src/main/java/com/bandwidth/sdk/model/Media.java +++ b/src/main/java/com/bandwidth/sdk/model/Media.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Media */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Media { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) @@ -71,10 +70,10 @@ public Media content(String content) { return this; } - /** + /** * Get content * @return content - **/ + */ @javax.annotation.Nullable public String getContent() { return content; @@ -90,10 +89,10 @@ public Media contentLength(Integer contentLength) { return this; } - /** + /** * Get contentLength * @return contentLength - **/ + */ @javax.annotation.Nullable public Integer getContentLength() { return contentLength; @@ -109,10 +108,10 @@ public Media mediaName(String mediaName) { return this; } - /** + /** * Get mediaName * @return mediaName - **/ + */ @javax.annotation.Nullable public String getMediaName() { return mediaName; @@ -226,12 +225,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Media - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Media + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Media.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -319,22 +318,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Media given an JSON string - * - * @param jsonString JSON string - * @return An instance of Media - * @throws IOException if the JSON string is invalid with respect to Media - */ + /** + * Create an instance of Media given an JSON string + * + * @param jsonString JSON string + * @return An instance of Media + * @throws IOException if the JSON string is invalid with respect to Media + */ public static Media fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Media.class); } - /** - * Convert an instance of Media to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Media to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Message.java b/src/main/java/com/bandwidth/sdk/model/Message.java index f7893107..f8647be4 100644 --- a/src/main/java/com/bandwidth/sdk/model/Message.java +++ b/src/main/java/com/bandwidth/sdk/model/Message.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Message { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -116,10 +115,10 @@ public Message id(String id) { return this; } - /** + /** * The id of the message. * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -135,10 +134,10 @@ public Message owner(String owner) { return this; } - /** + /** * The Bandwidth phone number associated with the message. * @return owner - **/ + */ @javax.annotation.Nullable public String getOwner() { return owner; @@ -154,10 +153,10 @@ public Message applicationId(String applicationId) { return this; } - /** + /** * The application ID associated with the message. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -173,10 +172,10 @@ public Message time(OffsetDateTime time) { return this; } - /** + /** * The datetime stamp of the message in ISO 8601 * @return time - **/ + */ @javax.annotation.Nullable public OffsetDateTime getTime() { return time; @@ -192,10 +191,10 @@ public Message segmentCount(Integer segmentCount) { return this; } - /** + /** * The number of segments the original message from the user is broken into before sending over to carrier networks. * @return segmentCount - **/ + */ @javax.annotation.Nullable public Integer getSegmentCount() { return segmentCount; @@ -211,10 +210,10 @@ public Message direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public MessageDirectionEnum getDirection() { return direction; @@ -238,10 +237,10 @@ public Message addToItem(String toItem) { return this; } - /** + /** * The phone number recipients of the message. * @return to - **/ + */ @javax.annotation.Nullable public Set getTo() { return to; @@ -257,10 +256,10 @@ public Message from(String from) { return this; } - /** + /** * The phone number the message was sent from. * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -284,10 +283,10 @@ public Message addMediaItem(String mediaItem) { return this; } - /** + /** * The list of media URLs sent in the message. Including a `filename` field in the `Content-Disposition` header of the media linked with a URL will set the displayed file name. This is a best practice to ensure that your media has a readable file name. * @return media - **/ + */ @javax.annotation.Nullable public Set getMedia() { return media; @@ -303,10 +302,10 @@ public Message text(String text) { return this; } - /** + /** * The contents of the message. * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; @@ -322,10 +321,10 @@ public Message tag(String tag) { return this; } - /** + /** * The custom string set by the user. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -341,10 +340,10 @@ public Message priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -360,10 +359,10 @@ public Message expiration(OffsetDateTime expiration) { return this; } - /** + /** * The expiration date-time set by the user. * @return expiration - **/ + */ @javax.annotation.Nullable public OffsetDateTime getExpiration() { return expiration; @@ -507,12 +506,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Message - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Message + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Message.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -628,22 +627,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Message given an JSON string - * - * @param jsonString JSON string - * @return An instance of Message - * @throws IOException if the JSON string is invalid with respect to Message - */ + /** + * Create an instance of Message given an JSON string + * + * @param jsonString JSON string + * @return An instance of Message + * @throws IOException if the JSON string is invalid with respect to Message + */ public static Message fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Message.class); } - /** - * Convert an instance of Message to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Message to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java index fe3ce3db..78b2e050 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Message Delivered Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageDeliveredCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,10 +80,10 @@ public MessageDeliveredCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -100,10 +99,10 @@ public MessageDeliveredCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -119,10 +118,10 @@ public MessageDeliveredCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -138,10 +137,10 @@ public MessageDeliveredCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -157,10 +156,10 @@ public MessageDeliveredCallback message(MessageDeliveredCallbackMessage message) return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageDeliveredCallbackMessage getMessage() { return message; @@ -285,12 +284,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("message"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageDeliveredCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageDeliveredCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageDeliveredCallback - * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallback - */ + /** + * Create an instance of MessageDeliveredCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageDeliveredCallback + * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallback + */ public static MessageDeliveredCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageDeliveredCallback.class); } - /** - * Convert an instance of MessageDeliveredCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageDeliveredCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java index dbafd12b..a89369c2 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Message Delivered Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public MessageDeliveredCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public MessageDeliveredCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public MessageDeliveredCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public MessageDeliveredCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public MessageDeliveredCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public MessageDeliveredCallbackMessage direction(MessageDirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public MessageDeliveredCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public MessageDeliveredCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public MessageDeliveredCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public MessageDeliveredCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nonnull public String getTag() { return tag; @@ -321,10 +320,10 @@ public MessageDeliveredCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -340,10 +339,10 @@ public MessageDeliveredCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -494,12 +493,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("tag"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageDeliveredCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageDeliveredCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -622,22 +621,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageDeliveredCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageDeliveredCallbackMessage - * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallbackMessage - */ + /** + * Create an instance of MessageDeliveredCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageDeliveredCallbackMessage + * @throws IOException if the JSON string is invalid with respect to MessageDeliveredCallbackMessage + */ public static MessageDeliveredCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageDeliveredCallbackMessage.class); } - /** - * Convert an instance of MessageDeliveredCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageDeliveredCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java index 49153874..5dbd1a65 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Message Failed Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageFailedCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -85,10 +84,10 @@ public MessageFailedCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -104,10 +103,10 @@ public MessageFailedCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -123,10 +122,10 @@ public MessageFailedCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -142,10 +141,10 @@ public MessageFailedCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -161,10 +160,10 @@ public MessageFailedCallback message(MessageFailedCallbackMessage message) { return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageFailedCallbackMessage getMessage() { return message; @@ -180,10 +179,10 @@ public MessageFailedCallback errorCode(Integer errorCode) { return this; } - /** + /** * Get errorCode * @return errorCode - **/ + */ @javax.annotation.Nonnull public Integer getErrorCode() { return errorCode; @@ -312,12 +311,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("errorCode"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageFailedCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -417,22 +416,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageFailedCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageFailedCallback - * @throws IOException if the JSON string is invalid with respect to MessageFailedCallback - */ + /** + * Create an instance of MessageFailedCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageFailedCallback + * @throws IOException if the JSON string is invalid with respect to MessageFailedCallback + */ public static MessageFailedCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageFailedCallback.class); } - /** - * Convert an instance of MessageFailedCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageFailedCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java index fe2e8fc3..c819c0e7 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Message Failed Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public MessageFailedCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public MessageFailedCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public MessageFailedCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public MessageFailedCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public MessageFailedCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public MessageFailedCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public MessageFailedCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public MessageFailedCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public MessageFailedCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public MessageFailedCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nonnull public String getTag() { return tag; @@ -321,10 +320,10 @@ public MessageFailedCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -340,10 +339,10 @@ public MessageFailedCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -494,12 +493,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("tag"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageFailedCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageFailedCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -622,22 +621,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageFailedCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageFailedCallbackMessage - * @throws IOException if the JSON string is invalid with respect to MessageFailedCallbackMessage - */ + /** + * Create an instance of MessageFailedCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageFailedCallbackMessage + * @throws IOException if the JSON string is invalid with respect to MessageFailedCallbackMessage + */ public static MessageFailedCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageFailedCallbackMessage.class); } - /** - * Convert an instance of MessageFailedCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageFailedCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java index 44b019c0..b29f4740 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java @@ -44,7 +44,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -56,7 +55,7 @@ /** * MessageRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageRequest { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) @@ -98,10 +97,10 @@ public MessageRequest applicationId(String applicationId) { return this; } - /** + /** * The ID of the Application your from number is associated with in the Bandwidth Phone Number Dashboard. * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -125,10 +124,10 @@ public MessageRequest addToItem(String toItem) { return this; } - /** + /** * The phone number(s) the message should be sent to in E164 format. * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -144,10 +143,10 @@ public MessageRequest from(String from) { return this; } - /** + /** * Either an alphanumeric sender ID or the sender's Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -163,10 +162,10 @@ public MessageRequest text(String text) { return this; } - /** + /** * The contents of the text message. Must be 2048 characters or less. * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; @@ -190,10 +189,10 @@ public MessageRequest addMediaItem(URI mediaItem) { return this; } - /** + /** * A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters. * @return media - **/ + */ @javax.annotation.Nullable public List getMedia() { return media; @@ -209,10 +208,10 @@ public MessageRequest tag(String tag) { return this; } - /** + /** * A custom string that will be included in callback events of the message. Max 1024 characters. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -228,10 +227,10 @@ public MessageRequest priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -247,10 +246,10 @@ public MessageRequest expiration(OffsetDateTime expiration) { return this; } - /** + /** * A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. Not supported on MMS. * @return expiration - **/ + */ @javax.annotation.Nullable public OffsetDateTime getExpiration() { return expiration; @@ -382,12 +381,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("from"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -502,22 +501,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageRequest - * @throws IOException if the JSON string is invalid with respect to MessageRequest - */ + /** + * Create an instance of MessageRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageRequest + * @throws IOException if the JSON string is invalid with respect to MessageRequest + */ public static MessageRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageRequest.class); } - /** - * Convert an instance of MessageRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java index 97861788..4fe2cff5 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * Message Sending Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageSendingCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) @@ -81,10 +80,10 @@ public MessageSendingCallback time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -100,10 +99,10 @@ public MessageSendingCallback type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -119,10 +118,10 @@ public MessageSendingCallback to(String to) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -138,10 +137,10 @@ public MessageSendingCallback description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -157,10 +156,10 @@ public MessageSendingCallback message(MessageSendingCallbackMessage message) { return this; } - /** + /** * Get message * @return message - **/ + */ @javax.annotation.Nonnull public MessageSendingCallbackMessage getMessage() { return message; @@ -285,12 +284,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("message"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageSendingCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -390,22 +389,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageSendingCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageSendingCallback - * @throws IOException if the JSON string is invalid with respect to MessageSendingCallback - */ + /** + * Create an instance of MessageSendingCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageSendingCallback + * @throws IOException if the JSON string is invalid with respect to MessageSendingCallback + */ public static MessageSendingCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageSendingCallback.class); } - /** - * Convert an instance of MessageSendingCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageSendingCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java index 02185726..58085741 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java @@ -45,7 +45,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -57,7 +56,7 @@ /** * Message Sending Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessageSendingCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,10 +114,10 @@ public MessageSendingCallbackMessage id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nonnull public String getId() { return id; @@ -134,10 +133,10 @@ public MessageSendingCallbackMessage owner(String owner) { return this; } - /** + /** * Get owner * @return owner - **/ + */ @javax.annotation.Nonnull public String getOwner() { return owner; @@ -153,10 +152,10 @@ public MessageSendingCallbackMessage applicationId(String applicationId) { return this; } - /** + /** * Get applicationId * @return applicationId - **/ + */ @javax.annotation.Nonnull public String getApplicationId() { return applicationId; @@ -172,10 +171,10 @@ public MessageSendingCallbackMessage time(OffsetDateTime time) { return this; } - /** + /** * Get time * @return time - **/ + */ @javax.annotation.Nonnull public OffsetDateTime getTime() { return time; @@ -191,10 +190,10 @@ public MessageSendingCallbackMessage segmentCount(Integer segmentCount) { return this; } - /** + /** * Get segmentCount * @return segmentCount - **/ + */ @javax.annotation.Nonnull public Integer getSegmentCount() { return segmentCount; @@ -210,10 +209,10 @@ public MessageSendingCallbackMessage direction(MessageDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nonnull public MessageDirectionEnum getDirection() { return direction; @@ -237,10 +236,10 @@ public MessageSendingCallbackMessage addToItem(String toItem) { return this; } - /** + /** * Get to * @return to - **/ + */ @javax.annotation.Nonnull public Set getTo() { return to; @@ -256,10 +255,10 @@ public MessageSendingCallbackMessage from(String from) { return this; } - /** + /** * Get from * @return from - **/ + */ @javax.annotation.Nonnull public String getFrom() { return from; @@ -275,10 +274,10 @@ public MessageSendingCallbackMessage text(String text) { return this; } - /** + /** * Get text * @return text - **/ + */ @javax.annotation.Nonnull public String getText() { return text; @@ -294,10 +293,10 @@ public MessageSendingCallbackMessage tag(String tag) { return this; } - /** + /** * Get tag * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -321,10 +320,10 @@ public MessageSendingCallbackMessage addMediaItem(URI mediaItem) { return this; } - /** + /** * Get media * @return media - **/ + */ @javax.annotation.Nonnull public List getMedia() { return media; @@ -340,10 +339,10 @@ public MessageSendingCallbackMessage priority(PriorityEnum priority) { return this; } - /** + /** * Get priority * @return priority - **/ + */ @javax.annotation.Nullable public PriorityEnum getPriority() { return priority; @@ -494,12 +493,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("media"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallbackMessage - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessageSendingCallbackMessage + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessageSendingCallbackMessage.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -624,22 +623,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessageSendingCallbackMessage given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessageSendingCallbackMessage - * @throws IOException if the JSON string is invalid with respect to MessageSendingCallbackMessage - */ + /** + * Create an instance of MessageSendingCallbackMessage given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessageSendingCallbackMessage + * @throws IOException if the JSON string is invalid with respect to MessageSendingCallbackMessage + */ public static MessageSendingCallbackMessage fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessageSendingCallbackMessage.class); } - /** - * Convert an instance of MessageSendingCallbackMessage to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessageSendingCallbackMessage to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagesList.java b/src/main/java/com/bandwidth/sdk/model/MessagesList.java index 13bc6bce..41876834 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagesList.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagesList.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * MessagesList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessagesList { public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) @@ -75,10 +74,10 @@ public MessagesList totalCount(Integer totalCount) { return this; } - /** + /** * The total number of messages matched by the search. When the request has limitTotalCount set to true this value is limited to 10,000. * @return totalCount - **/ + */ @javax.annotation.Nullable public Integer getTotalCount() { return totalCount; @@ -94,10 +93,10 @@ public MessagesList pageInfo(PageInfo pageInfo) { return this; } - /** + /** * Get pageInfo * @return pageInfo - **/ + */ @javax.annotation.Nullable public PageInfo getPageInfo() { return pageInfo; @@ -121,10 +120,10 @@ public MessagesList addMessagesItem(ListMessageItem messagesItem) { return this; } - /** + /** * Get messages * @return messages - **/ + */ @javax.annotation.Nullable public List getMessages() { return messages; @@ -238,12 +237,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessagesList - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessagesList + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessagesList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -343,22 +342,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessagesList given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessagesList - * @throws IOException if the JSON string is invalid with respect to MessagesList - */ + /** + * Create an instance of MessagesList given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessagesList + * @throws IOException if the JSON string is invalid with respect to MessagesList + */ public static MessagesList fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessagesList.class); } - /** - * Convert an instance of MessagesList to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessagesList to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java index d4224fb0..bf999660 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MessagingCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessagingCodeResponse { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) @@ -63,10 +62,10 @@ public MessagingCodeResponse messageId(String messageId) { return this; } - /** + /** * Messaging API Message ID. * @return messageId - **/ + */ @javax.annotation.Nullable public String getMessageId() { return messageId; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessagingCodeResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessagingCodeResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessagingCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessagingCodeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessagingCodeResponse - * @throws IOException if the JSON string is invalid with respect to MessagingCodeResponse - */ + /** + * Create an instance of MessagingCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessagingCodeResponse + * @throws IOException if the JSON string is invalid with respect to MessagingCodeResponse + */ public static MessagingCodeResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessagingCodeResponse.class); } - /** - * Convert an instance of MessagingCodeResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessagingCodeResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java index 8097ac14..7153b7bc 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MessagingRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MessagingRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -67,10 +66,10 @@ public MessagingRequestError type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nonnull public String getType() { return type; @@ -86,10 +85,10 @@ public MessagingRequestError description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nonnull public String getDescription() { return description; @@ -202,12 +201,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("description"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MessagingRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MessagingRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MessagingRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -302,22 +301,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MessagingRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MessagingRequestError - * @throws IOException if the JSON string is invalid with respect to MessagingRequestError - */ + /** + * Create an instance of MessagingRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MessagingRequestError + * @throws IOException if the JSON string is invalid with respect to MessagingRequestError + */ public static MessagingRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MessagingRequestError.class); } - /** - * Convert an instance of MessagingRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MessagingRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java index 96e1f5ee..41ad730a 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MfaForbiddenRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MfaForbiddenRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -63,10 +62,10 @@ public MfaForbiddenRequestError message(String message) { return this; } - /** + /** * The message containing the reason behind the request being forbidden. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MfaForbiddenRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MfaForbiddenRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MfaForbiddenRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MfaForbiddenRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MfaForbiddenRequestError - * @throws IOException if the JSON string is invalid with respect to MfaForbiddenRequestError - */ + /** + * Create an instance of MfaForbiddenRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MfaForbiddenRequestError + * @throws IOException if the JSON string is invalid with respect to MfaForbiddenRequestError + */ public static MfaForbiddenRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MfaForbiddenRequestError.class); } - /** - * Convert an instance of MfaForbiddenRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MfaForbiddenRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java index fec8d616..e1b36fc3 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MfaRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MfaRequestError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) @@ -67,10 +66,10 @@ public MfaRequestError error(String error) { return this; } - /** + /** * A message describing the error with your request. * @return error - **/ + */ @javax.annotation.Nullable public String getError() { return error; @@ -86,10 +85,10 @@ public MfaRequestError requestId(String requestId) { return this; } - /** + /** * The associated requestId from AWS. * @return requestId - **/ + */ @javax.annotation.Nullable public String getRequestId() { return requestId; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MfaRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MfaRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MfaRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MfaRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MfaRequestError - * @throws IOException if the JSON string is invalid with respect to MfaRequestError - */ + /** + * Create an instance of MfaRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MfaRequestError + * @throws IOException if the JSON string is invalid with respect to MfaRequestError + */ public static MfaRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MfaRequestError.class); } - /** - * Convert an instance of MfaRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MfaRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java index 1c9d9966..0ffc2ac6 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * MfaUnauthorizedRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MfaUnauthorizedRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -63,10 +62,10 @@ public MfaUnauthorizedRequestError message(String message) { return this; } - /** + /** * Unauthorized * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to MfaUnauthorizedRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to MfaUnauthorizedRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!MfaUnauthorizedRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of MfaUnauthorizedRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of MfaUnauthorizedRequestError - * @throws IOException if the JSON string is invalid with respect to MfaUnauthorizedRequestError - */ + /** + * Create an instance of MfaUnauthorizedRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of MfaUnauthorizedRequestError + * @throws IOException if the JSON string is invalid with respect to MfaUnauthorizedRequestError + */ public static MfaUnauthorizedRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, MfaUnauthorizedRequestError.class); } - /** - * Convert an instance of MfaUnauthorizedRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of MfaUnauthorizedRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/PageInfo.java b/src/main/java/com/bandwidth/sdk/model/PageInfo.java index fdc30505..56cef96e 100644 --- a/src/main/java/com/bandwidth/sdk/model/PageInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/PageInfo.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * PageInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PageInfo { public static final String SERIALIZED_NAME_PREV_PAGE = "prevPage"; @SerializedName(SERIALIZED_NAME_PREV_PAGE) @@ -75,10 +74,10 @@ public PageInfo prevPage(String prevPage) { return this; } - /** + /** * The link to the previous page for pagination. * @return prevPage - **/ + */ @javax.annotation.Nullable public String getPrevPage() { return prevPage; @@ -94,10 +93,10 @@ public PageInfo nextPage(String nextPage) { return this; } - /** + /** * The link to the next page for pagination. * @return nextPage - **/ + */ @javax.annotation.Nullable public String getNextPage() { return nextPage; @@ -113,10 +112,10 @@ public PageInfo prevPageToken(String prevPageToken) { return this; } - /** + /** * The isolated pagination token for the previous page. * @return prevPageToken - **/ + */ @javax.annotation.Nullable public String getPrevPageToken() { return prevPageToken; @@ -132,10 +131,10 @@ public PageInfo nextPageToken(String nextPageToken) { return this; } - /** + /** * The isolated pagination token for the next page. * @return nextPageToken - **/ + */ @javax.annotation.Nullable public String getNextPageToken() { return nextPageToken; @@ -252,12 +251,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to PageInfo - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to PageInfo + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!PageInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -351,22 +350,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of PageInfo given an JSON string - * - * @param jsonString JSON string - * @return An instance of PageInfo - * @throws IOException if the JSON string is invalid with respect to PageInfo - */ + /** + * Create an instance of PageInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PageInfo + * @throws IOException if the JSON string is invalid with respect to PageInfo + */ public static PageInfo fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, PageInfo.class); } - /** - * Convert an instance of PageInfo to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of PageInfo to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index d1972c60..67113014 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Recording Available event is sent after a recording has been processed. It indicates that the recording is available for download. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -152,10 +151,10 @@ public RecordingAvailableCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -171,10 +170,10 @@ public RecordingAvailableCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -190,10 +189,10 @@ public RecordingAvailableCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -209,10 +208,10 @@ public RecordingAvailableCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -228,10 +227,10 @@ public RecordingAvailableCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -247,10 +246,10 @@ public RecordingAvailableCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -266,10 +265,10 @@ public RecordingAvailableCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -285,10 +284,10 @@ public RecordingAvailableCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -304,10 +303,10 @@ public RecordingAvailableCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -323,10 +322,10 @@ public RecordingAvailableCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -342,10 +341,10 @@ public RecordingAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -361,10 +360,10 @@ public RecordingAvailableCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -380,10 +379,10 @@ public RecordingAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -399,10 +398,10 @@ public RecordingAvailableCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -418,10 +417,10 @@ public RecordingAvailableCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -437,10 +436,10 @@ public RecordingAvailableCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -456,10 +455,10 @@ public RecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -475,10 +474,10 @@ public RecordingAvailableCallback channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -494,10 +493,10 @@ public RecordingAvailableCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -513,10 +512,10 @@ public RecordingAvailableCallback status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -532,10 +531,10 @@ public RecordingAvailableCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -551,10 +550,10 @@ public RecordingAvailableCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -736,12 +735,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingAvailableCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingAvailableCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingAvailableCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -876,22 +875,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingAvailableCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingAvailableCallback - * @throws IOException if the JSON string is invalid with respect to RecordingAvailableCallback - */ + /** + * Create an instance of RecordingAvailableCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingAvailableCallback + * @throws IOException if the JSON string is invalid with respect to RecordingAvailableCallback + */ public static RecordingAvailableCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingAvailableCallback.class); } - /** - * Convert an instance of RecordingAvailableCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingAvailableCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java index 92fd8347..fa2d093e 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -42,7 +42,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -54,7 +53,7 @@ /** * The Record Complete event is sent after a <Record> verb has executed if the call is still active. The BXML returned by this callback is executed next. When the recording is available for download, a Recording Available event will be sent. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -152,10 +151,10 @@ public RecordingCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -171,10 +170,10 @@ public RecordingCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -190,10 +189,10 @@ public RecordingCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -209,10 +208,10 @@ public RecordingCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -228,10 +227,10 @@ public RecordingCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -247,10 +246,10 @@ public RecordingCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -266,10 +265,10 @@ public RecordingCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -285,10 +284,10 @@ public RecordingCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -304,10 +303,10 @@ public RecordingCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -323,10 +322,10 @@ public RecordingCompleteCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -342,10 +341,10 @@ public RecordingCompleteCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -361,10 +360,10 @@ public RecordingCompleteCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -380,10 +379,10 @@ public RecordingCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -399,10 +398,10 @@ public RecordingCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -418,10 +417,10 @@ public RecordingCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -437,10 +436,10 @@ public RecordingCompleteCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -456,10 +455,10 @@ public RecordingCompleteCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -475,10 +474,10 @@ public RecordingCompleteCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -494,10 +493,10 @@ public RecordingCompleteCallback channels(Integer channels) { return this; } - /** + /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. * @return channels - **/ + */ @javax.annotation.Nullable public Integer getChannels() { return channels; @@ -513,10 +512,10 @@ public RecordingCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -532,10 +531,10 @@ public RecordingCompleteCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -551,10 +550,10 @@ public RecordingCompleteCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -736,12 +735,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -873,22 +872,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingCompleteCallback - * @throws IOException if the JSON string is invalid with respect to RecordingCompleteCallback - */ + /** + * Create an instance of RecordingCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingCompleteCallback + * @throws IOException if the JSON string is invalid with respect to RecordingCompleteCallback + */ public static RecordingCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingCompleteCallback.class); } - /** - * Convert an instance of RecordingCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java index 6ef1583f..acdbda08 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java @@ -39,7 +39,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -51,7 +50,7 @@ /** * If the recording was transcribed, metadata about the transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingTranscriptionMetadata { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -77,10 +76,10 @@ public RecordingTranscriptionMetadata id(String id) { return this; } - /** + /** * The unique transcription ID * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -96,10 +95,10 @@ public RecordingTranscriptionMetadata status(String status) { return this; } - /** + /** * The current status of the process. For recording, current possible values are 'processing', 'partial', 'complete', 'deleted', and 'error'. For transcriptions, current possible values are 'none', 'processing', 'available', 'error', 'timeout', 'file-size-too-big', and 'file-size-too-small'. Additional states may be added in the future, so your application must be tolerant of unknown values. * @return status - **/ + */ @javax.annotation.Nullable public String getStatus() { return status; @@ -115,10 +114,10 @@ public RecordingTranscriptionMetadata completedTime(OffsetDateTime completedTime return this; } - /** + /** * The time that the transcription was completed * @return completedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getCompletedTime() { return completedTime; @@ -134,10 +133,10 @@ public RecordingTranscriptionMetadata url(URI url) { return this; } - /** + /** * The URL of the [transcription](#operation/getCallTranscription) * @return url - **/ + */ @javax.annotation.Nullable public URI getUrl() { return url; @@ -254,12 +253,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptionMetadata - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptionMetadata + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingTranscriptionMetadata.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -350,22 +349,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingTranscriptionMetadata given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingTranscriptionMetadata - * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptionMetadata - */ + /** + * Create an instance of RecordingTranscriptionMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingTranscriptionMetadata + * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptionMetadata + */ public static RecordingTranscriptionMetadata fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingTranscriptionMetadata.class); } - /** - * Convert an instance of RecordingTranscriptionMetadata to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingTranscriptionMetadata to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java index 96087470..39c509bf 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * RecordingTranscriptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecordingTranscriptions { public static final String SERIALIZED_NAME_TRANSCRIPTS = "transcripts"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) @@ -74,10 +73,10 @@ public RecordingTranscriptions addTranscriptsItem(Transcription transcriptsItem) return this; } - /** + /** * Get transcripts * @return transcripts - **/ + */ @javax.annotation.Nullable public List getTranscripts() { return transcripts; @@ -185,12 +184,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptions - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RecordingTranscriptions + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RecordingTranscriptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -286,22 +285,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RecordingTranscriptions given an JSON string - * - * @param jsonString JSON string - * @return An instance of RecordingTranscriptions - * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptions - */ + /** + * Create an instance of RecordingTranscriptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of RecordingTranscriptions + * @throws IOException if the JSON string is invalid with respect to RecordingTranscriptions + */ public static RecordingTranscriptions fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RecordingTranscriptions.class); } - /** - * Convert an instance of RecordingTranscriptions to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RecordingTranscriptions to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java index fbd94765..3940325d 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * The Redirect event is fired when a <Redirect> verb is executed. Its purpose is to get the next set of verbs from the calling application. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -127,10 +126,10 @@ public RedirectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -146,10 +145,10 @@ public RedirectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -165,10 +164,10 @@ public RedirectCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -184,10 +183,10 @@ public RedirectCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -203,10 +202,10 @@ public RedirectCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -222,10 +221,10 @@ public RedirectCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -241,10 +240,10 @@ public RedirectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -260,10 +259,10 @@ public RedirectCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -279,10 +278,10 @@ public RedirectCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -298,10 +297,10 @@ public RedirectCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -317,10 +316,10 @@ public RedirectCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -336,10 +335,10 @@ public RedirectCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -355,10 +354,10 @@ public RedirectCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -374,10 +373,10 @@ public RedirectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -393,10 +392,10 @@ public RedirectCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -412,10 +411,10 @@ public RedirectCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -579,12 +578,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to RedirectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to RedirectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!RedirectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -703,22 +702,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of RedirectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of RedirectCallback - * @throws IOException if the JSON string is invalid with respect to RedirectCallback - */ + /** + * Create an instance of RedirectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of RedirectCallback + * @throws IOException if the JSON string is invalid with respect to RedirectCallback + */ public static RedirectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, RedirectCallback.class); } - /** - * Convert an instance of RedirectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of RedirectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/StirShaken.java b/src/main/java/com/bandwidth/sdk/model/StirShaken.java index ce8dc501..7763ec87 100644 --- a/src/main/java/com/bandwidth/sdk/model/StirShaken.java +++ b/src/main/java/com/bandwidth/sdk/model/StirShaken.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * StirShaken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StirShaken { public static final String SERIALIZED_NAME_VERSTAT = "verstat"; @SerializedName(SERIALIZED_NAME_VERSTAT) @@ -71,10 +70,10 @@ public StirShaken verstat(String verstat) { return this; } - /** + /** * (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Verification-Passed and TN-Verification-Failed. * @return verstat - **/ + */ @javax.annotation.Nullable public String getVerstat() { return verstat; @@ -90,10 +89,10 @@ public StirShaken attestationIndicator(String attestationIndicator) { return this; } - /** + /** * (optional) The attestation level verified by Bandwidth. Possible values are A (full), B (partial) or C (gateway). * @return attestationIndicator - **/ + */ @javax.annotation.Nullable public String getAttestationIndicator() { return attestationIndicator; @@ -109,10 +108,10 @@ public StirShaken originatingId(String originatingId) { return this; } - /** + /** * (optional) A unique origination identifier. * @return originatingId - **/ + */ @javax.annotation.Nullable public String getOriginatingId() { return originatingId; @@ -226,12 +225,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to StirShaken - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to StirShaken + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!StirShaken.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -322,22 +321,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of StirShaken given an JSON string - * - * @param jsonString JSON string - * @return An instance of StirShaken - * @throws IOException if the JSON string is invalid with respect to StirShaken - */ + /** + * Create an instance of StirShaken given an JSON string + * + * @param jsonString JSON string + * @return An instance of StirShaken + * @throws IOException if the JSON string is invalid with respect to StirShaken + */ public static StirShaken fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, StirShaken.class); } - /** - * Convert an instance of StirShaken to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of StirShaken to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Tag.java b/src/main/java/com/bandwidth/sdk/model/Tag.java index 0607f53c..37978c6f 100644 --- a/src/main/java/com/bandwidth/sdk/model/Tag.java +++ b/src/main/java/com/bandwidth/sdk/model/Tag.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Tag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -67,10 +66,10 @@ public Tag key(String key) { return this; } - /** + /** * Get key * @return key - **/ + */ @javax.annotation.Nullable public String getKey() { return key; @@ -86,10 +85,10 @@ public Tag value(String value) { return this; } - /** + /** * Get value * @return value - **/ + */ @javax.annotation.Nullable public String getValue() { return value; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Tag - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Tag + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Tag.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Tag given an JSON string - * - * @param jsonString JSON string - * @return An instance of Tag - * @throws IOException if the JSON string is invalid with respect to Tag - */ + /** + * Create an instance of Tag given an JSON string + * + * @param jsonString JSON string + * @return An instance of Tag + * @throws IOException if the JSON string is invalid with respect to Tag + */ public static Tag fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Tag.class); } - /** - * Convert an instance of Tag to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Tag to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java index 8737295b..a18e1f7b 100644 --- a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * TnLookupRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TnLookupRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) @@ -63,10 +62,10 @@ public TnLookupRequestError message(String message) { return this; } - /** + /** * A description of what validation error occurred. * @return message - **/ + */ @javax.annotation.Nullable public String getMessage() { return message; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TnLookupRequestError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TnLookupRequestError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TnLookupRequestError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TnLookupRequestError given an JSON string - * - * @param jsonString JSON string - * @return An instance of TnLookupRequestError - * @throws IOException if the JSON string is invalid with respect to TnLookupRequestError - */ + /** + * Create an instance of TnLookupRequestError given an JSON string + * + * @param jsonString JSON string + * @return An instance of TnLookupRequestError + * @throws IOException if the JSON string is invalid with respect to TnLookupRequestError + */ public static TnLookupRequestError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TnLookupRequestError.class); } - /** - * Convert an instance of TnLookupRequestError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TnLookupRequestError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java index 4bcf208f..cfc9fdff 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * TranscribeRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TranscribeRecording { public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) @@ -90,10 +89,10 @@ public TranscribeRecording callbackUrl(URI callbackUrl) { return this; } - /** + /** * The URL to send the [TranscriptionAvailable](/docs/voice/webhooks/transcriptionAvailable) event to. You should not include sensitive or personally-identifiable information in the callbackUrl field! Always use the proper username and password fields for authorization. * @return callbackUrl - **/ + */ @javax.annotation.Nullable public URI getCallbackUrl() { return callbackUrl; @@ -109,10 +108,10 @@ public TranscribeRecording callbackMethod(CallbackMethodEnum callbackMethod) { return this; } - /** + /** * Get callbackMethod * @return callbackMethod - **/ + */ @javax.annotation.Nullable public CallbackMethodEnum getCallbackMethod() { return callbackMethod; @@ -128,10 +127,10 @@ public TranscribeRecording username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -147,10 +146,10 @@ public TranscribeRecording password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -166,10 +165,10 @@ public TranscribeRecording tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -185,12 +184,12 @@ public TranscribeRecording callbackTimeout(Double callbackTimeout) { return this; } - /** + /** * This is the timeout (in seconds) to use when delivering the webhook to `callbackUrl`. Can be any numeric value (including decimals) between 1 and 25. * minimum: 1 * maximum: 25 * @return callbackTimeout - **/ + */ @javax.annotation.Nullable public Double getCallbackTimeout() { return callbackTimeout; @@ -206,10 +205,10 @@ public TranscribeRecording detectLanguage(Boolean detectLanguage) { return this; } - /** + /** * A boolean value to indicate that the recording may not be in English, and the transcription service will need to detect the dominant language the recording is in and transcribe accordingly. Current supported languages are English, French, and Spanish. * @return detectLanguage - **/ + */ @javax.annotation.Nullable public Boolean getDetectLanguage() { return detectLanguage; @@ -346,12 +345,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TranscribeRecording - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TranscribeRecording + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TranscribeRecording.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -449,22 +448,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TranscribeRecording given an JSON string - * - * @param jsonString JSON string - * @return An instance of TranscribeRecording - * @throws IOException if the JSON string is invalid with respect to TranscribeRecording - */ + /** + * Create an instance of TranscribeRecording given an JSON string + * + * @param jsonString JSON string + * @return An instance of TranscribeRecording + * @throws IOException if the JSON string is invalid with respect to TranscribeRecording + */ public static TranscribeRecording fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TranscribeRecording.class); } - /** - * Convert an instance of TranscribeRecording to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TranscribeRecording to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/Transcription.java b/src/main/java/com/bandwidth/sdk/model/Transcription.java index 69a77729..953dabd7 100644 --- a/src/main/java/com/bandwidth/sdk/model/Transcription.java +++ b/src/main/java/com/bandwidth/sdk/model/Transcription.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * Transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Transcription { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) @@ -67,10 +66,10 @@ public Transcription text(String text) { return this; } - /** + /** * The transcribed text * @return text - **/ + */ @javax.annotation.Nullable public String getText() { return text; @@ -86,10 +85,10 @@ public Transcription confidence(Double confidence) { return this; } - /** + /** * The confidence on the recognized content, ranging from `0.0` to `1.0` with `1.0` being the highest confidence. * @return confidence - **/ + */ @javax.annotation.Nullable public Double getConfidence() { return confidence; @@ -200,12 +199,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to Transcription - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to Transcription + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!Transcription.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -290,22 +289,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of Transcription given an JSON string - * - * @param jsonString JSON string - * @return An instance of Transcription - * @throws IOException if the JSON string is invalid with respect to Transcription - */ + /** + * Create an instance of Transcription given an JSON string + * + * @param jsonString JSON string + * @return An instance of Transcription + * @throws IOException if the JSON string is invalid with respect to Transcription + */ public static Transcription fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, Transcription.class); } - /** - * Convert an instance of Transcription to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of Transcription to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java index ad62e343..ad8b1eb9 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -43,7 +43,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -55,7 +54,7 @@ /** * The Transcription Available event is sent when the recording transcription is available to be downloaded. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -149,10 +148,10 @@ public TranscriptionAvailableCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -168,10 +167,10 @@ public TranscriptionAvailableCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -187,10 +186,10 @@ public TranscriptionAvailableCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -206,10 +205,10 @@ public TranscriptionAvailableCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -225,10 +224,10 @@ public TranscriptionAvailableCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -244,10 +243,10 @@ public TranscriptionAvailableCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -263,10 +262,10 @@ public TranscriptionAvailableCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -282,10 +281,10 @@ public TranscriptionAvailableCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -301,10 +300,10 @@ public TranscriptionAvailableCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -320,10 +319,10 @@ public TranscriptionAvailableCallback mediaUrl(URI mediaUrl) { return this; } - /** + /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. * @return mediaUrl - **/ + */ @javax.annotation.Nullable public URI getMediaUrl() { return mediaUrl; @@ -339,10 +338,10 @@ public TranscriptionAvailableCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -358,10 +357,10 @@ public TranscriptionAvailableCallback recordingId(String recordingId) { return this; } - /** + /** * The unique ID of this recording * @return recordingId - **/ + */ @javax.annotation.Nullable public String getRecordingId() { return recordingId; @@ -377,10 +376,10 @@ public TranscriptionAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -396,10 +395,10 @@ public TranscriptionAvailableCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -415,10 +414,10 @@ public TranscriptionAvailableCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -434,10 +433,10 @@ public TranscriptionAvailableCallback duration(String duration) { return this; } - /** + /** * The duration of the recording in ISO-8601 format * @return duration - **/ + */ @javax.annotation.Nullable public String getDuration() { return duration; @@ -453,10 +452,10 @@ public TranscriptionAvailableCallback fileFormat(FileFormatEnum fileFormat) { return this; } - /** + /** * Get fileFormat * @return fileFormat - **/ + */ @javax.annotation.Nullable public FileFormatEnum getFileFormat() { return fileFormat; @@ -472,10 +471,10 @@ public TranscriptionAvailableCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -491,10 +490,10 @@ public TranscriptionAvailableCallback transcription(Transcription transcription) return this; } - /** + /** * Get transcription * @return transcription - **/ + */ @javax.annotation.Nullable public Transcription getTranscription() { return transcription; @@ -510,10 +509,10 @@ public TranscriptionAvailableCallback transferCallerId(String transferCallerId) return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -529,10 +528,10 @@ public TranscriptionAvailableCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -711,12 +710,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TranscriptionAvailableCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TranscriptionAvailableCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TranscriptionAvailableCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -852,22 +851,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TranscriptionAvailableCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TranscriptionAvailableCallback - * @throws IOException if the JSON string is invalid with respect to TranscriptionAvailableCallback - */ + /** + * Create an instance of TranscriptionAvailableCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TranscriptionAvailableCallback + * @throws IOException if the JSON string is invalid with respect to TranscriptionAvailableCallback + */ public static TranscriptionAvailableCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TranscriptionAvailableCallback.class); } - /** - * Convert an instance of TranscriptionAvailableCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TranscriptionAvailableCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java index d8ced07f..fbec91ff 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * When processing a <Transfer> verb, this event is sent when a called party (B-leg) answers. The event is sent to the endpoint specified in the transferAnswerUrl attribute of the <PhoneNumber> tag that answered. BXML returned by this callback will be executed for the called party only. After all BXML has been executed, the called party will be bridged to the original call. Most BXML verbs are allowed in response to a transferAnswer event, but some are not allowed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransferAnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -123,10 +122,10 @@ public TransferAnswerCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -142,10 +141,10 @@ public TransferAnswerCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -161,10 +160,10 @@ public TransferAnswerCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -180,10 +179,10 @@ public TransferAnswerCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -199,10 +198,10 @@ public TransferAnswerCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -218,10 +217,10 @@ public TransferAnswerCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -237,10 +236,10 @@ public TransferAnswerCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -256,10 +255,10 @@ public TransferAnswerCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -275,10 +274,10 @@ public TransferAnswerCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -294,10 +293,10 @@ public TransferAnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -313,10 +312,10 @@ public TransferAnswerCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -332,10 +331,10 @@ public TransferAnswerCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -351,10 +350,10 @@ public TransferAnswerCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -370,10 +369,10 @@ public TransferAnswerCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -389,10 +388,10 @@ public TransferAnswerCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -553,12 +552,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TransferAnswerCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TransferAnswerCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TransferAnswerCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -674,22 +673,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TransferAnswerCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferAnswerCallback - * @throws IOException if the JSON string is invalid with respect to TransferAnswerCallback - */ + /** + * Create an instance of TransferAnswerCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferAnswerCallback + * @throws IOException if the JSON string is invalid with respect to TransferAnswerCallback + */ public static TransferAnswerCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TransferAnswerCallback.class); } - /** - * Convert an instance of TransferAnswerCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TransferAnswerCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java index bdabf015..b71cf0bc 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * This event is sent to the transferCompleteUrl of the A-leg's <Transfer> verb when the transferred call (B-leg) completes. In a simultaneous ringing scenario, only one B-leg succeeds and this event corresponds to that successful leg. If none of the calls were answered, the transferComplete event corresponds to one of the legs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransferCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -135,10 +134,10 @@ public TransferCompleteCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -154,10 +153,10 @@ public TransferCompleteCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -173,10 +172,10 @@ public TransferCompleteCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -192,10 +191,10 @@ public TransferCompleteCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -211,10 +210,10 @@ public TransferCompleteCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -230,10 +229,10 @@ public TransferCompleteCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -249,10 +248,10 @@ public TransferCompleteCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -268,10 +267,10 @@ public TransferCompleteCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -287,10 +286,10 @@ public TransferCompleteCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -306,10 +305,10 @@ public TransferCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -325,10 +324,10 @@ public TransferCompleteCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -344,10 +343,10 @@ public TransferCompleteCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -363,10 +362,10 @@ public TransferCompleteCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -382,10 +381,10 @@ public TransferCompleteCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -401,10 +400,10 @@ public TransferCompleteCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -420,10 +419,10 @@ public TransferCompleteCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -439,10 +438,10 @@ public TransferCompleteCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -458,10 +457,10 @@ public TransferCompleteCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -631,12 +630,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TransferCompleteCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TransferCompleteCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TransferCompleteCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -761,22 +760,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TransferCompleteCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferCompleteCallback - * @throws IOException if the JSON string is invalid with respect to TransferCompleteCallback - */ + /** + * Create an instance of TransferCompleteCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferCompleteCallback + * @throws IOException if the JSON string is invalid with respect to TransferCompleteCallback + */ public static TransferCompleteCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TransferCompleteCallback.class); } - /** - * Convert an instance of TransferCompleteCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TransferCompleteCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java index dec8165b..7adddbe2 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * This event is sent to the transferDisconnectUrl of each <PhoneNumber> tag when its respective call leg ends for any reason. The event is sent in the normal case, when the transferred leg is answered and later hung up, but is also sent if the new leg was never answered in the first place, if it was rejected, and if the original call leg hung up before the transferred leg. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) @@ -143,10 +142,10 @@ public TransferDisconnectCallback eventType(String eventType) { return this; } - /** + /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. * @return eventType - **/ + */ @javax.annotation.Nullable public String getEventType() { return eventType; @@ -162,10 +161,10 @@ public TransferDisconnectCallback eventTime(OffsetDateTime eventTime) { return this; } - /** + /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. * @return eventTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEventTime() { return eventTime; @@ -181,10 +180,10 @@ public TransferDisconnectCallback accountId(String accountId) { return this; } - /** + /** * The user account associated with the call. * @return accountId - **/ + */ @javax.annotation.Nullable public String getAccountId() { return accountId; @@ -200,10 +199,10 @@ public TransferDisconnectCallback applicationId(String applicationId) { return this; } - /** + /** * The id of the application associated with the call. * @return applicationId - **/ + */ @javax.annotation.Nullable public String getApplicationId() { return applicationId; @@ -219,10 +218,10 @@ public TransferDisconnectCallback from(String from) { return this; } - /** + /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). * @return from - **/ + */ @javax.annotation.Nullable public String getFrom() { return from; @@ -238,10 +237,10 @@ public TransferDisconnectCallback to(String to) { return this; } - /** + /** * The phone number that received the call, in E.164 format (e.g. +15555555555). * @return to - **/ + */ @javax.annotation.Nullable public String getTo() { return to; @@ -257,10 +256,10 @@ public TransferDisconnectCallback direction(CallDirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @javax.annotation.Nullable public CallDirectionEnum getDirection() { return direction; @@ -276,10 +275,10 @@ public TransferDisconnectCallback callId(String callId) { return this; } - /** + /** * The call id associated with the event. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -295,10 +294,10 @@ public TransferDisconnectCallback callUrl(URI callUrl) { return this; } - /** + /** * The URL of the call associated with the event. * @return callUrl - **/ + */ @javax.annotation.Nullable public URI getCallUrl() { return callUrl; @@ -314,10 +313,10 @@ public TransferDisconnectCallback parentCallId(String parentCallId) { return this; } - /** + /** * (optional) If the event is related to the B leg of a <Transfer>, the call id of the original call leg that executed the <Transfer>. Otherwise, this field will not be present. * @return parentCallId - **/ + */ @javax.annotation.Nullable public String getParentCallId() { return parentCallId; @@ -333,10 +332,10 @@ public TransferDisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { return this; } - /** + /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. * @return enqueuedTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEnqueuedTime() { return enqueuedTime; @@ -352,10 +351,10 @@ public TransferDisconnectCallback startTime(OffsetDateTime startTime) { return this; } - /** + /** * Time the call was started, in ISO 8601 format. * @return startTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getStartTime() { return startTime; @@ -371,10 +370,10 @@ public TransferDisconnectCallback answerTime(OffsetDateTime answerTime) { return this; } - /** + /** * Time the call was answered, in ISO 8601 format. * @return answerTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getAnswerTime() { return answerTime; @@ -390,10 +389,10 @@ public TransferDisconnectCallback endTime(OffsetDateTime endTime) { return this; } - /** + /** * The time that the recording ended in ISO-8601 format * @return endTime - **/ + */ @javax.annotation.Nullable public OffsetDateTime getEndTime() { return endTime; @@ -409,10 +408,10 @@ public TransferDisconnectCallback tag(String tag) { return this; } - /** + /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -428,10 +427,10 @@ public TransferDisconnectCallback transferCallerId(String transferCallerId) { return this; } - /** + /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferCallerId - **/ + */ @javax.annotation.Nullable public String getTransferCallerId() { return transferCallerId; @@ -447,10 +446,10 @@ public TransferDisconnectCallback transferTo(String transferTo) { return this; } - /** + /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). * @return transferTo - **/ + */ @javax.annotation.Nullable public String getTransferTo() { return transferTo; @@ -466,10 +465,10 @@ public TransferDisconnectCallback cause(String cause) { return this; } - /** + /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. * @return cause - **/ + */ @javax.annotation.Nullable public String getCause() { return cause; @@ -485,10 +484,10 @@ public TransferDisconnectCallback errorMessage(String errorMessage) { return this; } - /** + /** * Text explaining the reason that caused the call to fail in case of errors. * @return errorMessage - **/ + */ @javax.annotation.Nullable public String getErrorMessage() { return errorMessage; @@ -504,10 +503,10 @@ public TransferDisconnectCallback errorId(String errorId) { return this; } - /** + /** * Bandwidth's internal id that references the error event. * @return errorId - **/ + */ @javax.annotation.Nullable public String getErrorId() { return errorId; @@ -683,12 +682,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to TransferDisconnectCallback - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to TransferDisconnectCallback + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!TransferDisconnectCallback.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -816,22 +815,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of TransferDisconnectCallback given an JSON string - * - * @param jsonString JSON string - * @return An instance of TransferDisconnectCallback - * @throws IOException if the JSON string is invalid with respect to TransferDisconnectCallback - */ + /** + * Create an instance of TransferDisconnectCallback given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferDisconnectCallback + * @throws IOException if the JSON string is invalid with respect to TransferDisconnectCallback + */ public static TransferDisconnectCallback fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, TransferDisconnectCallback.class); } - /** - * Convert an instance of TransferDisconnectCallback to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of TransferDisconnectCallback to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java index dd2cc35c..9e0aa12d 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * UpdateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCall { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -103,10 +102,10 @@ public UpdateCall state(CallStateEnum state) { return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nullable public CallStateEnum getState() { return state; @@ -122,10 +121,10 @@ public UpdateCall redirectUrl(URI redirectUrl) { return this; } - /** + /** * The URL to send the [Redirect](/docs/voice/bxml/redirect) event to which will provide new BXML. Required if `state` is `active`. Not allowed if `state` is `completed`. * @return redirectUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectUrl() { return redirectUrl; @@ -141,10 +140,10 @@ public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod) { return this; } - /** + /** * Get redirectMethod * @return redirectMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; @@ -160,10 +159,10 @@ public UpdateCall username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -179,10 +178,10 @@ public UpdateCall password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -198,10 +197,10 @@ public UpdateCall redirectFallbackUrl(URI redirectFallbackUrl) { return this; } - /** + /** * A fallback url which, if provided, will be used to retry the redirect callback delivery in case `redirectUrl` fails to respond. * @return redirectFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectFallbackUrl() { return redirectFallbackUrl; @@ -217,10 +216,10 @@ public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMeth return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; @@ -236,10 +235,10 @@ public UpdateCall fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -255,10 +254,10 @@ public UpdateCall fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -274,10 +273,10 @@ public UpdateCall tag(String tag) { return this; } - /** + /** * A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [`<Tag>`](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`. * @return tag - **/ + */ @javax.annotation.Nullable public String getTag() { return tag; @@ -423,12 +422,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateCall - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateCall + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateCall.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -543,22 +542,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateCall given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateCall - * @throws IOException if the JSON string is invalid with respect to UpdateCall - */ + /** + * Create an instance of UpdateCall given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateCall + * @throws IOException if the JSON string is invalid with respect to UpdateCall + */ public static UpdateCall fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateCall.class); } - /** - * Convert an instance of UpdateCall to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateCall to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java index b7eec69c..47c56deb 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * UpdateCallRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCallRecording { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) @@ -64,10 +63,10 @@ public UpdateCallRecording state(RecordingStateEnum state) { return this; } - /** + /** * Get state * @return state - **/ + */ @javax.annotation.Nonnull public RecordingStateEnum getState() { return state; @@ -176,12 +175,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("state"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateCallRecording - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateCallRecording + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateCallRecording.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -272,22 +271,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateCallRecording given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateCallRecording - * @throws IOException if the JSON string is invalid with respect to UpdateCallRecording - */ + /** + * Create an instance of UpdateCallRecording given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateCallRecording + * @throws IOException if the JSON string is invalid with respect to UpdateCallRecording + */ public static UpdateCallRecording fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateCallRecording.class); } - /** - * Convert an instance of UpdateCallRecording to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateCallRecording to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java index 511da727..b8507d78 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java @@ -41,7 +41,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -53,7 +52,7 @@ /** * UpdateConference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateConference { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) @@ -99,10 +98,10 @@ public UpdateConference status(ConferenceStateEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @javax.annotation.Nullable public ConferenceStateEnum getStatus() { return status; @@ -118,10 +117,10 @@ public UpdateConference redirectUrl(URI redirectUrl) { return this; } - /** + /** * The URL to send the [conferenceRedirect](/docs/voice/webhooks/conferenceRedirect) event which will provide new BXML. Not allowed if `state` is `completed`, but required if `state` is `active`. * @return redirectUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectUrl() { return redirectUrl; @@ -137,10 +136,10 @@ public UpdateConference redirectMethod(RedirectMethodEnum redirectMethod) { return this; } - /** + /** * Get redirectMethod * @return redirectMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectMethod() { return redirectMethod; @@ -156,10 +155,10 @@ public UpdateConference username(String username) { return this; } - /** + /** * Basic auth username. * @return username - **/ + */ @javax.annotation.Nullable public String getUsername() { return username; @@ -175,10 +174,10 @@ public UpdateConference password(String password) { return this; } - /** + /** * Basic auth password. * @return password - **/ + */ @javax.annotation.Nullable public String getPassword() { return password; @@ -194,10 +193,10 @@ public UpdateConference redirectFallbackUrl(URI redirectFallbackUrl) { return this; } - /** + /** * A fallback url which, if provided, will be used to retry the `conferenceRedirect` webhook delivery in case `redirectUrl` fails to respond. Not allowed if `state` is `completed`. * @return redirectFallbackUrl - **/ + */ @javax.annotation.Nullable public URI getRedirectFallbackUrl() { return redirectFallbackUrl; @@ -213,10 +212,10 @@ public UpdateConference redirectFallbackMethod(RedirectMethodEnum redirectFallba return this; } - /** + /** * Get redirectFallbackMethod * @return redirectFallbackMethod - **/ + */ @javax.annotation.Nullable public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; @@ -232,10 +231,10 @@ public UpdateConference fallbackUsername(String fallbackUsername) { return this; } - /** + /** * Basic auth username. * @return fallbackUsername - **/ + */ @javax.annotation.Nullable public String getFallbackUsername() { return fallbackUsername; @@ -251,10 +250,10 @@ public UpdateConference fallbackPassword(String fallbackPassword) { return this; } - /** + /** * Basic auth password. * @return fallbackPassword - **/ + */ @javax.annotation.Nullable public String getFallbackPassword() { return fallbackPassword; @@ -397,12 +396,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateConference - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateConference + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateConference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -514,22 +513,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateConference given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateConference - * @throws IOException if the JSON string is invalid with respect to UpdateConference - */ + /** + * Create an instance of UpdateConference given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateConference + * @throws IOException if the JSON string is invalid with respect to UpdateConference + */ public static UpdateConference fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateConference.class); } - /** - * Convert an instance of UpdateConference to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateConference to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java index d80e102f..a7a782cd 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java @@ -40,7 +40,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -52,7 +51,7 @@ /** * UpdateConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateConferenceMember { public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) @@ -74,10 +73,10 @@ public UpdateConferenceMember mute(Boolean mute) { return this; } - /** + /** * Whether or not this member is currently muted. Members who are muted are still able to hear other participants. Updates this member's mute status. Has no effect if omitted. * @return mute - **/ + */ @javax.annotation.Nullable public Boolean getMute() { return mute; @@ -93,10 +92,10 @@ public UpdateConferenceMember hold(Boolean hold) { return this; } - /** + /** * Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. Updates this member's hold status. Has no effect if omitted. * @return hold - **/ + */ @javax.annotation.Nullable public Boolean getHold() { return hold; @@ -120,10 +119,10 @@ public UpdateConferenceMember addCallIdsToCoachItem(String callIdsToCoachItem) { return this; } - /** + /** * If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. Modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. * @return callIdsToCoach - **/ + */ @javax.annotation.Nullable public List getCallIdsToCoach() { return callIdsToCoach; @@ -248,12 +247,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to UpdateConferenceMember - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to UpdateConferenceMember + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!UpdateConferenceMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -339,22 +338,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of UpdateConferenceMember given an JSON string - * - * @param jsonString JSON string - * @return An instance of UpdateConferenceMember - * @throws IOException if the JSON string is invalid with respect to UpdateConferenceMember - */ + /** + * Create an instance of UpdateConferenceMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateConferenceMember + * @throws IOException if the JSON string is invalid with respect to UpdateConferenceMember + */ public static UpdateConferenceMember fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, UpdateConferenceMember.class); } - /** - * Convert an instance of UpdateConferenceMember to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of UpdateConferenceMember to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java index 9bf0a02d..85c6988e 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * VerifyCodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VerifyCodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) @@ -76,10 +75,10 @@ public VerifyCodeRequest to(String to) { return this; } - /** + /** * The phone number to send the mfa code to. * @return to - **/ + */ @javax.annotation.Nonnull public String getTo() { return to; @@ -95,10 +94,10 @@ public VerifyCodeRequest scope(String scope) { return this; } - /** + /** * An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\". * @return scope - **/ + */ @javax.annotation.Nullable public String getScope() { return scope; @@ -114,12 +113,12 @@ public VerifyCodeRequest expirationTimeInMinutes(BigDecimal expirationTimeInMinu return this; } - /** + /** * The time period, in minutes, to validate the mfa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively. * minimum: 1 * maximum: 15 * @return expirationTimeInMinutes - **/ + */ @javax.annotation.Nonnull public BigDecimal getExpirationTimeInMinutes() { return expirationTimeInMinutes; @@ -135,10 +134,10 @@ public VerifyCodeRequest code(String code) { return this; } - /** + /** * The generated mfa code to check if valid. * @return code - **/ + */ @javax.annotation.Nonnull public String getCode() { return code; @@ -258,12 +257,12 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("code"); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VerifyCodeRequest - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VerifyCodeRequest + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VerifyCodeRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -361,22 +360,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VerifyCodeRequest given an JSON string - * - * @param jsonString JSON string - * @return An instance of VerifyCodeRequest - * @throws IOException if the JSON string is invalid with respect to VerifyCodeRequest - */ + /** + * Create an instance of VerifyCodeRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of VerifyCodeRequest + * @throws IOException if the JSON string is invalid with respect to VerifyCodeRequest + */ public static VerifyCodeRequest fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VerifyCodeRequest.class); } - /** - * Convert an instance of VerifyCodeRequest to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VerifyCodeRequest to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java index 397c5e6c..70e59bb8 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * VerifyCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VerifyCodeResponse { public static final String SERIALIZED_NAME_VALID = "valid"; @SerializedName(SERIALIZED_NAME_VALID) @@ -63,10 +62,10 @@ public VerifyCodeResponse valid(Boolean valid) { return this; } - /** + /** * Whether or not the supplied code is valid. * @return valid - **/ + */ @javax.annotation.Nullable public Boolean getValid() { return valid; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VerifyCodeResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VerifyCodeResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VerifyCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -261,22 +260,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VerifyCodeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of VerifyCodeResponse - * @throws IOException if the JSON string is invalid with respect to VerifyCodeResponse - */ + /** + * Create an instance of VerifyCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of VerifyCodeResponse + * @throws IOException if the JSON string is invalid with respect to VerifyCodeResponse + */ public static VerifyCodeResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VerifyCodeResponse.class); } - /** - * Convert an instance of VerifyCodeResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VerifyCodeResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java index 5d049049..18973b20 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java @@ -38,7 +38,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +49,7 @@ /** * VoiceApiError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VoiceApiError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -72,10 +71,10 @@ public VoiceApiError type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @javax.annotation.Nullable public String getType() { return type; @@ -91,10 +90,10 @@ public VoiceApiError description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @javax.annotation.Nullable public String getDescription() { return description; @@ -110,10 +109,10 @@ public VoiceApiError id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @javax.annotation.Nullable public String getId() { return id; @@ -238,12 +237,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VoiceApiError - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VoiceApiError + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VoiceApiError.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -334,22 +333,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VoiceApiError given an JSON string - * - * @param jsonString JSON string - * @return An instance of VoiceApiError - * @throws IOException if the JSON string is invalid with respect to VoiceApiError - */ + /** + * Create an instance of VoiceApiError given an JSON string + * + * @param jsonString JSON string + * @return An instance of VoiceApiError + * @throws IOException if the JSON string is invalid with respect to VoiceApiError + */ public static VoiceApiError fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VoiceApiError.class); } - /** - * Convert an instance of VoiceApiError to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VoiceApiError to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java index 7976d567..e86b3c3e 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java @@ -37,7 +37,6 @@ import com.google.gson.stream.JsonWriter; import java.io.IOException; -import java.lang.reflect.Type; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -49,7 +48,7 @@ /** * VoiceCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VoiceCodeResponse { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -63,10 +62,10 @@ public VoiceCodeResponse callId(String callId) { return this; } - /** + /** * Programmable Voice API Call ID. * @return callId - **/ + */ @javax.annotation.Nullable public String getCallId() { return callId; @@ -174,12 +173,12 @@ private String toIndentedString(Object o) { openapiRequiredFields = new HashSet(); } - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to VoiceCodeResponse - */ + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to VoiceCodeResponse + */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { if (!VoiceCodeResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null @@ -264,22 +263,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } } - /** - * Create an instance of VoiceCodeResponse given an JSON string - * - * @param jsonString JSON string - * @return An instance of VoiceCodeResponse - * @throws IOException if the JSON string is invalid with respect to VoiceCodeResponse - */ + /** + * Create an instance of VoiceCodeResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of VoiceCodeResponse + * @throws IOException if the JSON string is invalid with respect to VoiceCodeResponse + */ public static VoiceCodeResponse fromJson(String jsonString) throws IOException { return JSON.getGson().fromJson(jsonString, VoiceCodeResponse.class); } - /** - * Convert an instance of VoiceCodeResponse to an JSON string - * - * @return JSON string - */ + /** + * Convert an instance of VoiceCodeResponse to an JSON string + * + * @return JSON string + */ public String toJson() { return JSON.getGson().toJson(this); } From 6d8d36e40e1af2442556d31b529221634b8bc525 Mon Sep 17 00:00:00 2001 From: Cameron Koegel <53310569+ckoegel@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:55:03 -0500 Subject: [PATCH 2/3] SWI-6181 Update User Agent Header (#160) * SWI-6181 Update User Agent Header * update wf * update pom * pom again --- .github/workflows/deploy.yml | 20 + .openapi-generator-ignore | 2 +- .openapi-generator/FILES | 1 + README.md | 6 +- build.gradle | 2 +- build.sbt | 2 +- custom_templates/pom.mustache | 533 ++++++++++++++++++ openapi-config.yml | 8 +- pom.xml | 176 +++--- .../java/com/bandwidth/sdk/ApiClient.java | 2 +- .../java/com/bandwidth/sdk/Configuration.java | 2 +- 11 files changed, 645 insertions(+), 109 deletions(-) create mode 100644 custom_templates/pom.mustache diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7818c030..a690f885 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,6 +60,16 @@ jobs: gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Build SDK + uses: Bandwidth/generate-sdk-action@v4.0.0 + with: + openapi-generator-version: 7.9.0 + language: java + additional-properties: --additional-properties=artifactVersion=$RELEASE_VERSION + + - name: Clean SDK + run: mvn clean + - name: Set Maven Project Version run: mvn versions:set -DnewVersion=$RELEASE_VERSION @@ -131,6 +141,16 @@ jobs: - name: Get Maven Project Version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV + - name: Build SDK + uses: Bandwidth/generate-sdk-action@v4.0.0 + with: + openapi-generator-version: 7.9.0 + language: java + additional-properties: --additional-properties=artifactVersion=$RELEASE_VERSION + + - name: Clean SDK + run: mvn clean + - name: Set Maven Project Version run: mvn versions:set -DnewVersion=$RELEASE_VERSION diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index b8192e47..882e2716 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -8,7 +8,7 @@ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: #ApiClient.cs -pom.xml +# pom.xml .idea .gitignore .github/workflows/maven.yml diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 09c43c7e..a00bd3ea 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -111,6 +111,7 @@ gradle/wrapper/gradle-wrapper.jar gradle/wrapper/gradle-wrapper.properties gradlew gradlew.bat +pom.xml settings.gradle src/main/AndroidManifest.xml src/main/java/com/bandwidth/sdk/ApiCallback.java diff --git a/README.md b/README.md index a1254273..f417e672 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add this dependency to your project's POM: com.bandwidth.sdk bandwidth-sdk - 10.1.0 + 1.0.0-dev compile ``` @@ -57,7 +57,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.bandwidth.sdk:bandwidth-sdk:10.1.0" + implementation "com.bandwidth.sdk:bandwidth-sdk:1.0.0-dev" } ``` @@ -71,7 +71,7 @@ mvn clean package Then manually install the following JARs: -* `target/bandwidth-sdk-10.1.0.jar` +* `target/bandwidth-sdk-1.0.0-dev.jar` * `target/lib/*.jar` ## Getting Started diff --git a/build.gradle b/build.gradle index 7e11e0b0..bd34defb 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'com.bandwidth.sdk' -version = '10.1.0' +version = '1.0.0-dev' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 8ce42414..56dc9700 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.bandwidth.sdk", name := "bandwidth-sdk", - version := "10.1.0", + version := "1.0.0-dev", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/custom_templates/pom.mustache b/custom_templates/pom.mustache new file mode 100644 index 00000000..0e344fdf --- /dev/null +++ b/custom_templates/pom.mustache @@ -0,0 +1,533 @@ + + 4.0.0 + {{groupId}} + {{artifactId}} + jar + {{artifactId}} + {{artifactVersion}} + {{artifactUrl}} + {{artifactDescription}} + + https://github.com/Bandwidth/java-sdk + scm:git:git@github.com:Bandwidth/java-sdk.git + scm:git:git@github.com:Bandwidth/java-sdk.git + +{{#parentOverridden}} + + {{{parentGroupId}}} + {{{parentArtifactId}}} + {{{parentVersion}}} + +{{/parentOverridden}} + + + + {{licenseName}} + {{licenseUrl}} + repo + + + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + {{developerName}} + {{developerEmail}} + {{developerOrganization}} + {{developerOrganizationUrl}} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + true + 128m + 512m + + -Xlint:all + -J-Xss4m + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.4.1 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.2 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + 10 + + ${test-classes} + + + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + + + + + maven-dependency-plugin + 3.6.1 + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + + test-jar + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.5.0 + + + add_sources + generate-sources + + add-source + + + + {{{sourceFolder}}} + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.3 + + + attach-javadocs + + jar + + + + + none + + + http.response.details + a + Http Response Details: + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.0 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.7.0 + true + + ossrh + https://oss.sonatype.org/ + true + + + + + com.diffplug.spotless + spotless-maven-plugin + ${spotless.version} + + + + + + + .gitignore + + + + + + true + 4 + + + + + + + + + + 1.8 + + true + + + + + + + + + + + + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.1 + + + sign-artifacts + verify + + sign + + + + + + + + + smoke-tests + + smoke/**/* + + + + unit-tests + + unit/**/* + + + + + + + org.glassfish.jaxb + jaxb-core + ${jaxb.version} + + + org.glassfish.jaxb + jaxb-runtime + ${jaxb.version} + + + org.projectlombok + lombok + 1.18.30 + provided + + + jakarta.xml.bind + jakarta.xml.bind-api + ${jaxb.version} + + + org.hamcrest + hamcrest + 2.2 + + {{#swagger1AnnotationLibrary}} + + io.swagger + swagger-annotations + ${swagger-annotations-version} + + {{/swagger1AnnotationLibrary}} + {{#swagger2AnnotationLibrary}} + + io.swagger.core.v3 + swagger-annotations + ${swagger-annotations-version} + + {{/swagger2AnnotationLibrary}} + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + com.squareup.okhttp3 + okhttp + ${okhttp-version} + + + com.squareup.okhttp3 + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + {{#hasOAuthMethods}} + + org.apache.oltu.oauth2 + org.apache.oltu.oauth2.client + 1.0.2 + + {{/hasOAuthMethods}} + + org.apache.commons + commons-lang3 + ${commons-lang3-version} + + + commons-io + commons-io + ${version.commons-io} + + {{#joda}} + + joda-time + joda-time + ${jodatime-version} + + {{/joda}} + {{#dynamicOperations}} + + io.swagger.parser.v3 + swagger-parser-v3 + 2.0.30 + + {{/dynamicOperations}} + {{#useBeanValidation}} + + + jakarta.validation + jakarta.validation-api + ${beanvalidation-version} + provided + + {{/useBeanValidation}} + {{#performBeanValidation}} + + + org.hibernate + hibernate-validator + 5.4.3.Final + + + jakarta.el + jakarta.el-api + ${jakarta.el-version} + + {{/performBeanValidation}} + {{#parcelableModel}} + + + com.google.android + android + 4.1.1.4 + provided + + {{/parcelableModel}} + + jakarta.annotation + jakarta.annotation-api + ${jakarta-annotation-version} + provided + + {{#openApiNullable}} + + org.openapitools + jackson-databind-nullable + ${jackson-databind-nullable-version} + + {{/openApiNullable}} + {{#withAWSV4Signature}} + + software.amazon.awssdk + auth + 2.20.157 + + {{/withAWSV4Signature}} + + jakarta.ws.rs + jakarta.ws.rs-api + ${jakarta.ws.rs-api-version} + + + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + test + + + org.junit.platform + junit-platform-runner + ${junit-platform-runner.version} + test + + + org.mockito + mockito-core + ${mockito-core-version} + test + + + + 1.8 + ${java.version} + ${java.version} + 1.9.0 + {{#swagger1AnnotationLibrary}} + 1.6.6 + {{/swagger1AnnotationLibrary}} + {{#swagger2AnnotationLibrary}} + 2.2.15 + {{/swagger2AnnotationLibrary}} + 4.12.0 + 2.10.1 + 2.11.0 + 3.14.0 + 4.0.0 + {{#openApiNullable}} + 0.2.6 + {{/openApiNullable}} + {{#joda}} + 2.12.0 + {{/joda}} + {{#useJakartaEe}} + 2.1.1 + 3.0.2 + {{/useJakartaEe}} + {{^useJakartaEe}} + 1.3.5 + 2.0.2 + {{/useJakartaEe}} + {{#performBeanValidation}} + 3.0.3 + {{/performBeanValidation}} + 5.10.3 + 1.10.0 + 3.12.4 + 2.1.6 + 1.1.1 + UTF-8 + 2.43.0 + + diff --git a/openapi-config.yml b/openapi-config.yml index 7ae18384..d488e4b3 100644 --- a/openapi-config.yml +++ b/openapi-config.yml @@ -1,9 +1,11 @@ artifactId: bandwidth-sdk -artifactVersion: 10.1.0 +artifactVersion: 1.0.0-dev artifactDescription: The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs artifactUrl: https://github.com/Bandwidth/java-sdk -developerEmail: dx@bandwidth.com -developerOrganization: Bandwidth +developerName: Bandwidth Support +developerEmail: info@bandwidth.com +developerOrganization: Bandwidth Inc +developerOrganizationUrl: http://bandwidth.com disallowAdditionalPropertiesIfNotPresent: false hideGenerationTimestamp: true groupId: com.bandwidth.sdk diff --git a/pom.xml b/pom.xml index 11000527..464dad5a 100644 --- a/pom.xml +++ b/pom.xml @@ -1,14 +1,13 @@ - + 4.0.0 com.bandwidth.sdk bandwidth-sdk jar bandwidth-sdk - 10.1.0 + 1.0.0-dev https://github.com/Bandwidth/java-sdk - The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs + The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs https://github.com/Bandwidth/java-sdk scm:git:git@github.com:Bandwidth/java-sdk.git @@ -36,12 +35,10 @@ - support Bandwidth Support info@bandwidth.com - Bandwidth, Inc. + Bandwidth Inc http://bandwidth.com - -5 @@ -50,53 +47,48 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.8.1 true 128m 512m -Xlint:all - -J-Xss4m + -J-Xss4m - true - ${java.version} - ${java.version} - ${java.version} org.apache.maven.plugins maven-enforcer-plugin - 3.1.0 + 3.4.1 enforce-maven enforce + + + + 2.2.0 + + + - - - - 3.8.6 - - - org.apache.maven.plugins maven-surefire-plugin 2.22.2 - + loggerPath conf/log4j.properties - + -Xms512m -Xmx1500m methods 10 @@ -105,8 +97,7 @@ - + org.junit.jupiter junit-jupiter-engine @@ -116,6 +107,7 @@ maven-dependency-plugin + 3.6.1 package @@ -132,7 +124,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.2.0 + 3.3.0 @@ -146,7 +138,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.5.0 add_sources @@ -177,7 +169,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.6.3 attach-javadocs @@ -200,7 +192,7 @@ org.apache.maven.plugins maven-source-plugin - 3.2.0 + 3.3.0 attach-sources @@ -255,15 +247,14 @@ - true - 4 + true + 4 - + @@ -281,6 +272,42 @@ + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.1 + + + sign-artifacts + verify + + sign + + + + + + + + + smoke-tests + + smoke/**/* + + + + unit-tests + + unit/**/* + + + + org.glassfish.jaxb @@ -308,11 +335,6 @@ hamcrest 2.2 - - io.swagger - swagger-annotations - ${swagger-core-version} - com.google.code.findbugs @@ -329,11 +351,6 @@ logging-interceptor ${okhttp-version} - - com.sun.jersey - jersey-client - 1.19.4 - com.google.code.gson gson @@ -366,14 +383,9 @@ ${jackson-databind-nullable-version} - javax.ws.rs - jsr311-api - ${jsr311-api-version} - - - javax.ws.rs - javax.ws.rs-api - ${javax.ws.rs-api-version} + jakarta.ws.rs + jakarta.ws.rs-api + ${jakarta.ws.rs-api-version} @@ -396,56 +408,24 @@ - - 11 + 1.8 ${java.version} ${java.version} - - 1.8.5 - 1.6.5 + 1.9.0 4.12.0 - 2.9.0 + 2.10.1 2.11.0 - - 3.12.0 + 3.14.0 4.0.0 - 0.2.3 - - 1.3.5 - 5.9.1 - 1.6.2 - - 3.12.4 - 2.1.1 + 0.2.6 + 1.3.5 + 2.0.2 + 5.10.3 + 1.10.0 + 3.12.4 + 2.1.6 1.1.1 - - UTF-8 - 2.21.0 + UTF-8 + 2.43.0 - - - - smoke-tests - - smoke/**/* - - - - unit-tests - - unit/**/* - - - - - - - - org.projectlombok - lombok - 1.18.30 - provided - - - diff --git a/src/main/java/com/bandwidth/sdk/ApiClient.java b/src/main/java/com/bandwidth/sdk/ApiClient.java index 5307b00f..c8ac2feb 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -141,7 +141,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/10.1.0/java"); + setUserAgent("OpenAPI-Generator/1.0.0-dev/java"); authentications = new HashMap(); } diff --git a/src/main/java/com/bandwidth/sdk/Configuration.java b/src/main/java/com/bandwidth/sdk/Configuration.java index 08715453..5aa614dc 100644 --- a/src/main/java/com/bandwidth/sdk/Configuration.java +++ b/src/main/java/com/bandwidth/sdk/Configuration.java @@ -15,7 +15,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Configuration { - public static final String VERSION = "10.1.0"; + public static final String VERSION = "1.0.0-dev"; private static ApiClient defaultApiClient = new ApiClient(); From 5d0b4301b577eb360640c1778667f9db2c76f877 Mon Sep 17 00:00:00 2001 From: Cameron Koegel <53310569+ckoegel@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:02:03 -0500 Subject: [PATCH 3/3] SWI-6690 Regenerate with v7.10.0 (#161) --- .openapi-generator/VERSION | 2 +- README.md | 2 +- build.gradle | 2 +- build.sbt | 2 +- custom_templates/api.mustache | 597 ------------------ openapitools.json | 2 +- .../java/com/bandwidth/sdk/ApiClient.java | 3 +- .../java/com/bandwidth/sdk/ApiException.java | 2 +- .../java/com/bandwidth/sdk/Configuration.java | 2 +- src/main/java/com/bandwidth/sdk/Pair.java | 2 +- .../bandwidth/sdk/ServerConfiguration.java | 2 +- .../com/bandwidth/sdk/ServerVariable.java | 2 +- .../java/com/bandwidth/sdk/StringUtil.java | 2 +- .../java/com/bandwidth/sdk/api/CallsApi.java | 60 +- .../com/bandwidth/sdk/api/ConferencesApi.java | 108 ++-- .../java/com/bandwidth/sdk/api/MediaApi.java | 48 +- .../com/bandwidth/sdk/api/MessagesApi.java | 24 +- .../java/com/bandwidth/sdk/api/MfaApi.java | 36 +- .../sdk/api/PhoneNumberLookupApi.java | 24 +- .../com/bandwidth/sdk/api/RecordingsApi.java | 120 ++-- .../com/bandwidth/sdk/api/StatisticsApi.java | 12 +- .../bandwidth/sdk/api/TranscriptionsApi.java | 36 +- .../com/bandwidth/sdk/auth/ApiKeyAuth.java | 2 +- .../bandwidth/sdk/auth/HttpBearerAuth.java | 2 +- .../sdk/model/AbstractOpenApiSchema.java | 2 +- .../sdk/model/AccountStatistics.java | 12 +- .../bandwidth/sdk/model/AnswerCallback.java | 72 ++- .../sdk/model/BridgeCompleteCallback.java | 82 ++- .../model/BridgeTargetCompleteCallback.java | 67 +- .../sdk/model/CallRecordingMetadata.java | 97 +-- .../com/bandwidth/sdk/model/CallState.java | 92 +-- .../sdk/model/CallTranscription.java | 22 +- .../sdk/model/CallTranscriptionMetadata.java | 17 +- .../sdk/model/CallTranscriptionResponse.java | 22 +- .../com/bandwidth/sdk/model/CodeRequest.java | 32 +- .../com/bandwidth/sdk/model/Conference.java | 42 +- .../model/ConferenceCompletedCallback.java | 27 +- .../sdk/model/ConferenceCreatedCallback.java | 27 +- .../bandwidth/sdk/model/ConferenceMember.java | 32 +- .../model/ConferenceMemberExitCallback.java | 42 +- .../model/ConferenceMemberJoinCallback.java | 42 +- .../ConferenceRecordingAvailableCallback.java | 72 ++- .../model/ConferenceRecordingMetadata.java | 62 +- .../sdk/model/ConferenceRedirectCallback.java | 27 +- .../com/bandwidth/sdk/model/CreateCall.java | 107 ++-- .../sdk/model/CreateCallResponse.java | 107 ++-- .../sdk/model/CreateLookupResponse.java | 12 +- .../sdk/model/CreateMessageRequestError.java | 17 +- .../bandwidth/sdk/model/DeferredResult.java | 12 +- .../sdk/model/DisconnectCallback.java | 87 ++- .../com/bandwidth/sdk/model/Diversion.java | 37 +- .../com/bandwidth/sdk/model/DtmfCallback.java | 87 ++- .../com/bandwidth/sdk/model/FieldError.java | 12 +- .../bandwidth/sdk/model/GatherCallback.java | 92 +-- .../sdk/model/InboundMessageCallback.java | 27 +- .../model/InboundMessageCallbackMessage.java | 62 +- .../bandwidth/sdk/model/InitiateCallback.java | 62 +- .../bandwidth/sdk/model/ListMessageItem.java | 87 ++- .../bandwidth/sdk/model/LookupRequest.java | 7 +- .../com/bandwidth/sdk/model/LookupResult.java | 47 +- .../com/bandwidth/sdk/model/LookupStatus.java | 22 +- .../MachineDetectionCompleteCallback.java | 72 ++- .../model/MachineDetectionConfiguration.java | 77 ++- .../sdk/model/MachineDetectionResult.java | 12 +- .../java/com/bandwidth/sdk/model/Media.java | 17 +- .../java/com/bandwidth/sdk/model/Message.java | 67 +- .../sdk/model/MessageDeliveredCallback.java | 27 +- .../MessageDeliveredCallbackMessage.java | 62 +- .../sdk/model/MessageFailedCallback.java | 32 +- .../model/MessageFailedCallbackMessage.java | 62 +- .../bandwidth/sdk/model/MessageRequest.java | 42 +- .../sdk/model/MessageSendingCallback.java | 27 +- .../model/MessageSendingCallbackMessage.java | 62 +- .../com/bandwidth/sdk/model/MessagesList.java | 17 +- .../sdk/model/MessagingCodeResponse.java | 7 +- .../sdk/model/MessagingRequestError.java | 12 +- .../sdk/model/MfaForbiddenRequestError.java | 7 +- .../bandwidth/sdk/model/MfaRequestError.java | 12 +- .../model/MfaUnauthorizedRequestError.java | 7 +- .../com/bandwidth/sdk/model/PageInfo.java | 22 +- .../sdk/model/RecordingAvailableCallback.java | 112 ++-- .../sdk/model/RecordingCompleteCallback.java | 112 ++-- .../model/RecordingTranscriptionMetadata.java | 22 +- .../sdk/model/RecordingTranscriptions.java | 7 +- .../bandwidth/sdk/model/RedirectCallback.java | 82 ++- .../com/bandwidth/sdk/model/StirShaken.java | 17 +- .../java/com/bandwidth/sdk/model/Tag.java | 12 +- .../sdk/model/TnLookupRequestError.java | 7 +- .../sdk/model/TranscribeRecording.java | 37 +- .../bandwidth/sdk/model/Transcription.java | 12 +- .../model/TranscriptionAvailableCallback.java | 107 ++-- .../sdk/model/TransferAnswerCallback.java | 77 ++- .../sdk/model/TransferCompleteCallback.java | 92 +-- .../sdk/model/TransferDisconnectCallback.java | 102 +-- .../com/bandwidth/sdk/model/UpdateCall.java | 52 +- .../sdk/model/UpdateCallRecording.java | 7 +- .../bandwidth/sdk/model/UpdateConference.java | 47 +- .../sdk/model/UpdateConferenceMember.java | 17 +- .../sdk/model/VerifyCodeRequest.java | 22 +- .../sdk/model/VerifyCodeResponse.java | 7 +- .../bandwidth/sdk/model/VoiceApiError.java | 17 +- .../sdk/model/VoiceCodeResponse.java | 7 +- 102 files changed, 2346 insertions(+), 2139 deletions(-) delete mode 100644 custom_templates/api.mustache diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 4bc5d618..758bb9c8 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.9.0 +7.10.0 diff --git a/README.md b/README.md index f417e672..7f29d440 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Bandwidth - API version: 1.0.0 - - Generator version: 7.9.0 + - Generator version: 7.10.0 Bandwidth's Communication APIs diff --git a/build.gradle b/build.gradle index bd34defb..4873c2ba 100644 --- a/build.gradle +++ b/build.gradle @@ -114,7 +114,7 @@ dependencies { implementation 'io.gsonfire:gson-fire:1.9.0' implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' implementation 'org.openapitools:jackson-databind-nullable:0.2.6' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.mockito:mockito-core:3.12.4' diff --git a/build.sbt b/build.sbt index 56dc9700..374d4ba7 100644 --- a/build.sbt +++ b/build.sbt @@ -13,7 +13,7 @@ lazy val root = (project in file(".")). "com.squareup.okhttp3" % "okhttp" % "4.12.0", "com.squareup.okhttp3" % "logging-interceptor" % "4.12.0", "com.google.code.gson" % "gson" % "2.9.1", - "org.apache.commons" % "commons-lang3" % "3.12.0", + "org.apache.commons" % "commons-lang3" % "3.17.0", "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6", "org.openapitools" % "jackson-databind-nullable" % "0.2.6", "io.gsonfire" % "gson-fire" % "1.9.0" % "compile", diff --git a/custom_templates/api.mustache b/custom_templates/api.mustache deleted file mode 100644 index da2d1c2c..00000000 --- a/custom_templates/api.mustache +++ /dev/null @@ -1,597 +0,0 @@ -{{>licenseInfo}} - -package {{package}}; - -import {{invokerPackage}}.ApiCallback; -import {{invokerPackage}}.ApiClient; -import {{invokerPackage}}.ApiException; -{{#dynamicOperations}} -import {{invokerPackage}}.ApiOperation; -{{/dynamicOperations}} -import {{invokerPackage}}.ApiResponse; -import {{invokerPackage}}.Configuration; -import {{invokerPackage}}.Pair; -import {{invokerPackage}}.ProgressRequestBody; -import {{invokerPackage}}.ProgressResponseBody; -{{#performBeanValidation}} -import {{invokerPackage}}.BeanValidationException; -{{/performBeanValidation}} - -import com.google.gson.reflect.TypeToken; -{{#dynamicOperations}} -import io.swagger.v3.oas.models.Operation; -import io.swagger.v3.oas.models.parameters.Parameter; -{{/dynamicOperations}} - -import java.io.IOException; - -{{#useBeanValidation}} -import {{javaxPackage}}.validation.constraints.*; -import {{javaxPackage}}.validation.Valid; -{{/useBeanValidation}} -{{#performBeanValidation}} -import {{javaxPackage}}.validation.ConstraintViolation; -import {{javaxPackage}}.validation.Validation; -import {{javaxPackage}}.validation.ValidatorFactory; -import {{javaxPackage}}.validation.executable.ExecutableValidator; -import java.util.Set; -import java.lang.reflect.Method; -import java.lang.reflect.Type; -{{/performBeanValidation}} - -{{#imports}}import {{import}}; -{{/imports}} - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -{{#supportStreaming}} -import java.io.InputStream; -{{/supportStreaming}} - -{{#operations}} -public class {{classname}} { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public {{classname}}() { - this(Configuration.getDefaultApiClient()); - } - - public {{classname}}(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - {{#operation}} - {{^vendorExtensions.x-group-parameters}}/** - * Build call for {{operationId}}{{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} - * @param _callback Callback for upload/download progress - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Call({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { {{#servers}}"{{{url}}}"{{^-last}}, {{/-last}}{{/servers}} }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; - - // create path and map variables - {{^dynamicOperations}} - String localVarPath = "{{{path}}}"{{#pathParams}} - .replace("{" + "{{baseName}}" + "}", localVarApiClient.escapeString({{#collectionFormat}}localVarApiClient.collectionPathParameterToString("{{{collectionFormat}}}", {{{paramName}}}){{/collectionFormat}}{{^collectionFormat}}{{{paramName}}}.toString(){{/collectionFormat}})){{/pathParams}}; - {{/dynamicOperations}} - {{#dynamicOperations}} - ApiOperation apiOperation = localVarApiClient.getOperationLookupMap().get("{{{operationId}}}"); - if (apiOperation == null) { - throw new ApiException("Operation not found in OAS"); - } - Operation operation = apiOperation.getOperation(); - String localVarPath = apiOperation.getPath(); - Map paramMap = new HashMap<>(); - {{#allParams}} - {{^isFormParam}} - {{^isBodyParam}} - paramMap.put("{{baseName}}", {{paramName}}); - {{/isBodyParam}} - {{/isFormParam}} - {{/allParams}} - {{/dynamicOperations}} - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - {{#formParams}} - if ({{paramName}} != null) { - localVarFormParams.put("{{baseName}}", {{paramName}}); - } - - {{/formParams}} - {{^dynamicOperations}} - {{#queryParams}} - if ({{paramName}} != null) { - {{#isFreeFormObject}}localVarQueryParams.addAll(localVarApiClient.freeFormParameterToPairs({{paramName}}));{{/isFreeFormObject}}{{^isFreeFormObject}}{{#collectionFormat}}localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("{{{.}}}", {{/collectionFormat}}{{^collectionFormat}}localVarQueryParams.addAll(localVarApiClient.parameterToPair({{/collectionFormat}}"{{baseName}}", {{paramName}}));{{/isFreeFormObject}} - } - - {{/queryParams}} - {{#constantParams}} - {{#isQueryParam}} - // Set client side default value of Query Param "{{baseName}}". - localVarCollectionQueryParams.add(new Pair("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}})); - - {{/isQueryParam}} - {{/constantParams}} - {{#constantParams}} - {{#isHeaderParam}} - // Set client side default value of Header Param "{{baseName}}". - localVarHeaderParams.put("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}}); - - {{/isHeaderParam}} - {{/constantParams}} - {{#cookieParams}} - if ({{paramName}} != null) { - localVarCookieParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); - } - - {{/cookieParams}} - {{#constantParams}} - {{#isCookieParam}} - // Set client side default value of Cookie Param "{{baseName}}". - localVarCookieParams.put("{{baseName}}", {{#_enum}}"{{{.}}}"{{/_enum}}); - - {{/isCookieParam}} - {{/constantParams}} - {{/dynamicOperations}} - {{#dynamicOperations}} - localVarPath = localVarApiClient.fillParametersFromOperation(operation, paramMap, localVarPath, localVarQueryParams, localVarCollectionQueryParams, localVarHeaderParams, localVarCookieParams); - - {{/dynamicOperations}} - final String[] localVarAccepts = { - {{#produces}} - "{{{mediaType}}}"{{^-last}},{{/-last}} - {{/produces}} - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - {{#consumes}} - "{{{mediaType}}}"{{^-last}},{{/-last}} - {{/consumes}} - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - {{#headerParams}} - - if ({{paramName}} != null) { - localVarHeaderParams.put("{{baseName}}", localVarApiClient.parameterToString({{paramName}})); - } - - {{/headerParams}} - - String[] localVarAuthNames = new String[] { {{#withAWSV4Signature}}"AWS4Auth"{{/withAWSV4Signature}}{{#authMethods}}{{#-first}}{{#withAWSV4Signature}}, {{/withAWSV4Signature}}{{/-first}}"{{name}}"{{^-last}}, {{/-last}}{{/authMethods}} }; - return localVarApiClient.buildCall(basePath, localVarPath, {{^dynamicOperations}}"{{httpMethod}}"{{/dynamicOperations}}{{#dynamicOperations}}apiOperation.getMethod(){{/dynamicOperations}}, localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - @SuppressWarnings("rawtypes") - private okhttp3.Call {{operationId}}ValidateBeforeCall({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback _callback) throws ApiException { - {{^performBeanValidation}} - {{#allParams}} - {{#required}} - // verify the required parameter '{{paramName}}' is set - if ({{paramName}} == null) { - throw new ApiException("Missing the required parameter '{{paramName}}' when calling {{operationId}}(Async)"); - } - - {{/required}} - {{/allParams}} - return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); - - {{/performBeanValidation}} - {{#performBeanValidation}} - try { - ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); - ExecutableValidator executableValidator = factory.getValidator().forExecutables(); - - Object[] parameterValues = { {{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}} }; - Method method = this.getClass().getMethod("{{operationId}}WithHttpInfo"{{#allParams}}, {{#isArray}}java.util.List{{/isArray}}{{#isMap}}java.util.Map{{/isMap}}{{^isArray}}{{^isMap}}{{{dataType}}}{{/isMap}}{{/isArray}}.class{{/allParams}}); - Set> violations = executableValidator.validateParameters(this, method, - parameterValues); - - if (violations.size() == 0) { - return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); - } else { - throw new BeanValidationException((Set) violations); - } - } catch (NoSuchMethodException e) { - e.printStackTrace(); - throw new ApiException(e.getMessage()); - } catch (SecurityException e) { - e.printStackTrace(); - throw new ApiException(e.getMessage()); - } - {{/performBeanValidation}} - } - - {{^vendorExtensions.x-group-parameters}} - /** - * {{summary}} - * {{notes}}{{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}}{{#returnType}} - * @return {{.}}{{/returnType}} - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - {{#vendorExtensions.x-streaming}} - public {{#returnType}}InputStream {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { - {{#returnType}}InputStream localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} - return localVarResp;{{/returnType}} - } - {{/vendorExtensions.x-streaming}} - {{^vendorExtensions.x-streaming}} - public {{#returnType}}{{{.}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { - {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} - return localVarResp.getData();{{/returnType}} - } - {{/vendorExtensions.x-streaming}} - {{/vendorExtensions.x-group-parameters}} - - {{^vendorExtensions.x-group-parameters}}/** - * {{summary}} - * {{notes}}{{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} - * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-streaming}} InputStream {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { - okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); - {{#returnType}} - {{#errorObjectType}} - try { - Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); - return localVarApiClient.executeStream(localVarCall, localVarReturnType); - } catch (ApiException e) { - e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken<{{{errorObjectType}}}>(){}.getType())); - throw e; - } - {{/errorObjectType}} - {{^errorObjectType}} - Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); - return localVarApiClient.executeStream(localVarCall, localVarReturnType); - {{/errorObjectType}} - {{/returnType}} - } - {{/vendorExtensions.x-streaming}}{{^vendorExtensions.x-streaming}} ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#useBeanValidation}}{{>beanValidationQueryParams}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws ApiException { - okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}null); - {{^returnType}} - return localVarApiClient.execute(localVarCall); - {{/returnType}} - {{#returnType}} - {{#errorObjectType}} - try { - Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } catch (ApiException e) { - e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken<{{{errorObjectType}}}>(){}.getType())); - throw e; - } - {{/errorObjectType}} - {{^errorObjectType}} - Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - {{/errorObjectType}} - {{/returnType}} - } - {{/vendorExtensions.x-streaming}} - - {{^vendorExtensions.x-group-parameters}}/** - * {{summary}} (asynchronously) - * {{notes}}{{#allParams}} - * @param {{paramName}} {{description}}{{#required}} (required){{/required}}{{^required}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}){{/required}}{{/allParams}} - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - public{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}private{{/vendorExtensions.x-group-parameters}} okhttp3.Call {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { - - okhttp3.Call localVarCall = {{operationId}}ValidateBeforeCall({{#allParams}}{{paramName}}, {{/allParams}}_callback); - {{#returnType}}Type localVarReturnType = new TypeToken<{{{returnType}}}>(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);{{/returnType}}{{^returnType}}localVarApiClient.executeAsync(localVarCall, _callback);{{/returnType}} - return localVarCall; - } - {{#vendorExtensions.x-group-parameters}} - - public class API{{operationId}}Request { - {{#requiredParams}} - private final {{{dataType}}} {{paramName}}; - {{/requiredParams}} - {{#optionalParams}} - private {{{dataType}}} {{paramName}}; - {{/optionalParams}} - - private API{{operationId}}Request({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { - {{#requiredParams}} - this.{{paramName}} = {{paramName}}; - {{/requiredParams}} - } - - {{#optionalParams}} - /** - * Set {{paramName}} - * @param {{paramName}} {{description}} (optional{{^isContainer}}{{#defaultValue}}, default to {{.}}{{/defaultValue}}{{/isContainer}}) - * @return API{{operationId}}Request - */ - public API{{operationId}}Request {{paramName}}({{{dataType}}} {{paramName}}) { - this.{{paramName}} = {{paramName}}; - return this; - } - - {{/optionalParams}} - /** - * Build call for {{operationId}} - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return {{operationId}}Call({{#allParams}}{{paramName}}, {{/allParams}}_callback); - } - - /** - * Execute {{operationId}} request{{#returnType}} - * @return {{.}}{{/returnType}} - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - {{^vendorExtensions.x-streaming}} - public {{{returnType}}}{{^returnType}}void{{/returnType}} execute() throws ApiException { - {{#returnType}}ApiResponse<{{{.}}}> localVarResp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{#returnType}} - return localVarResp.getData();{{/returnType}} - } - {{/vendorExtensions.x-streaming}} - {{#vendorExtensions.x-streaming}} - public InputStream execute() throws ApiException { - return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); - } - {{/vendorExtensions.x-streaming}} - - /** - * Execute {{operationId}} request with HTTP info returned - * @return ApiResponse<{{returnType}}{{^returnType}}Void{{/returnType}}> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - {{^vendorExtensions.x-streaming}} - public ApiResponse<{{{returnType}}}{{^returnType}}Void{{/returnType}}> executeWithHttpInfo() throws ApiException { - return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); - } - {{/vendorExtensions.x-streaming}} - {{#vendorExtensions.x-streaming}} - public InputStream executeWithHttpInfo() throws ApiException { - return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); - } - {{/vendorExtensions.x-streaming}} - - /** - * Execute {{operationId}} request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - public okhttp3.Call executeAsync(final ApiCallback<{{{returnType}}}{{^returnType}}Void{{/returnType}}> _callback) throws ApiException { - return {{operationId}}Async({{#allParams}}{{paramName}}, {{/allParams}}_callback); - } - } - - /** - * {{summary}} - * {{notes}}{{#requiredParams}} - * @param {{paramName}} {{description}} (required){{/requiredParams}} - * @return API{{operationId}}Request - {{#responses.0}} - * @http.response.details - - - {{#responses}} - - {{/responses}} -
Status Code Description Response Headers
{{code}} {{message}} {{#headers}} * {{baseName}} - {{description}}
{{/headers}}{{^headers.0}} - {{/headers.0}}
- {{/responses.0}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} - {{#externalDocs}} - * {{description}} - * @see {{summary}} Documentation - {{/externalDocs}} - */ - {{#isDeprecated}} - @Deprecated - {{/isDeprecated}} - public API{{operationId}}Request {{operationId}}({{#requiredParams}}{{{dataType}}} {{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}) { - return new API{{operationId}}Request({{#requiredParams}}{{paramName}}{{^-last}}, {{/-last}}{{/requiredParams}}); - } - {{/vendorExtensions.x-group-parameters}} - {{/operation}} -} -{{/operations}} diff --git a/openapitools.json b/openapitools.json index f80faaa6..f8d07ce1 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.9.0" + "version": "7.10.0" } } diff --git a/src/main/java/com/bandwidth/sdk/ApiClient.java b/src/main/java/com/bandwidth/sdk/ApiClient.java index c8ac2feb..2fcd6ffb 100644 --- a/src/main/java/com/bandwidth/sdk/ApiClient.java +++ b/src/main/java/com/bandwidth/sdk/ApiClient.java @@ -735,7 +735,7 @@ public List parameterToPairs(String collectionFormat, String name, Collect return params; } - /** + /** * Formats the specified free-form query parameters to a list of {@code Pair} objects. * * @param value The free-form query parameters. @@ -749,6 +749,7 @@ public List freeFormParameterToPairs(Object value) { return params; } + @SuppressWarnings("unchecked") final Map valuesMap = (Map) value; for (Map.Entry entry : valuesMap.entrySet()) { diff --git a/src/main/java/com/bandwidth/sdk/ApiException.java b/src/main/java/com/bandwidth/sdk/ApiException.java index bbd45785..1bb97746 100644 --- a/src/main/java/com/bandwidth/sdk/ApiException.java +++ b/src/main/java/com/bandwidth/sdk/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/com/bandwidth/sdk/Configuration.java b/src/main/java/com/bandwidth/sdk/Configuration.java index 5aa614dc..c84c9cef 100644 --- a/src/main/java/com/bandwidth/sdk/Configuration.java +++ b/src/main/java/com/bandwidth/sdk/Configuration.java @@ -13,7 +13,7 @@ package com.bandwidth.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Configuration { public static final String VERSION = "1.0.0-dev"; diff --git a/src/main/java/com/bandwidth/sdk/Pair.java b/src/main/java/com/bandwidth/sdk/Pair.java index 161813c1..a04697ce 100644 --- a/src/main/java/com/bandwidth/sdk/Pair.java +++ b/src/main/java/com/bandwidth/sdk/Pair.java @@ -13,7 +13,7 @@ package com.bandwidth.sdk; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java index 756f34a3..c74fbd03 100644 --- a/src/main/java/com/bandwidth/sdk/ServerConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/ServerConfiguration.java @@ -18,7 +18,7 @@ /** * Representing a Server configuration. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/com/bandwidth/sdk/ServerVariable.java b/src/main/java/com/bandwidth/sdk/ServerVariable.java index 9786d338..beaab482 100644 --- a/src/main/java/com/bandwidth/sdk/ServerVariable.java +++ b/src/main/java/com/bandwidth/sdk/ServerVariable.java @@ -18,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/com/bandwidth/sdk/StringUtil.java b/src/main/java/com/bandwidth/sdk/StringUtil.java index 6169441b..6ef9eb8c 100644 --- a/src/main/java/com/bandwidth/sdk/StringUtil.java +++ b/src/main/java/com/bandwidth/sdk/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/bandwidth/sdk/api/CallsApi.java b/src/main/java/com/bandwidth/sdk/api/CallsApi.java index 0310cdf7..c80844d8 100644 --- a/src/main/java/com/bandwidth/sdk/api/CallsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/CallsApi.java @@ -84,7 +84,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -167,7 +168,8 @@ private okhttp3.Call createCallValidateBeforeCall(String accountId, CreateCall c * @return CreateCallResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
+
+ @@ -193,7 +195,8 @@ public CreateCallResponse createCall(String accountId, CreateCall createCall) th * @return ApiResponse<CreateCallResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
+
+ @@ -221,7 +224,8 @@ public ApiResponse createCallWithHttpInfo(String accountId, * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
+
+ @@ -249,7 +253,8 @@ public okhttp3.Call createCallAsync(String accountId, CreateCall createCall, fin * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
201 Created * Location - The URL for further interactions with this call
400 Bad Request -
+
+ @@ -332,7 +337,8 @@ private okhttp3.Call getCallStateValidateBeforeCall(String accountId, String cal * @return CallState * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -358,7 +364,8 @@ public CallState getCallState(String accountId, String callId) throws ApiExcepti * @return ApiResponse<CallState> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -386,7 +393,8 @@ public ApiResponse getCallStateWithHttpInfo(String accountId, String * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -420,7 +428,8 @@ public okhttp3.Call getCallStateAsync(String accountId, String callId, final Api * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -531,7 +540,8 @@ private okhttp3.Call listCallsValidateBeforeCall(String accountId, String to, St * @return List<CallState> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -563,7 +573,8 @@ public List listCalls(String accountId, String to, String from, Strin * @return ApiResponse<List<CallState>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -597,7 +608,8 @@ public ApiResponse> listCallsWithHttpInfo(String accountId, Stri * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -626,7 +638,8 @@ public okhttp3.Call listCallsAsync(String accountId, String to, String from, Str * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -716,7 +729,8 @@ private okhttp3.Call updateCallValidateBeforeCall(String accountId, String callI * @param updateCall JSON object containing information to redirect an existing call to a new BXML document (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -743,7 +757,8 @@ public void updateCall(String accountId, String callId, UpdateCall updateCall) t * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -772,7 +787,8 @@ public ApiResponse updateCallWithHttpInfo(String accountId, String callId, * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -801,7 +817,8 @@ public okhttp3.Call updateCallAsync(String accountId, String callId, UpdateCall * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -891,7 +908,8 @@ private okhttp3.Call updateCallBxmlValidateBeforeCall(String accountId, String c * @param body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Call BXML was successfully replaced. -
400 Bad Request -
+
+ @@ -918,7 +936,8 @@ public void updateCallBxml(String accountId, String callId, String body) throws * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Call BXML was successfully replaced. -
400 Bad Request -
+
+ @@ -947,7 +966,8 @@ public ApiResponse updateCallBxmlWithHttpInfo(String accountId, String cal * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Call BXML was successfully replaced. -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java b/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java index 650e00e5..aaf24a61 100644 --- a/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java +++ b/src/main/java/com/bandwidth/sdk/api/ConferencesApi.java @@ -87,7 +87,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Call BXML was successfully replaced. -
400 Bad Request -
+
+ @@ -179,7 +180,8 @@ private okhttp3.Call downloadConferenceRecordingValidateBeforeCall(String accoun * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -206,7 +208,8 @@ public File downloadConferenceRecording(String accountId, String conferenceId, S * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -235,7 +238,8 @@ public ApiResponse downloadConferenceRecordingWithHttpInfo(String accountI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -263,7 +267,8 @@ public okhttp3.Call downloadConferenceRecordingAsync(String accountId, String co * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -346,7 +351,8 @@ private okhttp3.Call getConferenceValidateBeforeCall(String accountId, String co * @return Conference * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -372,7 +378,8 @@ public Conference getConference(String accountId, String conferenceId) throws Ap * @return ApiResponse<Conference> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -400,7 +407,8 @@ public ApiResponse getConferenceWithHttpInfo(String accountId, Strin * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -429,7 +437,8 @@ public okhttp3.Call getConferenceAsync(String accountId, String conferenceId, fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -519,7 +528,8 @@ private okhttp3.Call getConferenceMemberValidateBeforeCall(String accountId, Str * @return ConferenceMember * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -546,7 +556,8 @@ public ConferenceMember getConferenceMember(String accountId, String conferenceI * @return ApiResponse<ConferenceMember> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -575,7 +586,8 @@ public ApiResponse getConferenceMemberWithHttpInfo(String acco * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -604,7 +616,8 @@ public okhttp3.Call getConferenceMemberAsync(String accountId, String conference * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -694,7 +707,8 @@ private okhttp3.Call getConferenceRecordingValidateBeforeCall(String accountId, * @return ConferenceRecordingMetadata * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -721,7 +735,8 @@ public ConferenceRecordingMetadata getConferenceRecording(String accountId, Stri * @return ApiResponse<ConferenceRecordingMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -750,7 +765,8 @@ public ApiResponse getConferenceRecordingWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -778,7 +794,8 @@ public okhttp3.Call getConferenceRecordingAsync(String accountId, String confere * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -861,7 +878,8 @@ private okhttp3.Call listConferenceRecordingsValidateBeforeCall(String accountId * @return List<ConferenceRecordingMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -887,7 +905,8 @@ public List listConferenceRecordings(String account * @return ApiResponse<List<ConferenceRecordingMetadata>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -915,7 +934,8 @@ public ApiResponse> listConferenceRecordingsWi * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -947,7 +967,8 @@ public okhttp3.Call listConferenceRecordingsAsync(String accountId, String confe * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1048,7 +1069,8 @@ private okhttp3.Call listConferencesValidateBeforeCall(String accountId, String * @return List<Conference> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1078,7 +1100,8 @@ public List listConferences(String accountId, String name, String mi * @return ApiResponse<List<Conference>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1110,7 +1133,8 @@ public ApiResponse> listConferencesWithHttpInfo(String accountI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1139,7 +1163,8 @@ public okhttp3.Call listConferencesAsync(String accountId, String name, String m * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1228,7 +1253,8 @@ private okhttp3.Call updateConferenceValidateBeforeCall(String accountId, String * @param updateConference (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference was successfully modified. -
400 Bad Request -
+
+ @@ -1254,7 +1280,8 @@ public void updateConference(String accountId, String conferenceId, UpdateConfer * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference was successfully modified. -
400 Bad Request -
+
+ @@ -1282,7 +1309,8 @@ public ApiResponse updateConferenceWithHttpInfo(String accountId, String c * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference was successfully modified. -
400 Bad Request -
+
+ @@ -1310,7 +1338,8 @@ public okhttp3.Call updateConferenceAsync(String accountId, String conferenceId, * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference was successfully modified. -
400 Bad Request -
+
+ @@ -1399,7 +1428,8 @@ private okhttp3.Call updateConferenceBxmlValidateBeforeCall(String accountId, St * @param body (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference successfully modified. -
400 Bad Request -
+
+ @@ -1425,7 +1455,8 @@ public void updateConferenceBxml(String accountId, String conferenceId, String b * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference successfully modified. -
400 Bad Request -
+
+ @@ -1453,7 +1484,8 @@ public ApiResponse updateConferenceBxmlWithHttpInfo(String accountId, Stri * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference successfully modified. -
400 Bad Request -
+
+ @@ -1482,7 +1514,8 @@ public okhttp3.Call updateConferenceBxmlAsync(String accountId, String conferenc * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference successfully modified. -
400 Bad Request -
+
+ @@ -1578,7 +1611,8 @@ private okhttp3.Call updateConferenceMemberValidateBeforeCall(String accountId, * @param updateConferenceMember (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference member was successfully modified. -
400 Bad Request -
+
+ @@ -1605,7 +1639,8 @@ public void updateConferenceMember(String accountId, String conferenceId, String * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference member was successfully modified. -
400 Bad Request -
+
+ @@ -1634,7 +1669,8 @@ public ApiResponse updateConferenceMemberWithHttpInfo(String accountId, St * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference member was successfully modified. -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/MediaApi.java b/src/main/java/com/bandwidth/sdk/api/MediaApi.java index 6612638a..82f67b12 100644 --- a/src/main/java/com/bandwidth/sdk/api/MediaApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MediaApi.java @@ -82,7 +82,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Conference member was successfully modified. -
400 Bad Request -
+
+ @@ -164,7 +165,8 @@ private okhttp3.Call deleteMediaValidateBeforeCall(String accountId, String medi * @param mediaId Media ID to retrieve. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -189,7 +191,8 @@ public void deleteMedia(String accountId, String mediaId) throws ApiException { * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -216,7 +219,8 @@ public ApiResponse deleteMediaWithHttpInfo(String accountId, String mediaI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -243,7 +247,8 @@ public okhttp3.Call deleteMediaAsync(String accountId, String mediaId, final Api * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -327,7 +332,8 @@ private okhttp3.Call getMediaValidateBeforeCall(String accountId, String mediaId * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -353,7 +359,8 @@ public File getMedia(String accountId, String mediaId) throws ApiException { * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -381,7 +388,8 @@ public ApiResponse getMediaWithHttpInfo(String accountId, String mediaId) * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -409,7 +417,8 @@ public okhttp3.Call getMediaAsync(String accountId, String mediaId, final ApiCal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -491,7 +500,8 @@ private okhttp3.Call listMediaValidateBeforeCall(String accountId, String contin * @return List<Media> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK * Continuation-Token - Continuation token used to retrieve subsequent media.
400 Bad Request -
+
+ @@ -517,7 +527,8 @@ public List listMedia(String accountId, String continuationToken) throws * @return ApiResponse<List<Media>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK * Continuation-Token - Continuation token used to retrieve subsequent media.
400 Bad Request -
+
+ @@ -545,7 +556,8 @@ public ApiResponse> listMediaWithHttpInfo(String accountId, String c * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK * Continuation-Token - Continuation token used to retrieve subsequent media.
400 Bad Request -
+
+ @@ -576,7 +588,8 @@ public okhttp3.Call listMediaAsync(String accountId, String continuationToken, f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK * Continuation-Token - Continuation token used to retrieve subsequent media.
400 Bad Request -
+
+ @@ -720,7 +733,8 @@ private okhttp3.Call uploadMediaValidateBeforeCall(String accountId, String medi * @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -748,7 +762,8 @@ public void uploadMedia(String accountId, String mediaId, File body, String cont * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -778,7 +793,8 @@ public ApiResponse uploadMediaWithHttpInfo(String accountId, String mediaI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/MessagesApi.java b/src/main/java/com/bandwidth/sdk/api/MessagesApi.java index cf9c9914..bd4db0c3 100644 --- a/src/main/java/com/bandwidth/sdk/api/MessagesApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MessagesApi.java @@ -87,7 +87,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 No Content -
400 Bad Request -
+
+ @@ -170,7 +171,8 @@ private okhttp3.Call createMessageValidateBeforeCall(String accountId, MessageRe * @return Message * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -196,7 +198,8 @@ public Message createMessage(String accountId, MessageRequest messageRequest) th * @return ApiResponse<Message> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -224,7 +227,8 @@ public ApiResponse createMessageWithHttpInfo(String accountId, MessageR * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -266,7 +270,8 @@ public okhttp3.Call createMessageAsync(String accountId, MessageRequest messageR * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -416,7 +421,8 @@ private okhttp3.Call listMessagesValidateBeforeCall(String accountId, String mes * @return MessagesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -455,7 +461,8 @@ public MessagesList listMessages(String accountId, String messageId, String sour * @return ApiResponse<MessagesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -496,7 +503,8 @@ public ApiResponse listMessagesWithHttpInfo(String accountId, Stri * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/MfaApi.java b/src/main/java/com/bandwidth/sdk/api/MfaApi.java index 20a0b22f..d13c9a70 100644 --- a/src/main/java/com/bandwidth/sdk/api/MfaApi.java +++ b/src/main/java/com/bandwidth/sdk/api/MfaApi.java @@ -87,7 +87,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -166,7 +167,8 @@ private okhttp3.Call generateMessagingCodeValidateBeforeCall(String accountId, C * @return MessagingCodeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -188,7 +190,8 @@ public MessagingCodeResponse generateMessagingCode(String accountId, CodeRequest * @return ApiResponse<MessagingCodeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -212,7 +215,8 @@ public ApiResponse generateMessagingCodeWithHttpInfo(Stri * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -236,7 +240,8 @@ public okhttp3.Call generateMessagingCodeAsync(String accountId, CodeRequest cod * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -315,7 +320,8 @@ private okhttp3.Call generateVoiceCodeValidateBeforeCall(String accountId, CodeR * @return VoiceCodeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -337,7 +343,8 @@ public VoiceCodeResponse generateVoiceCode(String accountId, CodeRequest codeReq * @return ApiResponse<VoiceCodeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -361,7 +368,8 @@ public ApiResponse generateVoiceCodeWithHttpInfo(String accou * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -385,7 +393,8 @@ public okhttp3.Call generateVoiceCodeAsync(String accountId, CodeRequest codeReq * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -465,7 +474,8 @@ private okhttp3.Call verifyCodeValidateBeforeCall(String accountId, VerifyCodeRe * @return VerifyCodeResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -488,7 +498,8 @@ public VerifyCodeResponse verifyCode(String accountId, VerifyCodeRequest verifyC * @return ApiResponse<VerifyCodeResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -513,7 +524,8 @@ public ApiResponse verifyCodeWithHttpInfo(String accountId, * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java b/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java index 36eec73b..11ff5ab2 100644 --- a/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java +++ b/src/main/java/com/bandwidth/sdk/api/PhoneNumberLookupApi.java @@ -83,7 +83,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -164,7 +165,8 @@ private okhttp3.Call createLookupValidateBeforeCall(String accountId, LookupRequ * @return CreateLookupResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -188,7 +190,8 @@ public CreateLookupResponse createLookup(String accountId, LookupRequest lookupR * @return ApiResponse<CreateLookupResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -214,7 +217,8 @@ public ApiResponse createLookupWithHttpInfo(String account * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -240,7 +244,8 @@ public okhttp3.Call createLookupAsync(String accountId, LookupRequest lookupRequ * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
202 Accepted -
400 Bad Request -
+
+ @@ -321,7 +326,8 @@ private okhttp3.Call getLookupStatusValidateBeforeCall(String accountId, String * @return LookupStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -345,7 +351,8 @@ public LookupStatus getLookupStatus(String accountId, String requestId) throws A * @return ApiResponse<LookupStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -371,7 +378,8 @@ public ApiResponse getLookupStatusWithHttpInfo(String accountId, S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java b/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java index 07b69c33..e4700c63 100644 --- a/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/RecordingsApi.java @@ -86,7 +86,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -175,7 +176,8 @@ private okhttp3.Call deleteRecordingValidateBeforeCall(String accountId, String * @param recordingId Programmable Voice API Recording ID. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Recording was deleted. -
400 Bad Request -
+
+ @@ -201,7 +203,8 @@ public void deleteRecording(String accountId, String callId, String recordingId) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Recording was deleted. -
400 Bad Request -
+
+ @@ -229,7 +232,8 @@ public ApiResponse deleteRecordingWithHttpInfo(String accountId, String ca * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Recording was deleted. -
400 Bad Request -
+
+ @@ -257,7 +261,8 @@ public okhttp3.Call deleteRecordingAsync(String accountId, String callId, String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Recording was deleted. -
400 Bad Request -
+
+ @@ -346,7 +351,8 @@ private okhttp3.Call deleteRecordingMediaValidateBeforeCall(String accountId, St * @param recordingId Programmable Voice API Recording ID. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 The recording media was successfully deleted. -
400 Bad Request -
+
+ @@ -372,7 +378,8 @@ public void deleteRecordingMedia(String accountId, String callId, String recordi * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 The recording media was successfully deleted. -
400 Bad Request -
+
+ @@ -400,7 +407,8 @@ public ApiResponse deleteRecordingMediaWithHttpInfo(String accountId, Stri * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 The recording media was successfully deleted. -
400 Bad Request -
+
+ @@ -428,7 +436,8 @@ public okhttp3.Call deleteRecordingMediaAsync(String accountId, String callId, S * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 The recording media was successfully deleted. -
400 Bad Request -
+
+ @@ -517,7 +526,8 @@ private okhttp3.Call deleteRecordingTranscriptionValidateBeforeCall(String accou * @param recordingId Programmable Voice API Recording ID. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 The transcription was successfully deleted. -
400 Bad Request -
+
+ @@ -543,7 +553,8 @@ public void deleteRecordingTranscription(String accountId, String callId, String * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 The transcription was successfully deleted. -
400 Bad Request -
+
+ @@ -571,7 +582,8 @@ public ApiResponse deleteRecordingTranscriptionWithHttpInfo(String account * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 The transcription was successfully deleted. -
400 Bad Request -
+
+ @@ -599,7 +611,8 @@ public okhttp3.Call deleteRecordingTranscriptionAsync(String accountId, String c * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 The transcription was successfully deleted. -
400 Bad Request -
+
+ @@ -691,7 +704,8 @@ private okhttp3.Call downloadCallRecordingValidateBeforeCall(String accountId, S * @return File * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -718,7 +732,8 @@ public File downloadCallRecording(String accountId, String callId, String record * @return ApiResponse<File> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -747,7 +762,8 @@ public ApiResponse downloadCallRecordingWithHttpInfo(String accountId, Str * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -776,7 +792,8 @@ public okhttp3.Call downloadCallRecordingAsync(String accountId, String callId, * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -866,7 +883,8 @@ private okhttp3.Call getCallRecordingValidateBeforeCall(String accountId, String * @return CallRecordingMetadata * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -893,7 +911,8 @@ public CallRecordingMetadata getCallRecording(String accountId, String callId, S * @return ApiResponse<CallRecordingMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -922,7 +941,8 @@ public ApiResponse getCallRecordingWithHttpInfo(String ac * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -951,7 +971,8 @@ public okhttp3.Call getCallRecordingAsync(String accountId, String callId, Strin * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1041,7 +1062,8 @@ private okhttp3.Call getRecordingTranscriptionValidateBeforeCall(String accountI * @return RecordingTranscriptions * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1068,7 +1090,8 @@ public RecordingTranscriptions getRecordingTranscription(String accountId, Strin * @return ApiResponse<RecordingTranscriptions> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1097,7 +1120,8 @@ public ApiResponse getRecordingTranscriptionWithHttpInf * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1128,7 +1152,8 @@ public okhttp3.Call getRecordingTranscriptionAsync(String accountId, String call * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1224,7 +1249,8 @@ private okhttp3.Call listAccountCallRecordingsValidateBeforeCall(String accountI * @return List<CallRecordingMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1253,7 +1279,8 @@ public List listAccountCallRecordings(String accountId, S * @return ApiResponse<List<CallRecordingMetadata>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1284,7 +1311,8 @@ public ApiResponse> listAccountCallRecordingsWithHtt * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1312,7 +1340,8 @@ public okhttp3.Call listAccountCallRecordingsAsync(String accountId, String to, * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1395,7 +1424,8 @@ private okhttp3.Call listCallRecordingsValidateBeforeCall(String accountId, Stri * @return List<CallRecordingMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1421,7 +1451,8 @@ public List listCallRecordings(String accountId, String c * @return ApiResponse<List<CallRecordingMetadata>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1449,7 +1480,8 @@ public ApiResponse> listCallRecordingsWithHttpInfo(S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1479,7 +1511,8 @@ public okhttp3.Call listCallRecordingsAsync(String accountId, String callId, fin * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1575,7 +1608,8 @@ private okhttp3.Call transcribeCallRecordingValidateBeforeCall(String accountId, * @param transcribeRecording (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Transcription was successfully requested. -
400 Bad Request -
+
+ @@ -1602,7 +1636,8 @@ public void transcribeCallRecording(String accountId, String callId, String reco * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
204 Transcription was successfully requested. -
400 Bad Request -
+
+ @@ -1631,7 +1666,8 @@ public ApiResponse transcribeCallRecordingWithHttpInfo(String accountId, S * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Transcription was successfully requested. -
400 Bad Request -
+
+ @@ -1659,7 +1695,8 @@ public okhttp3.Call transcribeCallRecordingAsync(String accountId, String callId * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
204 Transcription was successfully requested. -
400 Bad Request -
+
+ @@ -1748,7 +1785,8 @@ private okhttp3.Call updateCallRecordingStateValidateBeforeCall(String accountId * @param updateCallRecording (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1774,7 +1812,8 @@ public void updateCallRecordingState(String accountId, String callId, UpdateCall * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -1802,7 +1841,8 @@ public ApiResponse updateCallRecordingStateWithHttpInfo(String accountId, * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java b/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java index 91782d1f..8260db2d 100644 --- a/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/StatisticsApi.java @@ -80,7 +80,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -156,7 +157,8 @@ private okhttp3.Call getStatisticsValidateBeforeCall(String accountId, final Api * @return AccountStatistics * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -181,7 +183,8 @@ public AccountStatistics getStatistics(String accountId) throws ApiException { * @return ApiResponse<AccountStatistics> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -208,7 +211,8 @@ public ApiResponse getStatisticsWithHttpInfo(String accountId * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java b/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java index 9af8107d..ab0de44a 100644 --- a/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java +++ b/src/main/java/com/bandwidth/sdk/api/TranscriptionsApi.java @@ -83,7 +83,8 @@ public void setCustomBaseUrl(String customBaseUrl) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -172,7 +173,8 @@ private okhttp3.Call deleteRealTimeTranscriptionValidateBeforeCall(String accoun * @param transcriptionId Programmable Voice API Transcription ID. (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 No Content -
400 Bad Request -
+
+ @@ -198,7 +200,8 @@ public void deleteRealTimeTranscription(String accountId, String callId, String * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 No Content -
400 Bad Request -
+
+ @@ -226,7 +229,8 @@ public ApiResponse deleteRealTimeTranscriptionWithHttpInfo(String accountI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 No Content -
400 Bad Request -
+
+ @@ -254,7 +258,8 @@ public okhttp3.Call deleteRealTimeTranscriptionAsync(String accountId, String ca * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 No Content -
400 Bad Request -
+
+ @@ -344,7 +349,8 @@ private okhttp3.Call getRealTimeTranscriptionValidateBeforeCall(String accountId * @return CallTranscriptionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -371,7 +377,8 @@ public CallTranscriptionResponse getRealTimeTranscription(String accountId, Stri * @return ApiResponse<CallTranscriptionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -400,7 +407,8 @@ public ApiResponse getRealTimeTranscriptionWithHttpIn * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -428,7 +436,8 @@ public okhttp3.Call getRealTimeTranscriptionAsync(String accountId, String callI * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -511,7 +520,8 @@ private okhttp3.Call listRealTimeTranscriptionsValidateBeforeCall(String account * @return List<CallTranscriptionMetadata> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -537,7 +547,8 @@ public List listRealTimeTranscriptions(String account * @return ApiResponse<List<CallTranscriptionMetadata>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ @@ -565,7 +576,8 @@ public ApiResponse> listRealTimeTranscriptionsWi * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -
+
+ diff --git a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java index 605123e4..61bbc92e 100644 --- a/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java index 942a7a45..565d3c51 100644 --- a/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java +++ b/src/main/java/com/bandwidth/sdk/auth/HttpBearerAuth.java @@ -22,7 +22,7 @@ import java.util.Optional; import java.util.function.Supplier; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java index 19e68c2b..3c487529 100644 --- a/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/bandwidth/sdk/model/AbstractOpenApiSchema.java @@ -21,7 +21,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java index 38a7a496..6068f9f0 100644 --- a/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java +++ b/src/main/java/com/bandwidth/sdk/model/AccountStatistics.java @@ -48,20 +48,22 @@ /** * AccountStatistics */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class AccountStatistics { public static final String SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE = "currentCallQueueSize"; @SerializedName(SERIALIZED_NAME_CURRENT_CALL_QUEUE_SIZE) + @javax.annotation.Nullable private Integer currentCallQueueSize; public static final String SERIALIZED_NAME_MAX_CALL_QUEUE_SIZE = "maxCallQueueSize"; @SerializedName(SERIALIZED_NAME_MAX_CALL_QUEUE_SIZE) + @javax.annotation.Nullable private Integer maxCallQueueSize; public AccountStatistics() { } - public AccountStatistics currentCallQueueSize(Integer currentCallQueueSize) { + public AccountStatistics currentCallQueueSize(@javax.annotation.Nullable Integer currentCallQueueSize) { this.currentCallQueueSize = currentCallQueueSize; return this; } @@ -75,12 +77,12 @@ public Integer getCurrentCallQueueSize() { return currentCallQueueSize; } - public void setCurrentCallQueueSize(Integer currentCallQueueSize) { + public void setCurrentCallQueueSize(@javax.annotation.Nullable Integer currentCallQueueSize) { this.currentCallQueueSize = currentCallQueueSize; } - public AccountStatistics maxCallQueueSize(Integer maxCallQueueSize) { + public AccountStatistics maxCallQueueSize(@javax.annotation.Nullable Integer maxCallQueueSize) { this.maxCallQueueSize = maxCallQueueSize; return this; } @@ -94,7 +96,7 @@ public Integer getMaxCallQueueSize() { return maxCallQueueSize; } - public void setMaxCallQueueSize(Integer maxCallQueueSize) { + public void setMaxCallQueueSize(@javax.annotation.Nullable Integer maxCallQueueSize) { this.maxCallQueueSize = maxCallQueueSize; } diff --git a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java index a57f18e7..1805765d 100644 --- a/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/AnswerCallback.java @@ -53,68 +53,82 @@ /** * The Answer event is sent to the answerUrl specified in the createCall request when an outbound call is answered. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class AnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_MACHINE_DETECTION_RESULT = "machineDetectionResult"; @SerializedName(SERIALIZED_NAME_MACHINE_DETECTION_RESULT) + @javax.annotation.Nullable private MachineDetectionResult machineDetectionResult; public AnswerCallback() { } - public AnswerCallback eventType(String eventType) { + public AnswerCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -128,12 +142,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public AnswerCallback eventTime(OffsetDateTime eventTime) { + public AnswerCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -147,12 +161,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public AnswerCallback accountId(String accountId) { + public AnswerCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -166,12 +180,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public AnswerCallback applicationId(String applicationId) { + public AnswerCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -185,12 +199,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public AnswerCallback from(String from) { + public AnswerCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -204,12 +218,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public AnswerCallback to(String to) { + public AnswerCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -223,12 +237,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public AnswerCallback direction(CallDirectionEnum direction) { + public AnswerCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -242,12 +256,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public AnswerCallback callId(String callId) { + public AnswerCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -261,12 +275,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public AnswerCallback callUrl(URI callUrl) { + public AnswerCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -280,12 +294,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public AnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public AnswerCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -299,12 +313,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public AnswerCallback startTime(OffsetDateTime startTime) { + public AnswerCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -318,12 +332,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public AnswerCallback answerTime(OffsetDateTime answerTime) { + public AnswerCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -337,12 +351,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public AnswerCallback tag(String tag) { + public AnswerCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -356,12 +370,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public AnswerCallback machineDetectionResult(MachineDetectionResult machineDetectionResult) { + public AnswerCallback machineDetectionResult(@javax.annotation.Nullable MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; return this; } @@ -375,7 +389,7 @@ public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; } - public void setMachineDetectionResult(MachineDetectionResult machineDetectionResult) { + public void setMachineDetectionResult(@javax.annotation.Nullable MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java index 5fddd064..1550d1f6 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeCompleteCallback.java @@ -52,76 +52,92 @@ /** * If the target call leaves the <Bridge>, then this callback is sent to the bridgeCompleteUrl, and the BXML returned in it is executed on the call. If this webhook is sent, the Bridge Target Complete webhook is NOT sent. This callback is also sent if any problem occurs that prevents the calls to be bridged. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class BridgeCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_CAUSE = "cause"; @SerializedName(SERIALIZED_NAME_CAUSE) + @javax.annotation.Nullable private String cause; public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) + @javax.annotation.Nullable private String errorMessage; public static final String SERIALIZED_NAME_ERROR_ID = "errorId"; @SerializedName(SERIALIZED_NAME_ERROR_ID) + @javax.annotation.Nullable private String errorId; public BridgeCompleteCallback() { } - public BridgeCompleteCallback eventType(String eventType) { + public BridgeCompleteCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -135,12 +151,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public BridgeCompleteCallback eventTime(OffsetDateTime eventTime) { + public BridgeCompleteCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -154,12 +170,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public BridgeCompleteCallback accountId(String accountId) { + public BridgeCompleteCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -173,12 +189,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public BridgeCompleteCallback applicationId(String applicationId) { + public BridgeCompleteCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -192,12 +208,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public BridgeCompleteCallback from(String from) { + public BridgeCompleteCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -211,12 +227,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public BridgeCompleteCallback to(String to) { + public BridgeCompleteCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -230,12 +246,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public BridgeCompleteCallback direction(CallDirectionEnum direction) { + public BridgeCompleteCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -249,12 +265,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public BridgeCompleteCallback callId(String callId) { + public BridgeCompleteCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -268,12 +284,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public BridgeCompleteCallback callUrl(URI callUrl) { + public BridgeCompleteCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -287,12 +303,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public BridgeCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public BridgeCompleteCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -306,12 +322,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public BridgeCompleteCallback startTime(OffsetDateTime startTime) { + public BridgeCompleteCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -325,12 +341,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public BridgeCompleteCallback answerTime(OffsetDateTime answerTime) { + public BridgeCompleteCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -344,12 +360,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public BridgeCompleteCallback tag(String tag) { + public BridgeCompleteCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -363,12 +379,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public BridgeCompleteCallback cause(String cause) { + public BridgeCompleteCallback cause(@javax.annotation.Nullable String cause) { this.cause = cause; return this; } @@ -382,12 +398,12 @@ public String getCause() { return cause; } - public void setCause(String cause) { + public void setCause(@javax.annotation.Nullable String cause) { this.cause = cause; } - public BridgeCompleteCallback errorMessage(String errorMessage) { + public BridgeCompleteCallback errorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -401,12 +417,12 @@ public String getErrorMessage() { return errorMessage; } - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } - public BridgeCompleteCallback errorId(String errorId) { + public BridgeCompleteCallback errorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; return this; } @@ -420,7 +436,7 @@ public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { + public void setErrorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; } diff --git a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java index a4454556..204d6cf8 100644 --- a/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/BridgeTargetCompleteCallback.java @@ -52,64 +52,77 @@ /** * If the originating call leaves the <Bridge>, then this callback is sent to the bridgeTargetCompleteUrl, and the BXML returned in it is executed on the target call. If this webhook is sent, the Bridge Complete webhook is NOT sent. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class BridgeTargetCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public BridgeTargetCompleteCallback() { } - public BridgeTargetCompleteCallback eventType(String eventType) { + public BridgeTargetCompleteCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -123,12 +136,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public BridgeTargetCompleteCallback eventTime(OffsetDateTime eventTime) { + public BridgeTargetCompleteCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -142,12 +155,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public BridgeTargetCompleteCallback accountId(String accountId) { + public BridgeTargetCompleteCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -161,12 +174,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public BridgeTargetCompleteCallback applicationId(String applicationId) { + public BridgeTargetCompleteCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -180,12 +193,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public BridgeTargetCompleteCallback from(String from) { + public BridgeTargetCompleteCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -199,12 +212,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public BridgeTargetCompleteCallback to(String to) { + public BridgeTargetCompleteCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -218,12 +231,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public BridgeTargetCompleteCallback direction(CallDirectionEnum direction) { + public BridgeTargetCompleteCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -237,12 +250,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public BridgeTargetCompleteCallback callId(String callId) { + public BridgeTargetCompleteCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -256,12 +269,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public BridgeTargetCompleteCallback callUrl(URI callUrl) { + public BridgeTargetCompleteCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -275,12 +288,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public BridgeTargetCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public BridgeTargetCompleteCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -294,12 +307,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public BridgeTargetCompleteCallback startTime(OffsetDateTime startTime) { + public BridgeTargetCompleteCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -313,12 +326,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public BridgeTargetCompleteCallback answerTime(OffsetDateTime answerTime) { + public BridgeTargetCompleteCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -332,12 +345,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public BridgeTargetCompleteCallback tag(String tag) { + public BridgeTargetCompleteCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -351,7 +364,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java index 1d540844..6247baa9 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallRecordingMetadata.java @@ -54,88 +54,107 @@ /** * CallRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CallRecordingMetadata { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_RECORDING_ID = "recordingId"; @SerializedName(SERIALIZED_NAME_RECORDING_ID) + @javax.annotation.Nullable private String recordingId; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CHANNELS = "channels"; @SerializedName(SERIALIZED_NAME_CHANNELS) + @javax.annotation.Nullable private Integer channels; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_FILE_FORMAT = "fileFormat"; @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable private FileFormatEnum fileFormat; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private String status; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) + @javax.annotation.Nullable private URI mediaUrl; public static final String SERIALIZED_NAME_TRANSCRIPTION = "transcription"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION) + @javax.annotation.Nullable private RecordingTranscriptionMetadata transcription; public static final String SERIALIZED_NAME_RECORDING_NAME = "recordingName"; @SerializedName(SERIALIZED_NAME_RECORDING_NAME) + @javax.annotation.Nullable private String recordingName; public CallRecordingMetadata() { } - public CallRecordingMetadata applicationId(String applicationId) { + public CallRecordingMetadata applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -149,12 +168,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public CallRecordingMetadata accountId(String accountId) { + public CallRecordingMetadata accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -168,12 +187,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public CallRecordingMetadata callId(String callId) { + public CallRecordingMetadata callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -187,12 +206,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public CallRecordingMetadata parentCallId(String parentCallId) { + public CallRecordingMetadata parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -206,12 +225,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public CallRecordingMetadata recordingId(String recordingId) { + public CallRecordingMetadata recordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; return this; } @@ -225,12 +244,12 @@ public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { + public void setRecordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; } - public CallRecordingMetadata to(String to) { + public CallRecordingMetadata to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -244,12 +263,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public CallRecordingMetadata from(String from) { + public CallRecordingMetadata from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -263,12 +282,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public CallRecordingMetadata transferCallerId(String transferCallerId) { + public CallRecordingMetadata transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -282,12 +301,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public CallRecordingMetadata transferTo(String transferTo) { + public CallRecordingMetadata transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -301,12 +320,12 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } - public CallRecordingMetadata duration(String duration) { + public CallRecordingMetadata duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -320,12 +339,12 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } - public CallRecordingMetadata direction(CallDirectionEnum direction) { + public CallRecordingMetadata direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -339,12 +358,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public CallRecordingMetadata channels(Integer channels) { + public CallRecordingMetadata channels(@javax.annotation.Nullable Integer channels) { this.channels = channels; return this; } @@ -358,12 +377,12 @@ public Integer getChannels() { return channels; } - public void setChannels(Integer channels) { + public void setChannels(@javax.annotation.Nullable Integer channels) { this.channels = channels; } - public CallRecordingMetadata startTime(OffsetDateTime startTime) { + public CallRecordingMetadata startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -377,12 +396,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public CallRecordingMetadata endTime(OffsetDateTime endTime) { + public CallRecordingMetadata endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -396,12 +415,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public CallRecordingMetadata fileFormat(FileFormatEnum fileFormat) { + public CallRecordingMetadata fileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; return this; } @@ -415,12 +434,12 @@ public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { + public void setFileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } - public CallRecordingMetadata status(String status) { + public CallRecordingMetadata status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -434,12 +453,12 @@ public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } - public CallRecordingMetadata mediaUrl(URI mediaUrl) { + public CallRecordingMetadata mediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; return this; } @@ -453,12 +472,12 @@ public URI getMediaUrl() { return mediaUrl; } - public void setMediaUrl(URI mediaUrl) { + public void setMediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; } - public CallRecordingMetadata transcription(RecordingTranscriptionMetadata transcription) { + public CallRecordingMetadata transcription(@javax.annotation.Nullable RecordingTranscriptionMetadata transcription) { this.transcription = transcription; return this; } @@ -472,12 +491,12 @@ public RecordingTranscriptionMetadata getTranscription() { return transcription; } - public void setTranscription(RecordingTranscriptionMetadata transcription) { + public void setTranscription(@javax.annotation.Nullable RecordingTranscriptionMetadata transcription) { this.transcription = transcription; } - public CallRecordingMetadata recordingName(String recordingName) { + public CallRecordingMetadata recordingName(@javax.annotation.Nullable String recordingName) { this.recordingName = recordingName; return this; } @@ -491,7 +510,7 @@ public String getRecordingName() { return recordingName; } - public void setRecordingName(String recordingName) { + public void setRecordingName(@javax.annotation.Nullable String recordingName) { this.recordingName = recordingName; } diff --git a/src/main/java/com/bandwidth/sdk/model/CallState.java b/src/main/java/com/bandwidth/sdk/model/CallState.java index 8926cda1..4e3a766a 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallState.java +++ b/src/main/java/com/bandwidth/sdk/model/CallState.java @@ -53,84 +53,102 @@ /** * CallState */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CallState { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) + @javax.annotation.Nullable private String state; public static final String SERIALIZED_NAME_STIR_SHAKEN = "stirShaken"; @SerializedName(SERIALIZED_NAME_STIR_SHAKEN) + @javax.annotation.Nullable private Map stirShaken; public static final String SERIALIZED_NAME_IDENTITY = "identity"; @SerializedName(SERIALIZED_NAME_IDENTITY) + @javax.annotation.Nullable private String identity; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_DISCONNECT_CAUSE = "disconnectCause"; @SerializedName(SERIALIZED_NAME_DISCONNECT_CAUSE) + @javax.annotation.Nullable private String disconnectCause; public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) + @javax.annotation.Nullable private String errorMessage; public static final String SERIALIZED_NAME_ERROR_ID = "errorId"; @SerializedName(SERIALIZED_NAME_ERROR_ID) + @javax.annotation.Nullable private String errorId; public static final String SERIALIZED_NAME_LAST_UPDATE = "lastUpdate"; @SerializedName(SERIALIZED_NAME_LAST_UPDATE) + @javax.annotation.Nullable private OffsetDateTime lastUpdate; public CallState() { } - public CallState applicationId(String applicationId) { + public CallState applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -144,12 +162,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public CallState accountId(String accountId) { + public CallState accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -163,12 +181,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public CallState callId(String callId) { + public CallState callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -182,12 +200,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public CallState parentCallId(String parentCallId) { + public CallState parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -201,12 +219,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public CallState to(String to) { + public CallState to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -220,12 +238,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public CallState from(String from) { + public CallState from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -239,12 +257,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public CallState direction(CallDirectionEnum direction) { + public CallState direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -258,12 +276,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public CallState state(String state) { + public CallState state(@javax.annotation.Nullable String state) { this.state = state; return this; } @@ -277,12 +295,12 @@ public String getState() { return state; } - public void setState(String state) { + public void setState(@javax.annotation.Nullable String state) { this.state = state; } - public CallState stirShaken(Map stirShaken) { + public CallState stirShaken(@javax.annotation.Nullable Map stirShaken) { this.stirShaken = stirShaken; return this; } @@ -304,12 +322,12 @@ public Map getStirShaken() { return stirShaken; } - public void setStirShaken(Map stirShaken) { + public void setStirShaken(@javax.annotation.Nullable Map stirShaken) { this.stirShaken = stirShaken; } - public CallState identity(String identity) { + public CallState identity(@javax.annotation.Nullable String identity) { this.identity = identity; return this; } @@ -323,12 +341,12 @@ public String getIdentity() { return identity; } - public void setIdentity(String identity) { + public void setIdentity(@javax.annotation.Nullable String identity) { this.identity = identity; } - public CallState enqueuedTime(OffsetDateTime enqueuedTime) { + public CallState enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -342,12 +360,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public CallState startTime(OffsetDateTime startTime) { + public CallState startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -361,12 +379,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public CallState answerTime(OffsetDateTime answerTime) { + public CallState answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -380,12 +398,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public CallState endTime(OffsetDateTime endTime) { + public CallState endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -399,12 +417,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public CallState disconnectCause(String disconnectCause) { + public CallState disconnectCause(@javax.annotation.Nullable String disconnectCause) { this.disconnectCause = disconnectCause; return this; } @@ -418,12 +436,12 @@ public String getDisconnectCause() { return disconnectCause; } - public void setDisconnectCause(String disconnectCause) { + public void setDisconnectCause(@javax.annotation.Nullable String disconnectCause) { this.disconnectCause = disconnectCause; } - public CallState errorMessage(String errorMessage) { + public CallState errorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -437,12 +455,12 @@ public String getErrorMessage() { return errorMessage; } - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } - public CallState errorId(String errorId) { + public CallState errorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; return this; } @@ -456,12 +474,12 @@ public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { + public void setErrorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; } - public CallState lastUpdate(OffsetDateTime lastUpdate) { + public CallState lastUpdate(@javax.annotation.Nullable OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; return this; } @@ -475,7 +493,7 @@ public OffsetDateTime getLastUpdate() { return lastUpdate; } - public void setLastUpdate(OffsetDateTime lastUpdate) { + public void setLastUpdate(@javax.annotation.Nullable OffsetDateTime lastUpdate) { this.lastUpdate = lastUpdate; } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java index 23f372f0..c166e71b 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscription.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscription.java @@ -50,28 +50,32 @@ /** * CallTranscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CallTranscription { public static final String SERIALIZED_NAME_DETECTED_LANGUAGE = "detectedLanguage"; @SerializedName(SERIALIZED_NAME_DETECTED_LANGUAGE) + @javax.annotation.Nullable private CallTranscriptionDetectedLanguageEnum detectedLanguage; public static final String SERIALIZED_NAME_TRACK = "track"; @SerializedName(SERIALIZED_NAME_TRACK) + @javax.annotation.Nullable private CallTranscriptionTrackEnum track; public static final String SERIALIZED_NAME_TRANSCRIPT = "transcript"; @SerializedName(SERIALIZED_NAME_TRANSCRIPT) + @javax.annotation.Nullable private String transcript; public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; @SerializedName(SERIALIZED_NAME_CONFIDENCE) + @javax.annotation.Nullable private Double confidence; public CallTranscription() { } - public CallTranscription detectedLanguage(CallTranscriptionDetectedLanguageEnum detectedLanguage) { + public CallTranscription detectedLanguage(@javax.annotation.Nullable CallTranscriptionDetectedLanguageEnum detectedLanguage) { this.detectedLanguage = detectedLanguage; return this; } @@ -85,12 +89,12 @@ public CallTranscriptionDetectedLanguageEnum getDetectedLanguage() { return detectedLanguage; } - public void setDetectedLanguage(CallTranscriptionDetectedLanguageEnum detectedLanguage) { + public void setDetectedLanguage(@javax.annotation.Nullable CallTranscriptionDetectedLanguageEnum detectedLanguage) { this.detectedLanguage = detectedLanguage; } - public CallTranscription track(CallTranscriptionTrackEnum track) { + public CallTranscription track(@javax.annotation.Nullable CallTranscriptionTrackEnum track) { this.track = track; return this; } @@ -104,12 +108,12 @@ public CallTranscriptionTrackEnum getTrack() { return track; } - public void setTrack(CallTranscriptionTrackEnum track) { + public void setTrack(@javax.annotation.Nullable CallTranscriptionTrackEnum track) { this.track = track; } - public CallTranscription transcript(String transcript) { + public CallTranscription transcript(@javax.annotation.Nullable String transcript) { this.transcript = transcript; return this; } @@ -123,12 +127,12 @@ public String getTranscript() { return transcript; } - public void setTranscript(String transcript) { + public void setTranscript(@javax.annotation.Nullable String transcript) { this.transcript = transcript; } - public CallTranscription confidence(Double confidence) { + public CallTranscription confidence(@javax.annotation.Nullable Double confidence) { this.confidence = confidence; return this; } @@ -144,7 +148,7 @@ public Double getConfidence() { return confidence; } - public void setConfidence(Double confidence) { + public void setConfidence(@javax.annotation.Nullable Double confidence) { this.confidence = confidence; } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java index 682601b6..19bf508b 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionMetadata.java @@ -48,24 +48,27 @@ /** * CallTranscriptionMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CallTranscriptionMetadata { public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) + @javax.annotation.Nullable private String transcriptionId; public static final String SERIALIZED_NAME_TRANSCRIPTION_NAME = "transcriptionName"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_NAME) + @javax.annotation.Nullable private String transcriptionName; public static final String SERIALIZED_NAME_TRANSCRIPTION_URL = "transcriptionUrl"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_URL) + @javax.annotation.Nullable private String transcriptionUrl; public CallTranscriptionMetadata() { } - public CallTranscriptionMetadata transcriptionId(String transcriptionId) { + public CallTranscriptionMetadata transcriptionId(@javax.annotation.Nullable String transcriptionId) { this.transcriptionId = transcriptionId; return this; } @@ -79,12 +82,12 @@ public String getTranscriptionId() { return transcriptionId; } - public void setTranscriptionId(String transcriptionId) { + public void setTranscriptionId(@javax.annotation.Nullable String transcriptionId) { this.transcriptionId = transcriptionId; } - public CallTranscriptionMetadata transcriptionName(String transcriptionName) { + public CallTranscriptionMetadata transcriptionName(@javax.annotation.Nullable String transcriptionName) { this.transcriptionName = transcriptionName; return this; } @@ -98,12 +101,12 @@ public String getTranscriptionName() { return transcriptionName; } - public void setTranscriptionName(String transcriptionName) { + public void setTranscriptionName(@javax.annotation.Nullable String transcriptionName) { this.transcriptionName = transcriptionName; } - public CallTranscriptionMetadata transcriptionUrl(String transcriptionUrl) { + public CallTranscriptionMetadata transcriptionUrl(@javax.annotation.Nullable String transcriptionUrl) { this.transcriptionUrl = transcriptionUrl; return this; } @@ -117,7 +120,7 @@ public String getTranscriptionUrl() { return transcriptionUrl; } - public void setTranscriptionUrl(String transcriptionUrl) { + public void setTranscriptionUrl(@javax.annotation.Nullable String transcriptionUrl) { this.transcriptionUrl = transcriptionUrl; } diff --git a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java index 9e2e6e8d..d1c4603e 100644 --- a/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CallTranscriptionResponse.java @@ -51,28 +51,32 @@ /** * CallTranscriptionResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CallTranscriptionResponse { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_TRANSCRIPTION_ID = "transcriptionId"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION_ID) + @javax.annotation.Nullable private String transcriptionId; public static final String SERIALIZED_NAME_TRACKS = "tracks"; @SerializedName(SERIALIZED_NAME_TRACKS) + @javax.annotation.Nullable private List tracks = new ArrayList<>(); public CallTranscriptionResponse() { } - public CallTranscriptionResponse accountId(String accountId) { + public CallTranscriptionResponse accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -86,12 +90,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public CallTranscriptionResponse callId(String callId) { + public CallTranscriptionResponse callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -105,12 +109,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public CallTranscriptionResponse transcriptionId(String transcriptionId) { + public CallTranscriptionResponse transcriptionId(@javax.annotation.Nullable String transcriptionId) { this.transcriptionId = transcriptionId; return this; } @@ -124,12 +128,12 @@ public String getTranscriptionId() { return transcriptionId; } - public void setTranscriptionId(String transcriptionId) { + public void setTranscriptionId(@javax.annotation.Nullable String transcriptionId) { this.transcriptionId = transcriptionId; } - public CallTranscriptionResponse tracks(List tracks) { + public CallTranscriptionResponse tracks(@javax.annotation.Nullable List tracks) { this.tracks = tracks; return this; } @@ -151,7 +155,7 @@ public List getTracks() { return tracks; } - public void setTracks(List tracks) { + public void setTracks(@javax.annotation.Nullable List tracks) { this.tracks = tracks; } diff --git a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java index f3c2141f..06e06d9b 100644 --- a/src/main/java/com/bandwidth/sdk/model/CodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/CodeRequest.java @@ -48,36 +48,42 @@ /** * CodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @javax.annotation.Nullable private String scope; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nonnull private String message; public static final String SERIALIZED_NAME_DIGITS = "digits"; @SerializedName(SERIALIZED_NAME_DIGITS) + @javax.annotation.Nonnull private Integer digits; public CodeRequest() { } - public CodeRequest to(String to) { + public CodeRequest to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -91,12 +97,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public CodeRequest from(String from) { + public CodeRequest from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -110,12 +116,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public CodeRequest applicationId(String applicationId) { + public CodeRequest applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -129,12 +135,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public CodeRequest scope(String scope) { + public CodeRequest scope(@javax.annotation.Nullable String scope) { this.scope = scope; return this; } @@ -148,12 +154,12 @@ public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@javax.annotation.Nullable String scope) { this.scope = scope; } - public CodeRequest message(String message) { + public CodeRequest message(@javax.annotation.Nonnull String message) { this.message = message; return this; } @@ -167,12 +173,12 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nonnull String message) { this.message = message; } - public CodeRequest digits(Integer digits) { + public CodeRequest digits(@javax.annotation.Nonnull Integer digits) { this.digits = digits; return this; } @@ -188,7 +194,7 @@ public Integer getDigits() { return digits; } - public void setDigits(Integer digits) { + public void setDigits(@javax.annotation.Nonnull Integer digits) { this.digits = digits; } diff --git a/src/main/java/com/bandwidth/sdk/model/Conference.java b/src/main/java/com/bandwidth/sdk/model/Conference.java index 26a4bcc3..5522b692 100644 --- a/src/main/java/com/bandwidth/sdk/model/Conference.java +++ b/src/main/java/com/bandwidth/sdk/model/Conference.java @@ -55,44 +55,52 @@ /** * Conference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Conference { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private String id; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_CREATED_TIME = "createdTime"; @SerializedName(SERIALIZED_NAME_CREATED_TIME) + @javax.annotation.Nullable private OffsetDateTime createdTime; public static final String SERIALIZED_NAME_COMPLETED_TIME = "completedTime"; @SerializedName(SERIALIZED_NAME_COMPLETED_TIME) + @javax.annotation.Nullable private OffsetDateTime completedTime; public static final String SERIALIZED_NAME_CONFERENCE_EVENT_URL = "conferenceEventUrl"; @SerializedName(SERIALIZED_NAME_CONFERENCE_EVENT_URL) + @javax.annotation.Nullable private URI conferenceEventUrl; public static final String SERIALIZED_NAME_CONFERENCE_EVENT_METHOD = "conferenceEventMethod"; @SerializedName(SERIALIZED_NAME_CONFERENCE_EVENT_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum conferenceEventMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_ACTIVE_MEMBERS = "activeMembers"; @SerializedName(SERIALIZED_NAME_ACTIVE_MEMBERS) + @javax.annotation.Nullable private List activeMembers; public Conference() { } - public Conference id(String id) { + public Conference id(@javax.annotation.Nullable String id) { this.id = id; return this; } @@ -106,12 +114,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public Conference name(String name) { + public Conference name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -125,12 +133,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public Conference createdTime(OffsetDateTime createdTime) { + public Conference createdTime(@javax.annotation.Nullable OffsetDateTime createdTime) { this.createdTime = createdTime; return this; } @@ -144,12 +152,12 @@ public OffsetDateTime getCreatedTime() { return createdTime; } - public void setCreatedTime(OffsetDateTime createdTime) { + public void setCreatedTime(@javax.annotation.Nullable OffsetDateTime createdTime) { this.createdTime = createdTime; } - public Conference completedTime(OffsetDateTime completedTime) { + public Conference completedTime(@javax.annotation.Nullable OffsetDateTime completedTime) { this.completedTime = completedTime; return this; } @@ -163,12 +171,12 @@ public OffsetDateTime getCompletedTime() { return completedTime; } - public void setCompletedTime(OffsetDateTime completedTime) { + public void setCompletedTime(@javax.annotation.Nullable OffsetDateTime completedTime) { this.completedTime = completedTime; } - public Conference conferenceEventUrl(URI conferenceEventUrl) { + public Conference conferenceEventUrl(@javax.annotation.Nullable URI conferenceEventUrl) { this.conferenceEventUrl = conferenceEventUrl; return this; } @@ -182,12 +190,12 @@ public URI getConferenceEventUrl() { return conferenceEventUrl; } - public void setConferenceEventUrl(URI conferenceEventUrl) { + public void setConferenceEventUrl(@javax.annotation.Nullable URI conferenceEventUrl) { this.conferenceEventUrl = conferenceEventUrl; } - public Conference conferenceEventMethod(CallbackMethodEnum conferenceEventMethod) { + public Conference conferenceEventMethod(@javax.annotation.Nullable CallbackMethodEnum conferenceEventMethod) { this.conferenceEventMethod = conferenceEventMethod; return this; } @@ -201,12 +209,12 @@ public CallbackMethodEnum getConferenceEventMethod() { return conferenceEventMethod; } - public void setConferenceEventMethod(CallbackMethodEnum conferenceEventMethod) { + public void setConferenceEventMethod(@javax.annotation.Nullable CallbackMethodEnum conferenceEventMethod) { this.conferenceEventMethod = conferenceEventMethod; } - public Conference tag(String tag) { + public Conference tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -220,12 +228,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public Conference activeMembers(List activeMembers) { + public Conference activeMembers(@javax.annotation.Nullable List activeMembers) { this.activeMembers = activeMembers; return this; } @@ -247,7 +255,7 @@ public List getActiveMembers() { return activeMembers; } - public void setActiveMembers(List activeMembers) { + public void setActiveMembers(@javax.annotation.Nullable List activeMembers) { this.activeMembers = activeMembers; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java index 83f2d420..007d0144 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCompletedCallback.java @@ -50,32 +50,37 @@ /** * The Conference Completed event is fired when the last member leaves the conference. The response to this event may not contain BXML. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceCompletedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public ConferenceCompletedCallback() { } - public ConferenceCompletedCallback eventType(String eventType) { + public ConferenceCompletedCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -89,12 +94,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public ConferenceCompletedCallback eventTime(OffsetDateTime eventTime) { + public ConferenceCompletedCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -108,12 +113,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public ConferenceCompletedCallback conferenceId(String conferenceId) { + public ConferenceCompletedCallback conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -127,12 +132,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceCompletedCallback name(String name) { + public ConferenceCompletedCallback name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -146,12 +151,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceCompletedCallback tag(String tag) { + public ConferenceCompletedCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -165,7 +170,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java index 59f0ca41..30bf3e04 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceCreatedCallback.java @@ -50,32 +50,37 @@ /** * The Conference Created event is fired whenever a new conference that specified a callbackUrl is created. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceCreatedCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public ConferenceCreatedCallback() { } - public ConferenceCreatedCallback eventType(String eventType) { + public ConferenceCreatedCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -89,12 +94,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public ConferenceCreatedCallback eventTime(OffsetDateTime eventTime) { + public ConferenceCreatedCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -108,12 +113,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public ConferenceCreatedCallback conferenceId(String conferenceId) { + public ConferenceCreatedCallback conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -127,12 +132,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceCreatedCallback name(String name) { + public ConferenceCreatedCallback name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -146,12 +151,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceCreatedCallback tag(String tag) { + public ConferenceCreatedCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -165,7 +170,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java index 80cbf433..ccb7abd6 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMember.java @@ -52,36 +52,42 @@ /** * ConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceMember { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_MEMBER_URL = "memberUrl"; @SerializedName(SERIALIZED_NAME_MEMBER_URL) + @javax.annotation.Nullable private URI memberUrl; public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) + @javax.annotation.Nullable private Boolean mute; public static final String SERIALIZED_NAME_HOLD = "hold"; @SerializedName(SERIALIZED_NAME_HOLD) + @javax.annotation.Nullable private Boolean hold; public static final String SERIALIZED_NAME_CALL_IDS_TO_COACH = "callIdsToCoach"; @SerializedName(SERIALIZED_NAME_CALL_IDS_TO_COACH) + @javax.annotation.Nullable private List callIdsToCoach; public ConferenceMember() { } - public ConferenceMember callId(String callId) { + public ConferenceMember callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -95,12 +101,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public ConferenceMember conferenceId(String conferenceId) { + public ConferenceMember conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -114,12 +120,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceMember memberUrl(URI memberUrl) { + public ConferenceMember memberUrl(@javax.annotation.Nullable URI memberUrl) { this.memberUrl = memberUrl; return this; } @@ -133,12 +139,12 @@ public URI getMemberUrl() { return memberUrl; } - public void setMemberUrl(URI memberUrl) { + public void setMemberUrl(@javax.annotation.Nullable URI memberUrl) { this.memberUrl = memberUrl; } - public ConferenceMember mute(Boolean mute) { + public ConferenceMember mute(@javax.annotation.Nullable Boolean mute) { this.mute = mute; return this; } @@ -152,12 +158,12 @@ public Boolean getMute() { return mute; } - public void setMute(Boolean mute) { + public void setMute(@javax.annotation.Nullable Boolean mute) { this.mute = mute; } - public ConferenceMember hold(Boolean hold) { + public ConferenceMember hold(@javax.annotation.Nullable Boolean hold) { this.hold = hold; return this; } @@ -171,12 +177,12 @@ public Boolean getHold() { return hold; } - public void setHold(Boolean hold) { + public void setHold(@javax.annotation.Nullable Boolean hold) { this.hold = hold; } - public ConferenceMember callIdsToCoach(List callIdsToCoach) { + public ConferenceMember callIdsToCoach(@javax.annotation.Nullable List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; return this; } @@ -198,7 +204,7 @@ public List getCallIdsToCoach() { return callIdsToCoach; } - public void setCallIdsToCoach(List callIdsToCoach) { + public void setCallIdsToCoach(@javax.annotation.Nullable List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java index 6532e391..82f93c9a 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberExitCallback.java @@ -50,44 +50,52 @@ /** * The Conference Member Exit event is fired whenever a caller exits a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceMemberExitCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public ConferenceMemberExitCallback() { } - public ConferenceMemberExitCallback eventType(String eventType) { + public ConferenceMemberExitCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -101,12 +109,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public ConferenceMemberExitCallback eventTime(OffsetDateTime eventTime) { + public ConferenceMemberExitCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -120,12 +128,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public ConferenceMemberExitCallback conferenceId(String conferenceId) { + public ConferenceMemberExitCallback conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -139,12 +147,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceMemberExitCallback name(String name) { + public ConferenceMemberExitCallback name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -158,12 +166,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceMemberExitCallback from(String from) { + public ConferenceMemberExitCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -177,12 +185,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public ConferenceMemberExitCallback to(String to) { + public ConferenceMemberExitCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -196,12 +204,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public ConferenceMemberExitCallback callId(String callId) { + public ConferenceMemberExitCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -215,12 +223,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public ConferenceMemberExitCallback tag(String tag) { + public ConferenceMemberExitCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -234,7 +242,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java index 8c8e6877..780c9390 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceMemberJoinCallback.java @@ -50,44 +50,52 @@ /** * The Conference Member Join event is fired whenever a caller joins a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceMemberJoinCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public ConferenceMemberJoinCallback() { } - public ConferenceMemberJoinCallback eventType(String eventType) { + public ConferenceMemberJoinCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -101,12 +109,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public ConferenceMemberJoinCallback eventTime(OffsetDateTime eventTime) { + public ConferenceMemberJoinCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -120,12 +128,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public ConferenceMemberJoinCallback conferenceId(String conferenceId) { + public ConferenceMemberJoinCallback conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -139,12 +147,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceMemberJoinCallback name(String name) { + public ConferenceMemberJoinCallback name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -158,12 +166,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceMemberJoinCallback from(String from) { + public ConferenceMemberJoinCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -177,12 +185,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public ConferenceMemberJoinCallback to(String to) { + public ConferenceMemberJoinCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -196,12 +204,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public ConferenceMemberJoinCallback callId(String callId) { + public ConferenceMemberJoinCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -215,12 +223,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public ConferenceMemberJoinCallback tag(String tag) { + public ConferenceMemberJoinCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -234,7 +242,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java index 97754c60..84c96c4c 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingAvailableCallback.java @@ -52,68 +52,82 @@ /** * The Conference Recording Available event is sent after a conference recording has been processed. It indicates that the recording is available for download. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceRecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_RECORDING_ID = "recordingId"; @SerializedName(SERIALIZED_NAME_RECORDING_ID) + @javax.annotation.Nullable private String recordingId; public static final String SERIALIZED_NAME_CHANNELS = "channels"; @SerializedName(SERIALIZED_NAME_CHANNELS) + @javax.annotation.Nullable private Integer channels; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public static final String SERIALIZED_NAME_FILE_FORMAT = "fileFormat"; @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable private FileFormatEnum fileFormat; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) + @javax.annotation.Nullable private URI mediaUrl; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private String status; public ConferenceRecordingAvailableCallback() { } - public ConferenceRecordingAvailableCallback eventType(String eventType) { + public ConferenceRecordingAvailableCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -127,12 +141,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public ConferenceRecordingAvailableCallback eventTime(OffsetDateTime eventTime) { + public ConferenceRecordingAvailableCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -146,12 +160,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public ConferenceRecordingAvailableCallback conferenceId(String conferenceId) { + public ConferenceRecordingAvailableCallback conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -165,12 +179,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceRecordingAvailableCallback name(String name) { + public ConferenceRecordingAvailableCallback name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -184,12 +198,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceRecordingAvailableCallback accountId(String accountId) { + public ConferenceRecordingAvailableCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -203,12 +217,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public ConferenceRecordingAvailableCallback recordingId(String recordingId) { + public ConferenceRecordingAvailableCallback recordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; return this; } @@ -222,12 +236,12 @@ public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { + public void setRecordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; } - public ConferenceRecordingAvailableCallback channels(Integer channels) { + public ConferenceRecordingAvailableCallback channels(@javax.annotation.Nullable Integer channels) { this.channels = channels; return this; } @@ -241,12 +255,12 @@ public Integer getChannels() { return channels; } - public void setChannels(Integer channels) { + public void setChannels(@javax.annotation.Nullable Integer channels) { this.channels = channels; } - public ConferenceRecordingAvailableCallback startTime(OffsetDateTime startTime) { + public ConferenceRecordingAvailableCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -260,12 +274,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public ConferenceRecordingAvailableCallback endTime(OffsetDateTime endTime) { + public ConferenceRecordingAvailableCallback endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -279,12 +293,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public ConferenceRecordingAvailableCallback duration(String duration) { + public ConferenceRecordingAvailableCallback duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -298,12 +312,12 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } - public ConferenceRecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { + public ConferenceRecordingAvailableCallback fileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; return this; } @@ -317,12 +331,12 @@ public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { + public void setFileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } - public ConferenceRecordingAvailableCallback mediaUrl(URI mediaUrl) { + public ConferenceRecordingAvailableCallback mediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; return this; } @@ -336,12 +350,12 @@ public URI getMediaUrl() { return mediaUrl; } - public void setMediaUrl(URI mediaUrl) { + public void setMediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; } - public ConferenceRecordingAvailableCallback tag(String tag) { + public ConferenceRecordingAvailableCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -355,12 +369,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public ConferenceRecordingAvailableCallback status(String status) { + public ConferenceRecordingAvailableCallback status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -374,7 +388,7 @@ public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java index 0f9c8f21..64495284 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRecordingMetadata.java @@ -52,60 +52,72 @@ /** * ConferenceRecordingMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceRecordingMetadata { public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_RECORDING_ID = "recordingId"; @SerializedName(SERIALIZED_NAME_RECORDING_ID) + @javax.annotation.Nullable private String recordingId; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public static final String SERIALIZED_NAME_CHANNELS = "channels"; @SerializedName(SERIALIZED_NAME_CHANNELS) + @javax.annotation.Nullable private Integer channels; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_FILE_FORMAT = "fileFormat"; @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable private FileFormatEnum fileFormat; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private String status; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) + @javax.annotation.Nullable private URI mediaUrl; public static final String SERIALIZED_NAME_RECORDING_NAME = "recordingName"; @SerializedName(SERIALIZED_NAME_RECORDING_NAME) + @javax.annotation.Nullable private String recordingName; public ConferenceRecordingMetadata() { } - public ConferenceRecordingMetadata accountId(String accountId) { + public ConferenceRecordingMetadata accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -119,12 +131,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public ConferenceRecordingMetadata conferenceId(String conferenceId) { + public ConferenceRecordingMetadata conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -138,12 +150,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceRecordingMetadata name(String name) { + public ConferenceRecordingMetadata name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -157,12 +169,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceRecordingMetadata recordingId(String recordingId) { + public ConferenceRecordingMetadata recordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; return this; } @@ -176,12 +188,12 @@ public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { + public void setRecordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; } - public ConferenceRecordingMetadata duration(String duration) { + public ConferenceRecordingMetadata duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -195,12 +207,12 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } - public ConferenceRecordingMetadata channels(Integer channels) { + public ConferenceRecordingMetadata channels(@javax.annotation.Nullable Integer channels) { this.channels = channels; return this; } @@ -214,12 +226,12 @@ public Integer getChannels() { return channels; } - public void setChannels(Integer channels) { + public void setChannels(@javax.annotation.Nullable Integer channels) { this.channels = channels; } - public ConferenceRecordingMetadata startTime(OffsetDateTime startTime) { + public ConferenceRecordingMetadata startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -233,12 +245,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public ConferenceRecordingMetadata endTime(OffsetDateTime endTime) { + public ConferenceRecordingMetadata endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -252,12 +264,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public ConferenceRecordingMetadata fileFormat(FileFormatEnum fileFormat) { + public ConferenceRecordingMetadata fileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; return this; } @@ -271,12 +283,12 @@ public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { + public void setFileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } - public ConferenceRecordingMetadata status(String status) { + public ConferenceRecordingMetadata status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -290,12 +302,12 @@ public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } - public ConferenceRecordingMetadata mediaUrl(URI mediaUrl) { + public ConferenceRecordingMetadata mediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; return this; } @@ -309,12 +321,12 @@ public URI getMediaUrl() { return mediaUrl; } - public void setMediaUrl(URI mediaUrl) { + public void setMediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; } - public ConferenceRecordingMetadata recordingName(String recordingName) { + public ConferenceRecordingMetadata recordingName(@javax.annotation.Nullable String recordingName) { this.recordingName = recordingName; return this; } @@ -328,7 +340,7 @@ public String getRecordingName() { return recordingName; } - public void setRecordingName(String recordingName) { + public void setRecordingName(@javax.annotation.Nullable String recordingName) { this.recordingName = recordingName; } diff --git a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java index d34b6d1a..77daf53b 100644 --- a/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/ConferenceRedirectCallback.java @@ -50,32 +50,37 @@ /** * The Conference Redirect event is fired whenever an existing conference is modified via a POST request made to the /conferences/{conferenceId} endpoint. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ConferenceRedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_CONFERENCE_ID = "conferenceId"; @SerializedName(SERIALIZED_NAME_CONFERENCE_ID) + @javax.annotation.Nullable private String conferenceId; public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable private String name; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public ConferenceRedirectCallback() { } - public ConferenceRedirectCallback eventType(String eventType) { + public ConferenceRedirectCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -89,12 +94,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public ConferenceRedirectCallback eventTime(OffsetDateTime eventTime) { + public ConferenceRedirectCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -108,12 +113,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public ConferenceRedirectCallback conferenceId(String conferenceId) { + public ConferenceRedirectCallback conferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; return this; } @@ -127,12 +132,12 @@ public String getConferenceId() { return conferenceId; } - public void setConferenceId(String conferenceId) { + public void setConferenceId(@javax.annotation.Nullable String conferenceId) { this.conferenceId = conferenceId; } - public ConferenceRedirectCallback name(String name) { + public ConferenceRedirectCallback name(@javax.annotation.Nullable String name) { this.name = name; return this; } @@ -146,12 +151,12 @@ public String getName() { return name; } - public void setName(String name) { + public void setName(@javax.annotation.Nullable String name) { this.name = name; } - public ConferenceRedirectCallback tag(String tag) { + public ConferenceRedirectCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -165,7 +170,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCall.java b/src/main/java/com/bandwidth/sdk/model/CreateCall.java index 691d8f46..c92451c4 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCall.java @@ -52,96 +52,117 @@ /** * CreateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CreateCall { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_PRIVACY = "privacy"; @SerializedName(SERIALIZED_NAME_PRIVACY) + @javax.annotation.Nullable private Boolean privacy; public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + @javax.annotation.Nullable private String displayName; public static final String SERIALIZED_NAME_UUI = "uui"; @SerializedName(SERIALIZED_NAME_UUI) + @javax.annotation.Nullable private String uui; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_ANSWER_URL = "answerUrl"; @SerializedName(SERIALIZED_NAME_ANSWER_URL) + @javax.annotation.Nonnull private URI answerUrl; public static final String SERIALIZED_NAME_ANSWER_METHOD = "answerMethod"; @SerializedName(SERIALIZED_NAME_ANSWER_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum answerMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_ANSWER_FALLBACK_URL = "answerFallbackUrl"; @SerializedName(SERIALIZED_NAME_ANSWER_FALLBACK_URL) + @javax.annotation.Nullable private URI answerFallbackUrl; public static final String SERIALIZED_NAME_ANSWER_FALLBACK_METHOD = "answerFallbackMethod"; @SerializedName(SERIALIZED_NAME_ANSWER_FALLBACK_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum answerFallbackMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_FALLBACK_USERNAME = "fallbackUsername"; @SerializedName(SERIALIZED_NAME_FALLBACK_USERNAME) + @javax.annotation.Nullable private String fallbackUsername; public static final String SERIALIZED_NAME_FALLBACK_PASSWORD = "fallbackPassword"; @SerializedName(SERIALIZED_NAME_FALLBACK_PASSWORD) + @javax.annotation.Nullable private String fallbackPassword; public static final String SERIALIZED_NAME_DISCONNECT_URL = "disconnectUrl"; @SerializedName(SERIALIZED_NAME_DISCONNECT_URL) + @javax.annotation.Nullable private URI disconnectUrl; public static final String SERIALIZED_NAME_DISCONNECT_METHOD = "disconnectMethod"; @SerializedName(SERIALIZED_NAME_DISCONNECT_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum disconnectMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_CALL_TIMEOUT = "callTimeout"; @SerializedName(SERIALIZED_NAME_CALL_TIMEOUT) + @javax.annotation.Nullable private Double callTimeout = 30d; public static final String SERIALIZED_NAME_CALLBACK_TIMEOUT = "callbackTimeout"; @SerializedName(SERIALIZED_NAME_CALLBACK_TIMEOUT) + @javax.annotation.Nullable private Double callbackTimeout = 15d; public static final String SERIALIZED_NAME_MACHINE_DETECTION = "machineDetection"; @SerializedName(SERIALIZED_NAME_MACHINE_DETECTION) + @javax.annotation.Nullable private MachineDetectionConfiguration machineDetection; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private Integer priority = 5; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public CreateCall() { } - public CreateCall to(String to) { + public CreateCall to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -155,12 +176,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public CreateCall from(String from) { + public CreateCall from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -174,12 +195,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public CreateCall privacy(Boolean privacy) { + public CreateCall privacy(@javax.annotation.Nullable Boolean privacy) { this.privacy = privacy; return this; } @@ -193,12 +214,12 @@ public Boolean getPrivacy() { return privacy; } - public void setPrivacy(Boolean privacy) { + public void setPrivacy(@javax.annotation.Nullable Boolean privacy) { this.privacy = privacy; } - public CreateCall displayName(String displayName) { + public CreateCall displayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; return this; } @@ -212,12 +233,12 @@ public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { + public void setDisplayName(@javax.annotation.Nullable String displayName) { this.displayName = displayName; } - public CreateCall uui(String uui) { + public CreateCall uui(@javax.annotation.Nullable String uui) { this.uui = uui; return this; } @@ -231,12 +252,12 @@ public String getUui() { return uui; } - public void setUui(String uui) { + public void setUui(@javax.annotation.Nullable String uui) { this.uui = uui; } - public CreateCall applicationId(String applicationId) { + public CreateCall applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -250,12 +271,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public CreateCall answerUrl(URI answerUrl) { + public CreateCall answerUrl(@javax.annotation.Nonnull URI answerUrl) { this.answerUrl = answerUrl; return this; } @@ -269,12 +290,12 @@ public URI getAnswerUrl() { return answerUrl; } - public void setAnswerUrl(URI answerUrl) { + public void setAnswerUrl(@javax.annotation.Nonnull URI answerUrl) { this.answerUrl = answerUrl; } - public CreateCall answerMethod(CallbackMethodEnum answerMethod) { + public CreateCall answerMethod(@javax.annotation.Nullable CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; return this; } @@ -288,12 +309,12 @@ public CallbackMethodEnum getAnswerMethod() { return answerMethod; } - public void setAnswerMethod(CallbackMethodEnum answerMethod) { + public void setAnswerMethod(@javax.annotation.Nullable CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; } - public CreateCall username(String username) { + public CreateCall username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -307,12 +328,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public CreateCall password(String password) { + public CreateCall password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -326,12 +347,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public CreateCall answerFallbackUrl(URI answerFallbackUrl) { + public CreateCall answerFallbackUrl(@javax.annotation.Nullable URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; return this; } @@ -345,12 +366,12 @@ public URI getAnswerFallbackUrl() { return answerFallbackUrl; } - public void setAnswerFallbackUrl(URI answerFallbackUrl) { + public void setAnswerFallbackUrl(@javax.annotation.Nullable URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; } - public CreateCall answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { + public CreateCall answerFallbackMethod(@javax.annotation.Nullable CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; return this; } @@ -364,12 +385,12 @@ public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; } - public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { + public void setAnswerFallbackMethod(@javax.annotation.Nullable CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; } - public CreateCall fallbackUsername(String fallbackUsername) { + public CreateCall fallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; return this; } @@ -383,12 +404,12 @@ public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { + public void setFallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; } - public CreateCall fallbackPassword(String fallbackPassword) { + public CreateCall fallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; return this; } @@ -402,12 +423,12 @@ public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { + public void setFallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; } - public CreateCall disconnectUrl(URI disconnectUrl) { + public CreateCall disconnectUrl(@javax.annotation.Nullable URI disconnectUrl) { this.disconnectUrl = disconnectUrl; return this; } @@ -421,12 +442,12 @@ public URI getDisconnectUrl() { return disconnectUrl; } - public void setDisconnectUrl(URI disconnectUrl) { + public void setDisconnectUrl(@javax.annotation.Nullable URI disconnectUrl) { this.disconnectUrl = disconnectUrl; } - public CreateCall disconnectMethod(CallbackMethodEnum disconnectMethod) { + public CreateCall disconnectMethod(@javax.annotation.Nullable CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; return this; } @@ -440,12 +461,12 @@ public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; } - public void setDisconnectMethod(CallbackMethodEnum disconnectMethod) { + public void setDisconnectMethod(@javax.annotation.Nullable CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; } - public CreateCall callTimeout(Double callTimeout) { + public CreateCall callTimeout(@javax.annotation.Nullable Double callTimeout) { this.callTimeout = callTimeout; return this; } @@ -461,12 +482,12 @@ public Double getCallTimeout() { return callTimeout; } - public void setCallTimeout(Double callTimeout) { + public void setCallTimeout(@javax.annotation.Nullable Double callTimeout) { this.callTimeout = callTimeout; } - public CreateCall callbackTimeout(Double callbackTimeout) { + public CreateCall callbackTimeout(@javax.annotation.Nullable Double callbackTimeout) { this.callbackTimeout = callbackTimeout; return this; } @@ -482,12 +503,12 @@ public Double getCallbackTimeout() { return callbackTimeout; } - public void setCallbackTimeout(Double callbackTimeout) { + public void setCallbackTimeout(@javax.annotation.Nullable Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } - public CreateCall machineDetection(MachineDetectionConfiguration machineDetection) { + public CreateCall machineDetection(@javax.annotation.Nullable MachineDetectionConfiguration machineDetection) { this.machineDetection = machineDetection; return this; } @@ -501,12 +522,12 @@ public MachineDetectionConfiguration getMachineDetection() { return machineDetection; } - public void setMachineDetection(MachineDetectionConfiguration machineDetection) { + public void setMachineDetection(@javax.annotation.Nullable MachineDetectionConfiguration machineDetection) { this.machineDetection = machineDetection; } - public CreateCall priority(Integer priority) { + public CreateCall priority(@javax.annotation.Nullable Integer priority) { this.priority = priority; return this; } @@ -522,12 +543,12 @@ public Integer getPriority() { return priority; } - public void setPriority(Integer priority) { + public void setPriority(@javax.annotation.Nullable Integer priority) { this.priority = priority; } - public CreateCall tag(String tag) { + public CreateCall tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -541,7 +562,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java index 880bf270..c8263e3b 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateCallResponse.java @@ -52,96 +52,117 @@ /** * CreateCallResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CreateCallResponse { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nonnull private String accountId; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nonnull private String callId; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nonnull private URI callUrl; public static final String SERIALIZED_NAME_CALL_TIMEOUT = "callTimeout"; @SerializedName(SERIALIZED_NAME_CALL_TIMEOUT) + @javax.annotation.Nullable private Double callTimeout; public static final String SERIALIZED_NAME_CALLBACK_TIMEOUT = "callbackTimeout"; @SerializedName(SERIALIZED_NAME_CALLBACK_TIMEOUT) + @javax.annotation.Nullable private Double callbackTimeout; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_ANSWER_METHOD = "answerMethod"; @SerializedName(SERIALIZED_NAME_ANSWER_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum answerMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_ANSWER_URL = "answerUrl"; @SerializedName(SERIALIZED_NAME_ANSWER_URL) + @javax.annotation.Nonnull private URI answerUrl; public static final String SERIALIZED_NAME_ANSWER_FALLBACK_METHOD = "answerFallbackMethod"; @SerializedName(SERIALIZED_NAME_ANSWER_FALLBACK_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum answerFallbackMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_ANSWER_FALLBACK_URL = "answerFallbackUrl"; @SerializedName(SERIALIZED_NAME_ANSWER_FALLBACK_URL) + @javax.annotation.Nullable private URI answerFallbackUrl; public static final String SERIALIZED_NAME_DISCONNECT_METHOD = "disconnectMethod"; @SerializedName(SERIALIZED_NAME_DISCONNECT_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum disconnectMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_DISCONNECT_URL = "disconnectUrl"; @SerializedName(SERIALIZED_NAME_DISCONNECT_URL) + @javax.annotation.Nullable private URI disconnectUrl; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_FALLBACK_USERNAME = "fallbackUsername"; @SerializedName(SERIALIZED_NAME_FALLBACK_USERNAME) + @javax.annotation.Nullable private String fallbackUsername; public static final String SERIALIZED_NAME_FALLBACK_PASSWORD = "fallbackPassword"; @SerializedName(SERIALIZED_NAME_FALLBACK_PASSWORD) + @javax.annotation.Nullable private String fallbackPassword; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private Integer priority; public CreateCallResponse() { } - public CreateCallResponse applicationId(String applicationId) { + public CreateCallResponse applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -155,12 +176,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public CreateCallResponse accountId(String accountId) { + public CreateCallResponse accountId(@javax.annotation.Nonnull String accountId) { this.accountId = accountId; return this; } @@ -174,12 +195,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nonnull String accountId) { this.accountId = accountId; } - public CreateCallResponse callId(String callId) { + public CreateCallResponse callId(@javax.annotation.Nonnull String callId) { this.callId = callId; return this; } @@ -193,12 +214,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nonnull String callId) { this.callId = callId; } - public CreateCallResponse to(String to) { + public CreateCallResponse to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -212,12 +233,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public CreateCallResponse from(String from) { + public CreateCallResponse from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -231,12 +252,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public CreateCallResponse enqueuedTime(OffsetDateTime enqueuedTime) { + public CreateCallResponse enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -250,12 +271,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public CreateCallResponse callUrl(URI callUrl) { + public CreateCallResponse callUrl(@javax.annotation.Nonnull URI callUrl) { this.callUrl = callUrl; return this; } @@ -269,12 +290,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nonnull URI callUrl) { this.callUrl = callUrl; } - public CreateCallResponse callTimeout(Double callTimeout) { + public CreateCallResponse callTimeout(@javax.annotation.Nullable Double callTimeout) { this.callTimeout = callTimeout; return this; } @@ -288,12 +309,12 @@ public Double getCallTimeout() { return callTimeout; } - public void setCallTimeout(Double callTimeout) { + public void setCallTimeout(@javax.annotation.Nullable Double callTimeout) { this.callTimeout = callTimeout; } - public CreateCallResponse callbackTimeout(Double callbackTimeout) { + public CreateCallResponse callbackTimeout(@javax.annotation.Nullable Double callbackTimeout) { this.callbackTimeout = callbackTimeout; return this; } @@ -307,12 +328,12 @@ public Double getCallbackTimeout() { return callbackTimeout; } - public void setCallbackTimeout(Double callbackTimeout) { + public void setCallbackTimeout(@javax.annotation.Nullable Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } - public CreateCallResponse tag(String tag) { + public CreateCallResponse tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -326,12 +347,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public CreateCallResponse answerMethod(CallbackMethodEnum answerMethod) { + public CreateCallResponse answerMethod(@javax.annotation.Nullable CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; return this; } @@ -345,12 +366,12 @@ public CallbackMethodEnum getAnswerMethod() { return answerMethod; } - public void setAnswerMethod(CallbackMethodEnum answerMethod) { + public void setAnswerMethod(@javax.annotation.Nullable CallbackMethodEnum answerMethod) { this.answerMethod = answerMethod; } - public CreateCallResponse answerUrl(URI answerUrl) { + public CreateCallResponse answerUrl(@javax.annotation.Nonnull URI answerUrl) { this.answerUrl = answerUrl; return this; } @@ -364,12 +385,12 @@ public URI getAnswerUrl() { return answerUrl; } - public void setAnswerUrl(URI answerUrl) { + public void setAnswerUrl(@javax.annotation.Nonnull URI answerUrl) { this.answerUrl = answerUrl; } - public CreateCallResponse answerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { + public CreateCallResponse answerFallbackMethod(@javax.annotation.Nullable CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; return this; } @@ -383,12 +404,12 @@ public CallbackMethodEnum getAnswerFallbackMethod() { return answerFallbackMethod; } - public void setAnswerFallbackMethod(CallbackMethodEnum answerFallbackMethod) { + public void setAnswerFallbackMethod(@javax.annotation.Nullable CallbackMethodEnum answerFallbackMethod) { this.answerFallbackMethod = answerFallbackMethod; } - public CreateCallResponse answerFallbackUrl(URI answerFallbackUrl) { + public CreateCallResponse answerFallbackUrl(@javax.annotation.Nullable URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; return this; } @@ -402,12 +423,12 @@ public URI getAnswerFallbackUrl() { return answerFallbackUrl; } - public void setAnswerFallbackUrl(URI answerFallbackUrl) { + public void setAnswerFallbackUrl(@javax.annotation.Nullable URI answerFallbackUrl) { this.answerFallbackUrl = answerFallbackUrl; } - public CreateCallResponse disconnectMethod(CallbackMethodEnum disconnectMethod) { + public CreateCallResponse disconnectMethod(@javax.annotation.Nullable CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; return this; } @@ -421,12 +442,12 @@ public CallbackMethodEnum getDisconnectMethod() { return disconnectMethod; } - public void setDisconnectMethod(CallbackMethodEnum disconnectMethod) { + public void setDisconnectMethod(@javax.annotation.Nullable CallbackMethodEnum disconnectMethod) { this.disconnectMethod = disconnectMethod; } - public CreateCallResponse disconnectUrl(URI disconnectUrl) { + public CreateCallResponse disconnectUrl(@javax.annotation.Nullable URI disconnectUrl) { this.disconnectUrl = disconnectUrl; return this; } @@ -440,12 +461,12 @@ public URI getDisconnectUrl() { return disconnectUrl; } - public void setDisconnectUrl(URI disconnectUrl) { + public void setDisconnectUrl(@javax.annotation.Nullable URI disconnectUrl) { this.disconnectUrl = disconnectUrl; } - public CreateCallResponse username(String username) { + public CreateCallResponse username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -459,12 +480,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public CreateCallResponse password(String password) { + public CreateCallResponse password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -478,12 +499,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public CreateCallResponse fallbackUsername(String fallbackUsername) { + public CreateCallResponse fallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; return this; } @@ -497,12 +518,12 @@ public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { + public void setFallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; } - public CreateCallResponse fallbackPassword(String fallbackPassword) { + public CreateCallResponse fallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; return this; } @@ -516,12 +537,12 @@ public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { + public void setFallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; } - public CreateCallResponse priority(Integer priority) { + public CreateCallResponse priority(@javax.annotation.Nullable Integer priority) { this.priority = priority; return this; } @@ -535,7 +556,7 @@ public Integer getPriority() { return priority; } - public void setPriority(Integer priority) { + public void setPriority(@javax.annotation.Nullable Integer priority) { this.priority = priority; } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java index a5839c6a..76a1af9a 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateLookupResponse.java @@ -49,20 +49,22 @@ /** * The request has been accepted for processing but not yet finished and in a terminal state (COMPLETE, PARTIAL_COMPLETE, or FAILED). */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CreateLookupResponse { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) + @javax.annotation.Nullable private String requestId; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private LookupStatusEnum status; public CreateLookupResponse() { } - public CreateLookupResponse requestId(String requestId) { + public CreateLookupResponse requestId(@javax.annotation.Nullable String requestId) { this.requestId = requestId; return this; } @@ -76,12 +78,12 @@ public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { + public void setRequestId(@javax.annotation.Nullable String requestId) { this.requestId = requestId; } - public CreateLookupResponse status(LookupStatusEnum status) { + public CreateLookupResponse status(@javax.annotation.Nullable LookupStatusEnum status) { this.status = status; return this; } @@ -95,7 +97,7 @@ public LookupStatusEnum getStatus() { return status; } - public void setStatus(LookupStatusEnum status) { + public void setStatus(@javax.annotation.Nullable LookupStatusEnum status) { this.status = status; } diff --git a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java index 078dd0d5..b0dd177f 100644 --- a/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/CreateMessageRequestError.java @@ -51,24 +51,27 @@ /** * CreateMessageRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class CreateMessageRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull private String type; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull private String description; public static final String SERIALIZED_NAME_FIELD_ERRORS = "fieldErrors"; @SerializedName(SERIALIZED_NAME_FIELD_ERRORS) + @javax.annotation.Nullable private List fieldErrors = new ArrayList<>(); public CreateMessageRequestError() { } - public CreateMessageRequestError type(String type) { + public CreateMessageRequestError type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -82,12 +85,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - public CreateMessageRequestError description(String description) { + public CreateMessageRequestError description(@javax.annotation.Nonnull String description) { this.description = description; return this; } @@ -101,12 +104,12 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nonnull String description) { this.description = description; } - public CreateMessageRequestError fieldErrors(List fieldErrors) { + public CreateMessageRequestError fieldErrors(@javax.annotation.Nullable List fieldErrors) { this.fieldErrors = fieldErrors; return this; } @@ -128,7 +131,7 @@ public List getFieldErrors() { return fieldErrors; } - public void setFieldErrors(List fieldErrors) { + public void setFieldErrors(@javax.annotation.Nullable List fieldErrors) { this.fieldErrors = fieldErrors; } diff --git a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java index e9d80841..bdd0a817 100644 --- a/src/main/java/com/bandwidth/sdk/model/DeferredResult.java +++ b/src/main/java/com/bandwidth/sdk/model/DeferredResult.java @@ -48,20 +48,22 @@ /** * DeferredResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class DeferredResult { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) + @javax.annotation.Nullable private Object result; public static final String SERIALIZED_NAME_SET_OR_EXPIRED = "setOrExpired"; @SerializedName(SERIALIZED_NAME_SET_OR_EXPIRED) + @javax.annotation.Nullable private Boolean setOrExpired; public DeferredResult() { } - public DeferredResult result(Object result) { + public DeferredResult result(@javax.annotation.Nullable Object result) { this.result = result; return this; } @@ -75,12 +77,12 @@ public Object getResult() { return result; } - public void setResult(Object result) { + public void setResult(@javax.annotation.Nullable Object result) { this.result = result; } - public DeferredResult setOrExpired(Boolean setOrExpired) { + public DeferredResult setOrExpired(@javax.annotation.Nullable Boolean setOrExpired) { this.setOrExpired = setOrExpired; return this; } @@ -94,7 +96,7 @@ public Boolean getSetOrExpired() { return setOrExpired; } - public void setSetOrExpired(Boolean setOrExpired) { + public void setSetOrExpired(@javax.annotation.Nullable Boolean setOrExpired) { this.setOrExpired = setOrExpired; } diff --git a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java index f7535530..c4756ba0 100644 --- a/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DisconnectCallback.java @@ -52,80 +52,97 @@ /** * The Disconnect event is fired when a call ends, for any reason. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class DisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_CAUSE = "cause"; @SerializedName(SERIALIZED_NAME_CAUSE) + @javax.annotation.Nullable private String cause; public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) + @javax.annotation.Nullable private String errorMessage; public static final String SERIALIZED_NAME_ERROR_ID = "errorId"; @SerializedName(SERIALIZED_NAME_ERROR_ID) + @javax.annotation.Nullable private String errorId; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public DisconnectCallback() { } - public DisconnectCallback eventType(String eventType) { + public DisconnectCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -139,12 +156,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public DisconnectCallback eventTime(OffsetDateTime eventTime) { + public DisconnectCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -158,12 +175,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public DisconnectCallback accountId(String accountId) { + public DisconnectCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -177,12 +194,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public DisconnectCallback applicationId(String applicationId) { + public DisconnectCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -196,12 +213,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public DisconnectCallback from(String from) { + public DisconnectCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -215,12 +232,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public DisconnectCallback to(String to) { + public DisconnectCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -234,12 +251,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public DisconnectCallback callId(String callId) { + public DisconnectCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -253,12 +270,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public DisconnectCallback direction(CallDirectionEnum direction) { + public DisconnectCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -272,12 +289,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public DisconnectCallback callUrl(URI callUrl) { + public DisconnectCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -291,12 +308,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public DisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public DisconnectCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -310,12 +327,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public DisconnectCallback startTime(OffsetDateTime startTime) { + public DisconnectCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -329,12 +346,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public DisconnectCallback answerTime(OffsetDateTime answerTime) { + public DisconnectCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -348,12 +365,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public DisconnectCallback endTime(OffsetDateTime endTime) { + public DisconnectCallback endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -367,12 +384,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public DisconnectCallback cause(String cause) { + public DisconnectCallback cause(@javax.annotation.Nullable String cause) { this.cause = cause; return this; } @@ -386,12 +403,12 @@ public String getCause() { return cause; } - public void setCause(String cause) { + public void setCause(@javax.annotation.Nullable String cause) { this.cause = cause; } - public DisconnectCallback errorMessage(String errorMessage) { + public DisconnectCallback errorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -405,12 +422,12 @@ public String getErrorMessage() { return errorMessage; } - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } - public DisconnectCallback errorId(String errorId) { + public DisconnectCallback errorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; return this; } @@ -424,12 +441,12 @@ public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { + public void setErrorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; } - public DisconnectCallback tag(String tag) { + public DisconnectCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -443,7 +460,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/Diversion.java b/src/main/java/com/bandwidth/sdk/model/Diversion.java index 1082c8ef..61159811 100644 --- a/src/main/java/com/bandwidth/sdk/model/Diversion.java +++ b/src/main/java/com/bandwidth/sdk/model/Diversion.java @@ -48,40 +48,47 @@ /** * Diversion */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Diversion { public static final String SERIALIZED_NAME_REASON = "reason"; @SerializedName(SERIALIZED_NAME_REASON) + @javax.annotation.Nullable private String reason; public static final String SERIALIZED_NAME_PRIVACY = "privacy"; @SerializedName(SERIALIZED_NAME_PRIVACY) + @javax.annotation.Nullable private String privacy; public static final String SERIALIZED_NAME_SCREEN = "screen"; @SerializedName(SERIALIZED_NAME_SCREEN) + @javax.annotation.Nullable private String screen; public static final String SERIALIZED_NAME_COUNTER = "counter"; @SerializedName(SERIALIZED_NAME_COUNTER) + @javax.annotation.Nullable private String counter; public static final String SERIALIZED_NAME_LIMIT = "limit"; @SerializedName(SERIALIZED_NAME_LIMIT) + @javax.annotation.Nullable private String limit; public static final String SERIALIZED_NAME_UNKNOWN = "unknown"; @SerializedName(SERIALIZED_NAME_UNKNOWN) + @javax.annotation.Nullable private String unknown; public static final String SERIALIZED_NAME_ORIG_TO = "origTo"; @SerializedName(SERIALIZED_NAME_ORIG_TO) + @javax.annotation.Nullable private String origTo; public Diversion() { } - public Diversion reason(String reason) { + public Diversion reason(@javax.annotation.Nullable String reason) { this.reason = reason; return this; } @@ -95,12 +102,12 @@ public String getReason() { return reason; } - public void setReason(String reason) { + public void setReason(@javax.annotation.Nullable String reason) { this.reason = reason; } - public Diversion privacy(String privacy) { + public Diversion privacy(@javax.annotation.Nullable String privacy) { this.privacy = privacy; return this; } @@ -114,12 +121,12 @@ public String getPrivacy() { return privacy; } - public void setPrivacy(String privacy) { + public void setPrivacy(@javax.annotation.Nullable String privacy) { this.privacy = privacy; } - public Diversion screen(String screen) { + public Diversion screen(@javax.annotation.Nullable String screen) { this.screen = screen; return this; } @@ -133,12 +140,12 @@ public String getScreen() { return screen; } - public void setScreen(String screen) { + public void setScreen(@javax.annotation.Nullable String screen) { this.screen = screen; } - public Diversion counter(String counter) { + public Diversion counter(@javax.annotation.Nullable String counter) { this.counter = counter; return this; } @@ -152,12 +159,12 @@ public String getCounter() { return counter; } - public void setCounter(String counter) { + public void setCounter(@javax.annotation.Nullable String counter) { this.counter = counter; } - public Diversion limit(String limit) { + public Diversion limit(@javax.annotation.Nullable String limit) { this.limit = limit; return this; } @@ -171,12 +178,12 @@ public String getLimit() { return limit; } - public void setLimit(String limit) { + public void setLimit(@javax.annotation.Nullable String limit) { this.limit = limit; } - public Diversion unknown(String unknown) { + public Diversion unknown(@javax.annotation.Nullable String unknown) { this.unknown = unknown; return this; } @@ -190,12 +197,12 @@ public String getUnknown() { return unknown; } - public void setUnknown(String unknown) { + public void setUnknown(@javax.annotation.Nullable String unknown) { this.unknown = unknown; } - public Diversion origTo(String origTo) { + public Diversion origTo(@javax.annotation.Nullable String origTo) { this.origTo = origTo; return this; } @@ -209,7 +216,7 @@ public String getOrigTo() { return origTo; } - public void setOrigTo(String origTo) { + public void setOrigTo(@javax.annotation.Nullable String origTo) { this.origTo = origTo; } diff --git a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java index 6b9812eb..599cf1bd 100644 --- a/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/DtmfCallback.java @@ -52,80 +52,97 @@ /** * The DTMF event is sent for every digit detected after a <StartGather> verb is executed. You may not respond to this event with BXML. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class DtmfCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_DIGIT = "digit"; @SerializedName(SERIALIZED_NAME_DIGIT) + @javax.annotation.Nullable private String digit; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public DtmfCallback() { } - public DtmfCallback eventType(String eventType) { + public DtmfCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -139,12 +156,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public DtmfCallback eventTime(OffsetDateTime eventTime) { + public DtmfCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -158,12 +175,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public DtmfCallback accountId(String accountId) { + public DtmfCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -177,12 +194,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public DtmfCallback applicationId(String applicationId) { + public DtmfCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -196,12 +213,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public DtmfCallback from(String from) { + public DtmfCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -215,12 +232,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public DtmfCallback to(String to) { + public DtmfCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -234,12 +251,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public DtmfCallback callId(String callId) { + public DtmfCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -253,12 +270,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public DtmfCallback direction(CallDirectionEnum direction) { + public DtmfCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -272,12 +289,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public DtmfCallback digit(String digit) { + public DtmfCallback digit(@javax.annotation.Nullable String digit) { this.digit = digit; return this; } @@ -291,12 +308,12 @@ public String getDigit() { return digit; } - public void setDigit(String digit) { + public void setDigit(@javax.annotation.Nullable String digit) { this.digit = digit; } - public DtmfCallback callUrl(URI callUrl) { + public DtmfCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -310,12 +327,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public DtmfCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public DtmfCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -329,12 +346,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public DtmfCallback startTime(OffsetDateTime startTime) { + public DtmfCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -348,12 +365,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public DtmfCallback answerTime(OffsetDateTime answerTime) { + public DtmfCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -367,12 +384,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public DtmfCallback parentCallId(String parentCallId) { + public DtmfCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -386,12 +403,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public DtmfCallback transferCallerId(String transferCallerId) { + public DtmfCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -405,12 +422,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public DtmfCallback transferTo(String transferTo) { + public DtmfCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -424,12 +441,12 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } - public DtmfCallback tag(String tag) { + public DtmfCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -443,7 +460,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/FieldError.java b/src/main/java/com/bandwidth/sdk/model/FieldError.java index dccddd62..b3aa98a4 100644 --- a/src/main/java/com/bandwidth/sdk/model/FieldError.java +++ b/src/main/java/com/bandwidth/sdk/model/FieldError.java @@ -48,20 +48,22 @@ /** * FieldError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class FieldError { public static final String SERIALIZED_NAME_FIELD_NAME = "fieldName"; @SerializedName(SERIALIZED_NAME_FIELD_NAME) + @javax.annotation.Nullable private String fieldName; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; public FieldError() { } - public FieldError fieldName(String fieldName) { + public FieldError fieldName(@javax.annotation.Nullable String fieldName) { this.fieldName = fieldName; return this; } @@ -75,12 +77,12 @@ public String getFieldName() { return fieldName; } - public void setFieldName(String fieldName) { + public void setFieldName(@javax.annotation.Nullable String fieldName) { this.fieldName = fieldName; } - public FieldError description(String description) { + public FieldError description(@javax.annotation.Nullable String description) { this.description = description; return this; } @@ -94,7 +96,7 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nullable String description) { this.description = description; } diff --git a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java index f45fe885..66a4eb37 100644 --- a/src/main/java/com/bandwidth/sdk/model/GatherCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/GatherCallback.java @@ -52,84 +52,102 @@ /** * The gather event is sent after a <Gather> verb is executed. Its purpose is to report the gathered digits to the calling application. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class GatherCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_DIGITS = "digits"; @SerializedName(SERIALIZED_NAME_DIGITS) + @javax.annotation.Nullable private String digits; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_TERMINATING_DIGIT = "terminatingDigit"; @SerializedName(SERIALIZED_NAME_TERMINATING_DIGIT) + @javax.annotation.Nullable private String terminatingDigit; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public GatherCallback() { } - public GatherCallback eventType(String eventType) { + public GatherCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -143,12 +161,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public GatherCallback eventTime(OffsetDateTime eventTime) { + public GatherCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -162,12 +180,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public GatherCallback accountId(String accountId) { + public GatherCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -181,12 +199,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public GatherCallback applicationId(String applicationId) { + public GatherCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -200,12 +218,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public GatherCallback from(String from) { + public GatherCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -219,12 +237,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public GatherCallback to(String to) { + public GatherCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -238,12 +256,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public GatherCallback direction(CallDirectionEnum direction) { + public GatherCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -257,12 +275,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public GatherCallback callId(String callId) { + public GatherCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -276,12 +294,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public GatherCallback digits(String digits) { + public GatherCallback digits(@javax.annotation.Nullable String digits) { this.digits = digits; return this; } @@ -295,12 +313,12 @@ public String getDigits() { return digits; } - public void setDigits(String digits) { + public void setDigits(@javax.annotation.Nullable String digits) { this.digits = digits; } - public GatherCallback callUrl(URI callUrl) { + public GatherCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -314,12 +332,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public GatherCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public GatherCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -333,12 +351,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public GatherCallback startTime(OffsetDateTime startTime) { + public GatherCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -352,12 +370,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public GatherCallback answerTime(OffsetDateTime answerTime) { + public GatherCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -371,12 +389,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public GatherCallback parentCallId(String parentCallId) { + public GatherCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -390,12 +408,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public GatherCallback terminatingDigit(String terminatingDigit) { + public GatherCallback terminatingDigit(@javax.annotation.Nullable String terminatingDigit) { this.terminatingDigit = terminatingDigit; return this; } @@ -409,12 +427,12 @@ public String getTerminatingDigit() { return terminatingDigit; } - public void setTerminatingDigit(String terminatingDigit) { + public void setTerminatingDigit(@javax.annotation.Nullable String terminatingDigit) { this.terminatingDigit = terminatingDigit; } - public GatherCallback transferCallerId(String transferCallerId) { + public GatherCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -428,12 +446,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public GatherCallback transferTo(String transferTo) { + public GatherCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -447,12 +465,12 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } - public GatherCallback tag(String tag) { + public GatherCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -466,7 +484,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java index 2440039b..eca692b9 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallback.java @@ -50,32 +50,37 @@ /** * Inbound Message Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class InboundMessageCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull private String type; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull private String description; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nonnull private InboundMessageCallbackMessage message; public InboundMessageCallback() { } - public InboundMessageCallback time(OffsetDateTime time) { + public InboundMessageCallback time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -89,12 +94,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public InboundMessageCallback type(String type) { + public InboundMessageCallback type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -108,12 +113,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - public InboundMessageCallback to(String to) { + public InboundMessageCallback to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -127,12 +132,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public InboundMessageCallback description(String description) { + public InboundMessageCallback description(@javax.annotation.Nonnull String description) { this.description = description; return this; } @@ -146,12 +151,12 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nonnull String description) { this.description = description; } - public InboundMessageCallback message(InboundMessageCallbackMessage message) { + public InboundMessageCallback message(@javax.annotation.Nonnull InboundMessageCallbackMessage message) { this.message = message; return this; } @@ -165,7 +170,7 @@ public InboundMessageCallbackMessage getMessage() { return message; } - public void setMessage(InboundMessageCallbackMessage message) { + public void setMessage(@javax.annotation.Nonnull InboundMessageCallbackMessage message) { this.message = message; } diff --git a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java index 525bcf46..faab65bf 100644 --- a/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/InboundMessageCallbackMessage.java @@ -56,60 +56,72 @@ /** * Inbound Message Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class InboundMessageCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull private String id; public static final String SERIALIZED_NAME_OWNER = "owner"; @SerializedName(SERIALIZED_NAME_OWNER) + @javax.annotation.Nonnull private String owner; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_SEGMENT_COUNT = "segmentCount"; @SerializedName(SERIALIZED_NAME_SEGMENT_COUNT) + @javax.annotation.Nonnull private Integer segmentCount; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nonnull private MessageDirectionEnum direction; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nonnull private String text; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) + @javax.annotation.Nullable private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private PriorityEnum priority; public InboundMessageCallbackMessage() { } - public InboundMessageCallbackMessage id(String id) { + public InboundMessageCallbackMessage id(@javax.annotation.Nonnull String id) { this.id = id; return this; } @@ -123,12 +135,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nonnull String id) { this.id = id; } - public InboundMessageCallbackMessage owner(String owner) { + public InboundMessageCallbackMessage owner(@javax.annotation.Nonnull String owner) { this.owner = owner; return this; } @@ -142,12 +154,12 @@ public String getOwner() { return owner; } - public void setOwner(String owner) { + public void setOwner(@javax.annotation.Nonnull String owner) { this.owner = owner; } - public InboundMessageCallbackMessage applicationId(String applicationId) { + public InboundMessageCallbackMessage applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -161,12 +173,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public InboundMessageCallbackMessage time(OffsetDateTime time) { + public InboundMessageCallbackMessage time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -180,12 +192,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public InboundMessageCallbackMessage segmentCount(Integer segmentCount) { + public InboundMessageCallbackMessage segmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; return this; } @@ -199,12 +211,12 @@ public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { + public void setSegmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; } - public InboundMessageCallbackMessage direction(MessageDirectionEnum direction) { + public InboundMessageCallbackMessage direction(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; return this; } @@ -218,12 +230,12 @@ public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { + public void setDirection(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; } - public InboundMessageCallbackMessage to(Set to) { + public InboundMessageCallbackMessage to(@javax.annotation.Nonnull Set to) { this.to = to; return this; } @@ -245,12 +257,12 @@ public Set getTo() { return to; } - public void setTo(Set to) { + public void setTo(@javax.annotation.Nonnull Set to) { this.to = to; } - public InboundMessageCallbackMessage from(String from) { + public InboundMessageCallbackMessage from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -264,12 +276,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public InboundMessageCallbackMessage text(String text) { + public InboundMessageCallbackMessage text(@javax.annotation.Nonnull String text) { this.text = text; return this; } @@ -283,12 +295,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nonnull String text) { this.text = text; } - public InboundMessageCallbackMessage tag(String tag) { + public InboundMessageCallbackMessage tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -302,12 +314,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public InboundMessageCallbackMessage media(List media) { + public InboundMessageCallbackMessage media(@javax.annotation.Nullable List media) { this.media = media; return this; } @@ -329,12 +341,12 @@ public List getMedia() { return media; } - public void setMedia(List media) { + public void setMedia(@javax.annotation.Nullable List media) { this.media = media; } - public InboundMessageCallbackMessage priority(PriorityEnum priority) { + public InboundMessageCallbackMessage priority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; return this; } @@ -348,7 +360,7 @@ public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { + public void setPriority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; } diff --git a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java index ea9c01c8..7012e80b 100644 --- a/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/InitiateCallback.java @@ -53,60 +53,72 @@ /** * The Initiate event is fired when an inbound call is received for a Telephone Number on your Account. It is sent to the URL specified in the application associated with the location (sip-peer) that the called telephone number belongs to. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class InitiateCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_DIVERSION = "diversion"; @SerializedName(SERIALIZED_NAME_DIVERSION) + @javax.annotation.Nullable private Diversion diversion; public static final String SERIALIZED_NAME_STIR_SHAKEN = "stirShaken"; @SerializedName(SERIALIZED_NAME_STIR_SHAKEN) + @javax.annotation.Nullable private StirShaken stirShaken; public InitiateCallback() { } - public InitiateCallback eventType(String eventType) { + public InitiateCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -120,12 +132,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public InitiateCallback eventTime(OffsetDateTime eventTime) { + public InitiateCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -139,12 +151,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public InitiateCallback accountId(String accountId) { + public InitiateCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -158,12 +170,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public InitiateCallback applicationId(String applicationId) { + public InitiateCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -177,12 +189,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public InitiateCallback from(String from) { + public InitiateCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -196,12 +208,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public InitiateCallback to(String to) { + public InitiateCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -215,12 +227,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public InitiateCallback direction(CallDirectionEnum direction) { + public InitiateCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -234,12 +246,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public InitiateCallback callId(String callId) { + public InitiateCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -253,12 +265,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public InitiateCallback callUrl(URI callUrl) { + public InitiateCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -272,12 +284,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public InitiateCallback startTime(OffsetDateTime startTime) { + public InitiateCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -291,12 +303,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public InitiateCallback diversion(Diversion diversion) { + public InitiateCallback diversion(@javax.annotation.Nullable Diversion diversion) { this.diversion = diversion; return this; } @@ -310,12 +322,12 @@ public Diversion getDiversion() { return diversion; } - public void setDiversion(Diversion diversion) { + public void setDiversion(@javax.annotation.Nullable Diversion diversion) { this.diversion = diversion; } - public InitiateCallback stirShaken(StirShaken stirShaken) { + public InitiateCallback stirShaken(@javax.annotation.Nullable StirShaken stirShaken) { this.stirShaken = stirShaken; return this; } @@ -329,7 +341,7 @@ public StirShaken getStirShaken() { return stirShaken; } - public void setStirShaken(StirShaken stirShaken) { + public void setStirShaken(@javax.annotation.Nullable StirShaken stirShaken) { this.stirShaken = stirShaken; } diff --git a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java index 1f9925a1..8791e5c8 100644 --- a/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java +++ b/src/main/java/com/bandwidth/sdk/model/ListMessageItem.java @@ -53,80 +53,97 @@ /** * ListMessageItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class ListMessageItem { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) + @javax.annotation.Nullable private String messageId; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_SOURCE_TN = "sourceTn"; @SerializedName(SERIALIZED_NAME_SOURCE_TN) + @javax.annotation.Nullable private String sourceTn; public static final String SERIALIZED_NAME_DESTINATION_TN = "destinationTn"; @SerializedName(SERIALIZED_NAME_DESTINATION_TN) + @javax.annotation.Nullable private String destinationTn; public static final String SERIALIZED_NAME_MESSAGE_STATUS = "messageStatus"; @SerializedName(SERIALIZED_NAME_MESSAGE_STATUS) + @javax.annotation.Nullable private MessageStatusEnum messageStatus; public static final String SERIALIZED_NAME_MESSAGE_DIRECTION = "messageDirection"; @SerializedName(SERIALIZED_NAME_MESSAGE_DIRECTION) + @javax.annotation.Nullable private ListMessageDirectionEnum messageDirection; public static final String SERIALIZED_NAME_MESSAGE_TYPE = "messageType"; @SerializedName(SERIALIZED_NAME_MESSAGE_TYPE) + @javax.annotation.Nullable private MessageTypeEnum messageType; public static final String SERIALIZED_NAME_SEGMENT_COUNT = "segmentCount"; @SerializedName(SERIALIZED_NAME_SEGMENT_COUNT) + @javax.annotation.Nullable private Integer segmentCount; public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) + @javax.annotation.Nullable private Integer errorCode; public static final String SERIALIZED_NAME_RECEIVE_TIME = "receiveTime"; @SerializedName(SERIALIZED_NAME_RECEIVE_TIME) + @javax.annotation.Nullable private OffsetDateTime receiveTime; public static final String SERIALIZED_NAME_CARRIER_NAME = "carrierName"; @SerializedName(SERIALIZED_NAME_CARRIER_NAME) + @javax.annotation.Nullable private String carrierName; public static final String SERIALIZED_NAME_MESSAGE_SIZE = "messageSize"; @SerializedName(SERIALIZED_NAME_MESSAGE_SIZE) + @javax.annotation.Nullable private Integer messageSize; public static final String SERIALIZED_NAME_MESSAGE_LENGTH = "messageLength"; @SerializedName(SERIALIZED_NAME_MESSAGE_LENGTH) + @javax.annotation.Nullable private Integer messageLength; public static final String SERIALIZED_NAME_ATTACHMENT_COUNT = "attachmentCount"; @SerializedName(SERIALIZED_NAME_ATTACHMENT_COUNT) + @javax.annotation.Nullable private Integer attachmentCount; public static final String SERIALIZED_NAME_RECIPIENT_COUNT = "recipientCount"; @SerializedName(SERIALIZED_NAME_RECIPIENT_COUNT) + @javax.annotation.Nullable private Integer recipientCount; public static final String SERIALIZED_NAME_CAMPAIGN_CLASS = "campaignClass"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_CLASS) + @javax.annotation.Nullable private String campaignClass; public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId"; @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID) + @javax.annotation.Nullable private String campaignId; public ListMessageItem() { } - public ListMessageItem messageId(String messageId) { + public ListMessageItem messageId(@javax.annotation.Nullable String messageId) { this.messageId = messageId; return this; } @@ -140,12 +157,12 @@ public String getMessageId() { return messageId; } - public void setMessageId(String messageId) { + public void setMessageId(@javax.annotation.Nullable String messageId) { this.messageId = messageId; } - public ListMessageItem accountId(String accountId) { + public ListMessageItem accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -159,12 +176,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public ListMessageItem sourceTn(String sourceTn) { + public ListMessageItem sourceTn(@javax.annotation.Nullable String sourceTn) { this.sourceTn = sourceTn; return this; } @@ -178,12 +195,12 @@ public String getSourceTn() { return sourceTn; } - public void setSourceTn(String sourceTn) { + public void setSourceTn(@javax.annotation.Nullable String sourceTn) { this.sourceTn = sourceTn; } - public ListMessageItem destinationTn(String destinationTn) { + public ListMessageItem destinationTn(@javax.annotation.Nullable String destinationTn) { this.destinationTn = destinationTn; return this; } @@ -197,12 +214,12 @@ public String getDestinationTn() { return destinationTn; } - public void setDestinationTn(String destinationTn) { + public void setDestinationTn(@javax.annotation.Nullable String destinationTn) { this.destinationTn = destinationTn; } - public ListMessageItem messageStatus(MessageStatusEnum messageStatus) { + public ListMessageItem messageStatus(@javax.annotation.Nullable MessageStatusEnum messageStatus) { this.messageStatus = messageStatus; return this; } @@ -216,12 +233,12 @@ public MessageStatusEnum getMessageStatus() { return messageStatus; } - public void setMessageStatus(MessageStatusEnum messageStatus) { + public void setMessageStatus(@javax.annotation.Nullable MessageStatusEnum messageStatus) { this.messageStatus = messageStatus; } - public ListMessageItem messageDirection(ListMessageDirectionEnum messageDirection) { + public ListMessageItem messageDirection(@javax.annotation.Nullable ListMessageDirectionEnum messageDirection) { this.messageDirection = messageDirection; return this; } @@ -235,12 +252,12 @@ public ListMessageDirectionEnum getMessageDirection() { return messageDirection; } - public void setMessageDirection(ListMessageDirectionEnum messageDirection) { + public void setMessageDirection(@javax.annotation.Nullable ListMessageDirectionEnum messageDirection) { this.messageDirection = messageDirection; } - public ListMessageItem messageType(MessageTypeEnum messageType) { + public ListMessageItem messageType(@javax.annotation.Nullable MessageTypeEnum messageType) { this.messageType = messageType; return this; } @@ -254,12 +271,12 @@ public MessageTypeEnum getMessageType() { return messageType; } - public void setMessageType(MessageTypeEnum messageType) { + public void setMessageType(@javax.annotation.Nullable MessageTypeEnum messageType) { this.messageType = messageType; } - public ListMessageItem segmentCount(Integer segmentCount) { + public ListMessageItem segmentCount(@javax.annotation.Nullable Integer segmentCount) { this.segmentCount = segmentCount; return this; } @@ -273,12 +290,12 @@ public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { + public void setSegmentCount(@javax.annotation.Nullable Integer segmentCount) { this.segmentCount = segmentCount; } - public ListMessageItem errorCode(Integer errorCode) { + public ListMessageItem errorCode(@javax.annotation.Nullable Integer errorCode) { this.errorCode = errorCode; return this; } @@ -292,12 +309,12 @@ public Integer getErrorCode() { return errorCode; } - public void setErrorCode(Integer errorCode) { + public void setErrorCode(@javax.annotation.Nullable Integer errorCode) { this.errorCode = errorCode; } - public ListMessageItem receiveTime(OffsetDateTime receiveTime) { + public ListMessageItem receiveTime(@javax.annotation.Nullable OffsetDateTime receiveTime) { this.receiveTime = receiveTime; return this; } @@ -311,12 +328,12 @@ public OffsetDateTime getReceiveTime() { return receiveTime; } - public void setReceiveTime(OffsetDateTime receiveTime) { + public void setReceiveTime(@javax.annotation.Nullable OffsetDateTime receiveTime) { this.receiveTime = receiveTime; } - public ListMessageItem carrierName(String carrierName) { + public ListMessageItem carrierName(@javax.annotation.Nullable String carrierName) { this.carrierName = carrierName; return this; } @@ -330,12 +347,12 @@ public String getCarrierName() { return carrierName; } - public void setCarrierName(String carrierName) { + public void setCarrierName(@javax.annotation.Nullable String carrierName) { this.carrierName = carrierName; } - public ListMessageItem messageSize(Integer messageSize) { + public ListMessageItem messageSize(@javax.annotation.Nullable Integer messageSize) { this.messageSize = messageSize; return this; } @@ -349,12 +366,12 @@ public Integer getMessageSize() { return messageSize; } - public void setMessageSize(Integer messageSize) { + public void setMessageSize(@javax.annotation.Nullable Integer messageSize) { this.messageSize = messageSize; } - public ListMessageItem messageLength(Integer messageLength) { + public ListMessageItem messageLength(@javax.annotation.Nullable Integer messageLength) { this.messageLength = messageLength; return this; } @@ -368,12 +385,12 @@ public Integer getMessageLength() { return messageLength; } - public void setMessageLength(Integer messageLength) { + public void setMessageLength(@javax.annotation.Nullable Integer messageLength) { this.messageLength = messageLength; } - public ListMessageItem attachmentCount(Integer attachmentCount) { + public ListMessageItem attachmentCount(@javax.annotation.Nullable Integer attachmentCount) { this.attachmentCount = attachmentCount; return this; } @@ -387,12 +404,12 @@ public Integer getAttachmentCount() { return attachmentCount; } - public void setAttachmentCount(Integer attachmentCount) { + public void setAttachmentCount(@javax.annotation.Nullable Integer attachmentCount) { this.attachmentCount = attachmentCount; } - public ListMessageItem recipientCount(Integer recipientCount) { + public ListMessageItem recipientCount(@javax.annotation.Nullable Integer recipientCount) { this.recipientCount = recipientCount; return this; } @@ -406,12 +423,12 @@ public Integer getRecipientCount() { return recipientCount; } - public void setRecipientCount(Integer recipientCount) { + public void setRecipientCount(@javax.annotation.Nullable Integer recipientCount) { this.recipientCount = recipientCount; } - public ListMessageItem campaignClass(String campaignClass) { + public ListMessageItem campaignClass(@javax.annotation.Nullable String campaignClass) { this.campaignClass = campaignClass; return this; } @@ -425,12 +442,12 @@ public String getCampaignClass() { return campaignClass; } - public void setCampaignClass(String campaignClass) { + public void setCampaignClass(@javax.annotation.Nullable String campaignClass) { this.campaignClass = campaignClass; } - public ListMessageItem campaignId(String campaignId) { + public ListMessageItem campaignId(@javax.annotation.Nullable String campaignId) { this.campaignId = campaignId; return this; } @@ -444,7 +461,7 @@ public String getCampaignId() { return campaignId; } - public void setCampaignId(String campaignId) { + public void setCampaignId(@javax.annotation.Nullable String campaignId) { this.campaignId = campaignId; } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java index f09f7fdc..9a20f90e 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupRequest.java @@ -50,16 +50,17 @@ /** * Create phone number lookup request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class LookupRequest { public static final String SERIALIZED_NAME_TNS = "tns"; @SerializedName(SERIALIZED_NAME_TNS) + @javax.annotation.Nonnull private List tns = new ArrayList<>(); public LookupRequest() { } - public LookupRequest tns(List tns) { + public LookupRequest tns(@javax.annotation.Nonnull List tns) { this.tns = tns; return this; } @@ -81,7 +82,7 @@ public List getTns() { return tns; } - public void setTns(List tns) { + public void setTns(@javax.annotation.Nonnull List tns) { this.tns = tns; } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupResult.java b/src/main/java/com/bandwidth/sdk/model/LookupResult.java index 846acd11..4b89b117 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupResult.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupResult.java @@ -48,48 +48,57 @@ /** * Carrier information results for the specified telephone number. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class LookupResult { public static final String SERIALIZED_NAME_RESPONSE_CODE = "Response Code"; @SerializedName(SERIALIZED_NAME_RESPONSE_CODE) + @javax.annotation.Nullable private Integer responseCode; public static final String SERIALIZED_NAME_MESSAGE = "Message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public static final String SERIALIZED_NAME_E164_FORMAT = "E.164 Format"; @SerializedName(SERIALIZED_NAME_E164_FORMAT) + @javax.annotation.Nullable private String e164Format; public static final String SERIALIZED_NAME_FORMATTED = "Formatted"; @SerializedName(SERIALIZED_NAME_FORMATTED) + @javax.annotation.Nullable private String formatted; public static final String SERIALIZED_NAME_COUNTRY = "Country"; @SerializedName(SERIALIZED_NAME_COUNTRY) + @javax.annotation.Nullable private String country; public static final String SERIALIZED_NAME_LINE_TYPE = "Line Type"; @SerializedName(SERIALIZED_NAME_LINE_TYPE) + @javax.annotation.Nullable private String lineType; public static final String SERIALIZED_NAME_LINE_PROVIDER = "Line Provider"; @SerializedName(SERIALIZED_NAME_LINE_PROVIDER) + @javax.annotation.Nullable private String lineProvider; public static final String SERIALIZED_NAME_MOBILE_COUNTRY_CODE = "Mobile Country Code"; @SerializedName(SERIALIZED_NAME_MOBILE_COUNTRY_CODE) + @javax.annotation.Nullable private String mobileCountryCode; public static final String SERIALIZED_NAME_MOBILE_NETWORK_CODE = "Mobile Network Code"; @SerializedName(SERIALIZED_NAME_MOBILE_NETWORK_CODE) + @javax.annotation.Nullable private String mobileNetworkCode; public LookupResult() { } - public LookupResult responseCode(Integer responseCode) { + public LookupResult responseCode(@javax.annotation.Nullable Integer responseCode) { this.responseCode = responseCode; return this; } @@ -103,12 +112,12 @@ public Integer getResponseCode() { return responseCode; } - public void setResponseCode(Integer responseCode) { + public void setResponseCode(@javax.annotation.Nullable Integer responseCode) { this.responseCode = responseCode; } - public LookupResult message(String message) { + public LookupResult message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -122,12 +131,12 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } - public LookupResult e164Format(String e164Format) { + public LookupResult e164Format(@javax.annotation.Nullable String e164Format) { this.e164Format = e164Format; return this; } @@ -141,12 +150,12 @@ public String getE164Format() { return e164Format; } - public void setE164Format(String e164Format) { + public void setE164Format(@javax.annotation.Nullable String e164Format) { this.e164Format = e164Format; } - public LookupResult formatted(String formatted) { + public LookupResult formatted(@javax.annotation.Nullable String formatted) { this.formatted = formatted; return this; } @@ -160,12 +169,12 @@ public String getFormatted() { return formatted; } - public void setFormatted(String formatted) { + public void setFormatted(@javax.annotation.Nullable String formatted) { this.formatted = formatted; } - public LookupResult country(String country) { + public LookupResult country(@javax.annotation.Nullable String country) { this.country = country; return this; } @@ -179,12 +188,12 @@ public String getCountry() { return country; } - public void setCountry(String country) { + public void setCountry(@javax.annotation.Nullable String country) { this.country = country; } - public LookupResult lineType(String lineType) { + public LookupResult lineType(@javax.annotation.Nullable String lineType) { this.lineType = lineType; return this; } @@ -198,12 +207,12 @@ public String getLineType() { return lineType; } - public void setLineType(String lineType) { + public void setLineType(@javax.annotation.Nullable String lineType) { this.lineType = lineType; } - public LookupResult lineProvider(String lineProvider) { + public LookupResult lineProvider(@javax.annotation.Nullable String lineProvider) { this.lineProvider = lineProvider; return this; } @@ -217,12 +226,12 @@ public String getLineProvider() { return lineProvider; } - public void setLineProvider(String lineProvider) { + public void setLineProvider(@javax.annotation.Nullable String lineProvider) { this.lineProvider = lineProvider; } - public LookupResult mobileCountryCode(String mobileCountryCode) { + public LookupResult mobileCountryCode(@javax.annotation.Nullable String mobileCountryCode) { this.mobileCountryCode = mobileCountryCode; return this; } @@ -236,12 +245,12 @@ public String getMobileCountryCode() { return mobileCountryCode; } - public void setMobileCountryCode(String mobileCountryCode) { + public void setMobileCountryCode(@javax.annotation.Nullable String mobileCountryCode) { this.mobileCountryCode = mobileCountryCode; } - public LookupResult mobileNetworkCode(String mobileNetworkCode) { + public LookupResult mobileNetworkCode(@javax.annotation.Nullable String mobileNetworkCode) { this.mobileNetworkCode = mobileNetworkCode; return this; } @@ -255,7 +264,7 @@ public String getMobileNetworkCode() { return mobileNetworkCode; } - public void setMobileNetworkCode(String mobileNetworkCode) { + public void setMobileNetworkCode(@javax.annotation.Nullable String mobileNetworkCode) { this.mobileNetworkCode = mobileNetworkCode; } diff --git a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java index cdc1ac26..c1474231 100644 --- a/src/main/java/com/bandwidth/sdk/model/LookupStatus.java +++ b/src/main/java/com/bandwidth/sdk/model/LookupStatus.java @@ -52,28 +52,32 @@ /** * If requestId exists, the result for that request is returned. See the Examples for details on the various responses that you can receive. Generally, if you see a Response Code of 0 in a result for a TN, information will be available for it. Any other Response Code will indicate no information was available for the TN. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class LookupStatus { public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) + @javax.annotation.Nullable private String requestId; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private LookupStatusEnum status; public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) + @javax.annotation.Nullable private List result = new ArrayList<>(); public static final String SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS = "failedTelephoneNumbers"; @SerializedName(SERIALIZED_NAME_FAILED_TELEPHONE_NUMBERS) + @javax.annotation.Nullable private List failedTelephoneNumbers = new ArrayList<>(); public LookupStatus() { } - public LookupStatus requestId(String requestId) { + public LookupStatus requestId(@javax.annotation.Nullable String requestId) { this.requestId = requestId; return this; } @@ -87,12 +91,12 @@ public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { + public void setRequestId(@javax.annotation.Nullable String requestId) { this.requestId = requestId; } - public LookupStatus status(LookupStatusEnum status) { + public LookupStatus status(@javax.annotation.Nullable LookupStatusEnum status) { this.status = status; return this; } @@ -106,12 +110,12 @@ public LookupStatusEnum getStatus() { return status; } - public void setStatus(LookupStatusEnum status) { + public void setStatus(@javax.annotation.Nullable LookupStatusEnum status) { this.status = status; } - public LookupStatus result(List result) { + public LookupStatus result(@javax.annotation.Nullable List result) { this.result = result; return this; } @@ -133,12 +137,12 @@ public List getResult() { return result; } - public void setResult(List result) { + public void setResult(@javax.annotation.Nullable List result) { this.result = result; } - public LookupStatus failedTelephoneNumbers(List failedTelephoneNumbers) { + public LookupStatus failedTelephoneNumbers(@javax.annotation.Nullable List failedTelephoneNumbers) { this.failedTelephoneNumbers = failedTelephoneNumbers; return this; } @@ -160,7 +164,7 @@ public List getFailedTelephoneNumbers() { return failedTelephoneNumbers; } - public void setFailedTelephoneNumbers(List failedTelephoneNumbers) { + public void setFailedTelephoneNumbers(@javax.annotation.Nullable List failedTelephoneNumbers) { this.failedTelephoneNumbers = failedTelephoneNumbers; } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java index 5cf68101..0f3f0a98 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionCompleteCallback.java @@ -53,68 +53,82 @@ /** * This event is sent to the url informed when requesting a machine detection operation. It contains the machine detection operation result, which can be: human, answering-machine, silence, timeout, error. This event is not sent when sync answering machine detection mode is chosen. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MachineDetectionCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_MACHINE_DETECTION_RESULT = "machineDetectionResult"; @SerializedName(SERIALIZED_NAME_MACHINE_DETECTION_RESULT) + @javax.annotation.Nullable private MachineDetectionResult machineDetectionResult; public MachineDetectionCompleteCallback() { } - public MachineDetectionCompleteCallback eventType(String eventType) { + public MachineDetectionCompleteCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -128,12 +142,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public MachineDetectionCompleteCallback eventTime(OffsetDateTime eventTime) { + public MachineDetectionCompleteCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -147,12 +161,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public MachineDetectionCompleteCallback accountId(String accountId) { + public MachineDetectionCompleteCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -166,12 +180,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public MachineDetectionCompleteCallback applicationId(String applicationId) { + public MachineDetectionCompleteCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -185,12 +199,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public MachineDetectionCompleteCallback from(String from) { + public MachineDetectionCompleteCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -204,12 +218,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public MachineDetectionCompleteCallback to(String to) { + public MachineDetectionCompleteCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -223,12 +237,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public MachineDetectionCompleteCallback direction(CallDirectionEnum direction) { + public MachineDetectionCompleteCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -242,12 +256,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public MachineDetectionCompleteCallback callId(String callId) { + public MachineDetectionCompleteCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -261,12 +275,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public MachineDetectionCompleteCallback callUrl(URI callUrl) { + public MachineDetectionCompleteCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -280,12 +294,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public MachineDetectionCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public MachineDetectionCompleteCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -299,12 +313,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public MachineDetectionCompleteCallback startTime(OffsetDateTime startTime) { + public MachineDetectionCompleteCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -318,12 +332,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public MachineDetectionCompleteCallback answerTime(OffsetDateTime answerTime) { + public MachineDetectionCompleteCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -337,12 +351,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public MachineDetectionCompleteCallback tag(String tag) { + public MachineDetectionCompleteCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -356,12 +370,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public MachineDetectionCompleteCallback machineDetectionResult(MachineDetectionResult machineDetectionResult) { + public MachineDetectionCompleteCallback machineDetectionResult(@javax.annotation.Nullable MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; return this; } @@ -375,7 +389,7 @@ public MachineDetectionResult getMachineDetectionResult() { return machineDetectionResult; } - public void setMachineDetectionResult(MachineDetectionResult machineDetectionResult) { + public void setMachineDetectionResult(@javax.annotation.Nullable MachineDetectionResult machineDetectionResult) { this.machineDetectionResult = machineDetectionResult; } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java index 5b22e432..4b168f9f 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionConfiguration.java @@ -52,72 +52,87 @@ /** * The machine detection request used to perform <a href='/docs/voice/guides/machineDetection'>machine detection</a> on the call. Currently, there is an issue where decimal values are not getting processed correctly. Please use whole number values. We are working to resolve this issue. Please contact Bandwidth Support if you need more information. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MachineDetectionConfiguration { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) + @javax.annotation.Nullable private MachineDetectionModeEnum mode = MachineDetectionModeEnum.ASYNC; public static final String SERIALIZED_NAME_DETECTION_TIMEOUT = "detectionTimeout"; @SerializedName(SERIALIZED_NAME_DETECTION_TIMEOUT) + @javax.annotation.Nullable private Double detectionTimeout = 15d; public static final String SERIALIZED_NAME_SILENCE_TIMEOUT = "silenceTimeout"; @SerializedName(SERIALIZED_NAME_SILENCE_TIMEOUT) + @javax.annotation.Nullable private Double silenceTimeout = 10d; public static final String SERIALIZED_NAME_SPEECH_THRESHOLD = "speechThreshold"; @SerializedName(SERIALIZED_NAME_SPEECH_THRESHOLD) + @javax.annotation.Nullable private Double speechThreshold = 10d; public static final String SERIALIZED_NAME_SPEECH_END_THRESHOLD = "speechEndThreshold"; @SerializedName(SERIALIZED_NAME_SPEECH_END_THRESHOLD) + @javax.annotation.Nullable private Double speechEndThreshold = 5d; public static final String SERIALIZED_NAME_MACHINE_SPEECH_END_THRESHOLD = "machineSpeechEndThreshold"; @SerializedName(SERIALIZED_NAME_MACHINE_SPEECH_END_THRESHOLD) + @javax.annotation.Nullable private Double machineSpeechEndThreshold; public static final String SERIALIZED_NAME_DELAY_RESULT = "delayResult"; @SerializedName(SERIALIZED_NAME_DELAY_RESULT) + @javax.annotation.Nullable private Boolean delayResult = false; public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) + @javax.annotation.Nullable private URI callbackUrl; public static final String SERIALIZED_NAME_CALLBACK_METHOD = "callbackMethod"; @SerializedName(SERIALIZED_NAME_CALLBACK_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum callbackMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_FALLBACK_URL = "fallbackUrl"; @SerializedName(SERIALIZED_NAME_FALLBACK_URL) + @javax.annotation.Nullable private URI fallbackUrl; public static final String SERIALIZED_NAME_FALLBACK_METHOD = "fallbackMethod"; @SerializedName(SERIALIZED_NAME_FALLBACK_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum fallbackMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_FALLBACK_USERNAME = "fallbackUsername"; @SerializedName(SERIALIZED_NAME_FALLBACK_USERNAME) + @javax.annotation.Nullable private String fallbackUsername; public static final String SERIALIZED_NAME_FALLBACK_PASSWORD = "fallbackPassword"; @SerializedName(SERIALIZED_NAME_FALLBACK_PASSWORD) + @javax.annotation.Nullable private String fallbackPassword; public MachineDetectionConfiguration() { } - public MachineDetectionConfiguration mode(MachineDetectionModeEnum mode) { + public MachineDetectionConfiguration mode(@javax.annotation.Nullable MachineDetectionModeEnum mode) { this.mode = mode; return this; } @@ -131,12 +146,12 @@ public MachineDetectionModeEnum getMode() { return mode; } - public void setMode(MachineDetectionModeEnum mode) { + public void setMode(@javax.annotation.Nullable MachineDetectionModeEnum mode) { this.mode = mode; } - public MachineDetectionConfiguration detectionTimeout(Double detectionTimeout) { + public MachineDetectionConfiguration detectionTimeout(@javax.annotation.Nullable Double detectionTimeout) { this.detectionTimeout = detectionTimeout; return this; } @@ -150,12 +165,12 @@ public Double getDetectionTimeout() { return detectionTimeout; } - public void setDetectionTimeout(Double detectionTimeout) { + public void setDetectionTimeout(@javax.annotation.Nullable Double detectionTimeout) { this.detectionTimeout = detectionTimeout; } - public MachineDetectionConfiguration silenceTimeout(Double silenceTimeout) { + public MachineDetectionConfiguration silenceTimeout(@javax.annotation.Nullable Double silenceTimeout) { this.silenceTimeout = silenceTimeout; return this; } @@ -169,12 +184,12 @@ public Double getSilenceTimeout() { return silenceTimeout; } - public void setSilenceTimeout(Double silenceTimeout) { + public void setSilenceTimeout(@javax.annotation.Nullable Double silenceTimeout) { this.silenceTimeout = silenceTimeout; } - public MachineDetectionConfiguration speechThreshold(Double speechThreshold) { + public MachineDetectionConfiguration speechThreshold(@javax.annotation.Nullable Double speechThreshold) { this.speechThreshold = speechThreshold; return this; } @@ -188,12 +203,12 @@ public Double getSpeechThreshold() { return speechThreshold; } - public void setSpeechThreshold(Double speechThreshold) { + public void setSpeechThreshold(@javax.annotation.Nullable Double speechThreshold) { this.speechThreshold = speechThreshold; } - public MachineDetectionConfiguration speechEndThreshold(Double speechEndThreshold) { + public MachineDetectionConfiguration speechEndThreshold(@javax.annotation.Nullable Double speechEndThreshold) { this.speechEndThreshold = speechEndThreshold; return this; } @@ -207,12 +222,12 @@ public Double getSpeechEndThreshold() { return speechEndThreshold; } - public void setSpeechEndThreshold(Double speechEndThreshold) { + public void setSpeechEndThreshold(@javax.annotation.Nullable Double speechEndThreshold) { this.speechEndThreshold = speechEndThreshold; } - public MachineDetectionConfiguration machineSpeechEndThreshold(Double machineSpeechEndThreshold) { + public MachineDetectionConfiguration machineSpeechEndThreshold(@javax.annotation.Nullable Double machineSpeechEndThreshold) { this.machineSpeechEndThreshold = machineSpeechEndThreshold; return this; } @@ -226,12 +241,12 @@ public Double getMachineSpeechEndThreshold() { return machineSpeechEndThreshold; } - public void setMachineSpeechEndThreshold(Double machineSpeechEndThreshold) { + public void setMachineSpeechEndThreshold(@javax.annotation.Nullable Double machineSpeechEndThreshold) { this.machineSpeechEndThreshold = machineSpeechEndThreshold; } - public MachineDetectionConfiguration delayResult(Boolean delayResult) { + public MachineDetectionConfiguration delayResult(@javax.annotation.Nullable Boolean delayResult) { this.delayResult = delayResult; return this; } @@ -245,12 +260,12 @@ public Boolean getDelayResult() { return delayResult; } - public void setDelayResult(Boolean delayResult) { + public void setDelayResult(@javax.annotation.Nullable Boolean delayResult) { this.delayResult = delayResult; } - public MachineDetectionConfiguration callbackUrl(URI callbackUrl) { + public MachineDetectionConfiguration callbackUrl(@javax.annotation.Nullable URI callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -264,12 +279,12 @@ public URI getCallbackUrl() { return callbackUrl; } - public void setCallbackUrl(URI callbackUrl) { + public void setCallbackUrl(@javax.annotation.Nullable URI callbackUrl) { this.callbackUrl = callbackUrl; } - public MachineDetectionConfiguration callbackMethod(CallbackMethodEnum callbackMethod) { + public MachineDetectionConfiguration callbackMethod(@javax.annotation.Nullable CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; return this; } @@ -283,12 +298,12 @@ public CallbackMethodEnum getCallbackMethod() { return callbackMethod; } - public void setCallbackMethod(CallbackMethodEnum callbackMethod) { + public void setCallbackMethod(@javax.annotation.Nullable CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; } - public MachineDetectionConfiguration username(String username) { + public MachineDetectionConfiguration username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -302,12 +317,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public MachineDetectionConfiguration password(String password) { + public MachineDetectionConfiguration password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -321,12 +336,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public MachineDetectionConfiguration fallbackUrl(URI fallbackUrl) { + public MachineDetectionConfiguration fallbackUrl(@javax.annotation.Nullable URI fallbackUrl) { this.fallbackUrl = fallbackUrl; return this; } @@ -340,12 +355,12 @@ public URI getFallbackUrl() { return fallbackUrl; } - public void setFallbackUrl(URI fallbackUrl) { + public void setFallbackUrl(@javax.annotation.Nullable URI fallbackUrl) { this.fallbackUrl = fallbackUrl; } - public MachineDetectionConfiguration fallbackMethod(CallbackMethodEnum fallbackMethod) { + public MachineDetectionConfiguration fallbackMethod(@javax.annotation.Nullable CallbackMethodEnum fallbackMethod) { this.fallbackMethod = fallbackMethod; return this; } @@ -359,12 +374,12 @@ public CallbackMethodEnum getFallbackMethod() { return fallbackMethod; } - public void setFallbackMethod(CallbackMethodEnum fallbackMethod) { + public void setFallbackMethod(@javax.annotation.Nullable CallbackMethodEnum fallbackMethod) { this.fallbackMethod = fallbackMethod; } - public MachineDetectionConfiguration fallbackUsername(String fallbackUsername) { + public MachineDetectionConfiguration fallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; return this; } @@ -378,12 +393,12 @@ public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { + public void setFallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; } - public MachineDetectionConfiguration fallbackPassword(String fallbackPassword) { + public MachineDetectionConfiguration fallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; return this; } @@ -397,7 +412,7 @@ public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { + public void setFallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; } diff --git a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java index b33891ea..a424bdfb 100644 --- a/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java +++ b/src/main/java/com/bandwidth/sdk/model/MachineDetectionResult.java @@ -48,20 +48,22 @@ /** * (optional) if machine detection was requested in sync mode, the result will be specified here. Possible values are the same as the async counterpart: Machine Detection Complete */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MachineDetectionResult { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @javax.annotation.Nullable private String value; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public MachineDetectionResult() { } - public MachineDetectionResult value(String value) { + public MachineDetectionResult value(@javax.annotation.Nullable String value) { this.value = value; return this; } @@ -75,12 +77,12 @@ public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@javax.annotation.Nullable String value) { this.value = value; } - public MachineDetectionResult duration(String duration) { + public MachineDetectionResult duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -94,7 +96,7 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } diff --git a/src/main/java/com/bandwidth/sdk/model/Media.java b/src/main/java/com/bandwidth/sdk/model/Media.java index 6271307d..551b9a39 100644 --- a/src/main/java/com/bandwidth/sdk/model/Media.java +++ b/src/main/java/com/bandwidth/sdk/model/Media.java @@ -48,24 +48,27 @@ /** * Media */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Media { public static final String SERIALIZED_NAME_CONTENT = "content"; @SerializedName(SERIALIZED_NAME_CONTENT) + @javax.annotation.Nullable private String content; public static final String SERIALIZED_NAME_CONTENT_LENGTH = "contentLength"; @SerializedName(SERIALIZED_NAME_CONTENT_LENGTH) + @javax.annotation.Nullable private Integer contentLength; public static final String SERIALIZED_NAME_MEDIA_NAME = "mediaName"; @SerializedName(SERIALIZED_NAME_MEDIA_NAME) + @javax.annotation.Nullable private String mediaName; public Media() { } - public Media content(String content) { + public Media content(@javax.annotation.Nullable String content) { this.content = content; return this; } @@ -79,12 +82,12 @@ public String getContent() { return content; } - public void setContent(String content) { + public void setContent(@javax.annotation.Nullable String content) { this.content = content; } - public Media contentLength(Integer contentLength) { + public Media contentLength(@javax.annotation.Nullable Integer contentLength) { this.contentLength = contentLength; return this; } @@ -98,12 +101,12 @@ public Integer getContentLength() { return contentLength; } - public void setContentLength(Integer contentLength) { + public void setContentLength(@javax.annotation.Nullable Integer contentLength) { this.contentLength = contentLength; } - public Media mediaName(String mediaName) { + public Media mediaName(@javax.annotation.Nullable String mediaName) { this.mediaName = mediaName; return this; } @@ -117,7 +120,7 @@ public String getMediaName() { return mediaName; } - public void setMediaName(String mediaName) { + public void setMediaName(@javax.annotation.Nullable String mediaName) { this.mediaName = mediaName; } diff --git a/src/main/java/com/bandwidth/sdk/model/Message.java b/src/main/java/com/bandwidth/sdk/model/Message.java index f8647be4..4e2bde24 100644 --- a/src/main/java/com/bandwidth/sdk/model/Message.java +++ b/src/main/java/com/bandwidth/sdk/model/Message.java @@ -53,64 +53,77 @@ /** * Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Message { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private String id; public static final String SERIALIZED_NAME_OWNER = "owner"; @SerializedName(SERIALIZED_NAME_OWNER) + @javax.annotation.Nullable private String owner; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nullable private OffsetDateTime time; public static final String SERIALIZED_NAME_SEGMENT_COUNT = "segmentCount"; @SerializedName(SERIALIZED_NAME_SEGMENT_COUNT) + @javax.annotation.Nullable private Integer segmentCount; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private MessageDirectionEnum direction; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) + @javax.annotation.Nullable private Set media = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private PriorityEnum priority; public static final String SERIALIZED_NAME_EXPIRATION = "expiration"; @SerializedName(SERIALIZED_NAME_EXPIRATION) + @javax.annotation.Nullable private OffsetDateTime expiration; public Message() { } - public Message id(String id) { + public Message id(@javax.annotation.Nullable String id) { this.id = id; return this; } @@ -124,12 +137,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public Message owner(String owner) { + public Message owner(@javax.annotation.Nullable String owner) { this.owner = owner; return this; } @@ -143,12 +156,12 @@ public String getOwner() { return owner; } - public void setOwner(String owner) { + public void setOwner(@javax.annotation.Nullable String owner) { this.owner = owner; } - public Message applicationId(String applicationId) { + public Message applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -162,12 +175,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public Message time(OffsetDateTime time) { + public Message time(@javax.annotation.Nullable OffsetDateTime time) { this.time = time; return this; } @@ -181,12 +194,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nullable OffsetDateTime time) { this.time = time; } - public Message segmentCount(Integer segmentCount) { + public Message segmentCount(@javax.annotation.Nullable Integer segmentCount) { this.segmentCount = segmentCount; return this; } @@ -200,12 +213,12 @@ public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { + public void setSegmentCount(@javax.annotation.Nullable Integer segmentCount) { this.segmentCount = segmentCount; } - public Message direction(MessageDirectionEnum direction) { + public Message direction(@javax.annotation.Nullable MessageDirectionEnum direction) { this.direction = direction; return this; } @@ -219,12 +232,12 @@ public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable MessageDirectionEnum direction) { this.direction = direction; } - public Message to(Set to) { + public Message to(@javax.annotation.Nullable Set to) { this.to = to; return this; } @@ -246,12 +259,12 @@ public Set getTo() { return to; } - public void setTo(Set to) { + public void setTo(@javax.annotation.Nullable Set to) { this.to = to; } - public Message from(String from) { + public Message from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -265,12 +278,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public Message media(Set media) { + public Message media(@javax.annotation.Nullable Set media) { this.media = media; return this; } @@ -292,12 +305,12 @@ public Set getMedia() { return media; } - public void setMedia(Set media) { + public void setMedia(@javax.annotation.Nullable Set media) { this.media = media; } - public Message text(String text) { + public Message text(@javax.annotation.Nullable String text) { this.text = text; return this; } @@ -311,12 +324,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public Message tag(String tag) { + public Message tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -330,12 +343,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public Message priority(PriorityEnum priority) { + public Message priority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; return this; } @@ -349,12 +362,12 @@ public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { + public void setPriority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; } - public Message expiration(OffsetDateTime expiration) { + public Message expiration(@javax.annotation.Nullable OffsetDateTime expiration) { this.expiration = expiration; return this; } @@ -368,7 +381,7 @@ public OffsetDateTime getExpiration() { return expiration; } - public void setExpiration(OffsetDateTime expiration) { + public void setExpiration(@javax.annotation.Nullable OffsetDateTime expiration) { this.expiration = expiration; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java index 78b2e050..2a9b1c7e 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallback.java @@ -50,32 +50,37 @@ /** * Message Delivered Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageDeliveredCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull private String type; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull private String description; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nonnull private MessageDeliveredCallbackMessage message; public MessageDeliveredCallback() { } - public MessageDeliveredCallback time(OffsetDateTime time) { + public MessageDeliveredCallback time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -89,12 +94,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public MessageDeliveredCallback type(String type) { + public MessageDeliveredCallback type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -108,12 +113,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - public MessageDeliveredCallback to(String to) { + public MessageDeliveredCallback to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -127,12 +132,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public MessageDeliveredCallback description(String description) { + public MessageDeliveredCallback description(@javax.annotation.Nonnull String description) { this.description = description; return this; } @@ -146,12 +151,12 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nonnull String description) { this.description = description; } - public MessageDeliveredCallback message(MessageDeliveredCallbackMessage message) { + public MessageDeliveredCallback message(@javax.annotation.Nonnull MessageDeliveredCallbackMessage message) { this.message = message; return this; } @@ -165,7 +170,7 @@ public MessageDeliveredCallbackMessage getMessage() { return message; } - public void setMessage(MessageDeliveredCallbackMessage message) { + public void setMessage(@javax.annotation.Nonnull MessageDeliveredCallbackMessage message) { this.message = message; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java index a89369c2..c4c644bc 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageDeliveredCallbackMessage.java @@ -56,60 +56,72 @@ /** * Message Delivered Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageDeliveredCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull private String id; public static final String SERIALIZED_NAME_OWNER = "owner"; @SerializedName(SERIALIZED_NAME_OWNER) + @javax.annotation.Nonnull private String owner; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_SEGMENT_COUNT = "segmentCount"; @SerializedName(SERIALIZED_NAME_SEGMENT_COUNT) + @javax.annotation.Nonnull private Integer segmentCount; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nonnull private MessageDirectionEnum direction; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nonnull private String text; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nonnull private String tag; public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) + @javax.annotation.Nullable private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private PriorityEnum priority; public MessageDeliveredCallbackMessage() { } - public MessageDeliveredCallbackMessage id(String id) { + public MessageDeliveredCallbackMessage id(@javax.annotation.Nonnull String id) { this.id = id; return this; } @@ -123,12 +135,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nonnull String id) { this.id = id; } - public MessageDeliveredCallbackMessage owner(String owner) { + public MessageDeliveredCallbackMessage owner(@javax.annotation.Nonnull String owner) { this.owner = owner; return this; } @@ -142,12 +154,12 @@ public String getOwner() { return owner; } - public void setOwner(String owner) { + public void setOwner(@javax.annotation.Nonnull String owner) { this.owner = owner; } - public MessageDeliveredCallbackMessage applicationId(String applicationId) { + public MessageDeliveredCallbackMessage applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -161,12 +173,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public MessageDeliveredCallbackMessage time(OffsetDateTime time) { + public MessageDeliveredCallbackMessage time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -180,12 +192,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public MessageDeliveredCallbackMessage segmentCount(Integer segmentCount) { + public MessageDeliveredCallbackMessage segmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; return this; } @@ -199,12 +211,12 @@ public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { + public void setSegmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; } - public MessageDeliveredCallbackMessage direction(MessageDirectionEnum direction) { + public MessageDeliveredCallbackMessage direction(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; return this; } @@ -218,12 +230,12 @@ public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { + public void setDirection(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; } - public MessageDeliveredCallbackMessage to(Set to) { + public MessageDeliveredCallbackMessage to(@javax.annotation.Nonnull Set to) { this.to = to; return this; } @@ -245,12 +257,12 @@ public Set getTo() { return to; } - public void setTo(Set to) { + public void setTo(@javax.annotation.Nonnull Set to) { this.to = to; } - public MessageDeliveredCallbackMessage from(String from) { + public MessageDeliveredCallbackMessage from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -264,12 +276,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public MessageDeliveredCallbackMessage text(String text) { + public MessageDeliveredCallbackMessage text(@javax.annotation.Nonnull String text) { this.text = text; return this; } @@ -283,12 +295,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nonnull String text) { this.text = text; } - public MessageDeliveredCallbackMessage tag(String tag) { + public MessageDeliveredCallbackMessage tag(@javax.annotation.Nonnull String tag) { this.tag = tag; return this; } @@ -302,12 +314,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nonnull String tag) { this.tag = tag; } - public MessageDeliveredCallbackMessage media(List media) { + public MessageDeliveredCallbackMessage media(@javax.annotation.Nullable List media) { this.media = media; return this; } @@ -329,12 +341,12 @@ public List getMedia() { return media; } - public void setMedia(List media) { + public void setMedia(@javax.annotation.Nullable List media) { this.media = media; } - public MessageDeliveredCallbackMessage priority(PriorityEnum priority) { + public MessageDeliveredCallbackMessage priority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; return this; } @@ -348,7 +360,7 @@ public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { + public void setPriority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java index 5dbd1a65..076afbef 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallback.java @@ -50,36 +50,42 @@ /** * Message Failed Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageFailedCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull private String type; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull private String description; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nonnull private MessageFailedCallbackMessage message; public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) + @javax.annotation.Nonnull private Integer errorCode; public MessageFailedCallback() { } - public MessageFailedCallback time(OffsetDateTime time) { + public MessageFailedCallback time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -93,12 +99,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public MessageFailedCallback type(String type) { + public MessageFailedCallback type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -112,12 +118,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - public MessageFailedCallback to(String to) { + public MessageFailedCallback to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -131,12 +137,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public MessageFailedCallback description(String description) { + public MessageFailedCallback description(@javax.annotation.Nonnull String description) { this.description = description; return this; } @@ -150,12 +156,12 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nonnull String description) { this.description = description; } - public MessageFailedCallback message(MessageFailedCallbackMessage message) { + public MessageFailedCallback message(@javax.annotation.Nonnull MessageFailedCallbackMessage message) { this.message = message; return this; } @@ -169,12 +175,12 @@ public MessageFailedCallbackMessage getMessage() { return message; } - public void setMessage(MessageFailedCallbackMessage message) { + public void setMessage(@javax.annotation.Nonnull MessageFailedCallbackMessage message) { this.message = message; } - public MessageFailedCallback errorCode(Integer errorCode) { + public MessageFailedCallback errorCode(@javax.annotation.Nonnull Integer errorCode) { this.errorCode = errorCode; return this; } @@ -188,7 +194,7 @@ public Integer getErrorCode() { return errorCode; } - public void setErrorCode(Integer errorCode) { + public void setErrorCode(@javax.annotation.Nonnull Integer errorCode) { this.errorCode = errorCode; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java index c819c0e7..37dadda7 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageFailedCallbackMessage.java @@ -56,60 +56,72 @@ /** * Message Failed Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageFailedCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull private String id; public static final String SERIALIZED_NAME_OWNER = "owner"; @SerializedName(SERIALIZED_NAME_OWNER) + @javax.annotation.Nonnull private String owner; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_SEGMENT_COUNT = "segmentCount"; @SerializedName(SERIALIZED_NAME_SEGMENT_COUNT) + @javax.annotation.Nonnull private Integer segmentCount; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nonnull private MessageDirectionEnum direction; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nonnull private String text; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nonnull private String tag; public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) + @javax.annotation.Nullable private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private PriorityEnum priority; public MessageFailedCallbackMessage() { } - public MessageFailedCallbackMessage id(String id) { + public MessageFailedCallbackMessage id(@javax.annotation.Nonnull String id) { this.id = id; return this; } @@ -123,12 +135,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nonnull String id) { this.id = id; } - public MessageFailedCallbackMessage owner(String owner) { + public MessageFailedCallbackMessage owner(@javax.annotation.Nonnull String owner) { this.owner = owner; return this; } @@ -142,12 +154,12 @@ public String getOwner() { return owner; } - public void setOwner(String owner) { + public void setOwner(@javax.annotation.Nonnull String owner) { this.owner = owner; } - public MessageFailedCallbackMessage applicationId(String applicationId) { + public MessageFailedCallbackMessage applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -161,12 +173,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public MessageFailedCallbackMessage time(OffsetDateTime time) { + public MessageFailedCallbackMessage time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -180,12 +192,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public MessageFailedCallbackMessage segmentCount(Integer segmentCount) { + public MessageFailedCallbackMessage segmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; return this; } @@ -199,12 +211,12 @@ public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { + public void setSegmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; } - public MessageFailedCallbackMessage direction(MessageDirectionEnum direction) { + public MessageFailedCallbackMessage direction(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; return this; } @@ -218,12 +230,12 @@ public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { + public void setDirection(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; } - public MessageFailedCallbackMessage to(Set to) { + public MessageFailedCallbackMessage to(@javax.annotation.Nonnull Set to) { this.to = to; return this; } @@ -245,12 +257,12 @@ public Set getTo() { return to; } - public void setTo(Set to) { + public void setTo(@javax.annotation.Nonnull Set to) { this.to = to; } - public MessageFailedCallbackMessage from(String from) { + public MessageFailedCallbackMessage from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -264,12 +276,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public MessageFailedCallbackMessage text(String text) { + public MessageFailedCallbackMessage text(@javax.annotation.Nonnull String text) { this.text = text; return this; } @@ -283,12 +295,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nonnull String text) { this.text = text; } - public MessageFailedCallbackMessage tag(String tag) { + public MessageFailedCallbackMessage tag(@javax.annotation.Nonnull String tag) { this.tag = tag; return this; } @@ -302,12 +314,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nonnull String tag) { this.tag = tag; } - public MessageFailedCallbackMessage media(List media) { + public MessageFailedCallbackMessage media(@javax.annotation.Nullable List media) { this.media = media; return this; } @@ -329,12 +341,12 @@ public List getMedia() { return media; } - public void setMedia(List media) { + public void setMedia(@javax.annotation.Nullable List media) { this.media = media; } - public MessageFailedCallbackMessage priority(PriorityEnum priority) { + public MessageFailedCallbackMessage priority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; return this; } @@ -348,7 +360,7 @@ public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { + public void setPriority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java index b29f4740..3859eed6 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageRequest.java @@ -55,44 +55,52 @@ /** * MessageRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageRequest { public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) + @javax.annotation.Nullable private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private PriorityEnum priority; public static final String SERIALIZED_NAME_EXPIRATION = "expiration"; @SerializedName(SERIALIZED_NAME_EXPIRATION) + @javax.annotation.Nullable private OffsetDateTime expiration; public MessageRequest() { } - public MessageRequest applicationId(String applicationId) { + public MessageRequest applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -106,12 +114,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public MessageRequest to(Set to) { + public MessageRequest to(@javax.annotation.Nonnull Set to) { this.to = to; return this; } @@ -133,12 +141,12 @@ public Set getTo() { return to; } - public void setTo(Set to) { + public void setTo(@javax.annotation.Nonnull Set to) { this.to = to; } - public MessageRequest from(String from) { + public MessageRequest from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -152,12 +160,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public MessageRequest text(String text) { + public MessageRequest text(@javax.annotation.Nullable String text) { this.text = text; return this; } @@ -171,12 +179,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public MessageRequest media(List media) { + public MessageRequest media(@javax.annotation.Nullable List media) { this.media = media; return this; } @@ -198,12 +206,12 @@ public List getMedia() { return media; } - public void setMedia(List media) { + public void setMedia(@javax.annotation.Nullable List media) { this.media = media; } - public MessageRequest tag(String tag) { + public MessageRequest tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -217,12 +225,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public MessageRequest priority(PriorityEnum priority) { + public MessageRequest priority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; return this; } @@ -236,12 +244,12 @@ public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { + public void setPriority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; } - public MessageRequest expiration(OffsetDateTime expiration) { + public MessageRequest expiration(@javax.annotation.Nullable OffsetDateTime expiration) { this.expiration = expiration; return this; } @@ -255,7 +263,7 @@ public OffsetDateTime getExpiration() { return expiration; } - public void setExpiration(OffsetDateTime expiration) { + public void setExpiration(@javax.annotation.Nullable OffsetDateTime expiration) { this.expiration = expiration; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java index 4fe2cff5..14d81e84 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallback.java @@ -50,32 +50,37 @@ /** * Message Sending Callback */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageSendingCallback { public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull private String type; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull private String description; public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nonnull private MessageSendingCallbackMessage message; public MessageSendingCallback() { } - public MessageSendingCallback time(OffsetDateTime time) { + public MessageSendingCallback time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -89,12 +94,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public MessageSendingCallback type(String type) { + public MessageSendingCallback type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -108,12 +113,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - public MessageSendingCallback to(String to) { + public MessageSendingCallback to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -127,12 +132,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public MessageSendingCallback description(String description) { + public MessageSendingCallback description(@javax.annotation.Nonnull String description) { this.description = description; return this; } @@ -146,12 +151,12 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nonnull String description) { this.description = description; } - public MessageSendingCallback message(MessageSendingCallbackMessage message) { + public MessageSendingCallback message(@javax.annotation.Nonnull MessageSendingCallbackMessage message) { this.message = message; return this; } @@ -165,7 +170,7 @@ public MessageSendingCallbackMessage getMessage() { return message; } - public void setMessage(MessageSendingCallbackMessage message) { + public void setMessage(@javax.annotation.Nonnull MessageSendingCallbackMessage message) { this.message = message; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java index 58085741..1db3d24a 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java +++ b/src/main/java/com/bandwidth/sdk/model/MessageSendingCallbackMessage.java @@ -56,60 +56,72 @@ /** * Message Sending Callback Message Schema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessageSendingCallbackMessage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nonnull private String id; public static final String SERIALIZED_NAME_OWNER = "owner"; @SerializedName(SERIALIZED_NAME_OWNER) + @javax.annotation.Nonnull private String owner; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nonnull private String applicationId; public static final String SERIALIZED_NAME_TIME = "time"; @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nonnull private OffsetDateTime time; public static final String SERIALIZED_NAME_SEGMENT_COUNT = "segmentCount"; @SerializedName(SERIALIZED_NAME_SEGMENT_COUNT) + @javax.annotation.Nonnull private Integer segmentCount; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nonnull private MessageDirectionEnum direction; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private Set to = new LinkedHashSet<>(); public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nonnull private String from; public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nonnull private String text; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_MEDIA = "media"; @SerializedName(SERIALIZED_NAME_MEDIA) + @javax.annotation.Nonnull private List media = new ArrayList<>(); public static final String SERIALIZED_NAME_PRIORITY = "priority"; @SerializedName(SERIALIZED_NAME_PRIORITY) + @javax.annotation.Nullable private PriorityEnum priority; public MessageSendingCallbackMessage() { } - public MessageSendingCallbackMessage id(String id) { + public MessageSendingCallbackMessage id(@javax.annotation.Nonnull String id) { this.id = id; return this; } @@ -123,12 +135,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nonnull String id) { this.id = id; } - public MessageSendingCallbackMessage owner(String owner) { + public MessageSendingCallbackMessage owner(@javax.annotation.Nonnull String owner) { this.owner = owner; return this; } @@ -142,12 +154,12 @@ public String getOwner() { return owner; } - public void setOwner(String owner) { + public void setOwner(@javax.annotation.Nonnull String owner) { this.owner = owner; } - public MessageSendingCallbackMessage applicationId(String applicationId) { + public MessageSendingCallbackMessage applicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; return this; } @@ -161,12 +173,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nonnull String applicationId) { this.applicationId = applicationId; } - public MessageSendingCallbackMessage time(OffsetDateTime time) { + public MessageSendingCallbackMessage time(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; return this; } @@ -180,12 +192,12 @@ public OffsetDateTime getTime() { return time; } - public void setTime(OffsetDateTime time) { + public void setTime(@javax.annotation.Nonnull OffsetDateTime time) { this.time = time; } - public MessageSendingCallbackMessage segmentCount(Integer segmentCount) { + public MessageSendingCallbackMessage segmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; return this; } @@ -199,12 +211,12 @@ public Integer getSegmentCount() { return segmentCount; } - public void setSegmentCount(Integer segmentCount) { + public void setSegmentCount(@javax.annotation.Nonnull Integer segmentCount) { this.segmentCount = segmentCount; } - public MessageSendingCallbackMessage direction(MessageDirectionEnum direction) { + public MessageSendingCallbackMessage direction(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; return this; } @@ -218,12 +230,12 @@ public MessageDirectionEnum getDirection() { return direction; } - public void setDirection(MessageDirectionEnum direction) { + public void setDirection(@javax.annotation.Nonnull MessageDirectionEnum direction) { this.direction = direction; } - public MessageSendingCallbackMessage to(Set to) { + public MessageSendingCallbackMessage to(@javax.annotation.Nonnull Set to) { this.to = to; return this; } @@ -245,12 +257,12 @@ public Set getTo() { return to; } - public void setTo(Set to) { + public void setTo(@javax.annotation.Nonnull Set to) { this.to = to; } - public MessageSendingCallbackMessage from(String from) { + public MessageSendingCallbackMessage from(@javax.annotation.Nonnull String from) { this.from = from; return this; } @@ -264,12 +276,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nonnull String from) { this.from = from; } - public MessageSendingCallbackMessage text(String text) { + public MessageSendingCallbackMessage text(@javax.annotation.Nonnull String text) { this.text = text; return this; } @@ -283,12 +295,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nonnull String text) { this.text = text; } - public MessageSendingCallbackMessage tag(String tag) { + public MessageSendingCallbackMessage tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -302,12 +314,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public MessageSendingCallbackMessage media(List media) { + public MessageSendingCallbackMessage media(@javax.annotation.Nonnull List media) { this.media = media; return this; } @@ -329,12 +341,12 @@ public List getMedia() { return media; } - public void setMedia(List media) { + public void setMedia(@javax.annotation.Nonnull List media) { this.media = media; } - public MessageSendingCallbackMessage priority(PriorityEnum priority) { + public MessageSendingCallbackMessage priority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; return this; } @@ -348,7 +360,7 @@ public PriorityEnum getPriority() { return priority; } - public void setPriority(PriorityEnum priority) { + public void setPriority(@javax.annotation.Nullable PriorityEnum priority) { this.priority = priority; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagesList.java b/src/main/java/com/bandwidth/sdk/model/MessagesList.java index 41876834..1f74bd1e 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagesList.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagesList.java @@ -52,24 +52,27 @@ /** * MessagesList */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessagesList { public static final String SERIALIZED_NAME_TOTAL_COUNT = "totalCount"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) + @javax.annotation.Nullable private Integer totalCount; public static final String SERIALIZED_NAME_PAGE_INFO = "pageInfo"; @SerializedName(SERIALIZED_NAME_PAGE_INFO) + @javax.annotation.Nullable private PageInfo pageInfo; public static final String SERIALIZED_NAME_MESSAGES = "messages"; @SerializedName(SERIALIZED_NAME_MESSAGES) + @javax.annotation.Nullable private List messages = new ArrayList<>(); public MessagesList() { } - public MessagesList totalCount(Integer totalCount) { + public MessagesList totalCount(@javax.annotation.Nullable Integer totalCount) { this.totalCount = totalCount; return this; } @@ -83,12 +86,12 @@ public Integer getTotalCount() { return totalCount; } - public void setTotalCount(Integer totalCount) { + public void setTotalCount(@javax.annotation.Nullable Integer totalCount) { this.totalCount = totalCount; } - public MessagesList pageInfo(PageInfo pageInfo) { + public MessagesList pageInfo(@javax.annotation.Nullable PageInfo pageInfo) { this.pageInfo = pageInfo; return this; } @@ -102,12 +105,12 @@ public PageInfo getPageInfo() { return pageInfo; } - public void setPageInfo(PageInfo pageInfo) { + public void setPageInfo(@javax.annotation.Nullable PageInfo pageInfo) { this.pageInfo = pageInfo; } - public MessagesList messages(List messages) { + public MessagesList messages(@javax.annotation.Nullable List messages) { this.messages = messages; return this; } @@ -129,7 +132,7 @@ public List getMessages() { return messages; } - public void setMessages(List messages) { + public void setMessages(@javax.annotation.Nullable List messages) { this.messages = messages; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java index bf999660..8fe89b02 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingCodeResponse.java @@ -48,16 +48,17 @@ /** * MessagingCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessagingCodeResponse { public static final String SERIALIZED_NAME_MESSAGE_ID = "messageId"; @SerializedName(SERIALIZED_NAME_MESSAGE_ID) + @javax.annotation.Nullable private String messageId; public MessagingCodeResponse() { } - public MessagingCodeResponse messageId(String messageId) { + public MessagingCodeResponse messageId(@javax.annotation.Nullable String messageId) { this.messageId = messageId; return this; } @@ -71,7 +72,7 @@ public String getMessageId() { return messageId; } - public void setMessageId(String messageId) { + public void setMessageId(@javax.annotation.Nullable String messageId) { this.messageId = messageId; } diff --git a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java index 7153b7bc..b42f7150 100644 --- a/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MessagingRequestError.java @@ -48,20 +48,22 @@ /** * MessagingRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MessagingRequestError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull private String type; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nonnull private String description; public MessagingRequestError() { } - public MessagingRequestError type(String type) { + public MessagingRequestError type(@javax.annotation.Nonnull String type) { this.type = type; return this; } @@ -75,12 +77,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nonnull String type) { this.type = type; } - public MessagingRequestError description(String description) { + public MessagingRequestError description(@javax.annotation.Nonnull String description) { this.description = description; return this; } @@ -94,7 +96,7 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nonnull String description) { this.description = description; } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java index 41ad730a..206737b2 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaForbiddenRequestError.java @@ -48,16 +48,17 @@ /** * MfaForbiddenRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MfaForbiddenRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public MfaForbiddenRequestError() { } - public MfaForbiddenRequestError message(String message) { + public MfaForbiddenRequestError message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -71,7 +72,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java index e1b36fc3..b4674ca8 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaRequestError.java @@ -48,20 +48,22 @@ /** * MfaRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MfaRequestError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) + @javax.annotation.Nullable private String error; public static final String SERIALIZED_NAME_REQUEST_ID = "requestId"; @SerializedName(SERIALIZED_NAME_REQUEST_ID) + @javax.annotation.Nullable private String requestId; public MfaRequestError() { } - public MfaRequestError error(String error) { + public MfaRequestError error(@javax.annotation.Nullable String error) { this.error = error; return this; } @@ -75,12 +77,12 @@ public String getError() { return error; } - public void setError(String error) { + public void setError(@javax.annotation.Nullable String error) { this.error = error; } - public MfaRequestError requestId(String requestId) { + public MfaRequestError requestId(@javax.annotation.Nullable String requestId) { this.requestId = requestId; return this; } @@ -94,7 +96,7 @@ public String getRequestId() { return requestId; } - public void setRequestId(String requestId) { + public void setRequestId(@javax.annotation.Nullable String requestId) { this.requestId = requestId; } diff --git a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java index 0ffc2ac6..63173e46 100644 --- a/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/MfaUnauthorizedRequestError.java @@ -48,16 +48,17 @@ /** * MfaUnauthorizedRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class MfaUnauthorizedRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public MfaUnauthorizedRequestError() { } - public MfaUnauthorizedRequestError message(String message) { + public MfaUnauthorizedRequestError message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -71,7 +72,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/src/main/java/com/bandwidth/sdk/model/PageInfo.java b/src/main/java/com/bandwidth/sdk/model/PageInfo.java index 56cef96e..b0bfd585 100644 --- a/src/main/java/com/bandwidth/sdk/model/PageInfo.java +++ b/src/main/java/com/bandwidth/sdk/model/PageInfo.java @@ -48,28 +48,32 @@ /** * PageInfo */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class PageInfo { public static final String SERIALIZED_NAME_PREV_PAGE = "prevPage"; @SerializedName(SERIALIZED_NAME_PREV_PAGE) + @javax.annotation.Nullable private String prevPage; public static final String SERIALIZED_NAME_NEXT_PAGE = "nextPage"; @SerializedName(SERIALIZED_NAME_NEXT_PAGE) + @javax.annotation.Nullable private String nextPage; public static final String SERIALIZED_NAME_PREV_PAGE_TOKEN = "prevPageToken"; @SerializedName(SERIALIZED_NAME_PREV_PAGE_TOKEN) + @javax.annotation.Nullable private String prevPageToken; public static final String SERIALIZED_NAME_NEXT_PAGE_TOKEN = "nextPageToken"; @SerializedName(SERIALIZED_NAME_NEXT_PAGE_TOKEN) + @javax.annotation.Nullable private String nextPageToken; public PageInfo() { } - public PageInfo prevPage(String prevPage) { + public PageInfo prevPage(@javax.annotation.Nullable String prevPage) { this.prevPage = prevPage; return this; } @@ -83,12 +87,12 @@ public String getPrevPage() { return prevPage; } - public void setPrevPage(String prevPage) { + public void setPrevPage(@javax.annotation.Nullable String prevPage) { this.prevPage = prevPage; } - public PageInfo nextPage(String nextPage) { + public PageInfo nextPage(@javax.annotation.Nullable String nextPage) { this.nextPage = nextPage; return this; } @@ -102,12 +106,12 @@ public String getNextPage() { return nextPage; } - public void setNextPage(String nextPage) { + public void setNextPage(@javax.annotation.Nullable String nextPage) { this.nextPage = nextPage; } - public PageInfo prevPageToken(String prevPageToken) { + public PageInfo prevPageToken(@javax.annotation.Nullable String prevPageToken) { this.prevPageToken = prevPageToken; return this; } @@ -121,12 +125,12 @@ public String getPrevPageToken() { return prevPageToken; } - public void setPrevPageToken(String prevPageToken) { + public void setPrevPageToken(@javax.annotation.Nullable String prevPageToken) { this.prevPageToken = prevPageToken; } - public PageInfo nextPageToken(String nextPageToken) { + public PageInfo nextPageToken(@javax.annotation.Nullable String nextPageToken) { this.nextPageToken = nextPageToken; return this; } @@ -140,7 +144,7 @@ public String getNextPageToken() { return nextPageToken; } - public void setNextPageToken(String nextPageToken) { + public void setNextPageToken(@javax.annotation.Nullable String nextPageToken) { this.nextPageToken = nextPageToken; } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java index 67113014..806b6afb 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingAvailableCallback.java @@ -53,100 +53,122 @@ /** * The Recording Available event is sent after a recording has been processed. It indicates that the recording is available for download. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class RecordingAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_RECORDING_ID = "recordingId"; @SerializedName(SERIALIZED_NAME_RECORDING_ID) + @javax.annotation.Nullable private String recordingId; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) + @javax.annotation.Nullable private URI mediaUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public static final String SERIALIZED_NAME_FILE_FORMAT = "fileFormat"; @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable private FileFormatEnum fileFormat; public static final String SERIALIZED_NAME_CHANNELS = "channels"; @SerializedName(SERIALIZED_NAME_CHANNELS) + @javax.annotation.Nullable private Integer channels; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private String status; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public RecordingAvailableCallback() { } - public RecordingAvailableCallback eventType(String eventType) { + public RecordingAvailableCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -160,12 +182,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public RecordingAvailableCallback eventTime(OffsetDateTime eventTime) { + public RecordingAvailableCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -179,12 +201,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public RecordingAvailableCallback accountId(String accountId) { + public RecordingAvailableCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -198,12 +220,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public RecordingAvailableCallback applicationId(String applicationId) { + public RecordingAvailableCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -217,12 +239,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public RecordingAvailableCallback from(String from) { + public RecordingAvailableCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -236,12 +258,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public RecordingAvailableCallback to(String to) { + public RecordingAvailableCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -255,12 +277,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public RecordingAvailableCallback direction(CallDirectionEnum direction) { + public RecordingAvailableCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -274,12 +296,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public RecordingAvailableCallback callId(String callId) { + public RecordingAvailableCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -293,12 +315,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public RecordingAvailableCallback callUrl(URI callUrl) { + public RecordingAvailableCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -312,12 +334,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public RecordingAvailableCallback parentCallId(String parentCallId) { + public RecordingAvailableCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -331,12 +353,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public RecordingAvailableCallback recordingId(String recordingId) { + public RecordingAvailableCallback recordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; return this; } @@ -350,12 +372,12 @@ public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { + public void setRecordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; } - public RecordingAvailableCallback mediaUrl(URI mediaUrl) { + public RecordingAvailableCallback mediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; return this; } @@ -369,12 +391,12 @@ public URI getMediaUrl() { return mediaUrl; } - public void setMediaUrl(URI mediaUrl) { + public void setMediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; } - public RecordingAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public RecordingAvailableCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -388,12 +410,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public RecordingAvailableCallback startTime(OffsetDateTime startTime) { + public RecordingAvailableCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -407,12 +429,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public RecordingAvailableCallback endTime(OffsetDateTime endTime) { + public RecordingAvailableCallback endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -426,12 +448,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public RecordingAvailableCallback duration(String duration) { + public RecordingAvailableCallback duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -445,12 +467,12 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } - public RecordingAvailableCallback fileFormat(FileFormatEnum fileFormat) { + public RecordingAvailableCallback fileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; return this; } @@ -464,12 +486,12 @@ public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { + public void setFileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } - public RecordingAvailableCallback channels(Integer channels) { + public RecordingAvailableCallback channels(@javax.annotation.Nullable Integer channels) { this.channels = channels; return this; } @@ -483,12 +505,12 @@ public Integer getChannels() { return channels; } - public void setChannels(Integer channels) { + public void setChannels(@javax.annotation.Nullable Integer channels) { this.channels = channels; } - public RecordingAvailableCallback tag(String tag) { + public RecordingAvailableCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -502,12 +524,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public RecordingAvailableCallback status(String status) { + public RecordingAvailableCallback status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -521,12 +543,12 @@ public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } - public RecordingAvailableCallback transferCallerId(String transferCallerId) { + public RecordingAvailableCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -540,12 +562,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public RecordingAvailableCallback transferTo(String transferTo) { + public RecordingAvailableCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -559,7 +581,7 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java index fa2d093e..1ae34da6 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingCompleteCallback.java @@ -53,100 +53,122 @@ /** * The Record Complete event is sent after a <Record> verb has executed if the call is still active. The BXML returned by this callback is executed next. When the recording is available for download, a Recording Available event will be sent. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class RecordingCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_RECORDING_ID = "recordingId"; @SerializedName(SERIALIZED_NAME_RECORDING_ID) + @javax.annotation.Nullable private String recordingId; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) + @javax.annotation.Nullable private URI mediaUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public static final String SERIALIZED_NAME_FILE_FORMAT = "fileFormat"; @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable private FileFormatEnum fileFormat; public static final String SERIALIZED_NAME_CHANNELS = "channels"; @SerializedName(SERIALIZED_NAME_CHANNELS) + @javax.annotation.Nullable private Integer channels; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public RecordingCompleteCallback() { } - public RecordingCompleteCallback eventType(String eventType) { + public RecordingCompleteCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -160,12 +182,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public RecordingCompleteCallback eventTime(OffsetDateTime eventTime) { + public RecordingCompleteCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -179,12 +201,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public RecordingCompleteCallback accountId(String accountId) { + public RecordingCompleteCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -198,12 +220,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public RecordingCompleteCallback applicationId(String applicationId) { + public RecordingCompleteCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -217,12 +239,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public RecordingCompleteCallback from(String from) { + public RecordingCompleteCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -236,12 +258,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public RecordingCompleteCallback to(String to) { + public RecordingCompleteCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -255,12 +277,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public RecordingCompleteCallback direction(CallDirectionEnum direction) { + public RecordingCompleteCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -274,12 +296,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public RecordingCompleteCallback callId(String callId) { + public RecordingCompleteCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -293,12 +315,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public RecordingCompleteCallback callUrl(URI callUrl) { + public RecordingCompleteCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -312,12 +334,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public RecordingCompleteCallback parentCallId(String parentCallId) { + public RecordingCompleteCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -331,12 +353,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public RecordingCompleteCallback recordingId(String recordingId) { + public RecordingCompleteCallback recordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; return this; } @@ -350,12 +372,12 @@ public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { + public void setRecordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; } - public RecordingCompleteCallback mediaUrl(URI mediaUrl) { + public RecordingCompleteCallback mediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; return this; } @@ -369,12 +391,12 @@ public URI getMediaUrl() { return mediaUrl; } - public void setMediaUrl(URI mediaUrl) { + public void setMediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; } - public RecordingCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public RecordingCompleteCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -388,12 +410,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public RecordingCompleteCallback startTime(OffsetDateTime startTime) { + public RecordingCompleteCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -407,12 +429,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public RecordingCompleteCallback answerTime(OffsetDateTime answerTime) { + public RecordingCompleteCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -426,12 +448,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public RecordingCompleteCallback endTime(OffsetDateTime endTime) { + public RecordingCompleteCallback endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -445,12 +467,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public RecordingCompleteCallback duration(String duration) { + public RecordingCompleteCallback duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -464,12 +486,12 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } - public RecordingCompleteCallback fileFormat(FileFormatEnum fileFormat) { + public RecordingCompleteCallback fileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; return this; } @@ -483,12 +505,12 @@ public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { + public void setFileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } - public RecordingCompleteCallback channels(Integer channels) { + public RecordingCompleteCallback channels(@javax.annotation.Nullable Integer channels) { this.channels = channels; return this; } @@ -502,12 +524,12 @@ public Integer getChannels() { return channels; } - public void setChannels(Integer channels) { + public void setChannels(@javax.annotation.Nullable Integer channels) { this.channels = channels; } - public RecordingCompleteCallback tag(String tag) { + public RecordingCompleteCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -521,12 +543,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public RecordingCompleteCallback transferCallerId(String transferCallerId) { + public RecordingCompleteCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -540,12 +562,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public RecordingCompleteCallback transferTo(String transferTo) { + public RecordingCompleteCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -559,7 +581,7 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java index acdbda08..38cda932 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptionMetadata.java @@ -50,28 +50,32 @@ /** * If the recording was transcribed, metadata about the transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class RecordingTranscriptionMetadata { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private String id; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private String status; public static final String SERIALIZED_NAME_COMPLETED_TIME = "completedTime"; @SerializedName(SERIALIZED_NAME_COMPLETED_TIME) + @javax.annotation.Nullable private OffsetDateTime completedTime; public static final String SERIALIZED_NAME_URL = "url"; @SerializedName(SERIALIZED_NAME_URL) + @javax.annotation.Nullable private URI url; public RecordingTranscriptionMetadata() { } - public RecordingTranscriptionMetadata id(String id) { + public RecordingTranscriptionMetadata id(@javax.annotation.Nullable String id) { this.id = id; return this; } @@ -85,12 +89,12 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nullable String id) { this.id = id; } - public RecordingTranscriptionMetadata status(String status) { + public RecordingTranscriptionMetadata status(@javax.annotation.Nullable String status) { this.status = status; return this; } @@ -104,12 +108,12 @@ public String getStatus() { return status; } - public void setStatus(String status) { + public void setStatus(@javax.annotation.Nullable String status) { this.status = status; } - public RecordingTranscriptionMetadata completedTime(OffsetDateTime completedTime) { + public RecordingTranscriptionMetadata completedTime(@javax.annotation.Nullable OffsetDateTime completedTime) { this.completedTime = completedTime; return this; } @@ -123,12 +127,12 @@ public OffsetDateTime getCompletedTime() { return completedTime; } - public void setCompletedTime(OffsetDateTime completedTime) { + public void setCompletedTime(@javax.annotation.Nullable OffsetDateTime completedTime) { this.completedTime = completedTime; } - public RecordingTranscriptionMetadata url(URI url) { + public RecordingTranscriptionMetadata url(@javax.annotation.Nullable URI url) { this.url = url; return this; } @@ -142,7 +146,7 @@ public URI getUrl() { return url; } - public void setUrl(URI url) { + public void setUrl(@javax.annotation.Nullable URI url) { this.url = url; } diff --git a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java index 39c509bf..ed6f2dd3 100644 --- a/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java +++ b/src/main/java/com/bandwidth/sdk/model/RecordingTranscriptions.java @@ -51,16 +51,17 @@ /** * RecordingTranscriptions */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class RecordingTranscriptions { public static final String SERIALIZED_NAME_TRANSCRIPTS = "transcripts"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) + @javax.annotation.Nullable private List transcripts = new ArrayList<>(); public RecordingTranscriptions() { } - public RecordingTranscriptions transcripts(List transcripts) { + public RecordingTranscriptions transcripts(@javax.annotation.Nullable List transcripts) { this.transcripts = transcripts; return this; } @@ -82,7 +83,7 @@ public List getTranscripts() { return transcripts; } - public void setTranscripts(List transcripts) { + public void setTranscripts(@javax.annotation.Nullable List transcripts) { this.transcripts = transcripts; } diff --git a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java index 3940325d..9ba3bb5a 100644 --- a/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/RedirectCallback.java @@ -52,76 +52,92 @@ /** * The Redirect event is fired when a <Redirect> verb is executed. Its purpose is to get the next set of verbs from the calling application. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class RedirectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public RedirectCallback() { } - public RedirectCallback eventType(String eventType) { + public RedirectCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -135,12 +151,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public RedirectCallback eventTime(OffsetDateTime eventTime) { + public RedirectCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -154,12 +170,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public RedirectCallback accountId(String accountId) { + public RedirectCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -173,12 +189,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public RedirectCallback applicationId(String applicationId) { + public RedirectCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -192,12 +208,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public RedirectCallback from(String from) { + public RedirectCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -211,12 +227,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public RedirectCallback to(String to) { + public RedirectCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -230,12 +246,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public RedirectCallback direction(CallDirectionEnum direction) { + public RedirectCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -249,12 +265,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public RedirectCallback callId(String callId) { + public RedirectCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -268,12 +284,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public RedirectCallback callUrl(URI callUrl) { + public RedirectCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -287,12 +303,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public RedirectCallback parentCallId(String parentCallId) { + public RedirectCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -306,12 +322,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public RedirectCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public RedirectCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -325,12 +341,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public RedirectCallback startTime(OffsetDateTime startTime) { + public RedirectCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -344,12 +360,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public RedirectCallback answerTime(OffsetDateTime answerTime) { + public RedirectCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -363,12 +379,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public RedirectCallback tag(String tag) { + public RedirectCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -382,12 +398,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public RedirectCallback transferCallerId(String transferCallerId) { + public RedirectCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -401,12 +417,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public RedirectCallback transferTo(String transferTo) { + public RedirectCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -420,7 +436,7 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } diff --git a/src/main/java/com/bandwidth/sdk/model/StirShaken.java b/src/main/java/com/bandwidth/sdk/model/StirShaken.java index 7763ec87..f916a5e8 100644 --- a/src/main/java/com/bandwidth/sdk/model/StirShaken.java +++ b/src/main/java/com/bandwidth/sdk/model/StirShaken.java @@ -48,24 +48,27 @@ /** * StirShaken */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class StirShaken { public static final String SERIALIZED_NAME_VERSTAT = "verstat"; @SerializedName(SERIALIZED_NAME_VERSTAT) + @javax.annotation.Nullable private String verstat; public static final String SERIALIZED_NAME_ATTESTATION_INDICATOR = "attestationIndicator"; @SerializedName(SERIALIZED_NAME_ATTESTATION_INDICATOR) + @javax.annotation.Nullable private String attestationIndicator; public static final String SERIALIZED_NAME_ORIGINATING_ID = "originatingId"; @SerializedName(SERIALIZED_NAME_ORIGINATING_ID) + @javax.annotation.Nullable private String originatingId; public StirShaken() { } - public StirShaken verstat(String verstat) { + public StirShaken verstat(@javax.annotation.Nullable String verstat) { this.verstat = verstat; return this; } @@ -79,12 +82,12 @@ public String getVerstat() { return verstat; } - public void setVerstat(String verstat) { + public void setVerstat(@javax.annotation.Nullable String verstat) { this.verstat = verstat; } - public StirShaken attestationIndicator(String attestationIndicator) { + public StirShaken attestationIndicator(@javax.annotation.Nullable String attestationIndicator) { this.attestationIndicator = attestationIndicator; return this; } @@ -98,12 +101,12 @@ public String getAttestationIndicator() { return attestationIndicator; } - public void setAttestationIndicator(String attestationIndicator) { + public void setAttestationIndicator(@javax.annotation.Nullable String attestationIndicator) { this.attestationIndicator = attestationIndicator; } - public StirShaken originatingId(String originatingId) { + public StirShaken originatingId(@javax.annotation.Nullable String originatingId) { this.originatingId = originatingId; return this; } @@ -117,7 +120,7 @@ public String getOriginatingId() { return originatingId; } - public void setOriginatingId(String originatingId) { + public void setOriginatingId(@javax.annotation.Nullable String originatingId) { this.originatingId = originatingId; } diff --git a/src/main/java/com/bandwidth/sdk/model/Tag.java b/src/main/java/com/bandwidth/sdk/model/Tag.java index 37978c6f..f5d89d64 100644 --- a/src/main/java/com/bandwidth/sdk/model/Tag.java +++ b/src/main/java/com/bandwidth/sdk/model/Tag.java @@ -48,20 +48,22 @@ /** * Tag */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Tag { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nullable private String key; public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) + @javax.annotation.Nullable private String value; public Tag() { } - public Tag key(String key) { + public Tag key(@javax.annotation.Nullable String key) { this.key = key; return this; } @@ -75,12 +77,12 @@ public String getKey() { return key; } - public void setKey(String key) { + public void setKey(@javax.annotation.Nullable String key) { this.key = key; } - public Tag value(String value) { + public Tag value(@javax.annotation.Nullable String value) { this.value = value; return this; } @@ -94,7 +96,7 @@ public String getValue() { return value; } - public void setValue(String value) { + public void setValue(@javax.annotation.Nullable String value) { this.value = value; } diff --git a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java index a18e1f7b..b0b75872 100644 --- a/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java +++ b/src/main/java/com/bandwidth/sdk/model/TnLookupRequestError.java @@ -48,16 +48,17 @@ /** * TnLookupRequestError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class TnLookupRequestError { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) + @javax.annotation.Nullable private String message; public TnLookupRequestError() { } - public TnLookupRequestError message(String message) { + public TnLookupRequestError message(@javax.annotation.Nullable String message) { this.message = message; return this; } @@ -71,7 +72,7 @@ public String getMessage() { return message; } - public void setMessage(String message) { + public void setMessage(@javax.annotation.Nullable String message) { this.message = message; } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java index cfc9fdff..7d1c7fa7 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscribeRecording.java @@ -51,40 +51,47 @@ /** * TranscribeRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class TranscribeRecording { public static final String SERIALIZED_NAME_CALLBACK_URL = "callbackUrl"; @SerializedName(SERIALIZED_NAME_CALLBACK_URL) + @javax.annotation.Nullable private URI callbackUrl; public static final String SERIALIZED_NAME_CALLBACK_METHOD = "callbackMethod"; @SerializedName(SERIALIZED_NAME_CALLBACK_METHOD) + @javax.annotation.Nullable private CallbackMethodEnum callbackMethod = CallbackMethodEnum.POST; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_CALLBACK_TIMEOUT = "callbackTimeout"; @SerializedName(SERIALIZED_NAME_CALLBACK_TIMEOUT) + @javax.annotation.Nullable private Double callbackTimeout = 15d; public static final String SERIALIZED_NAME_DETECT_LANGUAGE = "detectLanguage"; @SerializedName(SERIALIZED_NAME_DETECT_LANGUAGE) + @javax.annotation.Nullable private Boolean detectLanguage = false; public TranscribeRecording() { } - public TranscribeRecording callbackUrl(URI callbackUrl) { + public TranscribeRecording callbackUrl(@javax.annotation.Nullable URI callbackUrl) { this.callbackUrl = callbackUrl; return this; } @@ -98,12 +105,12 @@ public URI getCallbackUrl() { return callbackUrl; } - public void setCallbackUrl(URI callbackUrl) { + public void setCallbackUrl(@javax.annotation.Nullable URI callbackUrl) { this.callbackUrl = callbackUrl; } - public TranscribeRecording callbackMethod(CallbackMethodEnum callbackMethod) { + public TranscribeRecording callbackMethod(@javax.annotation.Nullable CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; return this; } @@ -117,12 +124,12 @@ public CallbackMethodEnum getCallbackMethod() { return callbackMethod; } - public void setCallbackMethod(CallbackMethodEnum callbackMethod) { + public void setCallbackMethod(@javax.annotation.Nullable CallbackMethodEnum callbackMethod) { this.callbackMethod = callbackMethod; } - public TranscribeRecording username(String username) { + public TranscribeRecording username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -136,12 +143,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public TranscribeRecording password(String password) { + public TranscribeRecording password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -155,12 +162,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public TranscribeRecording tag(String tag) { + public TranscribeRecording tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -174,12 +181,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public TranscribeRecording callbackTimeout(Double callbackTimeout) { + public TranscribeRecording callbackTimeout(@javax.annotation.Nullable Double callbackTimeout) { this.callbackTimeout = callbackTimeout; return this; } @@ -195,12 +202,12 @@ public Double getCallbackTimeout() { return callbackTimeout; } - public void setCallbackTimeout(Double callbackTimeout) { + public void setCallbackTimeout(@javax.annotation.Nullable Double callbackTimeout) { this.callbackTimeout = callbackTimeout; } - public TranscribeRecording detectLanguage(Boolean detectLanguage) { + public TranscribeRecording detectLanguage(@javax.annotation.Nullable Boolean detectLanguage) { this.detectLanguage = detectLanguage; return this; } @@ -214,7 +221,7 @@ public Boolean getDetectLanguage() { return detectLanguage; } - public void setDetectLanguage(Boolean detectLanguage) { + public void setDetectLanguage(@javax.annotation.Nullable Boolean detectLanguage) { this.detectLanguage = detectLanguage; } diff --git a/src/main/java/com/bandwidth/sdk/model/Transcription.java b/src/main/java/com/bandwidth/sdk/model/Transcription.java index 953dabd7..fc017c5c 100644 --- a/src/main/java/com/bandwidth/sdk/model/Transcription.java +++ b/src/main/java/com/bandwidth/sdk/model/Transcription.java @@ -48,20 +48,22 @@ /** * Transcription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class Transcription { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) + @javax.annotation.Nullable private String text; public static final String SERIALIZED_NAME_CONFIDENCE = "confidence"; @SerializedName(SERIALIZED_NAME_CONFIDENCE) + @javax.annotation.Nullable private Double confidence; public Transcription() { } - public Transcription text(String text) { + public Transcription text(@javax.annotation.Nullable String text) { this.text = text; return this; } @@ -75,12 +77,12 @@ public String getText() { return text; } - public void setText(String text) { + public void setText(@javax.annotation.Nullable String text) { this.text = text; } - public Transcription confidence(Double confidence) { + public Transcription confidence(@javax.annotation.Nullable Double confidence) { this.confidence = confidence; return this; } @@ -94,7 +96,7 @@ public Double getConfidence() { return confidence; } - public void setConfidence(Double confidence) { + public void setConfidence(@javax.annotation.Nullable Double confidence) { this.confidence = confidence; } diff --git a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java index ad8b1eb9..b1eecdc2 100644 --- a/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TranscriptionAvailableCallback.java @@ -54,96 +54,117 @@ /** * The Transcription Available event is sent when the recording transcription is available to be downloaded. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class TranscriptionAvailableCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_MEDIA_URL = "mediaUrl"; @SerializedName(SERIALIZED_NAME_MEDIA_URL) + @javax.annotation.Nullable private URI mediaUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_RECORDING_ID = "recordingId"; @SerializedName(SERIALIZED_NAME_RECORDING_ID) + @javax.annotation.Nullable private String recordingId; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) + @javax.annotation.Nullable private String duration; public static final String SERIALIZED_NAME_FILE_FORMAT = "fileFormat"; @SerializedName(SERIALIZED_NAME_FILE_FORMAT) + @javax.annotation.Nullable private FileFormatEnum fileFormat; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_TRANSCRIPTION = "transcription"; @SerializedName(SERIALIZED_NAME_TRANSCRIPTION) + @javax.annotation.Nullable private Transcription transcription; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public TranscriptionAvailableCallback() { } - public TranscriptionAvailableCallback eventType(String eventType) { + public TranscriptionAvailableCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -157,12 +178,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public TranscriptionAvailableCallback eventTime(OffsetDateTime eventTime) { + public TranscriptionAvailableCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -176,12 +197,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public TranscriptionAvailableCallback accountId(String accountId) { + public TranscriptionAvailableCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -195,12 +216,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public TranscriptionAvailableCallback applicationId(String applicationId) { + public TranscriptionAvailableCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -214,12 +235,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public TranscriptionAvailableCallback from(String from) { + public TranscriptionAvailableCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -233,12 +254,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public TranscriptionAvailableCallback to(String to) { + public TranscriptionAvailableCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -252,12 +273,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public TranscriptionAvailableCallback direction(CallDirectionEnum direction) { + public TranscriptionAvailableCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -271,12 +292,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public TranscriptionAvailableCallback callId(String callId) { + public TranscriptionAvailableCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -290,12 +311,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public TranscriptionAvailableCallback callUrl(URI callUrl) { + public TranscriptionAvailableCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -309,12 +330,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public TranscriptionAvailableCallback mediaUrl(URI mediaUrl) { + public TranscriptionAvailableCallback mediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; return this; } @@ -328,12 +349,12 @@ public URI getMediaUrl() { return mediaUrl; } - public void setMediaUrl(URI mediaUrl) { + public void setMediaUrl(@javax.annotation.Nullable URI mediaUrl) { this.mediaUrl = mediaUrl; } - public TranscriptionAvailableCallback parentCallId(String parentCallId) { + public TranscriptionAvailableCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -347,12 +368,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public TranscriptionAvailableCallback recordingId(String recordingId) { + public TranscriptionAvailableCallback recordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; return this; } @@ -366,12 +387,12 @@ public String getRecordingId() { return recordingId; } - public void setRecordingId(String recordingId) { + public void setRecordingId(@javax.annotation.Nullable String recordingId) { this.recordingId = recordingId; } - public TranscriptionAvailableCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public TranscriptionAvailableCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -385,12 +406,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public TranscriptionAvailableCallback startTime(OffsetDateTime startTime) { + public TranscriptionAvailableCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -404,12 +425,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public TranscriptionAvailableCallback endTime(OffsetDateTime endTime) { + public TranscriptionAvailableCallback endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -423,12 +444,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public TranscriptionAvailableCallback duration(String duration) { + public TranscriptionAvailableCallback duration(@javax.annotation.Nullable String duration) { this.duration = duration; return this; } @@ -442,12 +463,12 @@ public String getDuration() { return duration; } - public void setDuration(String duration) { + public void setDuration(@javax.annotation.Nullable String duration) { this.duration = duration; } - public TranscriptionAvailableCallback fileFormat(FileFormatEnum fileFormat) { + public TranscriptionAvailableCallback fileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; return this; } @@ -461,12 +482,12 @@ public FileFormatEnum getFileFormat() { return fileFormat; } - public void setFileFormat(FileFormatEnum fileFormat) { + public void setFileFormat(@javax.annotation.Nullable FileFormatEnum fileFormat) { this.fileFormat = fileFormat; } - public TranscriptionAvailableCallback tag(String tag) { + public TranscriptionAvailableCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -480,12 +501,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public TranscriptionAvailableCallback transcription(Transcription transcription) { + public TranscriptionAvailableCallback transcription(@javax.annotation.Nullable Transcription transcription) { this.transcription = transcription; return this; } @@ -499,12 +520,12 @@ public Transcription getTranscription() { return transcription; } - public void setTranscription(Transcription transcription) { + public void setTranscription(@javax.annotation.Nullable Transcription transcription) { this.transcription = transcription; } - public TranscriptionAvailableCallback transferCallerId(String transferCallerId) { + public TranscriptionAvailableCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -518,12 +539,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public TranscriptionAvailableCallback transferTo(String transferTo) { + public TranscriptionAvailableCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -537,7 +558,7 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java index fbec91ff..4e6cbad0 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferAnswerCallback.java @@ -52,72 +52,87 @@ /** * When processing a <Transfer> verb, this event is sent when a called party (B-leg) answers. The event is sent to the endpoint specified in the transferAnswerUrl attribute of the <PhoneNumber> tag that answered. BXML returned by this callback will be executed for the called party only. After all BXML has been executed, the called party will be bridged to the original call. Most BXML verbs are allowed in response to a transferAnswer event, but some are not allowed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class TransferAnswerCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public TransferAnswerCallback() { } - public TransferAnswerCallback eventType(String eventType) { + public TransferAnswerCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -131,12 +146,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public TransferAnswerCallback eventTime(OffsetDateTime eventTime) { + public TransferAnswerCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -150,12 +165,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public TransferAnswerCallback accountId(String accountId) { + public TransferAnswerCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -169,12 +184,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public TransferAnswerCallback applicationId(String applicationId) { + public TransferAnswerCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -188,12 +203,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public TransferAnswerCallback from(String from) { + public TransferAnswerCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -207,12 +222,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public TransferAnswerCallback to(String to) { + public TransferAnswerCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -226,12 +241,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public TransferAnswerCallback direction(CallDirectionEnum direction) { + public TransferAnswerCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -245,12 +260,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public TransferAnswerCallback callId(String callId) { + public TransferAnswerCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -264,12 +279,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public TransferAnswerCallback callUrl(URI callUrl) { + public TransferAnswerCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -283,12 +298,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public TransferAnswerCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public TransferAnswerCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -302,12 +317,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public TransferAnswerCallback startTime(OffsetDateTime startTime) { + public TransferAnswerCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -321,12 +336,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public TransferAnswerCallback answerTime(OffsetDateTime answerTime) { + public TransferAnswerCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -340,12 +355,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public TransferAnswerCallback tag(String tag) { + public TransferAnswerCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -359,12 +374,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public TransferAnswerCallback transferCallerId(String transferCallerId) { + public TransferAnswerCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -378,12 +393,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public TransferAnswerCallback transferTo(String transferTo) { + public TransferAnswerCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -397,7 +412,7 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java index b71cf0bc..40908757 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferCompleteCallback.java @@ -52,84 +52,102 @@ /** * This event is sent to the transferCompleteUrl of the A-leg's <Transfer> verb when the transferred call (B-leg) completes. In a simultaneous ringing scenario, only one B-leg succeeds and this event corresponds to that successful leg. If none of the calls were answered, the transferComplete event corresponds to one of the legs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class TransferCompleteCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public static final String SERIALIZED_NAME_CAUSE = "cause"; @SerializedName(SERIALIZED_NAME_CAUSE) + @javax.annotation.Nullable private String cause; public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) + @javax.annotation.Nullable private String errorMessage; public static final String SERIALIZED_NAME_ERROR_ID = "errorId"; @SerializedName(SERIALIZED_NAME_ERROR_ID) + @javax.annotation.Nullable private String errorId; public TransferCompleteCallback() { } - public TransferCompleteCallback eventType(String eventType) { + public TransferCompleteCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -143,12 +161,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public TransferCompleteCallback eventTime(OffsetDateTime eventTime) { + public TransferCompleteCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -162,12 +180,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public TransferCompleteCallback accountId(String accountId) { + public TransferCompleteCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -181,12 +199,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public TransferCompleteCallback applicationId(String applicationId) { + public TransferCompleteCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -200,12 +218,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public TransferCompleteCallback from(String from) { + public TransferCompleteCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -219,12 +237,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public TransferCompleteCallback to(String to) { + public TransferCompleteCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -238,12 +256,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public TransferCompleteCallback direction(CallDirectionEnum direction) { + public TransferCompleteCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -257,12 +275,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public TransferCompleteCallback callId(String callId) { + public TransferCompleteCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -276,12 +294,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public TransferCompleteCallback callUrl(URI callUrl) { + public TransferCompleteCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -295,12 +313,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public TransferCompleteCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public TransferCompleteCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -314,12 +332,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public TransferCompleteCallback startTime(OffsetDateTime startTime) { + public TransferCompleteCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -333,12 +351,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public TransferCompleteCallback answerTime(OffsetDateTime answerTime) { + public TransferCompleteCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -352,12 +370,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public TransferCompleteCallback tag(String tag) { + public TransferCompleteCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -371,12 +389,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public TransferCompleteCallback transferCallerId(String transferCallerId) { + public TransferCompleteCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -390,12 +408,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public TransferCompleteCallback transferTo(String transferTo) { + public TransferCompleteCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -409,12 +427,12 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } - public TransferCompleteCallback cause(String cause) { + public TransferCompleteCallback cause(@javax.annotation.Nullable String cause) { this.cause = cause; return this; } @@ -428,12 +446,12 @@ public String getCause() { return cause; } - public void setCause(String cause) { + public void setCause(@javax.annotation.Nullable String cause) { this.cause = cause; } - public TransferCompleteCallback errorMessage(String errorMessage) { + public TransferCompleteCallback errorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -447,12 +465,12 @@ public String getErrorMessage() { return errorMessage; } - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } - public TransferCompleteCallback errorId(String errorId) { + public TransferCompleteCallback errorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; return this; } @@ -466,7 +484,7 @@ public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { + public void setErrorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; } diff --git a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java index 7adddbe2..aac192fe 100644 --- a/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java +++ b/src/main/java/com/bandwidth/sdk/model/TransferDisconnectCallback.java @@ -52,92 +52,112 @@ /** * This event is sent to the transferDisconnectUrl of each <PhoneNumber> tag when its respective call leg ends for any reason. The event is sent in the normal case, when the transferred leg is answered and later hung up, but is also sent if the new leg was never answered in the first place, if it was rejected, and if the original call leg hung up before the transferred leg. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class TransferDisconnectCallback { public static final String SERIALIZED_NAME_EVENT_TYPE = "eventType"; @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nullable private String eventType; public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; @SerializedName(SERIALIZED_NAME_EVENT_TIME) + @javax.annotation.Nullable private OffsetDateTime eventTime; public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + @javax.annotation.Nullable private String accountId; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @SerializedName(SERIALIZED_NAME_APPLICATION_ID) + @javax.annotation.Nullable private String applicationId; public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) + @javax.annotation.Nullable private String from; public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nullable private String to; public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) + @javax.annotation.Nullable private CallDirectionEnum direction; public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public static final String SERIALIZED_NAME_CALL_URL = "callUrl"; @SerializedName(SERIALIZED_NAME_CALL_URL) + @javax.annotation.Nullable private URI callUrl; public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + @javax.annotation.Nullable private String parentCallId; public static final String SERIALIZED_NAME_ENQUEUED_TIME = "enqueuedTime"; @SerializedName(SERIALIZED_NAME_ENQUEUED_TIME) + @javax.annotation.Nullable private OffsetDateTime enqueuedTime; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @SerializedName(SERIALIZED_NAME_START_TIME) + @javax.annotation.Nullable private OffsetDateTime startTime; public static final String SERIALIZED_NAME_ANSWER_TIME = "answerTime"; @SerializedName(SERIALIZED_NAME_ANSWER_TIME) + @javax.annotation.Nullable private OffsetDateTime answerTime; public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) + @javax.annotation.Nullable private OffsetDateTime endTime; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public static final String SERIALIZED_NAME_TRANSFER_CALLER_ID = "transferCallerId"; @SerializedName(SERIALIZED_NAME_TRANSFER_CALLER_ID) + @javax.annotation.Nullable private String transferCallerId; public static final String SERIALIZED_NAME_TRANSFER_TO = "transferTo"; @SerializedName(SERIALIZED_NAME_TRANSFER_TO) + @javax.annotation.Nullable private String transferTo; public static final String SERIALIZED_NAME_CAUSE = "cause"; @SerializedName(SERIALIZED_NAME_CAUSE) + @javax.annotation.Nullable private String cause; public static final String SERIALIZED_NAME_ERROR_MESSAGE = "errorMessage"; @SerializedName(SERIALIZED_NAME_ERROR_MESSAGE) + @javax.annotation.Nullable private String errorMessage; public static final String SERIALIZED_NAME_ERROR_ID = "errorId"; @SerializedName(SERIALIZED_NAME_ERROR_ID) + @javax.annotation.Nullable private String errorId; public TransferDisconnectCallback() { } - public TransferDisconnectCallback eventType(String eventType) { + public TransferDisconnectCallback eventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; return this; } @@ -151,12 +171,12 @@ public String getEventType() { return eventType; } - public void setEventType(String eventType) { + public void setEventType(@javax.annotation.Nullable String eventType) { this.eventType = eventType; } - public TransferDisconnectCallback eventTime(OffsetDateTime eventTime) { + public TransferDisconnectCallback eventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; return this; } @@ -170,12 +190,12 @@ public OffsetDateTime getEventTime() { return eventTime; } - public void setEventTime(OffsetDateTime eventTime) { + public void setEventTime(@javax.annotation.Nullable OffsetDateTime eventTime) { this.eventTime = eventTime; } - public TransferDisconnectCallback accountId(String accountId) { + public TransferDisconnectCallback accountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; return this; } @@ -189,12 +209,12 @@ public String getAccountId() { return accountId; } - public void setAccountId(String accountId) { + public void setAccountId(@javax.annotation.Nullable String accountId) { this.accountId = accountId; } - public TransferDisconnectCallback applicationId(String applicationId) { + public TransferDisconnectCallback applicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; return this; } @@ -208,12 +228,12 @@ public String getApplicationId() { return applicationId; } - public void setApplicationId(String applicationId) { + public void setApplicationId(@javax.annotation.Nullable String applicationId) { this.applicationId = applicationId; } - public TransferDisconnectCallback from(String from) { + public TransferDisconnectCallback from(@javax.annotation.Nullable String from) { this.from = from; return this; } @@ -227,12 +247,12 @@ public String getFrom() { return from; } - public void setFrom(String from) { + public void setFrom(@javax.annotation.Nullable String from) { this.from = from; } - public TransferDisconnectCallback to(String to) { + public TransferDisconnectCallback to(@javax.annotation.Nullable String to) { this.to = to; return this; } @@ -246,12 +266,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nullable String to) { this.to = to; } - public TransferDisconnectCallback direction(CallDirectionEnum direction) { + public TransferDisconnectCallback direction(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; return this; } @@ -265,12 +285,12 @@ public CallDirectionEnum getDirection() { return direction; } - public void setDirection(CallDirectionEnum direction) { + public void setDirection(@javax.annotation.Nullable CallDirectionEnum direction) { this.direction = direction; } - public TransferDisconnectCallback callId(String callId) { + public TransferDisconnectCallback callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -284,12 +304,12 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; } - public TransferDisconnectCallback callUrl(URI callUrl) { + public TransferDisconnectCallback callUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; return this; } @@ -303,12 +323,12 @@ public URI getCallUrl() { return callUrl; } - public void setCallUrl(URI callUrl) { + public void setCallUrl(@javax.annotation.Nullable URI callUrl) { this.callUrl = callUrl; } - public TransferDisconnectCallback parentCallId(String parentCallId) { + public TransferDisconnectCallback parentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; return this; } @@ -322,12 +342,12 @@ public String getParentCallId() { return parentCallId; } - public void setParentCallId(String parentCallId) { + public void setParentCallId(@javax.annotation.Nullable String parentCallId) { this.parentCallId = parentCallId; } - public TransferDisconnectCallback enqueuedTime(OffsetDateTime enqueuedTime) { + public TransferDisconnectCallback enqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; return this; } @@ -341,12 +361,12 @@ public OffsetDateTime getEnqueuedTime() { return enqueuedTime; } - public void setEnqueuedTime(OffsetDateTime enqueuedTime) { + public void setEnqueuedTime(@javax.annotation.Nullable OffsetDateTime enqueuedTime) { this.enqueuedTime = enqueuedTime; } - public TransferDisconnectCallback startTime(OffsetDateTime startTime) { + public TransferDisconnectCallback startTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; return this; } @@ -360,12 +380,12 @@ public OffsetDateTime getStartTime() { return startTime; } - public void setStartTime(OffsetDateTime startTime) { + public void setStartTime(@javax.annotation.Nullable OffsetDateTime startTime) { this.startTime = startTime; } - public TransferDisconnectCallback answerTime(OffsetDateTime answerTime) { + public TransferDisconnectCallback answerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; return this; } @@ -379,12 +399,12 @@ public OffsetDateTime getAnswerTime() { return answerTime; } - public void setAnswerTime(OffsetDateTime answerTime) { + public void setAnswerTime(@javax.annotation.Nullable OffsetDateTime answerTime) { this.answerTime = answerTime; } - public TransferDisconnectCallback endTime(OffsetDateTime endTime) { + public TransferDisconnectCallback endTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; return this; } @@ -398,12 +418,12 @@ public OffsetDateTime getEndTime() { return endTime; } - public void setEndTime(OffsetDateTime endTime) { + public void setEndTime(@javax.annotation.Nullable OffsetDateTime endTime) { this.endTime = endTime; } - public TransferDisconnectCallback tag(String tag) { + public TransferDisconnectCallback tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -417,12 +437,12 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } - public TransferDisconnectCallback transferCallerId(String transferCallerId) { + public TransferDisconnectCallback transferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; return this; } @@ -436,12 +456,12 @@ public String getTransferCallerId() { return transferCallerId; } - public void setTransferCallerId(String transferCallerId) { + public void setTransferCallerId(@javax.annotation.Nullable String transferCallerId) { this.transferCallerId = transferCallerId; } - public TransferDisconnectCallback transferTo(String transferTo) { + public TransferDisconnectCallback transferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; return this; } @@ -455,12 +475,12 @@ public String getTransferTo() { return transferTo; } - public void setTransferTo(String transferTo) { + public void setTransferTo(@javax.annotation.Nullable String transferTo) { this.transferTo = transferTo; } - public TransferDisconnectCallback cause(String cause) { + public TransferDisconnectCallback cause(@javax.annotation.Nullable String cause) { this.cause = cause; return this; } @@ -474,12 +494,12 @@ public String getCause() { return cause; } - public void setCause(String cause) { + public void setCause(@javax.annotation.Nullable String cause) { this.cause = cause; } - public TransferDisconnectCallback errorMessage(String errorMessage) { + public TransferDisconnectCallback errorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; return this; } @@ -493,12 +513,12 @@ public String getErrorMessage() { return errorMessage; } - public void setErrorMessage(String errorMessage) { + public void setErrorMessage(@javax.annotation.Nullable String errorMessage) { this.errorMessage = errorMessage; } - public TransferDisconnectCallback errorId(String errorId) { + public TransferDisconnectCallback errorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; return this; } @@ -512,7 +532,7 @@ public String getErrorId() { return errorId; } - public void setErrorId(String errorId) { + public void setErrorId(@javax.annotation.Nullable String errorId) { this.errorId = errorId; } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java index 9e0aa12d..22164f89 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCall.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCall.java @@ -52,52 +52,62 @@ /** * UpdateCall */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class UpdateCall { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) + @javax.annotation.Nullable private CallStateEnum state = CallStateEnum.ACTIVE; public static final String SERIALIZED_NAME_REDIRECT_URL = "redirectUrl"; @SerializedName(SERIALIZED_NAME_REDIRECT_URL) + @javax.annotation.Nullable private URI redirectUrl; public static final String SERIALIZED_NAME_REDIRECT_METHOD = "redirectMethod"; @SerializedName(SERIALIZED_NAME_REDIRECT_METHOD) + @javax.annotation.Nullable private RedirectMethodEnum redirectMethod = RedirectMethodEnum.POST; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_REDIRECT_FALLBACK_URL = "redirectFallbackUrl"; @SerializedName(SERIALIZED_NAME_REDIRECT_FALLBACK_URL) + @javax.annotation.Nullable private URI redirectFallbackUrl; public static final String SERIALIZED_NAME_REDIRECT_FALLBACK_METHOD = "redirectFallbackMethod"; @SerializedName(SERIALIZED_NAME_REDIRECT_FALLBACK_METHOD) + @javax.annotation.Nullable private RedirectMethodEnum redirectFallbackMethod = RedirectMethodEnum.POST; public static final String SERIALIZED_NAME_FALLBACK_USERNAME = "fallbackUsername"; @SerializedName(SERIALIZED_NAME_FALLBACK_USERNAME) + @javax.annotation.Nullable private String fallbackUsername; public static final String SERIALIZED_NAME_FALLBACK_PASSWORD = "fallbackPassword"; @SerializedName(SERIALIZED_NAME_FALLBACK_PASSWORD) + @javax.annotation.Nullable private String fallbackPassword; public static final String SERIALIZED_NAME_TAG = "tag"; @SerializedName(SERIALIZED_NAME_TAG) + @javax.annotation.Nullable private String tag; public UpdateCall() { } - public UpdateCall state(CallStateEnum state) { + public UpdateCall state(@javax.annotation.Nullable CallStateEnum state) { this.state = state; return this; } @@ -111,12 +121,12 @@ public CallStateEnum getState() { return state; } - public void setState(CallStateEnum state) { + public void setState(@javax.annotation.Nullable CallStateEnum state) { this.state = state; } - public UpdateCall redirectUrl(URI redirectUrl) { + public UpdateCall redirectUrl(@javax.annotation.Nullable URI redirectUrl) { this.redirectUrl = redirectUrl; return this; } @@ -130,12 +140,12 @@ public URI getRedirectUrl() { return redirectUrl; } - public void setRedirectUrl(URI redirectUrl) { + public void setRedirectUrl(@javax.annotation.Nullable URI redirectUrl) { this.redirectUrl = redirectUrl; } - public UpdateCall redirectMethod(RedirectMethodEnum redirectMethod) { + public UpdateCall redirectMethod(@javax.annotation.Nullable RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; return this; } @@ -149,12 +159,12 @@ public RedirectMethodEnum getRedirectMethod() { return redirectMethod; } - public void setRedirectMethod(RedirectMethodEnum redirectMethod) { + public void setRedirectMethod(@javax.annotation.Nullable RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; } - public UpdateCall username(String username) { + public UpdateCall username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -168,12 +178,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public UpdateCall password(String password) { + public UpdateCall password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -187,12 +197,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public UpdateCall redirectFallbackUrl(URI redirectFallbackUrl) { + public UpdateCall redirectFallbackUrl(@javax.annotation.Nullable URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; return this; } @@ -206,12 +216,12 @@ public URI getRedirectFallbackUrl() { return redirectFallbackUrl; } - public void setRedirectFallbackUrl(URI redirectFallbackUrl) { + public void setRedirectFallbackUrl(@javax.annotation.Nullable URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; } - public UpdateCall redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { + public UpdateCall redirectFallbackMethod(@javax.annotation.Nullable RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; return this; } @@ -225,12 +235,12 @@ public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; } - public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { + public void setRedirectFallbackMethod(@javax.annotation.Nullable RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; } - public UpdateCall fallbackUsername(String fallbackUsername) { + public UpdateCall fallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; return this; } @@ -244,12 +254,12 @@ public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { + public void setFallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; } - public UpdateCall fallbackPassword(String fallbackPassword) { + public UpdateCall fallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; return this; } @@ -263,12 +273,12 @@ public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { + public void setFallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; } - public UpdateCall tag(String tag) { + public UpdateCall tag(@javax.annotation.Nullable String tag) { this.tag = tag; return this; } @@ -282,7 +292,7 @@ public String getTag() { return tag; } - public void setTag(String tag) { + public void setTag(@javax.annotation.Nullable String tag) { this.tag = tag; } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java index 47c56deb..c269d8d3 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateCallRecording.java @@ -49,16 +49,17 @@ /** * UpdateCallRecording */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class UpdateCallRecording { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) + @javax.annotation.Nonnull private RecordingStateEnum state; public UpdateCallRecording() { } - public UpdateCallRecording state(RecordingStateEnum state) { + public UpdateCallRecording state(@javax.annotation.Nonnull RecordingStateEnum state) { this.state = state; return this; } @@ -72,7 +73,7 @@ public RecordingStateEnum getState() { return state; } - public void setState(RecordingStateEnum state) { + public void setState(@javax.annotation.Nonnull RecordingStateEnum state) { this.state = state; } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java index b8507d78..0b09b1e4 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConference.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConference.java @@ -52,48 +52,57 @@ /** * UpdateConference */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class UpdateConference { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable private ConferenceStateEnum status = ConferenceStateEnum.ACTIVE; public static final String SERIALIZED_NAME_REDIRECT_URL = "redirectUrl"; @SerializedName(SERIALIZED_NAME_REDIRECT_URL) + @javax.annotation.Nullable private URI redirectUrl; public static final String SERIALIZED_NAME_REDIRECT_METHOD = "redirectMethod"; @SerializedName(SERIALIZED_NAME_REDIRECT_METHOD) + @javax.annotation.Nullable private RedirectMethodEnum redirectMethod = RedirectMethodEnum.POST; public static final String SERIALIZED_NAME_USERNAME = "username"; @SerializedName(SERIALIZED_NAME_USERNAME) + @javax.annotation.Nullable private String username; public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) + @javax.annotation.Nullable private String password; public static final String SERIALIZED_NAME_REDIRECT_FALLBACK_URL = "redirectFallbackUrl"; @SerializedName(SERIALIZED_NAME_REDIRECT_FALLBACK_URL) + @javax.annotation.Nullable private URI redirectFallbackUrl; public static final String SERIALIZED_NAME_REDIRECT_FALLBACK_METHOD = "redirectFallbackMethod"; @SerializedName(SERIALIZED_NAME_REDIRECT_FALLBACK_METHOD) + @javax.annotation.Nullable private RedirectMethodEnum redirectFallbackMethod = RedirectMethodEnum.POST; public static final String SERIALIZED_NAME_FALLBACK_USERNAME = "fallbackUsername"; @SerializedName(SERIALIZED_NAME_FALLBACK_USERNAME) + @javax.annotation.Nullable private String fallbackUsername; public static final String SERIALIZED_NAME_FALLBACK_PASSWORD = "fallbackPassword"; @SerializedName(SERIALIZED_NAME_FALLBACK_PASSWORD) + @javax.annotation.Nullable private String fallbackPassword; public UpdateConference() { } - public UpdateConference status(ConferenceStateEnum status) { + public UpdateConference status(@javax.annotation.Nullable ConferenceStateEnum status) { this.status = status; return this; } @@ -107,12 +116,12 @@ public ConferenceStateEnum getStatus() { return status; } - public void setStatus(ConferenceStateEnum status) { + public void setStatus(@javax.annotation.Nullable ConferenceStateEnum status) { this.status = status; } - public UpdateConference redirectUrl(URI redirectUrl) { + public UpdateConference redirectUrl(@javax.annotation.Nullable URI redirectUrl) { this.redirectUrl = redirectUrl; return this; } @@ -126,12 +135,12 @@ public URI getRedirectUrl() { return redirectUrl; } - public void setRedirectUrl(URI redirectUrl) { + public void setRedirectUrl(@javax.annotation.Nullable URI redirectUrl) { this.redirectUrl = redirectUrl; } - public UpdateConference redirectMethod(RedirectMethodEnum redirectMethod) { + public UpdateConference redirectMethod(@javax.annotation.Nullable RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; return this; } @@ -145,12 +154,12 @@ public RedirectMethodEnum getRedirectMethod() { return redirectMethod; } - public void setRedirectMethod(RedirectMethodEnum redirectMethod) { + public void setRedirectMethod(@javax.annotation.Nullable RedirectMethodEnum redirectMethod) { this.redirectMethod = redirectMethod; } - public UpdateConference username(String username) { + public UpdateConference username(@javax.annotation.Nullable String username) { this.username = username; return this; } @@ -164,12 +173,12 @@ public String getUsername() { return username; } - public void setUsername(String username) { + public void setUsername(@javax.annotation.Nullable String username) { this.username = username; } - public UpdateConference password(String password) { + public UpdateConference password(@javax.annotation.Nullable String password) { this.password = password; return this; } @@ -183,12 +192,12 @@ public String getPassword() { return password; } - public void setPassword(String password) { + public void setPassword(@javax.annotation.Nullable String password) { this.password = password; } - public UpdateConference redirectFallbackUrl(URI redirectFallbackUrl) { + public UpdateConference redirectFallbackUrl(@javax.annotation.Nullable URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; return this; } @@ -202,12 +211,12 @@ public URI getRedirectFallbackUrl() { return redirectFallbackUrl; } - public void setRedirectFallbackUrl(URI redirectFallbackUrl) { + public void setRedirectFallbackUrl(@javax.annotation.Nullable URI redirectFallbackUrl) { this.redirectFallbackUrl = redirectFallbackUrl; } - public UpdateConference redirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { + public UpdateConference redirectFallbackMethod(@javax.annotation.Nullable RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; return this; } @@ -221,12 +230,12 @@ public RedirectMethodEnum getRedirectFallbackMethod() { return redirectFallbackMethod; } - public void setRedirectFallbackMethod(RedirectMethodEnum redirectFallbackMethod) { + public void setRedirectFallbackMethod(@javax.annotation.Nullable RedirectMethodEnum redirectFallbackMethod) { this.redirectFallbackMethod = redirectFallbackMethod; } - public UpdateConference fallbackUsername(String fallbackUsername) { + public UpdateConference fallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; return this; } @@ -240,12 +249,12 @@ public String getFallbackUsername() { return fallbackUsername; } - public void setFallbackUsername(String fallbackUsername) { + public void setFallbackUsername(@javax.annotation.Nullable String fallbackUsername) { this.fallbackUsername = fallbackUsername; } - public UpdateConference fallbackPassword(String fallbackPassword) { + public UpdateConference fallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; return this; } @@ -259,7 +268,7 @@ public String getFallbackPassword() { return fallbackPassword; } - public void setFallbackPassword(String fallbackPassword) { + public void setFallbackPassword(@javax.annotation.Nullable String fallbackPassword) { this.fallbackPassword = fallbackPassword; } diff --git a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java index a7a782cd..e0e385ba 100644 --- a/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java +++ b/src/main/java/com/bandwidth/sdk/model/UpdateConferenceMember.java @@ -51,24 +51,27 @@ /** * UpdateConferenceMember */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class UpdateConferenceMember { public static final String SERIALIZED_NAME_MUTE = "mute"; @SerializedName(SERIALIZED_NAME_MUTE) + @javax.annotation.Nullable private Boolean mute; public static final String SERIALIZED_NAME_HOLD = "hold"; @SerializedName(SERIALIZED_NAME_HOLD) + @javax.annotation.Nullable private Boolean hold; public static final String SERIALIZED_NAME_CALL_IDS_TO_COACH = "callIdsToCoach"; @SerializedName(SERIALIZED_NAME_CALL_IDS_TO_COACH) + @javax.annotation.Nullable private List callIdsToCoach; public UpdateConferenceMember() { } - public UpdateConferenceMember mute(Boolean mute) { + public UpdateConferenceMember mute(@javax.annotation.Nullable Boolean mute) { this.mute = mute; return this; } @@ -82,12 +85,12 @@ public Boolean getMute() { return mute; } - public void setMute(Boolean mute) { + public void setMute(@javax.annotation.Nullable Boolean mute) { this.mute = mute; } - public UpdateConferenceMember hold(Boolean hold) { + public UpdateConferenceMember hold(@javax.annotation.Nullable Boolean hold) { this.hold = hold; return this; } @@ -101,12 +104,12 @@ public Boolean getHold() { return hold; } - public void setHold(Boolean hold) { + public void setHold(@javax.annotation.Nullable Boolean hold) { this.hold = hold; } - public UpdateConferenceMember callIdsToCoach(List callIdsToCoach) { + public UpdateConferenceMember callIdsToCoach(@javax.annotation.Nullable List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; return this; } @@ -128,7 +131,7 @@ public List getCallIdsToCoach() { return callIdsToCoach; } - public void setCallIdsToCoach(List callIdsToCoach) { + public void setCallIdsToCoach(@javax.annotation.Nullable List callIdsToCoach) { this.callIdsToCoach = callIdsToCoach; } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java index 85c6988e..98611e5c 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeRequest.java @@ -49,28 +49,32 @@ /** * VerifyCodeRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class VerifyCodeRequest { public static final String SERIALIZED_NAME_TO = "to"; @SerializedName(SERIALIZED_NAME_TO) + @javax.annotation.Nonnull private String to; public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) + @javax.annotation.Nullable private String scope; public static final String SERIALIZED_NAME_EXPIRATION_TIME_IN_MINUTES = "expirationTimeInMinutes"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIME_IN_MINUTES) + @javax.annotation.Nonnull private BigDecimal expirationTimeInMinutes; public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) + @javax.annotation.Nonnull private String code; public VerifyCodeRequest() { } - public VerifyCodeRequest to(String to) { + public VerifyCodeRequest to(@javax.annotation.Nonnull String to) { this.to = to; return this; } @@ -84,12 +88,12 @@ public String getTo() { return to; } - public void setTo(String to) { + public void setTo(@javax.annotation.Nonnull String to) { this.to = to; } - public VerifyCodeRequest scope(String scope) { + public VerifyCodeRequest scope(@javax.annotation.Nullable String scope) { this.scope = scope; return this; } @@ -103,12 +107,12 @@ public String getScope() { return scope; } - public void setScope(String scope) { + public void setScope(@javax.annotation.Nullable String scope) { this.scope = scope; } - public VerifyCodeRequest expirationTimeInMinutes(BigDecimal expirationTimeInMinutes) { + public VerifyCodeRequest expirationTimeInMinutes(@javax.annotation.Nonnull BigDecimal expirationTimeInMinutes) { this.expirationTimeInMinutes = expirationTimeInMinutes; return this; } @@ -124,12 +128,12 @@ public BigDecimal getExpirationTimeInMinutes() { return expirationTimeInMinutes; } - public void setExpirationTimeInMinutes(BigDecimal expirationTimeInMinutes) { + public void setExpirationTimeInMinutes(@javax.annotation.Nonnull BigDecimal expirationTimeInMinutes) { this.expirationTimeInMinutes = expirationTimeInMinutes; } - public VerifyCodeRequest code(String code) { + public VerifyCodeRequest code(@javax.annotation.Nonnull String code) { this.code = code; return this; } @@ -143,7 +147,7 @@ public String getCode() { return code; } - public void setCode(String code) { + public void setCode(@javax.annotation.Nonnull String code) { this.code = code; } diff --git a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java index 70e59bb8..d8040b0b 100644 --- a/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VerifyCodeResponse.java @@ -48,16 +48,17 @@ /** * VerifyCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class VerifyCodeResponse { public static final String SERIALIZED_NAME_VALID = "valid"; @SerializedName(SERIALIZED_NAME_VALID) + @javax.annotation.Nullable private Boolean valid; public VerifyCodeResponse() { } - public VerifyCodeResponse valid(Boolean valid) { + public VerifyCodeResponse valid(@javax.annotation.Nullable Boolean valid) { this.valid = valid; return this; } @@ -71,7 +72,7 @@ public Boolean getValid() { return valid; } - public void setValid(Boolean valid) { + public void setValid(@javax.annotation.Nullable Boolean valid) { this.valid = valid; } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java index 18973b20..589bbdbc 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceApiError.java @@ -49,24 +49,27 @@ /** * VoiceApiError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class VoiceApiError { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nullable private String type; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) + @javax.annotation.Nullable private String id; public VoiceApiError() { } - public VoiceApiError type(String type) { + public VoiceApiError type(@javax.annotation.Nullable String type) { this.type = type; return this; } @@ -80,12 +83,12 @@ public String getType() { return type; } - public void setType(String type) { + public void setType(@javax.annotation.Nullable String type) { this.type = type; } - public VoiceApiError description(String description) { + public VoiceApiError description(@javax.annotation.Nullable String description) { this.description = description; return this; } @@ -99,12 +102,12 @@ public String getDescription() { return description; } - public void setDescription(String description) { + public void setDescription(@javax.annotation.Nullable String description) { this.description = description; } - public VoiceApiError id(String id) { + public VoiceApiError id(@javax.annotation.Nullable String id) { this.id = id; return this; } @@ -118,7 +121,7 @@ public String getId() { return id; } - public void setId(String id) { + public void setId(@javax.annotation.Nullable String id) { this.id = id; } diff --git a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java index e86b3c3e..8e0047dd 100644 --- a/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java +++ b/src/main/java/com/bandwidth/sdk/model/VoiceCodeResponse.java @@ -48,16 +48,17 @@ /** * VoiceCodeResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.10.0") public class VoiceCodeResponse { public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) + @javax.annotation.Nullable private String callId; public VoiceCodeResponse() { } - public VoiceCodeResponse callId(String callId) { + public VoiceCodeResponse callId(@javax.annotation.Nullable String callId) { this.callId = callId; return this; } @@ -71,7 +72,7 @@ public String getCallId() { return callId; } - public void setCallId(String callId) { + public void setCallId(@javax.annotation.Nullable String callId) { this.callId = callId; }
Response Details
Status Code Description Response Headers
200 OK -
400 Bad Request -