From b1c45e1f006c8c61e70667629ccf5f347ad896c1 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 3 Jan 2025 20:45:49 +0000 Subject: [PATCH] SDK regeneration --- .github/workflows/ci.yml | 3 +- build.gradle | 71 ++++++++++++++--- gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 3 +- settings.gradle | 2 + .../schematic/api/BaseSchematicBuilder.java | 8 ++ .../com/schematic/api/core/ClientOptions.java | 19 ++++- .../com/schematic/api/core/FileStream.java | 60 ++++++++++++++ .../api/core/InputStreamRequestBody.java | 79 +++++++++++++++++++ .../IssueTemporaryAccessTokenRequestBody.java | 7 +- .../IssueTemporaryAccessTokenResponse.java | 7 +- .../requests/CreateApiKeyRequestBody.java | 7 +- .../CreateEnvironmentRequestBody.java | 13 +-- .../accounts/types/CountApiKeysResponse.java | 13 +-- .../types/CountApiRequestsResponse.java | 13 +-- .../accounts/types/CreateApiKeyResponse.java | 7 +- .../types/CreateEnvironmentResponse.java | 7 +- .../accounts/types/DeleteApiKeyResponse.java | 7 +- .../types/DeleteEnvironmentResponse.java | 7 +- .../accounts/types/GetApiKeyResponse.java | 7 +- .../accounts/types/GetApiRequestResponse.java | 7 +- .../types/GetEnvironmentResponse.java | 7 +- .../accounts/types/ListApiKeysResponse.java | 7 +- .../types/ListApiRequestsResponse.java | 7 +- .../types/ListEnvironmentsResponse.java | 7 +- .../accounts/types/UpdateApiKeyResponse.java | 7 +- .../types/UpdateEnvironmentResponse.java | 7 +- .../CreateBillingCustomerRequestBody.java | 19 ++--- .../CreateBillingPriceRequestBody.java | 31 ++++---- .../CreateBillingProductRequestBody.java | 19 ++--- ...CreateBillingSubscriptionsRequestBody.java | 26 +++--- .../requests/CreateCouponRequestBody.java | 19 ++--- .../requests/CreateInvoiceRequestBody.java | 19 ++--- .../requests/CreateMeterRequestBody.java | 25 +++--- .../CreatePaymentMethodRequestBody.java | 19 ++--- .../billing/requests/ListInvoicesRequest.java | 7 +- .../requests/ListPaymentMethodsRequest.java | 7 +- .../types/CountBillingProductsResponse.java | 13 +-- .../billing/types/CountCustomersResponse.java | 13 +-- .../types/DeleteProductPriceResponse.java | 7 +- .../types/ListBillingProductsResponse.java | 7 +- .../billing/types/ListCustomersResponse.java | 7 +- .../billing/types/ListInvoicesResponse.java | 7 +- .../billing/types/ListMetersResponse.java | 7 +- .../types/ListPaymentMethodsResponse.java | 7 +- .../types/ListProductPricesResponse.java | 7 +- .../types/SearchBillingPricesResponse.java | 7 +- .../types/UpsertBillingCouponResponse.java | 7 +- .../types/UpsertBillingCustomerResponse.java | 7 +- .../types/UpsertBillingMeterResponse.java | 7 +- .../types/UpsertBillingPriceResponse.java | 7 +- .../types/UpsertBillingProductResponse.java | 7 +- .../UpsertBillingSubscriptionResponse.java | 7 +- .../billing/types/UpsertInvoiceResponse.java | 7 +- .../types/UpsertPaymentMethodResponse.java | 7 +- .../resources/checkout/CheckoutClient.java | 5 -- .../types/CheckoutInternalResponse.java | 7 +- .../PreviewCheckoutInternalResponse.java | 7 +- ...eCustomerSubscriptionTrialEndResponse.java | 7 +- ...reateEntityTraitDefinitionRequestBody.java | 13 +-- .../requests/GetActiveDealsRequest.java | 13 +-- .../requests/GetEntityTraitValuesRequest.java | 7 +- ...tOrCreateCompanyMembershipRequestBody.java | 13 +-- ...pdateEntityTraitDefinitionRequestBody.java | 7 +- .../types/CountCompaniesResponse.java | 13 +-- .../CountEntityKeyDefinitionsResponse.java | 13 +-- .../CountEntityTraitDefinitionsResponse.java | 13 +-- .../companies/types/CountUsersResponse.java | 13 +-- .../types/CreateCompanyResponse.java | 7 +- .../companies/types/CreateUserResponse.java | 7 +- .../types/DeleteCompanyByKeysResponse.java | 7 +- .../DeleteCompanyMembershipResponse.java | 7 +- .../types/DeleteCompanyResponse.java | 7 +- .../types/DeleteUserByKeysResponse.java | 7 +- .../companies/types/DeleteUserResponse.java | 7 +- .../GetActiveCompanySubscriptionResponse.java | 7 +- .../types/GetActiveDealsResponse.java | 7 +- .../companies/types/GetCompanyResponse.java | 7 +- .../GetEntityTraitDefinitionResponse.java | 7 +- .../types/GetEntityTraitValuesResponse.java | 7 +- .../GetOrCreateCompanyMembershipResponse.java | 7 +- ...OrCreateEntityTraitDefinitionResponse.java | 7 +- .../companies/types/GetUserResponse.java | 7 +- .../types/ListCompaniesResponse.java | 7 +- .../types/ListCompanyMembershipsResponse.java | 7 +- .../ListEntityKeyDefinitionsResponse.java | 7 +- .../ListEntityTraitDefinitionsResponse.java | 7 +- .../companies/types/ListUsersResponse.java | 7 +- .../types/LookupCompanyResponse.java | 13 +-- .../companies/types/LookupUserResponse.java | 13 +-- .../UpdateEntityTraitDefinitionResponse.java | 7 +- .../types/UpsertCompanyResponse.java | 7 +- .../types/UpsertCompanyTraitResponse.java | 7 +- .../companies/types/UpsertUserResponse.java | 7 +- .../types/UpsertUserTraitResponse.java | 7 +- .../components/ComponentsClient.java | 4 - .../requests/CreateComponentRequestBody.java | 13 +-- .../types/CountComponentsResponse.java | 13 +-- .../types/CreateComponentResponse.java | 7 +- .../types/DeleteComponentResponse.java | 7 +- .../types/GetComponentResponse.java | 7 +- .../types/ListComponentsResponse.java | 7 +- .../types/PreviewComponentDataResponse.java | 13 +-- .../types/UpdateComponentResponse.java | 7 +- ...CrmDealLineItemAssociationRequestBody.java | 13 +-- .../requests/CreateCrmDealRequestBody.java | 19 ++--- .../CreateCrmLineItemRequestBody.java | 25 +++--- .../requests/CreateCrmProductRequestBody.java | 43 +++++----- .../crm/types/ListCrmProductsResponse.java | 7 +- .../crm/types/UpsertCrmDealResponse.java | 7 +- .../crm/types/UpsertCrmProductResponse.java | 7 +- ...UpsertDealLineItemAssociationResponse.java | 7 +- .../crm/types/UpsertLineItemResponse.java | 7 +- .../CountFeatureCompaniesRequest.java | 7 +- .../requests/CountFeatureUsersRequest.java | 7 +- .../CreateCompanyOverrideRequestBody.java | 19 ++--- .../CreatePlanEntitlementRequestBody.java | 19 ++--- .../requests/ListFeatureCompaniesRequest.java | 7 +- .../requests/ListFeatureUsersRequest.java | 7 +- .../UpdateCompanyOverrideRequestBody.java | 7 +- .../UpdatePlanEntitlementRequestBody.java | 7 +- .../types/CountCompanyOverridesResponse.java | 13 +-- .../types/CountFeatureCompaniesResponse.java | 13 +-- .../types/CountFeatureUsageResponse.java | 13 +-- .../types/CountFeatureUsersResponse.java | 13 +-- .../types/CountPlanEntitlementsResponse.java | 13 +-- .../types/CreateCompanyOverrideResponse.java | 7 +- .../types/CreatePlanEntitlementResponse.java | 7 +- .../types/DeleteCompanyOverrideResponse.java | 7 +- .../types/DeletePlanEntitlementResponse.java | 7 +- .../types/GetCompanyOverrideResponse.java | 7 +- .../GetFeatureUsageByCompanyResponse.java | 13 +-- .../types/GetPlanEntitlementResponse.java | 7 +- .../types/ListCompanyOverridesResponse.java | 7 +- .../types/ListFeatureCompaniesResponse.java | 7 +- .../types/ListFeatureUsageResponse.java | 7 +- .../types/ListFeatureUsersResponse.java | 7 +- .../types/ListPlanEntitlementsResponse.java | 7 +- .../types/UpdateCompanyOverrideResponse.java | 7 +- .../types/UpdatePlanEntitlementResponse.java | 7 +- .../types/CreateEventBatchResponse.java | 7 +- .../events/types/CreateEventResponse.java | 7 +- .../events/types/GetEventResponse.java | 7 +- .../types/GetEventSummariesResponse.java | 7 +- .../GetSegmentIntegrationStatusResponse.java | 7 +- .../events/types/ListEventsResponse.java | 7 +- .../resources/features/FeaturesClient.java | 4 - .../requests/CreateFeatureRequestBody.java | 19 ++--- .../features/types/CheckFlagResponse.java | 7 +- .../features/types/CheckFlagsResponse.java | 7 +- .../types/CountAudienceCompaniesResponse.java | 7 +- .../types/CountAudienceUsersResponse.java | 7 +- .../features/types/CountFeaturesResponse.java | 13 +-- .../features/types/CountFlagsResponse.java | 13 +-- .../features/types/CreateFeatureResponse.java | 7 +- .../features/types/CreateFlagResponse.java | 7 +- .../features/types/DeleteFeatureResponse.java | 7 +- .../features/types/DeleteFlagResponse.java | 7 +- .../features/types/GetFeatureResponse.java | 7 +- .../features/types/GetFlagResponse.java | 7 +- .../features/types/ListFeaturesResponse.java | 7 +- .../features/types/ListFlagsResponse.java | 7 +- .../features/types/UpdateFeatureResponse.java | 7 +- .../features/types/UpdateFlagResponse.java | 7 +- .../types/UpdateFlagRulesResponse.java | 7 +- .../types/CreatePlanGroupResponse.java | 7 +- .../types/GetPlanGroupResponse.java | 7 +- .../types/UpdatePlanGroupResponse.java | 7 +- .../plans/requests/CreatePlanRequestBody.java | 19 ++--- .../plans/requests/UpdatePlanRequestBody.java | 7 +- .../plans/types/CountPlansResponse.java | 13 +-- .../plans/types/CreatePlanResponse.java | 7 +- .../plans/types/DeleteAudienceResponse.java | 7 +- .../plans/types/DeletePlanResponse.java | 7 +- .../plans/types/GetAudienceResponse.java | 7 +- .../plans/types/GetPlanResponse.java | 7 +- .../plans/types/ListPlansResponse.java | 7 +- .../plans/types/UpdateAudienceResponse.java | 7 +- .../plans/types/UpdatePlanResponse.java | 7 +- .../UpsertBillingProductPlanResponse.java | 7 +- .../resources/webhooks/WebhooksClient.java | 4 - .../requests/CreateWebhookRequestBody.java | 13 +-- .../types/CountWebhookEventsResponse.java | 13 +-- .../webhooks/types/CountWebhooksResponse.java | 13 +-- .../webhooks/types/CreateWebhookResponse.java | 7 +- .../webhooks/types/DeleteWebhookResponse.java | 7 +- .../types/GetWebhookEventResponse.java | 7 +- .../webhooks/types/GetWebhookResponse.java | 7 +- .../types/ListWebhookEventsResponse.java | 7 +- .../webhooks/types/ListWebhooksResponse.java | 7 +- .../webhooks/types/UpdateWebhookResponse.java | 7 +- .../com/schematic/api/types/ApiError.java | 7 +- .../api/types/ApiKeyCreateResponseData.java | 31 ++++---- .../types/ApiKeyRequestListResponseData.java | 31 ++++---- .../api/types/ApiKeyRequestResponseData.java | 31 ++++---- .../api/types/ApiKeyResponseData.java | 25 +++--- .../api/types/BillingCouponResponseData.java | 31 ++++---- .../types/BillingCustomerResponseData.java | 31 ++++---- .../types/BillingCustomerSubscription.java | 13 +-- ...CustomerWithSubscriptionsResponseData.java | 31 ++++---- .../api/types/BillingMeterResponseData.java | 31 ++++---- .../api/types/BillingPriceResponseData.java | 25 +++--- .../schematic/api/types/BillingPriceView.java | 67 ++++++++-------- .../BillingProductDetailResponseData.java | 49 ++++++------ ...ingProductForSubscriptionResponseData.java | 73 ++++++++--------- .../types/BillingProductPlanResponseData.java | 25 +++--- .../BillingProductPriceResponseData.java | 49 ++++++------ .../api/types/BillingProductPricing.java | 31 ++++---- .../api/types/BillingProductResponseData.java | 49 ++++++------ .../types/BillingSubscriptionDiscount.java | 19 ++--- .../BillingSubscriptionDiscountView.java | 38 ++++----- .../BillingSubscriptionResponseData.java | 44 ++++++----- .../api/types/BillingSubscriptionView.java | 44 ++++++----- ...ChangeSubscriptionInternalRequestBody.java | 19 ++--- .../types/ChangeSubscriptionRequestBody.java | 13 +-- .../api/types/CheckFlagOutputWithFlagKey.java | 13 +-- .../api/types/CheckFlagResponseData.java | 7 +- .../types/CompanyCrmDealsResponseData.java | 19 ++--- .../api/types/CompanyDetailResponseData.java | 31 ++++---- ...CompanyEventPeriodMetricsResponseData.java | 55 ++++++------- .../CompanyMembershipDetailResponseData.java | 31 ++++---- .../types/CompanyMembershipResponseData.java | 31 ++++---- .../types/CompanyOverrideResponseData.java | 43 +++++----- .../types/CompanyPlanDetailResponseData.java | 43 +++++----- .../types/CompanyPlanWithBillingSubView.java | 13 +-- .../api/types/CompanyResponseData.java | 31 ++++---- .../CompanySubscriptionResponseData.java | 32 ++++---- .../api/types/ComponentResponseData.java | 37 ++++----- .../api/types/CouponRequestBody.java | 13 +-- .../api/types/CreateEntitlementReqCommon.java | 13 +-- .../api/types/CreateEventRequestBody.java | 7 +- .../api/types/CreateFlagRequestBody.java | 25 +++--- .../CreateOrUpdateConditionRequestBody.java | 13 +-- .../types/CreateOrUpdateFlagRequestBody.java | 25 +++--- .../types/CreateOrUpdateRuleRequestBody.java | 7 +- .../schematic/api/types/CrmDealLineItem.java | 43 +++++----- .../api/types/CrmDealResponseData.java | 49 ++++++------ .../api/types/CrmLineItemResponseData.java | 25 +++--- .../api/types/CrmProductResponseData.java | 55 ++++++------- .../EntityKeyDefinitionResponseData.java | 31 ++++---- .../types/EntityKeyDetailResponseData.java | 55 ++++++------- .../api/types/EntityKeyResponseData.java | 55 ++++++------- .../EntityTraitDefinitionResponseData.java | 37 ++++----- .../types/EntityTraitDetailResponseData.java | 37 ++++----- .../api/types/EntityTraitResponseData.java | 37 ++++----- .../schematic/api/types/EntityTraitValue.java | 13 +-- .../types/EnvironmentDetailResponseData.java | 31 ++++---- .../api/types/EnvironmentResponseData.java | 31 ++++---- .../api/types/EventBodyFlagCheck.java | 13 +-- .../schematic/api/types/EventBodyTrack.java | 7 +- .../api/types/EventDetailResponseData.java | 37 ++++----- .../api/types/EventResponseData.java | 37 ++++----- .../api/types/EventSummaryResponseData.java | 13 +-- .../api/types/FeatureCompanyResponseData.java | 19 ++--- .../types/FeatureCompanyUserResponseData.java | 19 ++--- .../api/types/FeatureDetailResponseData.java | 43 +++++----- .../api/types/FeatureResponseData.java | 43 +++++----- .../api/types/FeatureUsageResponseData.java | 19 ++--- .../api/types/FlagDetailResponseData.java | 43 +++++----- .../schematic/api/types/FlagResponseData.java | 43 +++++----- .../api/types/GenericPreviewObject.java | 13 +-- .../api/types/InvoiceRequestBody.java | 19 ++--- .../api/types/InvoiceResponseData.java | 43 +++++----- ...IssueTemporaryAccessTokenResponseData.java | 49 ++++++------ .../schematic/api/types/MeterRequestBody.java | 19 ++--- .../api/types/PaymentMethodRequestBody.java | 13 +-- .../api/types/PaymentMethodResponseData.java | 43 +++++----- .../types/PlanAudienceDetailResponseData.java | 37 ++++----- .../api/types/PlanAudienceResponseData.java | 37 ++++----- .../api/types/PlanDetailResponseData.java | 43 +++++----- .../types/PlanEntitlementResponseData.java | 49 ++++++------ .../types/PlanGroupDetailResponseData.java | 7 +- .../PlanGroupPlanDetailResponseData.java | 43 +++++----- .../api/types/PlanGroupResponseData.java | 7 +- .../schematic/api/types/PlanResponseData.java | 43 +++++----- .../schematic/api/types/PreviewObject.java | 13 +-- .../api/types/PreviewObjectResponseData.java | 13 +-- ...PreviewSubscriptionChangeResponseData.java | 7 +- .../api/types/RawEventResponseData.java | 25 +++--- .../RuleConditionDetailResponseData.java | 49 ++++++------ .../RuleConditionGroupDetailResponseData.java | 31 ++++---- .../types/RuleConditionGroupResponseData.java | 31 ++++---- .../api/types/RuleConditionResponseData.java | 49 ++++++------ .../api/types/RuleDetailResponseData.java | 37 ++++----- .../schematic/api/types/RuleResponseData.java | 37 ++++----- .../api/types/SegmentStatusResp.java | 7 +- .../schematic/api/types/StripeEmbedInfo.java | 7 +- .../TemporaryAccessTokenResponseData.java | 43 +++++----- .../api/types/UpdateAddOnRequestBody.java | 13 +-- .../api/types/UpdateEntitlementReqCommon.java | 7 +- .../types/UpdatePayInAdvanceRequestBody.java | 7 +- .../api/types/UpdateRuleRequestBody.java | 7 +- .../api/types/UpsertTraitRequestBody.java | 7 +- .../UsageBasedEntitlementResponseData.java | 13 +-- .../api/types/UserDetailResponseData.java | 31 ++++---- .../schematic/api/types/UserResponseData.java | 31 ++++---- .../types/WebhookEventDetailResponseData.java | 37 ++++----- .../api/types/WebhookEventResponseData.java | 37 ++++----- .../api/types/WebhookResponseData.java | 37 ++++----- 299 files changed, 2790 insertions(+), 2307 deletions(-) create mode 100644 src/main/java/com/schematic/api/core/FileStream.java create mode 100644 src/main/java/com/schematic/api/core/InputStreamRequestBody.java diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e52af1..d870fc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,8 +54,7 @@ jobs: - name: Publish to maven run: | - ./.publish/prepare.sh - ./gradlew publish + ./gradlew sonatypeCentralUpload env: MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} diff --git a/build.gradle b/build.gradle index 95de693..a59f405 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ plugins { id 'maven-publish' id 'com.diffplug.spotless' version '6.11.0' id 'signing' + id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3' } repositories { @@ -14,9 +15,9 @@ repositories { dependencies { api 'com.squareup.okhttp3:okhttp:4.12.0' - api 'com.fasterxml.jackson.core:jackson-databind:2.13.0' - api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.12.3' - api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.3' + api 'com.fasterxml.jackson.core:jackson-databind:2.17.2' + api 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' + api 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' testImplementation 'org.mockito:mockito-core:5.3.1' testImplementation 'org.mockito:mockito-junit-jupiter:5.3.1' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' @@ -27,26 +28,52 @@ dependencies { sourceCompatibility = 1.8 targetCompatibility = 1.8 +tasks.withType(Javadoc) { + failOnError false + options.addStringOption('Xdoclint:none', '-quiet') +} + spotless { java { palantirJavaFormat() } } + java { withSourcesJar() withJavadocJar() } + +group = 'schematichq' + +version = '1.1.0' + +jar { + dependsOn(":generatePomFileForMavenPublication") + archiveBaseName = "schematichq-java" +} + +sourcesJar { + archiveBaseName = "schematichq-java" +} + +javadocJar { + archiveBaseName = "schematichq-java" +} + signing { sign(publishing.publications) } + test { useJUnitPlatform() testLogging { showStandardStreams = true } } + publishing { publications { maven(MavenPublication) { @@ -58,6 +85,12 @@ publishing { name = 'schematic' description = 'The official SDK of schematic' url = 'https://buildwithfern.com' + licenses { + license { + name = 'The MIT License (MIT)' + url = 'https://mit-license.org/' + } + } developers { developer { name = 'schematic' @@ -72,14 +105,28 @@ publishing { } } } - repositories { - maven { - url "$System.env.MAVEN_PUBLISH_REGISTRY_URL" - credentials { - username "$System.env.MAVEN_USERNAME" - password "$System.env.MAVEN_PASSWORD" - } - } - } } +sonatypeCentralUpload { + username = "$System.env.MAVEN_USERNAME" + password = "$System.env.MAVEN_PASSWORD" + + archives = files( + "$buildDir/libs/schematichq-java-" + version + ".jar", + "$buildDir/libs/schematichq-java-" + version + "-sources.jar", + "$buildDir/libs/schematichq-java-" + version + "-javadoc.jar" + ) + + pom = file("$buildDir/publications/maven/pom-default.xml") + signingKey = "$System.env.MAVEN_SIGNATURE_SECRET_KEY" + signingKeyPassphrase = "$System.env.MAVEN_SIGNATURE_PASSWORD" +} + +signing { + def signingKeyId = "$System.env.MAVEN_SIGNATURE_SECRET_KEY" + def signingPassword = "$System.env.MAVEN_SIGNATURE_PASSWORD" + useInMemoryPgpKeys(signingKeyId, signingPassword) + sign publishing.publications.maven +} + +sonatypeCentralUpload.dependsOn build diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9355b41..cea7a79 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index f5feea6..f3b75f3 100755 --- a/gradlew +++ b/gradlew @@ -86,8 +86,7 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s -' "$PWD" ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/settings.gradle b/settings.gradle index aed36fe..2d73066 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,3 @@ +rootProject.name = 'schematichq-java' + include 'sample-app' \ No newline at end of file diff --git a/src/main/java/com/schematic/api/BaseSchematicBuilder.java b/src/main/java/com/schematic/api/BaseSchematicBuilder.java index a1778ac..d0b1169 100644 --- a/src/main/java/com/schematic/api/BaseSchematicBuilder.java +++ b/src/main/java/com/schematic/api/BaseSchematicBuilder.java @@ -31,6 +31,14 @@ public BaseSchematicBuilder url(String url) { return this; } + /** + * Sets the timeout (in seconds) for the client + */ + public BaseSchematicBuilder timeout(int timeout) { + this.clientOptionsBuilder.timeout(timeout); + return this; + } + public BaseSchematic build() { if (apiKey == null) { throw new RuntimeException("Please provide apiKey"); diff --git a/src/main/java/com/schematic/api/core/ClientOptions.java b/src/main/java/com/schematic/api/core/ClientOptions.java index 4fbf18e..f685454 100644 --- a/src/main/java/com/schematic/api/core/ClientOptions.java +++ b/src/main/java/com/schematic/api/core/ClientOptions.java @@ -18,11 +18,14 @@ public final class ClientOptions { private final OkHttpClient httpClient; + private final int timeout; + private ClientOptions( Environment environment, Map headers, Map> headerSuppliers, - OkHttpClient httpClient) { + OkHttpClient httpClient, + int timeout) { this.environment = environment; this.headers = new HashMap<>(); this.headers.putAll(headers); @@ -35,6 +38,7 @@ private ClientOptions( }); this.headerSuppliers = headerSuppliers; this.httpClient = httpClient; + this.timeout = timeout; } public Environment environment() { @@ -80,6 +84,8 @@ public static final class Builder { private final Map> headerSuppliers = new HashMap<>(); + private int timeout = 60; + public Builder environment(Environment environment) { this.environment = environment; return this; @@ -95,11 +101,20 @@ public Builder addHeader(String key, Supplier value) { return this; } + /** + * Override the timeout in seconds. Defaults to 60 seconds. + */ + public Builder timeout(int timeout) { + this.timeout = timeout; + return this; + } + public ClientOptions build() { OkHttpClient okhttpClient = new OkHttpClient.Builder() .addInterceptor(new RetryInterceptor(3)) + .callTimeout(this.timeout, TimeUnit.SECONDS) .build(); - return new ClientOptions(environment, headers, headerSuppliers, okhttpClient); + return new ClientOptions(environment, headers, headerSuppliers, okhttpClient, this.timeout); } } } diff --git a/src/main/java/com/schematic/api/core/FileStream.java b/src/main/java/com/schematic/api/core/FileStream.java new file mode 100644 index 0000000..d559dcf --- /dev/null +++ b/src/main/java/com/schematic/api/core/FileStream.java @@ -0,0 +1,60 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.core; + +import java.io.InputStream; +import java.util.Objects; +import okhttp3.MediaType; +import okhttp3.RequestBody; +import org.jetbrains.annotations.Nullable; + +/** + * Represents a file stream with associated metadata for file uploads. + */ +public class FileStream { + private final InputStream inputStream; + private final String fileName; + private final MediaType contentType; + + /** + * Constructs a FileStream with the given input stream and optional metadata. + * + * @param inputStream The input stream of the file content. Must not be null. + * @param fileName The name of the file, or null if unknown. + * @param contentType The MIME type of the file content, or null if unknown. + * @throws NullPointerException if inputStream is null + */ + public FileStream(InputStream inputStream, @Nullable String fileName, @Nullable MediaType contentType) { + this.inputStream = Objects.requireNonNull(inputStream, "Input stream cannot be null"); + this.fileName = fileName; + this.contentType = contentType; + } + + public FileStream(InputStream inputStream) { + this(inputStream, null, null); + } + + public InputStream getInputStream() { + return inputStream; + } + + @Nullable + public String getFileName() { + return fileName; + } + + @Nullable + public MediaType getContentType() { + return contentType; + } + + /** + * Creates a RequestBody suitable for use with OkHttp client. + * + * @return A RequestBody instance representing this file stream. + */ + public RequestBody toRequestBody() { + return new InputStreamRequestBody(contentType, inputStream); + } +} diff --git a/src/main/java/com/schematic/api/core/InputStreamRequestBody.java b/src/main/java/com/schematic/api/core/InputStreamRequestBody.java new file mode 100644 index 0000000..eb4c5b8 --- /dev/null +++ b/src/main/java/com/schematic/api/core/InputStreamRequestBody.java @@ -0,0 +1,79 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.schematic.api.core; + +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +import okhttp3.MediaType; +import okhttp3.RequestBody; +import okhttp3.internal.Util; +import okio.BufferedSink; +import okio.Okio; +import okio.Source; +import org.jetbrains.annotations.Nullable; + +/** + * A custom implementation of OkHttp's RequestBody that wraps an InputStream. + * This class allows streaming of data from an InputStream directly to an HTTP request body, + * which is useful for file uploads or sending large amounts of data without loading it all into memory. + */ +public class InputStreamRequestBody extends RequestBody { + private final InputStream inputStream; + private final MediaType contentType; + + /** + * Constructs an InputStreamRequestBody with the specified content type and input stream. + * + * @param contentType the MediaType of the content, or null if not known + * @param inputStream the InputStream containing the data to be sent + * @throws NullPointerException if inputStream is null + */ + public InputStreamRequestBody(@Nullable MediaType contentType, InputStream inputStream) { + this.contentType = contentType; + this.inputStream = Objects.requireNonNull(inputStream, "inputStream == null"); + } + + /** + * Returns the content type of this request body. + * + * @return the MediaType of the content, or null if not specified + */ + @Nullable + @Override + public MediaType contentType() { + return contentType; + } + + /** + * Returns the content length of this request body, if known. + * This method attempts to determine the length using the InputStream's available() method, + * which may not always accurately reflect the total length of the stream. + * + * @return the content length, or -1 if the length is unknown + * @throws IOException if an I/O error occurs + */ + @Override + public long contentLength() throws IOException { + return inputStream.available() == 0 ? -1 : inputStream.available(); + } + + /** + * Writes the content of the InputStream to the given BufferedSink. + * This method is responsible for transferring the data from the InputStream to the network request. + * + * @param sink the BufferedSink to write the content to + * @throws IOException if an I/O error occurs during writing + */ + @Override + public void writeTo(BufferedSink sink) throws IOException { + Source source = null; + try { + source = Okio.source(inputStream); + sink.writeAll(source); + } finally { + Util.closeQuietly(Objects.requireNonNull(source)); + } + } +} diff --git a/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java b/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java index 6722165..8ff89c2 100644 --- a/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java +++ b/src/main/java/com/schematic/api/resources/accesstokens/requests/IssueTemporaryAccessTokenRequestBody.java @@ -16,6 +16,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = IssueTemporaryAccessTokenRequestBody.Builder.class) @@ -74,7 +75,7 @@ public static ResourceTypeStage builder() { } public interface ResourceTypeStage { - _FinalStage resourceType(String resourceType); + _FinalStage resourceType(@NotNull String resourceType); Builder from(IssueTemporaryAccessTokenRequestBody other); } @@ -109,8 +110,8 @@ public Builder from(IssueTemporaryAccessTokenRequestBody other) { @java.lang.Override @JsonSetter("resource_type") - public _FinalStage resourceType(String resourceType) { - this.resourceType = resourceType; + public _FinalStage resourceType(@NotNull String resourceType) { + this.resourceType = Objects.requireNonNull(resourceType, "resourceType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.java b/src/main/java/com/schematic/api/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.java index 428ad88..863fbf0 100644 --- a/src/main/java/com/schematic/api/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.java +++ b/src/main/java/com/schematic/api/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = IssueTemporaryAccessTokenResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(IssueTemporaryAccessTokenResponseData data); + _FinalStage data(@NotNull IssueTemporaryAccessTokenResponseData data); Builder from(IssueTemporaryAccessTokenResponse other); } @@ -115,8 +116,8 @@ public Builder from(IssueTemporaryAccessTokenResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(IssueTemporaryAccessTokenResponseData data) { - this.data = data; + public _FinalStage data(@NotNull IssueTemporaryAccessTokenResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/requests/CreateApiKeyRequestBody.java b/src/main/java/com/schematic/api/resources/accounts/requests/CreateApiKeyRequestBody.java index d36b7f5..fc7830b 100644 --- a/src/main/java/com/schematic/api/resources/accounts/requests/CreateApiKeyRequestBody.java +++ b/src/main/java/com/schematic/api/resources/accounts/requests/CreateApiKeyRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateApiKeyRequestBody.Builder.class) @@ -86,7 +87,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); Builder from(CreateApiKeyRequestBody other); } @@ -126,8 +127,8 @@ public Builder from(CreateApiKeyRequestBody other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java b/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java index 80bb3cf..84db934 100644 --- a/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java +++ b/src/main/java/com/schematic/api/resources/accounts/requests/CreateEnvironmentRequestBody.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEnvironmentRequestBody.Builder.class) @@ -74,13 +75,13 @@ public static EnvironmentTypeStage builder() { } public interface EnvironmentTypeStage { - NameStage environmentType(CreateEnvironmentRequestBodyEnvironmentType environmentType); + NameStage environmentType(@NotNull CreateEnvironmentRequestBodyEnvironmentType environmentType); Builder from(CreateEnvironmentRequestBody other); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -107,15 +108,15 @@ public Builder from(CreateEnvironmentRequestBody other) { @java.lang.Override @JsonSetter("environment_type") - public NameStage environmentType(CreateEnvironmentRequestBodyEnvironmentType environmentType) { - this.environmentType = environmentType; + public NameStage environmentType(@NotNull CreateEnvironmentRequestBodyEnvironmentType environmentType) { + this.environmentType = Objects.requireNonNull(environmentType, "environmentType must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/CountApiKeysResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/CountApiKeysResponse.java index d94f8b5..a2b2226 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/CountApiKeysResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/CountApiKeysResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountApiKeysResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountApiKeysResponse other); } public interface ParamsStage { - _FinalStage params(CountApiKeysParams params); + _FinalStage params(@NotNull CountApiKeysParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountApiKeysResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountApiKeysParams params) { - this.params = params; + public _FinalStage params(@NotNull CountApiKeysParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/CountApiRequestsResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/CountApiRequestsResponse.java index a7bfaa5..98402fd 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/CountApiRequestsResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/CountApiRequestsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountApiRequestsResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountApiRequestsResponse other); } public interface ParamsStage { - _FinalStage params(CountApiRequestsParams params); + _FinalStage params(@NotNull CountApiRequestsParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountApiRequestsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountApiRequestsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountApiRequestsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/CreateApiKeyResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/CreateApiKeyResponse.java index f8a8ae7..9d2e4fe 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/CreateApiKeyResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/CreateApiKeyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateApiKeyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ApiKeyCreateResponseData data); + _FinalStage data(@NotNull ApiKeyCreateResponseData data); Builder from(CreateApiKeyResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateApiKeyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ApiKeyCreateResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ApiKeyCreateResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/CreateEnvironmentResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/CreateEnvironmentResponse.java index c9f33c6..3b23821 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/CreateEnvironmentResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/CreateEnvironmentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEnvironmentResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EnvironmentDetailResponseData data); + _FinalStage data(@NotNull EnvironmentDetailResponseData data); Builder from(CreateEnvironmentResponse other); } @@ -115,8 +116,8 @@ public Builder from(CreateEnvironmentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EnvironmentDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EnvironmentDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/DeleteApiKeyResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/DeleteApiKeyResponse.java index d517327..a8fdb02 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/DeleteApiKeyResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/DeleteApiKeyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteApiKeyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteApiKeyResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteApiKeyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/DeleteEnvironmentResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/DeleteEnvironmentResponse.java index 40a1408..1fca182 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/DeleteEnvironmentResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/DeleteEnvironmentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteEnvironmentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteEnvironmentResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteEnvironmentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/GetApiKeyResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/GetApiKeyResponse.java index 135d936..a976064 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/GetApiKeyResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/GetApiKeyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetApiKeyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ApiKeyResponseData data); + _FinalStage data(@NotNull ApiKeyResponseData data); Builder from(GetApiKeyResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetApiKeyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ApiKeyResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ApiKeyResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/GetApiRequestResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/GetApiRequestResponse.java index a7da997..bbdb235 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/GetApiRequestResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/GetApiRequestResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetApiRequestResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ApiKeyRequestResponseData data); + _FinalStage data(@NotNull ApiKeyRequestResponseData data); Builder from(GetApiRequestResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetApiRequestResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ApiKeyRequestResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ApiKeyRequestResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/GetEnvironmentResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/GetEnvironmentResponse.java index 35fb325..5054c17 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/GetEnvironmentResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/GetEnvironmentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetEnvironmentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EnvironmentResponseData data); + _FinalStage data(@NotNull EnvironmentResponseData data); Builder from(GetEnvironmentResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetEnvironmentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EnvironmentResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EnvironmentResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/ListApiKeysResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/ListApiKeysResponse.java index 0647d4e..cd3f647 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/ListApiKeysResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/ListApiKeysResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListApiKeysResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListApiKeysParams params); + _FinalStage params(@NotNull ListApiKeysParams params); Builder from(ListApiKeysResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListApiKeysResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListApiKeysParams params) { - this.params = params; + public _FinalStage params(@NotNull ListApiKeysParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/ListApiRequestsResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/ListApiRequestsResponse.java index 89e7c27..1df7fed 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/ListApiRequestsResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/ListApiRequestsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListApiRequestsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListApiRequestsParams params); + _FinalStage params(@NotNull ListApiRequestsParams params); Builder from(ListApiRequestsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListApiRequestsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListApiRequestsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListApiRequestsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/ListEnvironmentsResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/ListEnvironmentsResponse.java index 84720c8..8777c6e 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/ListEnvironmentsResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/ListEnvironmentsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListEnvironmentsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListEnvironmentsParams params); + _FinalStage params(@NotNull ListEnvironmentsParams params); Builder from(ListEnvironmentsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListEnvironmentsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListEnvironmentsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListEnvironmentsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/UpdateApiKeyResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/UpdateApiKeyResponse.java index d417b50..96ba9a7 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/UpdateApiKeyResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/UpdateApiKeyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateApiKeyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ApiKeyResponseData data); + _FinalStage data(@NotNull ApiKeyResponseData data); Builder from(UpdateApiKeyResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateApiKeyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ApiKeyResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ApiKeyResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentResponse.java b/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentResponse.java index b54cace..acf27a4 100644 --- a/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentResponse.java +++ b/src/main/java/com/schematic/api/resources/accounts/types/UpdateEnvironmentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateEnvironmentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EnvironmentResponseData data); + _FinalStage data(@NotNull EnvironmentResponseData data); Builder from(UpdateEnvironmentResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateEnvironmentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EnvironmentResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EnvironmentResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java index bdfc64c..e62565f 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingCustomerRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateBillingCustomerRequestBody.Builder.class) @@ -117,13 +118,13 @@ public static EmailStage builder() { } public interface EmailStage { - ExternalIdStage email(String email); + ExternalIdStage email(@NotNull String email); Builder from(CreateBillingCustomerRequestBody other); } public interface ExternalIdStage { - FailedToImportStage externalId(String externalId); + FailedToImportStage externalId(@NotNull String externalId); } public interface FailedToImportStage { @@ -131,7 +132,7 @@ public interface FailedToImportStage { } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -181,15 +182,15 @@ public Builder from(CreateBillingCustomerRequestBody other) { @java.lang.Override @JsonSetter("email") - public ExternalIdStage email(String email) { - this.email = email; + public ExternalIdStage email(@NotNull String email) { + this.email = Objects.requireNonNull(email, "email must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public FailedToImportStage externalId(String externalId) { - this.externalId = externalId; + public FailedToImportStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @@ -202,8 +203,8 @@ public NameStage failedToImport(boolean failedToImport) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java index 1c001d8..4bdf0c1 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingPriceRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateBillingPriceRequestBody.Builder.class) @@ -133,13 +134,13 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - IntervalStage currency(String currency); + IntervalStage currency(@NotNull String currency); Builder from(CreateBillingPriceRequestBody other); } public interface IntervalStage { - PriceStage interval(String interval); + PriceStage interval(@NotNull String interval); } public interface PriceStage { @@ -147,15 +148,15 @@ public interface PriceStage { } public interface PriceExternalIdStage { - ProductExternalIdStage priceExternalId(String priceExternalId); + ProductExternalIdStage priceExternalId(@NotNull String priceExternalId); } public interface ProductExternalIdStage { - UsageTypeStage productExternalId(String productExternalId); + UsageTypeStage productExternalId(@NotNull String productExternalId); } public interface UsageTypeStage { - _FinalStage usageType(String usageType); + _FinalStage usageType(@NotNull String usageType); } public interface _FinalStage { @@ -208,15 +209,15 @@ public Builder from(CreateBillingPriceRequestBody other) { @java.lang.Override @JsonSetter("currency") - public IntervalStage currency(String currency) { - this.currency = currency; + public IntervalStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PriceStage interval(String interval) { - this.interval = interval; + public PriceStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @@ -229,22 +230,22 @@ public PriceExternalIdStage price(int price) { @java.lang.Override @JsonSetter("price_external_id") - public ProductExternalIdStage priceExternalId(String priceExternalId) { - this.priceExternalId = priceExternalId; + public ProductExternalIdStage priceExternalId(@NotNull String priceExternalId) { + this.priceExternalId = Objects.requireNonNull(priceExternalId, "priceExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("product_external_id") - public UsageTypeStage productExternalId(String productExternalId) { - this.productExternalId = productExternalId; + public UsageTypeStage productExternalId(@NotNull String productExternalId) { + this.productExternalId = Objects.requireNonNull(productExternalId, "productExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("usage_type") - public _FinalStage usageType(String usageType) { - this.usageType = usageType; + public _FinalStage usageType(@NotNull String usageType) { + this.usageType = Objects.requireNonNull(usageType, "usageType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingProductRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingProductRequestBody.java index ef2a5bf..d445667 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingProductRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingProductRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateBillingProductRequestBody.Builder.class) @@ -104,17 +105,17 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - ExternalIdStage currency(String currency); + ExternalIdStage currency(@NotNull String currency); Builder from(CreateBillingProductRequestBody other); } public interface ExternalIdStage { - NameStage externalId(String externalId); + NameStage externalId(@NotNull String externalId); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { @@ -159,22 +160,22 @@ public Builder from(CreateBillingProductRequestBody other) { @java.lang.Override @JsonSetter("currency") - public ExternalIdStage currency(String currency) { - this.currency = currency; + public ExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public NameStage externalId(String externalId) { - this.externalId = externalId; + public NameStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingSubscriptionsRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingSubscriptionsRequestBody.java index 3b3b76d..52cf985 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingSubscriptionsRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateBillingSubscriptionsRequestBody.java @@ -22,6 +22,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateBillingSubscriptionsRequestBody.Builder.class) @@ -217,21 +218,21 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); Builder from(CreateBillingSubscriptionsRequestBody other); } public interface CustomerExternalIdStage { - ExpiredAtStage customerExternalId(String customerExternalId); + ExpiredAtStage customerExternalId(@NotNull String customerExternalId); } public interface ExpiredAtStage { - SubscriptionExternalIdStage expiredAt(OffsetDateTime expiredAt); + SubscriptionExternalIdStage expiredAt(@NotNull OffsetDateTime expiredAt); } public interface SubscriptionExternalIdStage { - TotalPriceStage subscriptionExternalId(String subscriptionExternalId); + TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId); } public interface TotalPriceStage { @@ -344,29 +345,30 @@ public Builder from(CreateBillingSubscriptionsRequestBody other) { @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public ExpiredAtStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public ExpiredAtStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("expired_at") - public SubscriptionExternalIdStage expiredAt(OffsetDateTime expiredAt) { - this.expiredAt = expiredAt; + public SubscriptionExternalIdStage expiredAt(@NotNull OffsetDateTime expiredAt) { + this.expiredAt = Objects.requireNonNull(expiredAt, "expiredAt must not be null"); return this; } @java.lang.Override @JsonSetter("subscription_external_id") - public TotalPriceStage subscriptionExternalId(String subscriptionExternalId) { - this.subscriptionExternalId = subscriptionExternalId; + public TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId) { + this.subscriptionExternalId = + Objects.requireNonNull(subscriptionExternalId, "subscriptionExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateCouponRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateCouponRequestBody.java index 12edeaa..bd7d4a5 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateCouponRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateCouponRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCouponRequestBody.Builder.class) @@ -161,7 +162,7 @@ public interface AmountOffStage { } public interface DurationStage { - DurationInMonthsStage duration(String duration); + DurationInMonthsStage duration(@NotNull String duration); } public interface DurationInMonthsStage { @@ -169,7 +170,7 @@ public interface DurationInMonthsStage { } public interface ExternalIdStage { - MaxRedemptionsStage externalId(String externalId); + MaxRedemptionsStage externalId(@NotNull String externalId); } public interface MaxRedemptionsStage { @@ -177,7 +178,7 @@ public interface MaxRedemptionsStage { } public interface NameStage { - PercentOffStage name(String name); + PercentOffStage name(@NotNull String name); } public interface PercentOffStage { @@ -253,8 +254,8 @@ public DurationStage amountOff(int amountOff) { @java.lang.Override @JsonSetter("duration") - public DurationInMonthsStage duration(String duration) { - this.duration = duration; + public DurationInMonthsStage duration(@NotNull String duration) { + this.duration = Objects.requireNonNull(duration, "duration must not be null"); return this; } @@ -267,8 +268,8 @@ public ExternalIdStage durationInMonths(int durationInMonths) { @java.lang.Override @JsonSetter("external_id") - public MaxRedemptionsStage externalId(String externalId) { - this.externalId = externalId; + public MaxRedemptionsStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @@ -281,8 +282,8 @@ public NameStage maxRedemptions(int maxRedemptions) { @java.lang.Override @JsonSetter("name") - public PercentOffStage name(String name) { - this.name = name; + public PercentOffStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateInvoiceRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateInvoiceRequestBody.java index 8bc8d44..24b5423 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateInvoiceRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateInvoiceRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateInvoiceRequestBody.Builder.class) @@ -203,15 +204,15 @@ public interface AmountRemainingStage { } public interface CollectionMethodStage { - CurrencyStage collectionMethod(String collectionMethod); + CurrencyStage collectionMethod(@NotNull String collectionMethod); } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); } public interface CustomerExternalIdStage { - SubtotalStage customerExternalId(String customerExternalId); + SubtotalStage customerExternalId(@NotNull String customerExternalId); } public interface SubtotalStage { @@ -321,22 +322,22 @@ public CollectionMethodStage amountRemaining(int amountRemaining) { @java.lang.Override @JsonSetter("collection_method") - public CurrencyStage collectionMethod(String collectionMethod) { - this.collectionMethod = collectionMethod; + public CurrencyStage collectionMethod(@NotNull String collectionMethod) { + this.collectionMethod = Objects.requireNonNull(collectionMethod, "collectionMethod must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public SubtotalStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public SubtotalStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreateMeterRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreateMeterRequestBody.java index b86af31..7cf32fb 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreateMeterRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreateMeterRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateMeterRequestBody.Builder.class) @@ -94,21 +95,21 @@ public static DisplayNameStage builder() { } public interface DisplayNameStage { - EventNameStage displayName(String displayName); + EventNameStage displayName(@NotNull String displayName); Builder from(CreateMeterRequestBody other); } public interface EventNameStage { - EventPayloadKeyStage eventName(String eventName); + EventPayloadKeyStage eventName(@NotNull String eventName); } public interface EventPayloadKeyStage { - ExternalIdStage eventPayloadKey(String eventPayloadKey); + ExternalIdStage eventPayloadKey(@NotNull String eventPayloadKey); } public interface ExternalIdStage { - _FinalStage externalId(String externalId); + _FinalStage externalId(@NotNull String externalId); } public interface _FinalStage { @@ -142,29 +143,29 @@ public Builder from(CreateMeterRequestBody other) { @java.lang.Override @JsonSetter("display_name") - public EventNameStage displayName(String displayName) { - this.displayName = displayName; + public EventNameStage displayName(@NotNull String displayName) { + this.displayName = Objects.requireNonNull(displayName, "displayName must not be null"); return this; } @java.lang.Override @JsonSetter("event_name") - public EventPayloadKeyStage eventName(String eventName) { - this.eventName = eventName; + public EventPayloadKeyStage eventName(@NotNull String eventName) { + this.eventName = Objects.requireNonNull(eventName, "eventName must not be null"); return this; } @java.lang.Override @JsonSetter("event_payload_key") - public ExternalIdStage eventPayloadKey(String eventPayloadKey) { - this.eventPayloadKey = eventPayloadKey; + public ExternalIdStage eventPayloadKey(@NotNull String eventPayloadKey) { + this.eventPayloadKey = Objects.requireNonNull(eventPayloadKey, "eventPayloadKey must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public _FinalStage externalId(String externalId) { - this.externalId = externalId; + public _FinalStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/CreatePaymentMethodRequestBody.java b/src/main/java/com/schematic/api/resources/billing/requests/CreatePaymentMethodRequestBody.java index 6633120..077146f 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/CreatePaymentMethodRequestBody.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/CreatePaymentMethodRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePaymentMethodRequestBody.Builder.class) @@ -199,17 +200,17 @@ public static CustomerExternalIdStage builder() { } public interface CustomerExternalIdStage { - ExternalIdStage customerExternalId(String customerExternalId); + ExternalIdStage customerExternalId(@NotNull String customerExternalId); Builder from(CreatePaymentMethodRequestBody other); } public interface ExternalIdStage { - PaymentMethodTypeStage externalId(String externalId); + PaymentMethodTypeStage externalId(@NotNull String externalId); } public interface PaymentMethodTypeStage { - _FinalStage paymentMethodType(String paymentMethodType); + _FinalStage paymentMethodType(@NotNull String paymentMethodType); } public interface _FinalStage { @@ -310,22 +311,22 @@ public Builder from(CreatePaymentMethodRequestBody other) { @java.lang.Override @JsonSetter("customer_external_id") - public ExternalIdStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public ExternalIdStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public PaymentMethodTypeStage externalId(String externalId) { - this.externalId = externalId; + public PaymentMethodTypeStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("payment_method_type") - public _FinalStage paymentMethodType(String paymentMethodType) { - this.paymentMethodType = paymentMethodType; + public _FinalStage paymentMethodType(@NotNull String paymentMethodType) { + this.paymentMethodType = Objects.requireNonNull(paymentMethodType, "paymentMethodType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/ListInvoicesRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/ListInvoicesRequest.java index 3dcdff3..1f88f59 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/ListInvoicesRequest.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/ListInvoicesRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListInvoicesRequest.Builder.class) @@ -113,7 +114,7 @@ public static CustomerExternalIdStage builder() { } public interface CustomerExternalIdStage { - _FinalStage customerExternalId(String customerExternalId); + _FinalStage customerExternalId(@NotNull String customerExternalId); Builder from(ListInvoicesRequest other); } @@ -167,8 +168,8 @@ public Builder from(ListInvoicesRequest other) { @java.lang.Override @JsonSetter("customer_external_id") - public _FinalStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public _FinalStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/requests/ListPaymentMethodsRequest.java b/src/main/java/com/schematic/api/resources/billing/requests/ListPaymentMethodsRequest.java index 0a423dc..6be9f2b 100644 --- a/src/main/java/com/schematic/api/resources/billing/requests/ListPaymentMethodsRequest.java +++ b/src/main/java/com/schematic/api/resources/billing/requests/ListPaymentMethodsRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListPaymentMethodsRequest.Builder.class) @@ -113,7 +114,7 @@ public static CustomerExternalIdStage builder() { } public interface CustomerExternalIdStage { - _FinalStage customerExternalId(String customerExternalId); + _FinalStage customerExternalId(@NotNull String customerExternalId); Builder from(ListPaymentMethodsRequest other); } @@ -167,8 +168,8 @@ public Builder from(ListPaymentMethodsRequest other) { @java.lang.Override @JsonSetter("customer_external_id") - public _FinalStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public _FinalStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponse.java b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponse.java index 843bb8a..4b6ffd6 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/CountBillingProductsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountBillingProductsResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountBillingProductsResponse other); } public interface ParamsStage { - _FinalStage params(CountBillingProductsParams params); + _FinalStage params(@NotNull CountBillingProductsParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountBillingProductsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountBillingProductsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountBillingProductsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/CountCustomersResponse.java b/src/main/java/com/schematic/api/resources/billing/types/CountCustomersResponse.java index 8c1ee9b..af87fb0 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/CountCustomersResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/CountCustomersResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountCustomersResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountCustomersResponse other); } public interface ParamsStage { - _FinalStage params(CountCustomersParams params); + _FinalStage params(@NotNull CountCustomersParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountCustomersResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountCustomersParams params) { - this.params = params; + public _FinalStage params(@NotNull CountCustomersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/DeleteProductPriceResponse.java b/src/main/java/com/schematic/api/resources/billing/types/DeleteProductPriceResponse.java index c1c2747..565198d 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/DeleteProductPriceResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/DeleteProductPriceResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteProductPriceResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteProductPriceResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteProductPriceResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponse.java b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponse.java index b4b41c6..a966e4d 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListBillingProductsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListBillingProductsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListBillingProductsParams params); + _FinalStage params(@NotNull ListBillingProductsParams params); Builder from(ListBillingProductsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListBillingProductsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListBillingProductsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListBillingProductsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListCustomersResponse.java b/src/main/java/com/schematic/api/resources/billing/types/ListCustomersResponse.java index cb6f933..8b8441c 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListCustomersResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListCustomersResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListCustomersResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListCustomersParams params); + _FinalStage params(@NotNull ListCustomersParams params); Builder from(ListCustomersResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListCustomersResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListCustomersParams params) { - this.params = params; + public _FinalStage params(@NotNull ListCustomersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListInvoicesResponse.java b/src/main/java/com/schematic/api/resources/billing/types/ListInvoicesResponse.java index 04481f4..6a01d94 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListInvoicesResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListInvoicesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListInvoicesResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListInvoicesParams params); + _FinalStage params(@NotNull ListInvoicesParams params); Builder from(ListInvoicesResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListInvoicesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListInvoicesParams params) { - this.params = params; + public _FinalStage params(@NotNull ListInvoicesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListMetersResponse.java b/src/main/java/com/schematic/api/resources/billing/types/ListMetersResponse.java index 39fb196..db6f54e 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListMetersResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListMetersResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListMetersResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListMetersParams params); + _FinalStage params(@NotNull ListMetersParams params); Builder from(ListMetersResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListMetersResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListMetersParams params) { - this.params = params; + public _FinalStage params(@NotNull ListMetersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListPaymentMethodsResponse.java b/src/main/java/com/schematic/api/resources/billing/types/ListPaymentMethodsResponse.java index 4ff9076..4212818 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListPaymentMethodsResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListPaymentMethodsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListPaymentMethodsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListPaymentMethodsParams params); + _FinalStage params(@NotNull ListPaymentMethodsParams params); Builder from(ListPaymentMethodsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListPaymentMethodsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListPaymentMethodsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListPaymentMethodsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponse.java b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponse.java index 0d20103..ebb789a 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/ListProductPricesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListProductPricesResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListProductPricesParams params); + _FinalStage params(@NotNull ListProductPricesParams params); Builder from(ListProductPricesResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListProductPricesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListProductPricesParams params) { - this.params = params; + public _FinalStage params(@NotNull ListProductPricesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/SearchBillingPricesResponse.java b/src/main/java/com/schematic/api/resources/billing/types/SearchBillingPricesResponse.java index ad11040..4ea5e3f 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/SearchBillingPricesResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/SearchBillingPricesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = SearchBillingPricesResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(SearchBillingPricesParams params); + _FinalStage params(@NotNull SearchBillingPricesParams params); Builder from(SearchBillingPricesResponse other); } @@ -120,8 +121,8 @@ public Builder from(SearchBillingPricesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(SearchBillingPricesParams params) { - this.params = params; + public _FinalStage params(@NotNull SearchBillingPricesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCouponResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCouponResponse.java index b9d9f89..c19af89 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCouponResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCouponResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingCouponResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingCouponResponseData data); + _FinalStage data(@NotNull BillingCouponResponseData data); Builder from(UpsertBillingCouponResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertBillingCouponResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingCouponResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingCouponResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCustomerResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCustomerResponse.java index adbf1d9..a88bfeb 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCustomerResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingCustomerResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingCustomerResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingCustomerResponseData data); + _FinalStage data(@NotNull BillingCustomerResponseData data); Builder from(UpsertBillingCustomerResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertBillingCustomerResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingCustomerResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingCustomerResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingMeterResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingMeterResponse.java index 89977e9..6d0e678 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingMeterResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingMeterResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingMeterResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingMeterResponseData data); + _FinalStage data(@NotNull BillingMeterResponseData data); Builder from(UpsertBillingMeterResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertBillingMeterResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingMeterResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingMeterResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingPriceResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingPriceResponse.java index f709f86..d6f1c18 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingPriceResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingPriceResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingPriceResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingPriceResponseData data); + _FinalStage data(@NotNull BillingPriceResponseData data); Builder from(UpsertBillingPriceResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertBillingPriceResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingPriceResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingPriceResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingProductResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingProductResponse.java index 8df5ae9..90654ee 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingProductResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingProductResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingProductResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingProductResponseData data); + _FinalStage data(@NotNull BillingProductResponseData data); Builder from(UpsertBillingProductResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertBillingProductResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingProductResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingProductResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingSubscriptionResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingSubscriptionResponse.java index b99cfe0..95b9478 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingSubscriptionResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertBillingSubscriptionResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingSubscriptionResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingSubscriptionResponseData data); + _FinalStage data(@NotNull BillingSubscriptionResponseData data); Builder from(UpsertBillingSubscriptionResponse other); } @@ -115,8 +116,8 @@ public Builder from(UpsertBillingSubscriptionResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingSubscriptionResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingSubscriptionResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertInvoiceResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertInvoiceResponse.java index 5211654..6de71b8 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertInvoiceResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertInvoiceResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertInvoiceResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(InvoiceResponseData data); + _FinalStage data(@NotNull InvoiceResponseData data); Builder from(UpsertInvoiceResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertInvoiceResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(InvoiceResponseData data) { - this.data = data; + public _FinalStage data(@NotNull InvoiceResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/billing/types/UpsertPaymentMethodResponse.java b/src/main/java/com/schematic/api/resources/billing/types/UpsertPaymentMethodResponse.java index 7062aa5..10f1255 100644 --- a/src/main/java/com/schematic/api/resources/billing/types/UpsertPaymentMethodResponse.java +++ b/src/main/java/com/schematic/api/resources/billing/types/UpsertPaymentMethodResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertPaymentMethodResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PaymentMethodResponseData data); + _FinalStage data(@NotNull PaymentMethodResponseData data); Builder from(UpsertPaymentMethodResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertPaymentMethodResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PaymentMethodResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PaymentMethodResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/checkout/CheckoutClient.java b/src/main/java/com/schematic/api/resources/checkout/CheckoutClient.java index 240869d..da36bfd 100644 --- a/src/main/java/com/schematic/api/resources/checkout/CheckoutClient.java +++ b/src/main/java/com/schematic/api/resources/checkout/CheckoutClient.java @@ -158,11 +158,6 @@ public PreviewCheckoutInternalResponse previewCheckoutInternal( } } - public UpdateCustomerSubscriptionTrialEndResponse updateCustomerSubscriptionTrialEnd(String subscriptionId) { - return updateCustomerSubscriptionTrialEnd( - subscriptionId, UpdateTrialEndRequestBody.builder().build()); - } - public UpdateCustomerSubscriptionTrialEndResponse updateCustomerSubscriptionTrialEnd( String subscriptionId, UpdateTrialEndRequestBody request) { return updateCustomerSubscriptionTrialEnd(subscriptionId, request, null); diff --git a/src/main/java/com/schematic/api/resources/checkout/types/CheckoutInternalResponse.java b/src/main/java/com/schematic/api/resources/checkout/types/CheckoutInternalResponse.java index 5c6b70b..81a4ac0 100644 --- a/src/main/java/com/schematic/api/resources/checkout/types/CheckoutInternalResponse.java +++ b/src/main/java/com/schematic/api/resources/checkout/types/CheckoutInternalResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CheckoutInternalResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingSubscriptionResponseData data); + _FinalStage data(@NotNull BillingSubscriptionResponseData data); Builder from(CheckoutInternalResponse other); } @@ -115,8 +116,8 @@ public Builder from(CheckoutInternalResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingSubscriptionResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingSubscriptionResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/checkout/types/PreviewCheckoutInternalResponse.java b/src/main/java/com/schematic/api/resources/checkout/types/PreviewCheckoutInternalResponse.java index e59e9ea..a6fb305 100644 --- a/src/main/java/com/schematic/api/resources/checkout/types/PreviewCheckoutInternalResponse.java +++ b/src/main/java/com/schematic/api/resources/checkout/types/PreviewCheckoutInternalResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PreviewCheckoutInternalResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PreviewSubscriptionChangeResponseData data); + _FinalStage data(@NotNull PreviewSubscriptionChangeResponseData data); Builder from(PreviewCheckoutInternalResponse other); } @@ -115,8 +116,8 @@ public Builder from(PreviewCheckoutInternalResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PreviewSubscriptionChangeResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PreviewSubscriptionChangeResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.java b/src/main/java/com/schematic/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.java index dc46eee..02f0b6a 100644 --- a/src/main/java/com/schematic/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.java +++ b/src/main/java/com/schematic/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateCustomerSubscriptionTrialEndResponse.Builder.class) @@ -79,7 +80,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingSubscriptionView data); + _FinalStage data(@NotNull BillingSubscriptionView data); Builder from(UpdateCustomerSubscriptionTrialEndResponse other); } @@ -114,8 +115,8 @@ public Builder from(UpdateCustomerSubscriptionTrialEndResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingSubscriptionView data) { - this.data = data; + public _FinalStage data(@NotNull BillingSubscriptionView data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/requests/CreateEntityTraitDefinitionRequestBody.java b/src/main/java/com/schematic/api/resources/companies/requests/CreateEntityTraitDefinitionRequestBody.java index 4701e7f..915262b 100644 --- a/src/main/java/com/schematic/api/resources/companies/requests/CreateEntityTraitDefinitionRequestBody.java +++ b/src/main/java/com/schematic/api/resources/companies/requests/CreateEntityTraitDefinitionRequestBody.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEntityTraitDefinitionRequestBody.Builder.class) @@ -101,13 +102,13 @@ public static EntityTypeStage builder() { } public interface EntityTypeStage { - TraitTypeStage entityType(CreateEntityTraitDefinitionRequestBodyEntityType entityType); + TraitTypeStage entityType(@NotNull CreateEntityTraitDefinitionRequestBodyEntityType entityType); Builder from(CreateEntityTraitDefinitionRequestBody other); } public interface TraitTypeStage { - _FinalStage traitType(CreateEntityTraitDefinitionRequestBodyTraitType traitType); + _FinalStage traitType(@NotNull CreateEntityTraitDefinitionRequestBodyTraitType traitType); } public interface _FinalStage { @@ -150,15 +151,15 @@ public Builder from(CreateEntityTraitDefinitionRequestBody other) { @java.lang.Override @JsonSetter("entity_type") - public TraitTypeStage entityType(CreateEntityTraitDefinitionRequestBodyEntityType entityType) { - this.entityType = entityType; + public TraitTypeStage entityType(@NotNull CreateEntityTraitDefinitionRequestBodyEntityType entityType) { + this.entityType = Objects.requireNonNull(entityType, "entityType must not be null"); return this; } @java.lang.Override @JsonSetter("trait_type") - public _FinalStage traitType(CreateEntityTraitDefinitionRequestBodyTraitType traitType) { - this.traitType = traitType; + public _FinalStage traitType(@NotNull CreateEntityTraitDefinitionRequestBodyTraitType traitType) { + this.traitType = Objects.requireNonNull(traitType, "traitType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/requests/GetActiveDealsRequest.java b/src/main/java/com/schematic/api/resources/companies/requests/GetActiveDealsRequest.java index e164db3..794f86c 100644 --- a/src/main/java/com/schematic/api/resources/companies/requests/GetActiveDealsRequest.java +++ b/src/main/java/com/schematic/api/resources/companies/requests/GetActiveDealsRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetActiveDealsRequest.Builder.class) @@ -102,13 +103,13 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - DealStageStage companyId(String companyId); + DealStageStage companyId(@NotNull String companyId); Builder from(GetActiveDealsRequest other); } public interface DealStageStage { - _FinalStage dealStage(String dealStage); + _FinalStage dealStage(@NotNull String dealStage); } public interface _FinalStage { @@ -149,15 +150,15 @@ public Builder from(GetActiveDealsRequest other) { @java.lang.Override @JsonSetter("company_id") - public DealStageStage companyId(String companyId) { - this.companyId = companyId; + public DealStageStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("deal_stage") - public _FinalStage dealStage(String dealStage) { - this.dealStage = dealStage; + public _FinalStage dealStage(@NotNull String dealStage) { + this.dealStage = Objects.requireNonNull(dealStage, "dealStage must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/requests/GetEntityTraitValuesRequest.java b/src/main/java/com/schematic/api/resources/companies/requests/GetEntityTraitValuesRequest.java index 8046d45..5d5d7a7 100644 --- a/src/main/java/com/schematic/api/resources/companies/requests/GetEntityTraitValuesRequest.java +++ b/src/main/java/com/schematic/api/resources/companies/requests/GetEntityTraitValuesRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetEntityTraitValuesRequest.Builder.class) @@ -102,7 +103,7 @@ public static DefinitionIdStage builder() { } public interface DefinitionIdStage { - _FinalStage definitionId(String definitionId); + _FinalStage definitionId(@NotNull String definitionId); Builder from(GetEntityTraitValuesRequest other); } @@ -149,8 +150,8 @@ public Builder from(GetEntityTraitValuesRequest other) { @java.lang.Override @JsonSetter("definition_id") - public _FinalStage definitionId(String definitionId) { - this.definitionId = definitionId; + public _FinalStage definitionId(@NotNull String definitionId) { + this.definitionId = Objects.requireNonNull(definitionId, "definitionId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/requests/GetOrCreateCompanyMembershipRequestBody.java b/src/main/java/com/schematic/api/resources/companies/requests/GetOrCreateCompanyMembershipRequestBody.java index 29f0367..bd7ac6d 100644 --- a/src/main/java/com/schematic/api/resources/companies/requests/GetOrCreateCompanyMembershipRequestBody.java +++ b/src/main/java/com/schematic/api/resources/companies/requests/GetOrCreateCompanyMembershipRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetOrCreateCompanyMembershipRequestBody.Builder.class) @@ -72,13 +73,13 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - UserIdStage companyId(String companyId); + UserIdStage companyId(@NotNull String companyId); Builder from(GetOrCreateCompanyMembershipRequestBody other); } public interface UserIdStage { - _FinalStage userId(String userId); + _FinalStage userId(@NotNull String userId); } public interface _FinalStage { @@ -105,15 +106,15 @@ public Builder from(GetOrCreateCompanyMembershipRequestBody other) { @java.lang.Override @JsonSetter("company_id") - public UserIdStage companyId(String companyId) { - this.companyId = companyId; + public UserIdStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("user_id") - public _FinalStage userId(String userId) { - this.userId = userId; + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/requests/UpdateEntityTraitDefinitionRequestBody.java b/src/main/java/com/schematic/api/resources/companies/requests/UpdateEntityTraitDefinitionRequestBody.java index 57495de..04e396c 100644 --- a/src/main/java/com/schematic/api/resources/companies/requests/UpdateEntityTraitDefinitionRequestBody.java +++ b/src/main/java/com/schematic/api/resources/companies/requests/UpdateEntityTraitDefinitionRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateEntityTraitDefinitionRequestBody.Builder.class) @@ -77,7 +78,7 @@ public static TraitTypeStage builder() { } public interface TraitTypeStage { - _FinalStage traitType(UpdateEntityTraitDefinitionRequestBodyTraitType traitType); + _FinalStage traitType(@NotNull UpdateEntityTraitDefinitionRequestBodyTraitType traitType); Builder from(UpdateEntityTraitDefinitionRequestBody other); } @@ -110,8 +111,8 @@ public Builder from(UpdateEntityTraitDefinitionRequestBody other) { @java.lang.Override @JsonSetter("trait_type") - public _FinalStage traitType(UpdateEntityTraitDefinitionRequestBodyTraitType traitType) { - this.traitType = traitType; + public _FinalStage traitType(@NotNull UpdateEntityTraitDefinitionRequestBodyTraitType traitType) { + this.traitType = Objects.requireNonNull(traitType, "traitType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/CountCompaniesResponse.java b/src/main/java/com/schematic/api/resources/companies/types/CountCompaniesResponse.java index 41c2d44..72c290b 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/CountCompaniesResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/CountCompaniesResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountCompaniesResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountCompaniesResponse other); } public interface ParamsStage { - _FinalStage params(CountCompaniesParams params); + _FinalStage params(@NotNull CountCompaniesParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountCompaniesResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountCompaniesParams params) { - this.params = params; + public _FinalStage params(@NotNull CountCompaniesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/CountEntityKeyDefinitionsResponse.java b/src/main/java/com/schematic/api/resources/companies/types/CountEntityKeyDefinitionsResponse.java index b59beda..1f753ea 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/CountEntityKeyDefinitionsResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/CountEntityKeyDefinitionsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountEntityKeyDefinitionsResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountEntityKeyDefinitionsResponse other); } public interface ParamsStage { - _FinalStage params(CountEntityKeyDefinitionsParams params); + _FinalStage params(@NotNull CountEntityKeyDefinitionsParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountEntityKeyDefinitionsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountEntityKeyDefinitionsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountEntityKeyDefinitionsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/CountEntityTraitDefinitionsResponse.java b/src/main/java/com/schematic/api/resources/companies/types/CountEntityTraitDefinitionsResponse.java index 17f20d2..3d8f0b3 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/CountEntityTraitDefinitionsResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/CountEntityTraitDefinitionsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountEntityTraitDefinitionsResponse.Builder.class) @@ -76,13 +77,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountEntityTraitDefinitionsResponse other); } public interface ParamsStage { - _FinalStage params(CountEntityTraitDefinitionsParams params); + _FinalStage params(@NotNull CountEntityTraitDefinitionsParams params); } public interface _FinalStage { @@ -109,8 +110,8 @@ public Builder from(CountEntityTraitDefinitionsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -120,8 +121,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountEntityTraitDefinitionsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountEntityTraitDefinitionsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/CountUsersResponse.java b/src/main/java/com/schematic/api/resources/companies/types/CountUsersResponse.java index 678cf9c..fe7df3d 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/CountUsersResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/CountUsersResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountUsersResponse.Builder.class) @@ -74,13 +75,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountUsersResponse other); } public interface ParamsStage { - _FinalStage params(CountUsersParams params); + _FinalStage params(@NotNull CountUsersParams params); } public interface _FinalStage { @@ -107,8 +108,8 @@ public Builder from(CountUsersResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -118,8 +119,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountUsersParams params) { - this.params = params; + public _FinalStage params(@NotNull CountUsersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/CreateCompanyResponse.java b/src/main/java/com/schematic/api/resources/companies/types/CreateCompanyResponse.java index caea4a1..44fcb28 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/CreateCompanyResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/CreateCompanyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCompanyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyDetailResponseData data); + _FinalStage data(@NotNull CompanyDetailResponseData data); Builder from(CreateCompanyResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateCompanyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/CreateUserResponse.java b/src/main/java/com/schematic/api/resources/companies/types/CreateUserResponse.java index 38213cb..00a9490 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/CreateUserResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/CreateUserResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateUserResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(UserDetailResponseData data); + _FinalStage data(@NotNull UserDetailResponseData data); Builder from(CreateUserResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateUserResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(UserDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull UserDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyByKeysResponse.java b/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyByKeysResponse.java index a9b245b..0afb35a 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyByKeysResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyByKeysResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteCompanyByKeysResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyResponseData data); + _FinalStage data(@NotNull CompanyResponseData data); Builder from(DeleteCompanyByKeysResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteCompanyByKeysResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyMembershipResponse.java b/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyMembershipResponse.java index 640dd0f..221ed83 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyMembershipResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyMembershipResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteCompanyMembershipResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteCompanyMembershipResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteCompanyMembershipResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyResponse.java b/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyResponse.java index d2c6abb..186586c 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/DeleteCompanyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteCompanyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteCompanyResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteCompanyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/DeleteUserByKeysResponse.java b/src/main/java/com/schematic/api/resources/companies/types/DeleteUserByKeysResponse.java index ab4b407..12c7bb0 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/DeleteUserByKeysResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/DeleteUserByKeysResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteUserByKeysResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(UserResponseData data); + _FinalStage data(@NotNull UserResponseData data); Builder from(DeleteUserByKeysResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteUserByKeysResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(UserResponseData data) { - this.data = data; + public _FinalStage data(@NotNull UserResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/DeleteUserResponse.java b/src/main/java/com/schematic/api/resources/companies/types/DeleteUserResponse.java index c7065fb..10fae78 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/DeleteUserResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/DeleteUserResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteUserResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteUserResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteUserResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetActiveCompanySubscriptionResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetActiveCompanySubscriptionResponse.java index 42b0954..fc35ad2 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetActiveCompanySubscriptionResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetActiveCompanySubscriptionResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetActiveCompanySubscriptionResponse.Builder.class) @@ -84,7 +85,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(GetActiveCompanySubscriptionParams params); + _FinalStage params(@NotNull GetActiveCompanySubscriptionParams params); Builder from(GetActiveCompanySubscriptionResponse other); } @@ -123,8 +124,8 @@ public Builder from(GetActiveCompanySubscriptionResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(GetActiveCompanySubscriptionParams params) { - this.params = params; + public _FinalStage params(@NotNull GetActiveCompanySubscriptionParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetActiveDealsResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetActiveDealsResponse.java index b40e595..dda811c 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetActiveDealsResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetActiveDealsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetActiveDealsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(GetActiveDealsParams params); + _FinalStage params(@NotNull GetActiveDealsParams params); Builder from(GetActiveDealsResponse other); } @@ -122,8 +123,8 @@ public Builder from(GetActiveDealsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(GetActiveDealsParams params) { - this.params = params; + public _FinalStage params(@NotNull GetActiveDealsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetCompanyResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetCompanyResponse.java index ef07381..677ed3f 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetCompanyResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetCompanyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetCompanyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyDetailResponseData data); + _FinalStage data(@NotNull CompanyDetailResponseData data); Builder from(GetCompanyResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetCompanyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitDefinitionResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitDefinitionResponse.java index 6013245..669bab4 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitDefinitionResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitDefinitionResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetEntityTraitDefinitionResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EntityTraitDefinitionResponseData data); + _FinalStage data(@NotNull EntityTraitDefinitionResponseData data); Builder from(GetEntityTraitDefinitionResponse other); } @@ -115,8 +116,8 @@ public Builder from(GetEntityTraitDefinitionResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EntityTraitDefinitionResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EntityTraitDefinitionResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitValuesResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitValuesResponse.java index 00e2ca5..95f6282 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitValuesResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetEntityTraitValuesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetEntityTraitValuesResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(GetEntityTraitValuesParams params); + _FinalStage params(@NotNull GetEntityTraitValuesParams params); Builder from(GetEntityTraitValuesResponse other); } @@ -120,8 +121,8 @@ public Builder from(GetEntityTraitValuesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(GetEntityTraitValuesParams params) { - this.params = params; + public _FinalStage params(@NotNull GetEntityTraitValuesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateCompanyMembershipResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateCompanyMembershipResponse.java index 4b3048e..f19ca5e 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateCompanyMembershipResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateCompanyMembershipResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetOrCreateCompanyMembershipResponse.Builder.class) @@ -81,7 +82,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyMembershipDetailResponseData data); + _FinalStage data(@NotNull CompanyMembershipDetailResponseData data); Builder from(GetOrCreateCompanyMembershipResponse other); } @@ -116,8 +117,8 @@ public Builder from(GetOrCreateCompanyMembershipResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyMembershipDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyMembershipDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.java index ef566c8..53e6a26 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetOrCreateEntityTraitDefinitionResponse.Builder.class) @@ -81,7 +82,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EntityTraitDefinitionResponseData data); + _FinalStage data(@NotNull EntityTraitDefinitionResponseData data); Builder from(GetOrCreateEntityTraitDefinitionResponse other); } @@ -116,8 +117,8 @@ public Builder from(GetOrCreateEntityTraitDefinitionResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EntityTraitDefinitionResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EntityTraitDefinitionResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/GetUserResponse.java b/src/main/java/com/schematic/api/resources/companies/types/GetUserResponse.java index 1eb9509..86e1f98 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/GetUserResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/GetUserResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetUserResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(UserDetailResponseData data); + _FinalStage data(@NotNull UserDetailResponseData data); Builder from(GetUserResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetUserResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(UserDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull UserDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/ListCompaniesResponse.java b/src/main/java/com/schematic/api/resources/companies/types/ListCompaniesResponse.java index 6a6fee1..b72d4ca 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/ListCompaniesResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/ListCompaniesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListCompaniesResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListCompaniesParams params); + _FinalStage params(@NotNull ListCompaniesParams params); Builder from(ListCompaniesResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListCompaniesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListCompaniesParams params) { - this.params = params; + public _FinalStage params(@NotNull ListCompaniesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/ListCompanyMembershipsResponse.java b/src/main/java/com/schematic/api/resources/companies/types/ListCompanyMembershipsResponse.java index cba7c17..b0be90f 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/ListCompanyMembershipsResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/ListCompanyMembershipsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListCompanyMembershipsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListCompanyMembershipsParams params); + _FinalStage params(@NotNull ListCompanyMembershipsParams params); Builder from(ListCompanyMembershipsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListCompanyMembershipsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListCompanyMembershipsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListCompanyMembershipsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/ListEntityKeyDefinitionsResponse.java b/src/main/java/com/schematic/api/resources/companies/types/ListEntityKeyDefinitionsResponse.java index 4f712b9..11934f0 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/ListEntityKeyDefinitionsResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/ListEntityKeyDefinitionsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListEntityKeyDefinitionsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListEntityKeyDefinitionsParams params); + _FinalStage params(@NotNull ListEntityKeyDefinitionsParams params); Builder from(ListEntityKeyDefinitionsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListEntityKeyDefinitionsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListEntityKeyDefinitionsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListEntityKeyDefinitionsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/ListEntityTraitDefinitionsResponse.java b/src/main/java/com/schematic/api/resources/companies/types/ListEntityTraitDefinitionsResponse.java index e2765f0..cd7000d 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/ListEntityTraitDefinitionsResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/ListEntityTraitDefinitionsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListEntityTraitDefinitionsResponse.Builder.class) @@ -84,7 +85,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListEntityTraitDefinitionsParams params); + _FinalStage params(@NotNull ListEntityTraitDefinitionsParams params); Builder from(ListEntityTraitDefinitionsResponse other); } @@ -123,8 +124,8 @@ public Builder from(ListEntityTraitDefinitionsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListEntityTraitDefinitionsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListEntityTraitDefinitionsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/ListUsersResponse.java b/src/main/java/com/schematic/api/resources/companies/types/ListUsersResponse.java index 95a5b38..2ebb8bb 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/ListUsersResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/ListUsersResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListUsersResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListUsersParams params); + _FinalStage params(@NotNull ListUsersParams params); Builder from(ListUsersResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListUsersResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListUsersParams params) { - this.params = params; + public _FinalStage params(@NotNull ListUsersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/LookupCompanyResponse.java b/src/main/java/com/schematic/api/resources/companies/types/LookupCompanyResponse.java index 63f73ba..018e49e 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/LookupCompanyResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/LookupCompanyResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = LookupCompanyResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CompanyDetailResponseData data); + ParamsStage data(@NotNull CompanyDetailResponseData data); Builder from(LookupCompanyResponse other); } public interface ParamsStage { - _FinalStage params(LookupCompanyParams params); + _FinalStage params(@NotNull LookupCompanyParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(LookupCompanyResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CompanyDetailResponseData data) { - this.data = data; + public ParamsStage data(@NotNull CompanyDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CompanyDetailResponseData data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(LookupCompanyParams params) { - this.params = params; + public _FinalStage params(@NotNull LookupCompanyParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/LookupUserResponse.java b/src/main/java/com/schematic/api/resources/companies/types/LookupUserResponse.java index 92ee104..2e8e0de 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/LookupUserResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/LookupUserResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = LookupUserResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(UserDetailResponseData data); + ParamsStage data(@NotNull UserDetailResponseData data); Builder from(LookupUserResponse other); } public interface ParamsStage { - _FinalStage params(LookupUserParams params); + _FinalStage params(@NotNull LookupUserParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(LookupUserResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(UserDetailResponseData data) { - this.data = data; + public ParamsStage data(@NotNull UserDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(UserDetailResponseData data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(LookupUserParams params) { - this.params = params; + public _FinalStage params(@NotNull LookupUserParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/UpdateEntityTraitDefinitionResponse.java b/src/main/java/com/schematic/api/resources/companies/types/UpdateEntityTraitDefinitionResponse.java index f8def23..d53e6e1 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/UpdateEntityTraitDefinitionResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/UpdateEntityTraitDefinitionResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateEntityTraitDefinitionResponse.Builder.class) @@ -81,7 +82,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EntityTraitDefinitionResponseData data); + _FinalStage data(@NotNull EntityTraitDefinitionResponseData data); Builder from(UpdateEntityTraitDefinitionResponse other); } @@ -116,8 +117,8 @@ public Builder from(UpdateEntityTraitDefinitionResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EntityTraitDefinitionResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EntityTraitDefinitionResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyResponse.java b/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyResponse.java index 182f813..2f7fe41 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertCompanyResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyDetailResponseData data); + _FinalStage data(@NotNull CompanyDetailResponseData data); Builder from(UpsertCompanyResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertCompanyResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyTraitResponse.java b/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyTraitResponse.java index 68e7f8b..632d0b1 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyTraitResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/UpsertCompanyTraitResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertCompanyTraitResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyDetailResponseData data); + _FinalStage data(@NotNull CompanyDetailResponseData data); Builder from(UpsertCompanyTraitResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertCompanyTraitResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/UpsertUserResponse.java b/src/main/java/com/schematic/api/resources/companies/types/UpsertUserResponse.java index f5bfb3b..b93dba4 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/UpsertUserResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/UpsertUserResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertUserResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(UserDetailResponseData data); + _FinalStage data(@NotNull UserDetailResponseData data); Builder from(UpsertUserResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertUserResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(UserDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull UserDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/companies/types/UpsertUserTraitResponse.java b/src/main/java/com/schematic/api/resources/companies/types/UpsertUserTraitResponse.java index 3739481..029b625 100644 --- a/src/main/java/com/schematic/api/resources/companies/types/UpsertUserTraitResponse.java +++ b/src/main/java/com/schematic/api/resources/companies/types/UpsertUserTraitResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertUserTraitResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(UserDetailResponseData data); + _FinalStage data(@NotNull UserDetailResponseData data); Builder from(UpsertUserTraitResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertUserTraitResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(UserDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull UserDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/ComponentsClient.java b/src/main/java/com/schematic/api/resources/components/ComponentsClient.java index 647a0a8..f556811 100644 --- a/src/main/java/com/schematic/api/resources/components/ComponentsClient.java +++ b/src/main/java/com/schematic/api/resources/components/ComponentsClient.java @@ -220,10 +220,6 @@ public GetComponentResponse getComponent(String componentId, RequestOptions requ } } - public UpdateComponentResponse updateComponent(String componentId) { - return updateComponent(componentId, UpdateComponentRequestBody.builder().build()); - } - public UpdateComponentResponse updateComponent(String componentId, UpdateComponentRequestBody request) { return updateComponent(componentId, request, null); } diff --git a/src/main/java/com/schematic/api/resources/components/requests/CreateComponentRequestBody.java b/src/main/java/com/schematic/api/resources/components/requests/CreateComponentRequestBody.java index 6f6951b..6abf675 100644 --- a/src/main/java/com/schematic/api/resources/components/requests/CreateComponentRequestBody.java +++ b/src/main/java/com/schematic/api/resources/components/requests/CreateComponentRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateComponentRequestBody.Builder.class) @@ -85,13 +86,13 @@ public static EntityTypeStage builder() { } public interface EntityTypeStage { - NameStage entityType(CreateComponentRequestBodyEntityType entityType); + NameStage entityType(@NotNull CreateComponentRequestBodyEntityType entityType); Builder from(CreateComponentRequestBody other); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -125,15 +126,15 @@ public Builder from(CreateComponentRequestBody other) { @java.lang.Override @JsonSetter("entity_type") - public NameStage entityType(CreateComponentRequestBodyEntityType entityType) { - this.entityType = entityType; + public NameStage entityType(@NotNull CreateComponentRequestBodyEntityType entityType) { + this.entityType = Objects.requireNonNull(entityType, "entityType must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/CountComponentsResponse.java b/src/main/java/com/schematic/api/resources/components/types/CountComponentsResponse.java index 2b905dc..d52a63e 100644 --- a/src/main/java/com/schematic/api/resources/components/types/CountComponentsResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/CountComponentsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountComponentsResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountComponentsResponse other); } public interface ParamsStage { - _FinalStage params(CountComponentsParams params); + _FinalStage params(@NotNull CountComponentsParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountComponentsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountComponentsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountComponentsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/CreateComponentResponse.java b/src/main/java/com/schematic/api/resources/components/types/CreateComponentResponse.java index 09f6c56..c7d45b3 100644 --- a/src/main/java/com/schematic/api/resources/components/types/CreateComponentResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/CreateComponentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateComponentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ComponentResponseData data); + _FinalStage data(@NotNull ComponentResponseData data); Builder from(CreateComponentResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateComponentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ComponentResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ComponentResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/DeleteComponentResponse.java b/src/main/java/com/schematic/api/resources/components/types/DeleteComponentResponse.java index c697eb2..220dfd4 100644 --- a/src/main/java/com/schematic/api/resources/components/types/DeleteComponentResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/DeleteComponentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteComponentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteComponentResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteComponentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/GetComponentResponse.java b/src/main/java/com/schematic/api/resources/components/types/GetComponentResponse.java index 6c5ec5e..19d2baf 100644 --- a/src/main/java/com/schematic/api/resources/components/types/GetComponentResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/GetComponentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetComponentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ComponentResponseData data); + _FinalStage data(@NotNull ComponentResponseData data); Builder from(GetComponentResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetComponentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ComponentResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ComponentResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/ListComponentsResponse.java b/src/main/java/com/schematic/api/resources/components/types/ListComponentsResponse.java index 2d84416..3d0a562 100644 --- a/src/main/java/com/schematic/api/resources/components/types/ListComponentsResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/ListComponentsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListComponentsResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListComponentsParams params); + _FinalStage params(@NotNull ListComponentsParams params); Builder from(ListComponentsResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListComponentsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListComponentsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListComponentsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/PreviewComponentDataResponse.java b/src/main/java/com/schematic/api/resources/components/types/PreviewComponentDataResponse.java index 3a0f78b..b627c35 100644 --- a/src/main/java/com/schematic/api/resources/components/types/PreviewComponentDataResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/PreviewComponentDataResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PreviewComponentDataResponse.Builder.class) @@ -77,13 +78,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(ComponentPreviewResponseData data); + ParamsStage data(@NotNull ComponentPreviewResponseData data); Builder from(PreviewComponentDataResponse other); } public interface ParamsStage { - _FinalStage params(PreviewComponentDataParams params); + _FinalStage params(@NotNull PreviewComponentDataParams params); } public interface _FinalStage { @@ -110,8 +111,8 @@ public Builder from(PreviewComponentDataResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(ComponentPreviewResponseData data) { - this.data = data; + public ParamsStage data(@NotNull ComponentPreviewResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -121,8 +122,8 @@ public ParamsStage data(ComponentPreviewResponseData data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(PreviewComponentDataParams params) { - this.params = params; + public _FinalStage params(@NotNull PreviewComponentDataParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/components/types/UpdateComponentResponse.java b/src/main/java/com/schematic/api/resources/components/types/UpdateComponentResponse.java index b1c61f4..45002ca 100644 --- a/src/main/java/com/schematic/api/resources/components/types/UpdateComponentResponse.java +++ b/src/main/java/com/schematic/api/resources/components/types/UpdateComponentResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateComponentResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(ComponentResponseData data); + _FinalStage data(@NotNull ComponentResponseData data); Builder from(UpdateComponentResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateComponentResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(ComponentResponseData data) { - this.data = data; + public _FinalStage data(@NotNull ComponentResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealLineItemAssociationRequestBody.java b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealLineItemAssociationRequestBody.java index 6a2d96a..91ac62e 100644 --- a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealLineItemAssociationRequestBody.java +++ b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealLineItemAssociationRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCrmDealLineItemAssociationRequestBody.Builder.class) @@ -72,13 +73,13 @@ public static DealExternalIdStage builder() { } public interface DealExternalIdStage { - LineItemExternalIdStage dealExternalId(String dealExternalId); + LineItemExternalIdStage dealExternalId(@NotNull String dealExternalId); Builder from(CreateCrmDealLineItemAssociationRequestBody other); } public interface LineItemExternalIdStage { - _FinalStage lineItemExternalId(String lineItemExternalId); + _FinalStage lineItemExternalId(@NotNull String lineItemExternalId); } public interface _FinalStage { @@ -105,15 +106,15 @@ public Builder from(CreateCrmDealLineItemAssociationRequestBody other) { @java.lang.Override @JsonSetter("deal_external_id") - public LineItemExternalIdStage dealExternalId(String dealExternalId) { - this.dealExternalId = dealExternalId; + public LineItemExternalIdStage dealExternalId(@NotNull String dealExternalId) { + this.dealExternalId = Objects.requireNonNull(dealExternalId, "dealExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("line_item_external_id") - public _FinalStage lineItemExternalId(String lineItemExternalId) { - this.lineItemExternalId = lineItemExternalId; + public _FinalStage lineItemExternalId(@NotNull String lineItemExternalId) { + this.lineItemExternalId = Objects.requireNonNull(lineItemExternalId, "lineItemExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealRequestBody.java b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealRequestBody.java index ff6f26b..cfbb64c 100644 --- a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealRequestBody.java +++ b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmDealRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCrmDealRequestBody.Builder.class) @@ -155,17 +156,17 @@ public static CrmCompanyKeyStage builder() { } public interface CrmCompanyKeyStage { - CrmTypeStage crmCompanyKey(String crmCompanyKey); + CrmTypeStage crmCompanyKey(@NotNull String crmCompanyKey); Builder from(CreateCrmDealRequestBody other); } public interface CrmTypeStage { - DealExternalIdStage crmType(String crmType); + DealExternalIdStage crmType(@NotNull String crmType); } public interface DealExternalIdStage { - _FinalStage dealExternalId(String dealExternalId); + _FinalStage dealExternalId(@NotNull String dealExternalId); } public interface _FinalStage { @@ -237,22 +238,22 @@ public Builder from(CreateCrmDealRequestBody other) { @java.lang.Override @JsonSetter("crm_company_key") - public CrmTypeStage crmCompanyKey(String crmCompanyKey) { - this.crmCompanyKey = crmCompanyKey; + public CrmTypeStage crmCompanyKey(@NotNull String crmCompanyKey) { + this.crmCompanyKey = Objects.requireNonNull(crmCompanyKey, "crmCompanyKey must not be null"); return this; } @java.lang.Override @JsonSetter("crm_type") - public DealExternalIdStage crmType(String crmType) { - this.crmType = crmType; + public DealExternalIdStage crmType(@NotNull String crmType) { + this.crmType = Objects.requireNonNull(crmType, "crmType must not be null"); return this; } @java.lang.Override @JsonSetter("deal_external_id") - public _FinalStage dealExternalId(String dealExternalId) { - this.dealExternalId = dealExternalId; + public _FinalStage dealExternalId(@NotNull String dealExternalId) { + this.dealExternalId = Objects.requireNonNull(dealExternalId, "dealExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmLineItemRequestBody.java b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmLineItemRequestBody.java index b8fbc18..662085f 100644 --- a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmLineItemRequestBody.java +++ b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmLineItemRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCrmLineItemRequestBody.Builder.class) @@ -144,21 +145,21 @@ public static AmountStage builder() { } public interface AmountStage { - IntervalStage amount(String amount); + IntervalStage amount(@NotNull String amount); Builder from(CreateCrmLineItemRequestBody other); } public interface IntervalStage { - LineItemExternalIdStage interval(String interval); + LineItemExternalIdStage interval(@NotNull String interval); } public interface LineItemExternalIdStage { - ProductExternalIdStage lineItemExternalId(String lineItemExternalId); + ProductExternalIdStage lineItemExternalId(@NotNull String lineItemExternalId); } public interface ProductExternalIdStage { - QuantityStage productExternalId(String productExternalId); + QuantityStage productExternalId(@NotNull String productExternalId); } public interface QuantityStage { @@ -225,29 +226,29 @@ public Builder from(CreateCrmLineItemRequestBody other) { @java.lang.Override @JsonSetter("amount") - public IntervalStage amount(String amount) { - this.amount = amount; + public IntervalStage amount(@NotNull String amount) { + this.amount = Objects.requireNonNull(amount, "amount must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public LineItemExternalIdStage interval(String interval) { - this.interval = interval; + public LineItemExternalIdStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @java.lang.Override @JsonSetter("line_item_external_id") - public ProductExternalIdStage lineItemExternalId(String lineItemExternalId) { - this.lineItemExternalId = lineItemExternalId; + public ProductExternalIdStage lineItemExternalId(@NotNull String lineItemExternalId) { + this.lineItemExternalId = Objects.requireNonNull(lineItemExternalId, "lineItemExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("product_external_id") - public QuantityStage productExternalId(String productExternalId) { - this.productExternalId = productExternalId; + public QuantityStage productExternalId(@NotNull String productExternalId) { + this.productExternalId = Objects.requireNonNull(productExternalId, "productExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmProductRequestBody.java b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmProductRequestBody.java index 7ca3214..0b47183 100644 --- a/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmProductRequestBody.java +++ b/src/main/java/com/schematic/api/resources/crm/requests/CreateCrmProductRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCrmProductRequestBody.Builder.class) @@ -142,29 +143,29 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - DescriptionStage currency(String currency); + DescriptionStage currency(@NotNull String currency); Builder from(CreateCrmProductRequestBody other); } public interface DescriptionStage { - ExternalIdStage description(String description); + ExternalIdStage description(@NotNull String description); } public interface ExternalIdStage { - IntervalStage externalId(String externalId); + IntervalStage externalId(@NotNull String externalId); } public interface IntervalStage { - NameStage interval(String interval); + NameStage interval(@NotNull String interval); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { - QuantityStage price(String price); + QuantityStage price(@NotNull String price); } public interface QuantityStage { @@ -172,7 +173,7 @@ public interface QuantityStage { } public interface SkuStage { - _FinalStage sku(String sku); + _FinalStage sku(@NotNull String sku); } public interface _FinalStage { @@ -226,43 +227,43 @@ public Builder from(CreateCrmProductRequestBody other) { @java.lang.Override @JsonSetter("currency") - public DescriptionStage currency(String currency) { - this.currency = currency; + public DescriptionStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public ExternalIdStage description(String description) { - this.description = description; + public ExternalIdStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public IntervalStage externalId(String externalId) { - this.externalId = externalId; + public IntervalStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public NameStage interval(String interval) { - this.interval = interval; + public NameStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("price") - public QuantityStage price(String price) { - this.price = price; + public QuantityStage price(@NotNull String price) { + this.price = Objects.requireNonNull(price, "price must not be null"); return this; } @@ -275,8 +276,8 @@ public SkuStage quantity(int quantity) { @java.lang.Override @JsonSetter("sku") - public _FinalStage sku(String sku) { - this.sku = sku; + public _FinalStage sku(@NotNull String sku) { + this.sku = Objects.requireNonNull(sku, "sku must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/types/ListCrmProductsResponse.java b/src/main/java/com/schematic/api/resources/crm/types/ListCrmProductsResponse.java index fcaebfc..3bb0b96 100644 --- a/src/main/java/com/schematic/api/resources/crm/types/ListCrmProductsResponse.java +++ b/src/main/java/com/schematic/api/resources/crm/types/ListCrmProductsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListCrmProductsResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListCrmProductsParams params); + _FinalStage params(@NotNull ListCrmProductsParams params); Builder from(ListCrmProductsResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListCrmProductsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListCrmProductsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListCrmProductsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmDealResponse.java b/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmDealResponse.java index 325b34d..d2a6a45 100644 --- a/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmDealResponse.java +++ b/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmDealResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertCrmDealResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CrmDealResponseData data); + _FinalStage data(@NotNull CrmDealResponseData data); Builder from(UpsertCrmDealResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertCrmDealResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CrmDealResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CrmDealResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmProductResponse.java b/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmProductResponse.java index 3f51676..01cd0f4 100644 --- a/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmProductResponse.java +++ b/src/main/java/com/schematic/api/resources/crm/types/UpsertCrmProductResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertCrmProductResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CrmProductResponseData data); + _FinalStage data(@NotNull CrmProductResponseData data); Builder from(UpsertCrmProductResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertCrmProductResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CrmProductResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CrmProductResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/types/UpsertDealLineItemAssociationResponse.java b/src/main/java/com/schematic/api/resources/crm/types/UpsertDealLineItemAssociationResponse.java index f84a0da..d6e9b23 100644 --- a/src/main/java/com/schematic/api/resources/crm/types/UpsertDealLineItemAssociationResponse.java +++ b/src/main/java/com/schematic/api/resources/crm/types/UpsertDealLineItemAssociationResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertDealLineItemAssociationResponse.Builder.class) @@ -79,7 +80,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CrmLineItemResponseData data); + _FinalStage data(@NotNull CrmLineItemResponseData data); Builder from(UpsertDealLineItemAssociationResponse other); } @@ -114,8 +115,8 @@ public Builder from(UpsertDealLineItemAssociationResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CrmLineItemResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CrmLineItemResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/crm/types/UpsertLineItemResponse.java b/src/main/java/com/schematic/api/resources/crm/types/UpsertLineItemResponse.java index f4b819a..eea3bc9 100644 --- a/src/main/java/com/schematic/api/resources/crm/types/UpsertLineItemResponse.java +++ b/src/main/java/com/schematic/api/resources/crm/types/UpsertLineItemResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertLineItemResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CrmLineItemResponseData data); + _FinalStage data(@NotNull CrmLineItemResponseData data); Builder from(UpsertLineItemResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpsertLineItemResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CrmLineItemResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CrmLineItemResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureCompaniesRequest.java b/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureCompaniesRequest.java index bfb7abd..b69a4e7 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureCompaniesRequest.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureCompaniesRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFeatureCompaniesRequest.Builder.class) @@ -102,7 +103,7 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - _FinalStage featureId(String featureId); + _FinalStage featureId(@NotNull String featureId); Builder from(CountFeatureCompaniesRequest other); } @@ -149,8 +150,8 @@ public Builder from(CountFeatureCompaniesRequest other) { @java.lang.Override @JsonSetter("feature_id") - public _FinalStage featureId(String featureId) { - this.featureId = featureId; + public _FinalStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureUsersRequest.java b/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureUsersRequest.java index 406e984..d389587 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureUsersRequest.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/CountFeatureUsersRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFeatureUsersRequest.Builder.class) @@ -102,7 +103,7 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - _FinalStage featureId(String featureId); + _FinalStage featureId(@NotNull String featureId); Builder from(CountFeatureUsersRequest other); } @@ -149,8 +150,8 @@ public Builder from(CountFeatureUsersRequest other) { @java.lang.Override @JsonSetter("feature_id") - public _FinalStage featureId(String featureId) { - this.featureId = featureId; + public _FinalStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/CreateCompanyOverrideRequestBody.java b/src/main/java/com/schematic/api/resources/entitlements/requests/CreateCompanyOverrideRequestBody.java index 6db3bb6..377195f 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/CreateCompanyOverrideRequestBody.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/CreateCompanyOverrideRequestBody.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCompanyOverrideRequestBody.Builder.class) @@ -159,17 +160,17 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - FeatureIdStage companyId(String companyId); + FeatureIdStage companyId(@NotNull String companyId); Builder from(CreateCompanyOverrideRequestBody other); } public interface FeatureIdStage { - ValueTypeStage featureId(String featureId); + ValueTypeStage featureId(@NotNull String featureId); } public interface ValueTypeStage { - _FinalStage valueType(CreateCompanyOverrideRequestBodyValueType valueType); + _FinalStage valueType(@NotNull CreateCompanyOverrideRequestBodyValueType valueType); } public interface _FinalStage { @@ -244,22 +245,22 @@ public Builder from(CreateCompanyOverrideRequestBody other) { @java.lang.Override @JsonSetter("company_id") - public FeatureIdStage companyId(String companyId) { - this.companyId = companyId; + public FeatureIdStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("feature_id") - public ValueTypeStage featureId(String featureId) { - this.featureId = featureId; + public ValueTypeStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(CreateCompanyOverrideRequestBodyValueType valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull CreateCompanyOverrideRequestBodyValueType valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/CreatePlanEntitlementRequestBody.java b/src/main/java/com/schematic/api/resources/entitlements/requests/CreatePlanEntitlementRequestBody.java index e21d485..ac8e68b 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/CreatePlanEntitlementRequestBody.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/CreatePlanEntitlementRequestBody.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePlanEntitlementRequestBody.Builder.class) @@ -180,17 +181,17 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - PlanIdStage featureId(String featureId); + PlanIdStage featureId(@NotNull String featureId); Builder from(CreatePlanEntitlementRequestBody other); } public interface PlanIdStage { - ValueTypeStage planId(String planId); + ValueTypeStage planId(@NotNull String planId); } public interface ValueTypeStage { - _FinalStage valueType(CreatePlanEntitlementRequestBodyValueType valueType); + _FinalStage valueType(@NotNull CreatePlanEntitlementRequestBodyValueType valueType); } public interface _FinalStage { @@ -279,22 +280,22 @@ public Builder from(CreatePlanEntitlementRequestBody other) { @java.lang.Override @JsonSetter("feature_id") - public PlanIdStage featureId(String featureId) { - this.featureId = featureId; + public PlanIdStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } @java.lang.Override @JsonSetter("plan_id") - public ValueTypeStage planId(String planId) { - this.planId = planId; + public ValueTypeStage planId(@NotNull String planId) { + this.planId = Objects.requireNonNull(planId, "planId must not be null"); return this; } @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(CreatePlanEntitlementRequestBodyValueType valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull CreatePlanEntitlementRequestBodyValueType valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureCompaniesRequest.java b/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureCompaniesRequest.java index 7252e4b..f320c1a 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureCompaniesRequest.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureCompaniesRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFeatureCompaniesRequest.Builder.class) @@ -102,7 +103,7 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - _FinalStage featureId(String featureId); + _FinalStage featureId(@NotNull String featureId); Builder from(ListFeatureCompaniesRequest other); } @@ -149,8 +150,8 @@ public Builder from(ListFeatureCompaniesRequest other) { @java.lang.Override @JsonSetter("feature_id") - public _FinalStage featureId(String featureId) { - this.featureId = featureId; + public _FinalStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureUsersRequest.java b/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureUsersRequest.java index f73757f..6e876bc 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureUsersRequest.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/ListFeatureUsersRequest.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFeatureUsersRequest.Builder.class) @@ -102,7 +103,7 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - _FinalStage featureId(String featureId); + _FinalStage featureId(@NotNull String featureId); Builder from(ListFeatureUsersRequest other); } @@ -149,8 +150,8 @@ public Builder from(ListFeatureUsersRequest other) { @java.lang.Override @JsonSetter("feature_id") - public _FinalStage featureId(String featureId) { - this.featureId = featureId; + public _FinalStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/UpdateCompanyOverrideRequestBody.java b/src/main/java/com/schematic/api/resources/entitlements/requests/UpdateCompanyOverrideRequestBody.java index effd2a1..a919159 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/UpdateCompanyOverrideRequestBody.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/UpdateCompanyOverrideRequestBody.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateCompanyOverrideRequestBody.Builder.class) @@ -137,7 +138,7 @@ public static ValueTypeStage builder() { } public interface ValueTypeStage { - _FinalStage valueType(UpdateCompanyOverrideRequestBodyValueType valueType); + _FinalStage valueType(@NotNull UpdateCompanyOverrideRequestBodyValueType valueType); Builder from(UpdateCompanyOverrideRequestBody other); } @@ -208,8 +209,8 @@ public Builder from(UpdateCompanyOverrideRequestBody other) { @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(UpdateCompanyOverrideRequestBodyValueType valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull UpdateCompanyOverrideRequestBodyValueType valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/requests/UpdatePlanEntitlementRequestBody.java b/src/main/java/com/schematic/api/resources/entitlements/requests/UpdatePlanEntitlementRequestBody.java index 78ea4c8..7df9e47 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/requests/UpdatePlanEntitlementRequestBody.java +++ b/src/main/java/com/schematic/api/resources/entitlements/requests/UpdatePlanEntitlementRequestBody.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePlanEntitlementRequestBody.Builder.class) @@ -158,7 +159,7 @@ public static ValueTypeStage builder() { } public interface ValueTypeStage { - _FinalStage valueType(UpdatePlanEntitlementRequestBodyValueType valueType); + _FinalStage valueType(@NotNull UpdatePlanEntitlementRequestBodyValueType valueType); Builder from(UpdatePlanEntitlementRequestBody other); } @@ -243,8 +244,8 @@ public Builder from(UpdatePlanEntitlementRequestBody other) { @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(UpdatePlanEntitlementRequestBodyValueType valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull UpdatePlanEntitlementRequestBodyValueType valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CountCompanyOverridesResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CountCompanyOverridesResponse.java index f775df7..a9a0c70 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CountCompanyOverridesResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CountCompanyOverridesResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountCompanyOverridesResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountCompanyOverridesResponse other); } public interface ParamsStage { - _FinalStage params(CountCompanyOverridesParams params); + _FinalStage params(@NotNull CountCompanyOverridesParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountCompanyOverridesResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountCompanyOverridesParams params) { - this.params = params; + public _FinalStage params(@NotNull CountCompanyOverridesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureCompaniesResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureCompaniesResponse.java index 580531d..221ba0e 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureCompaniesResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureCompaniesResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFeatureCompaniesResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountFeatureCompaniesResponse other); } public interface ParamsStage { - _FinalStage params(CountFeatureCompaniesParams params); + _FinalStage params(@NotNull CountFeatureCompaniesParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountFeatureCompaniesResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountFeatureCompaniesParams params) { - this.params = params; + public _FinalStage params(@NotNull CountFeatureCompaniesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsageResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsageResponse.java index 85b1697..73b04eb 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsageResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsageResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFeatureUsageResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountFeatureUsageResponse other); } public interface ParamsStage { - _FinalStage params(CountFeatureUsageParams params); + _FinalStage params(@NotNull CountFeatureUsageParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountFeatureUsageResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountFeatureUsageParams params) { - this.params = params; + public _FinalStage params(@NotNull CountFeatureUsageParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsersResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsersResponse.java index 338ef73..ea237f2 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsersResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CountFeatureUsersResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFeatureUsersResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountFeatureUsersResponse other); } public interface ParamsStage { - _FinalStage params(CountFeatureUsersParams params); + _FinalStage params(@NotNull CountFeatureUsersParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountFeatureUsersResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountFeatureUsersParams params) { - this.params = params; + public _FinalStage params(@NotNull CountFeatureUsersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CountPlanEntitlementsResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CountPlanEntitlementsResponse.java index b3a5955..0312885 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CountPlanEntitlementsResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CountPlanEntitlementsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountPlanEntitlementsResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountPlanEntitlementsResponse other); } public interface ParamsStage { - _FinalStage params(CountPlanEntitlementsParams params); + _FinalStage params(@NotNull CountPlanEntitlementsParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountPlanEntitlementsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountPlanEntitlementsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountPlanEntitlementsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CreateCompanyOverrideResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CreateCompanyOverrideResponse.java index 4e66e46..dabd967 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CreateCompanyOverrideResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CreateCompanyOverrideResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateCompanyOverrideResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyOverrideResponseData data); + _FinalStage data(@NotNull CompanyOverrideResponseData data); Builder from(CreateCompanyOverrideResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateCompanyOverrideResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyOverrideResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyOverrideResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/CreatePlanEntitlementResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/CreatePlanEntitlementResponse.java index 650fd7d..75f1e7f 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/CreatePlanEntitlementResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/CreatePlanEntitlementResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePlanEntitlementResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanEntitlementResponseData data); + _FinalStage data(@NotNull PlanEntitlementResponseData data); Builder from(CreatePlanEntitlementResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreatePlanEntitlementResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanEntitlementResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanEntitlementResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/DeleteCompanyOverrideResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/DeleteCompanyOverrideResponse.java index 54bd73e..874ecf9 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/DeleteCompanyOverrideResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/DeleteCompanyOverrideResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteCompanyOverrideResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteCompanyOverrideResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteCompanyOverrideResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/DeletePlanEntitlementResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/DeletePlanEntitlementResponse.java index df37c9f..1f4a155 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/DeletePlanEntitlementResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/DeletePlanEntitlementResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeletePlanEntitlementResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeletePlanEntitlementResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeletePlanEntitlementResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/GetCompanyOverrideResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/GetCompanyOverrideResponse.java index f690799..ee67c5b 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/GetCompanyOverrideResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/GetCompanyOverrideResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetCompanyOverrideResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyOverrideResponseData data); + _FinalStage data(@NotNull CompanyOverrideResponseData data); Builder from(GetCompanyOverrideResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetCompanyOverrideResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyOverrideResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyOverrideResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/GetFeatureUsageByCompanyResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/GetFeatureUsageByCompanyResponse.java index 07156a1..74f4ac0 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/GetFeatureUsageByCompanyResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/GetFeatureUsageByCompanyResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetFeatureUsageByCompanyResponse.Builder.class) @@ -77,13 +78,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(FeatureUsageDetailResponseData data); + ParamsStage data(@NotNull FeatureUsageDetailResponseData data); Builder from(GetFeatureUsageByCompanyResponse other); } public interface ParamsStage { - _FinalStage params(GetFeatureUsageByCompanyParams params); + _FinalStage params(@NotNull GetFeatureUsageByCompanyParams params); } public interface _FinalStage { @@ -110,8 +111,8 @@ public Builder from(GetFeatureUsageByCompanyResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(FeatureUsageDetailResponseData data) { - this.data = data; + public ParamsStage data(@NotNull FeatureUsageDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -121,8 +122,8 @@ public ParamsStage data(FeatureUsageDetailResponseData data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(GetFeatureUsageByCompanyParams params) { - this.params = params; + public _FinalStage params(@NotNull GetFeatureUsageByCompanyParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/GetPlanEntitlementResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/GetPlanEntitlementResponse.java index 670f166..e0a6600 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/GetPlanEntitlementResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/GetPlanEntitlementResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetPlanEntitlementResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanEntitlementResponseData data); + _FinalStage data(@NotNull PlanEntitlementResponseData data); Builder from(GetPlanEntitlementResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetPlanEntitlementResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanEntitlementResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanEntitlementResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/ListCompanyOverridesResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/ListCompanyOverridesResponse.java index f5ed141..94ead84 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/ListCompanyOverridesResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/ListCompanyOverridesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListCompanyOverridesResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListCompanyOverridesParams params); + _FinalStage params(@NotNull ListCompanyOverridesParams params); Builder from(ListCompanyOverridesResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListCompanyOverridesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListCompanyOverridesParams params) { - this.params = params; + public _FinalStage params(@NotNull ListCompanyOverridesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureCompaniesResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureCompaniesResponse.java index 33ecfa8..37b8210 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureCompaniesResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureCompaniesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFeatureCompaniesResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListFeatureCompaniesParams params); + _FinalStage params(@NotNull ListFeatureCompaniesParams params); Builder from(ListFeatureCompaniesResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListFeatureCompaniesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListFeatureCompaniesParams params) { - this.params = params; + public _FinalStage params(@NotNull ListFeatureCompaniesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsageResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsageResponse.java index 210596a..dbae5a5 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsageResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsageResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFeatureUsageResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListFeatureUsageParams params); + _FinalStage params(@NotNull ListFeatureUsageParams params); Builder from(ListFeatureUsageResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListFeatureUsageResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListFeatureUsageParams params) { - this.params = params; + public _FinalStage params(@NotNull ListFeatureUsageParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsersResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsersResponse.java index ce77e6a..f9aa252 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsersResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/ListFeatureUsersResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFeatureUsersResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListFeatureUsersParams params); + _FinalStage params(@NotNull ListFeatureUsersParams params); Builder from(ListFeatureUsersResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListFeatureUsersResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListFeatureUsersParams params) { - this.params = params; + public _FinalStage params(@NotNull ListFeatureUsersParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/ListPlanEntitlementsResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/ListPlanEntitlementsResponse.java index 80041d4..b498def 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/ListPlanEntitlementsResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/ListPlanEntitlementsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListPlanEntitlementsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListPlanEntitlementsParams params); + _FinalStage params(@NotNull ListPlanEntitlementsParams params); Builder from(ListPlanEntitlementsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListPlanEntitlementsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListPlanEntitlementsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListPlanEntitlementsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/UpdateCompanyOverrideResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/UpdateCompanyOverrideResponse.java index de1c2af..151c967 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/UpdateCompanyOverrideResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/UpdateCompanyOverrideResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateCompanyOverrideResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CompanyOverrideResponseData data); + _FinalStage data(@NotNull CompanyOverrideResponseData data); Builder from(UpdateCompanyOverrideResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateCompanyOverrideResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CompanyOverrideResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CompanyOverrideResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/entitlements/types/UpdatePlanEntitlementResponse.java b/src/main/java/com/schematic/api/resources/entitlements/types/UpdatePlanEntitlementResponse.java index ce2ff39..a188552 100644 --- a/src/main/java/com/schematic/api/resources/entitlements/types/UpdatePlanEntitlementResponse.java +++ b/src/main/java/com/schematic/api/resources/entitlements/types/UpdatePlanEntitlementResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePlanEntitlementResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanEntitlementResponseData data); + _FinalStage data(@NotNull PlanEntitlementResponseData data); Builder from(UpdatePlanEntitlementResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdatePlanEntitlementResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanEntitlementResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanEntitlementResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/events/types/CreateEventBatchResponse.java b/src/main/java/com/schematic/api/resources/events/types/CreateEventBatchResponse.java index 611e56b..076c40b 100644 --- a/src/main/java/com/schematic/api/resources/events/types/CreateEventBatchResponse.java +++ b/src/main/java/com/schematic/api/resources/events/types/CreateEventBatchResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEventBatchResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(RawEventBatchResponseData data); + _FinalStage data(@NotNull RawEventBatchResponseData data); Builder from(CreateEventBatchResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateEventBatchResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(RawEventBatchResponseData data) { - this.data = data; + public _FinalStage data(@NotNull RawEventBatchResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/events/types/CreateEventResponse.java b/src/main/java/com/schematic/api/resources/events/types/CreateEventResponse.java index 6e07af9..6460478 100644 --- a/src/main/java/com/schematic/api/resources/events/types/CreateEventResponse.java +++ b/src/main/java/com/schematic/api/resources/events/types/CreateEventResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEventResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(RawEventResponseData data); + _FinalStage data(@NotNull RawEventResponseData data); Builder from(CreateEventResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateEventResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(RawEventResponseData data) { - this.data = data; + public _FinalStage data(@NotNull RawEventResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/events/types/GetEventResponse.java b/src/main/java/com/schematic/api/resources/events/types/GetEventResponse.java index 1759728..8306c7c 100644 --- a/src/main/java/com/schematic/api/resources/events/types/GetEventResponse.java +++ b/src/main/java/com/schematic/api/resources/events/types/GetEventResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetEventResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(EventDetailResponseData data); + _FinalStage data(@NotNull EventDetailResponseData data); Builder from(GetEventResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetEventResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(EventDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull EventDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/events/types/GetEventSummariesResponse.java b/src/main/java/com/schematic/api/resources/events/types/GetEventSummariesResponse.java index a1cfd7a..10ac650 100644 --- a/src/main/java/com/schematic/api/resources/events/types/GetEventSummariesResponse.java +++ b/src/main/java/com/schematic/api/resources/events/types/GetEventSummariesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetEventSummariesResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(GetEventSummariesParams params); + _FinalStage params(@NotNull GetEventSummariesParams params); Builder from(GetEventSummariesResponse other); } @@ -122,8 +123,8 @@ public Builder from(GetEventSummariesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(GetEventSummariesParams params) { - this.params = params; + public _FinalStage params(@NotNull GetEventSummariesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/events/types/GetSegmentIntegrationStatusResponse.java b/src/main/java/com/schematic/api/resources/events/types/GetSegmentIntegrationStatusResponse.java index 6b912cd..9d6cc35 100644 --- a/src/main/java/com/schematic/api/resources/events/types/GetSegmentIntegrationStatusResponse.java +++ b/src/main/java/com/schematic/api/resources/events/types/GetSegmentIntegrationStatusResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetSegmentIntegrationStatusResponse.Builder.class) @@ -79,7 +80,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(SegmentStatusResp data); + _FinalStage data(@NotNull SegmentStatusResp data); Builder from(GetSegmentIntegrationStatusResponse other); } @@ -114,8 +115,8 @@ public Builder from(GetSegmentIntegrationStatusResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(SegmentStatusResp data) { - this.data = data; + public _FinalStage data(@NotNull SegmentStatusResp data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/events/types/ListEventsResponse.java b/src/main/java/com/schematic/api/resources/events/types/ListEventsResponse.java index 67deb27..9bc689d 100644 --- a/src/main/java/com/schematic/api/resources/events/types/ListEventsResponse.java +++ b/src/main/java/com/schematic/api/resources/events/types/ListEventsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListEventsResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListEventsParams params); + _FinalStage params(@NotNull ListEventsParams params); Builder from(ListEventsResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListEventsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListEventsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListEventsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/FeaturesClient.java b/src/main/java/com/schematic/api/resources/features/FeaturesClient.java index fb58660..37ede56 100644 --- a/src/main/java/com/schematic/api/resources/features/FeaturesClient.java +++ b/src/main/java/com/schematic/api/resources/features/FeaturesClient.java @@ -488,10 +488,6 @@ public GetFeatureResponse getFeature(String featureId, RequestOptions requestOpt } } - public UpdateFeatureResponse updateFeature(String featureId) { - return updateFeature(featureId, UpdateFeatureRequestBody.builder().build()); - } - public UpdateFeatureResponse updateFeature(String featureId, UpdateFeatureRequestBody request) { return updateFeature(featureId, request, null); } diff --git a/src/main/java/com/schematic/api/resources/features/requests/CreateFeatureRequestBody.java b/src/main/java/com/schematic/api/resources/features/requests/CreateFeatureRequestBody.java index a175a32..61a7cbe 100644 --- a/src/main/java/com/schematic/api/resources/features/requests/CreateFeatureRequestBody.java +++ b/src/main/java/com/schematic/api/resources/features/requests/CreateFeatureRequestBody.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateFeatureRequestBody.Builder.class) @@ -157,17 +158,17 @@ public static DescriptionStage builder() { } public interface DescriptionStage { - FeatureTypeStage description(String description); + FeatureTypeStage description(@NotNull String description); Builder from(CreateFeatureRequestBody other); } public interface FeatureTypeStage { - NameStage featureType(CreateFeatureRequestBodyFeatureType featureType); + NameStage featureType(@NotNull CreateFeatureRequestBodyFeatureType featureType); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -239,22 +240,22 @@ public Builder from(CreateFeatureRequestBody other) { @java.lang.Override @JsonSetter("description") - public FeatureTypeStage description(String description) { - this.description = description; + public FeatureTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("feature_type") - public NameStage featureType(CreateFeatureRequestBodyFeatureType featureType) { - this.featureType = featureType; + public NameStage featureType(@NotNull CreateFeatureRequestBodyFeatureType featureType) { + this.featureType = Objects.requireNonNull(featureType, "featureType must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CheckFlagResponse.java b/src/main/java/com/schematic/api/resources/features/types/CheckFlagResponse.java index 3c90932..ec66c6b 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CheckFlagResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CheckFlagResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CheckFlagResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CheckFlagResponseData data); + _FinalStage data(@NotNull CheckFlagResponseData data); Builder from(CheckFlagResponse other); } @@ -113,8 +114,8 @@ public Builder from(CheckFlagResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CheckFlagResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CheckFlagResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CheckFlagsResponse.java b/src/main/java/com/schematic/api/resources/features/types/CheckFlagsResponse.java index 1e7b045..d36e92d 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CheckFlagsResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CheckFlagsResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CheckFlagsResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CheckFlagsResponseData data); + _FinalStage data(@NotNull CheckFlagsResponseData data); Builder from(CheckFlagsResponse other); } @@ -113,8 +114,8 @@ public Builder from(CheckFlagsResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CheckFlagsResponseData data) { - this.data = data; + public _FinalStage data(@NotNull CheckFlagsResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CountAudienceCompaniesResponse.java b/src/main/java/com/schematic/api/resources/features/types/CountAudienceCompaniesResponse.java index db3802e..cd11fa2 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CountAudienceCompaniesResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CountAudienceCompaniesResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountAudienceCompaniesResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CountResponse data); + _FinalStage data(@NotNull CountResponse data); Builder from(CountAudienceCompaniesResponse other); } @@ -113,8 +114,8 @@ public Builder from(CountAudienceCompaniesResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CountResponse data) { - this.data = data; + public _FinalStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CountAudienceUsersResponse.java b/src/main/java/com/schematic/api/resources/features/types/CountAudienceUsersResponse.java index 7a9e40a..b0680fd 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CountAudienceUsersResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CountAudienceUsersResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountAudienceUsersResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(CountResponse data); + _FinalStage data(@NotNull CountResponse data); Builder from(CountAudienceUsersResponse other); } @@ -113,8 +114,8 @@ public Builder from(CountAudienceUsersResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(CountResponse data) { - this.data = data; + public _FinalStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CountFeaturesResponse.java b/src/main/java/com/schematic/api/resources/features/types/CountFeaturesResponse.java index bf4abc0..1fa7294 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CountFeaturesResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CountFeaturesResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFeaturesResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountFeaturesResponse other); } public interface ParamsStage { - _FinalStage params(CountFeaturesParams params); + _FinalStage params(@NotNull CountFeaturesParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountFeaturesResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountFeaturesParams params) { - this.params = params; + public _FinalStage params(@NotNull CountFeaturesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CountFlagsResponse.java b/src/main/java/com/schematic/api/resources/features/types/CountFlagsResponse.java index 66bd4b5..8dccb47 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CountFlagsResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CountFlagsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountFlagsResponse.Builder.class) @@ -74,13 +75,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountFlagsResponse other); } public interface ParamsStage { - _FinalStage params(CountFlagsParams params); + _FinalStage params(@NotNull CountFlagsParams params); } public interface _FinalStage { @@ -107,8 +108,8 @@ public Builder from(CountFlagsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -118,8 +119,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountFlagsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountFlagsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CreateFeatureResponse.java b/src/main/java/com/schematic/api/resources/features/types/CreateFeatureResponse.java index 70583f3..df91437 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CreateFeatureResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CreateFeatureResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateFeatureResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(FeatureDetailResponseData data); + _FinalStage data(@NotNull FeatureDetailResponseData data); Builder from(CreateFeatureResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateFeatureResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(FeatureDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull FeatureDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/CreateFlagResponse.java b/src/main/java/com/schematic/api/resources/features/types/CreateFlagResponse.java index 9204679..02da44c 100644 --- a/src/main/java/com/schematic/api/resources/features/types/CreateFlagResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/CreateFlagResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateFlagResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(FlagDetailResponseData data); + _FinalStage data(@NotNull FlagDetailResponseData data); Builder from(CreateFlagResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateFlagResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(FlagDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull FlagDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/DeleteFeatureResponse.java b/src/main/java/com/schematic/api/resources/features/types/DeleteFeatureResponse.java index bbb12bb..a024da0 100644 --- a/src/main/java/com/schematic/api/resources/features/types/DeleteFeatureResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/DeleteFeatureResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteFeatureResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteFeatureResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteFeatureResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/DeleteFlagResponse.java b/src/main/java/com/schematic/api/resources/features/types/DeleteFlagResponse.java index 8008e21..7ac1cf6 100644 --- a/src/main/java/com/schematic/api/resources/features/types/DeleteFlagResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/DeleteFlagResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteFlagResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteFlagResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteFlagResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/GetFeatureResponse.java b/src/main/java/com/schematic/api/resources/features/types/GetFeatureResponse.java index 1c1449c..57d468c 100644 --- a/src/main/java/com/schematic/api/resources/features/types/GetFeatureResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/GetFeatureResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetFeatureResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(FeatureDetailResponseData data); + _FinalStage data(@NotNull FeatureDetailResponseData data); Builder from(GetFeatureResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetFeatureResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(FeatureDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull FeatureDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/GetFlagResponse.java b/src/main/java/com/schematic/api/resources/features/types/GetFlagResponse.java index ef0910f..7f43e7f 100644 --- a/src/main/java/com/schematic/api/resources/features/types/GetFlagResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/GetFlagResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetFlagResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(FlagDetailResponseData data); + _FinalStage data(@NotNull FlagDetailResponseData data); Builder from(GetFlagResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetFlagResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(FlagDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull FlagDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/ListFeaturesResponse.java b/src/main/java/com/schematic/api/resources/features/types/ListFeaturesResponse.java index 7d4d877..5dea4b6 100644 --- a/src/main/java/com/schematic/api/resources/features/types/ListFeaturesResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/ListFeaturesResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFeaturesResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListFeaturesParams params); + _FinalStage params(@NotNull ListFeaturesParams params); Builder from(ListFeaturesResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListFeaturesResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListFeaturesParams params) { - this.params = params; + public _FinalStage params(@NotNull ListFeaturesParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/ListFlagsResponse.java b/src/main/java/com/schematic/api/resources/features/types/ListFlagsResponse.java index 4acb0a6..9c4be7c 100644 --- a/src/main/java/com/schematic/api/resources/features/types/ListFlagsResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/ListFlagsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListFlagsResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListFlagsParams params); + _FinalStage params(@NotNull ListFlagsParams params); Builder from(ListFlagsResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListFlagsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListFlagsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListFlagsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/UpdateFeatureResponse.java b/src/main/java/com/schematic/api/resources/features/types/UpdateFeatureResponse.java index 1922979..e5a5aa6 100644 --- a/src/main/java/com/schematic/api/resources/features/types/UpdateFeatureResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/UpdateFeatureResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateFeatureResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(FeatureDetailResponseData data); + _FinalStage data(@NotNull FeatureDetailResponseData data); Builder from(UpdateFeatureResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateFeatureResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(FeatureDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull FeatureDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/UpdateFlagResponse.java b/src/main/java/com/schematic/api/resources/features/types/UpdateFlagResponse.java index 8584e33..a04b275 100644 --- a/src/main/java/com/schematic/api/resources/features/types/UpdateFlagResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/UpdateFlagResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateFlagResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(FlagDetailResponseData data); + _FinalStage data(@NotNull FlagDetailResponseData data); Builder from(UpdateFlagResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateFlagResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(FlagDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull FlagDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/features/types/UpdateFlagRulesResponse.java b/src/main/java/com/schematic/api/resources/features/types/UpdateFlagRulesResponse.java index d578f33..b21c839 100644 --- a/src/main/java/com/schematic/api/resources/features/types/UpdateFlagRulesResponse.java +++ b/src/main/java/com/schematic/api/resources/features/types/UpdateFlagRulesResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateFlagRulesResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(RulesDetailResponseData data); + _FinalStage data(@NotNull RulesDetailResponseData data); Builder from(UpdateFlagRulesResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateFlagRulesResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(RulesDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull RulesDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plangroups/types/CreatePlanGroupResponse.java b/src/main/java/com/schematic/api/resources/plangroups/types/CreatePlanGroupResponse.java index abb896f..8b9e652 100644 --- a/src/main/java/com/schematic/api/resources/plangroups/types/CreatePlanGroupResponse.java +++ b/src/main/java/com/schematic/api/resources/plangroups/types/CreatePlanGroupResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePlanGroupResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanGroupResponseData data); + _FinalStage data(@NotNull PlanGroupResponseData data); Builder from(CreatePlanGroupResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreatePlanGroupResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanGroupResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanGroupResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plangroups/types/GetPlanGroupResponse.java b/src/main/java/com/schematic/api/resources/plangroups/types/GetPlanGroupResponse.java index 25a4d94..562c1e4 100644 --- a/src/main/java/com/schematic/api/resources/plangroups/types/GetPlanGroupResponse.java +++ b/src/main/java/com/schematic/api/resources/plangroups/types/GetPlanGroupResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetPlanGroupResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanGroupDetailResponseData data); + _FinalStage data(@NotNull PlanGroupDetailResponseData data); Builder from(GetPlanGroupResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetPlanGroupResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanGroupDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanGroupDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plangroups/types/UpdatePlanGroupResponse.java b/src/main/java/com/schematic/api/resources/plangroups/types/UpdatePlanGroupResponse.java index 54ed3c4..a2fc7c0 100644 --- a/src/main/java/com/schematic/api/resources/plangroups/types/UpdatePlanGroupResponse.java +++ b/src/main/java/com/schematic/api/resources/plangroups/types/UpdatePlanGroupResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePlanGroupResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanGroupResponseData data); + _FinalStage data(@NotNull PlanGroupResponseData data); Builder from(UpdatePlanGroupResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdatePlanGroupResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanGroupResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanGroupResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/requests/CreatePlanRequestBody.java b/src/main/java/com/schematic/api/resources/plans/requests/CreatePlanRequestBody.java index f75284e..956a385 100644 --- a/src/main/java/com/schematic/api/resources/plans/requests/CreatePlanRequestBody.java +++ b/src/main/java/com/schematic/api/resources/plans/requests/CreatePlanRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePlanRequestBody.Builder.class) @@ -97,17 +98,17 @@ public static DescriptionStage builder() { } public interface DescriptionStage { - NameStage description(String description); + NameStage description(@NotNull String description); Builder from(CreatePlanRequestBody other); } public interface NameStage { - PlanTypeStage name(String name); + PlanTypeStage name(@NotNull String name); } public interface PlanTypeStage { - _FinalStage planType(CreatePlanRequestBodyPlanType planType); + _FinalStage planType(@NotNull CreatePlanRequestBodyPlanType planType); } public interface _FinalStage { @@ -144,22 +145,22 @@ public Builder from(CreatePlanRequestBody other) { @java.lang.Override @JsonSetter("description") - public NameStage description(String description) { - this.description = description; + public NameStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PlanTypeStage name(String name) { - this.name = name; + public PlanTypeStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("plan_type") - public _FinalStage planType(CreatePlanRequestBodyPlanType planType) { - this.planType = planType; + public _FinalStage planType(@NotNull CreatePlanRequestBodyPlanType planType) { + this.planType = Objects.requireNonNull(planType, "planType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/requests/UpdatePlanRequestBody.java b/src/main/java/com/schematic/api/resources/plans/requests/UpdatePlanRequestBody.java index addcddb..5ebbadf 100644 --- a/src/main/java/com/schematic/api/resources/plans/requests/UpdatePlanRequestBody.java +++ b/src/main/java/com/schematic/api/resources/plans/requests/UpdatePlanRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePlanRequestBody.Builder.class) @@ -84,7 +85,7 @@ public static NameStage builder() { } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); Builder from(UpdatePlanRequestBody other); } @@ -124,8 +125,8 @@ public Builder from(UpdatePlanRequestBody other) { @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/CountPlansResponse.java b/src/main/java/com/schematic/api/resources/plans/types/CountPlansResponse.java index d37eb18..743a1cf 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/CountPlansResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/CountPlansResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountPlansResponse.Builder.class) @@ -74,13 +75,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountPlansResponse other); } public interface ParamsStage { - _FinalStage params(CountPlansParams params); + _FinalStage params(@NotNull CountPlansParams params); } public interface _FinalStage { @@ -107,8 +108,8 @@ public Builder from(CountPlansResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -118,8 +119,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountPlansParams params) { - this.params = params; + public _FinalStage params(@NotNull CountPlansParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/CreatePlanResponse.java b/src/main/java/com/schematic/api/resources/plans/types/CreatePlanResponse.java index c82d6fa..766558c 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/CreatePlanResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/CreatePlanResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreatePlanResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanDetailResponseData data); + _FinalStage data(@NotNull PlanDetailResponseData data); Builder from(CreatePlanResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreatePlanResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/DeleteAudienceResponse.java b/src/main/java/com/schematic/api/resources/plans/types/DeleteAudienceResponse.java index 5e09fbc..79fcd13 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/DeleteAudienceResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/DeleteAudienceResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteAudienceResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteAudienceResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteAudienceResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/DeletePlanResponse.java b/src/main/java/com/schematic/api/resources/plans/types/DeletePlanResponse.java index 9c5ef73..0a82d99 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/DeletePlanResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/DeletePlanResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeletePlanResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeletePlanResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeletePlanResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/GetAudienceResponse.java b/src/main/java/com/schematic/api/resources/plans/types/GetAudienceResponse.java index 26bc94d..3703532 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/GetAudienceResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/GetAudienceResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetAudienceResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanAudienceDetailResponseData data); + _FinalStage data(@NotNull PlanAudienceDetailResponseData data); Builder from(GetAudienceResponse other); } @@ -115,8 +116,8 @@ public Builder from(GetAudienceResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanAudienceDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanAudienceDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/GetPlanResponse.java b/src/main/java/com/schematic/api/resources/plans/types/GetPlanResponse.java index 35bcfa8..080f857 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/GetPlanResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/GetPlanResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetPlanResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanDetailResponseData data); + _FinalStage data(@NotNull PlanDetailResponseData data); Builder from(GetPlanResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetPlanResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/ListPlansResponse.java b/src/main/java/com/schematic/api/resources/plans/types/ListPlansResponse.java index c382db5..7b0ea90 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/ListPlansResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/ListPlansResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListPlansResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListPlansParams params); + _FinalStage params(@NotNull ListPlansParams params); Builder from(ListPlansResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListPlansResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListPlansParams params) { - this.params = params; + public _FinalStage params(@NotNull ListPlansParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/UpdateAudienceResponse.java b/src/main/java/com/schematic/api/resources/plans/types/UpdateAudienceResponse.java index 1339e33..c52de62 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/UpdateAudienceResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/UpdateAudienceResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateAudienceResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanAudienceDetailResponseData data); + _FinalStage data(@NotNull PlanAudienceDetailResponseData data); Builder from(UpdateAudienceResponse other); } @@ -115,8 +116,8 @@ public Builder from(UpdateAudienceResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanAudienceDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanAudienceDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/UpdatePlanResponse.java b/src/main/java/com/schematic/api/resources/plans/types/UpdatePlanResponse.java index f37a5d0..3b73e34 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/UpdatePlanResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/UpdatePlanResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePlanResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(PlanDetailResponseData data); + _FinalStage data(@NotNull PlanDetailResponseData data); Builder from(UpdatePlanResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdatePlanResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(PlanDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull PlanDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/plans/types/UpsertBillingProductPlanResponse.java b/src/main/java/com/schematic/api/resources/plans/types/UpsertBillingProductPlanResponse.java index 0fbd536..75c65a5 100644 --- a/src/main/java/com/schematic/api/resources/plans/types/UpsertBillingProductPlanResponse.java +++ b/src/main/java/com/schematic/api/resources/plans/types/UpsertBillingProductPlanResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertBillingProductPlanResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(BillingProductPlanResponseData data); + _FinalStage data(@NotNull BillingProductPlanResponseData data); Builder from(UpsertBillingProductPlanResponse other); } @@ -115,8 +116,8 @@ public Builder from(UpsertBillingProductPlanResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(BillingProductPlanResponseData data) { - this.data = data; + public _FinalStage data(@NotNull BillingProductPlanResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/WebhooksClient.java b/src/main/java/com/schematic/api/resources/webhooks/WebhooksClient.java index eaf41be..3106edf 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/WebhooksClient.java +++ b/src/main/java/com/schematic/api/resources/webhooks/WebhooksClient.java @@ -418,10 +418,6 @@ public GetWebhookResponse getWebhook(String webhookId, RequestOptions requestOpt } } - public UpdateWebhookResponse updateWebhook(String webhookId) { - return updateWebhook(webhookId, UpdateWebhookRequestBody.builder().build()); - } - public UpdateWebhookResponse updateWebhook(String webhookId, UpdateWebhookRequestBody request) { return updateWebhook(webhookId, request, null); } diff --git a/src/main/java/com/schematic/api/resources/webhooks/requests/CreateWebhookRequestBody.java b/src/main/java/com/schematic/api/resources/webhooks/requests/CreateWebhookRequestBody.java index 67470cc..5a2879d 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/requests/CreateWebhookRequestBody.java +++ b/src/main/java/com/schematic/api/resources/webhooks/requests/CreateWebhookRequestBody.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateWebhookRequestBody.Builder.class) @@ -86,13 +87,13 @@ public static NameStage builder() { } public interface NameStage { - UrlStage name(String name); + UrlStage name(@NotNull String name); Builder from(CreateWebhookRequestBody other); } public interface UrlStage { - _FinalStage url(String url); + _FinalStage url(@NotNull String url); } public interface _FinalStage { @@ -128,15 +129,15 @@ public Builder from(CreateWebhookRequestBody other) { @java.lang.Override @JsonSetter("name") - public UrlStage name(String name) { - this.name = name; + public UrlStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("url") - public _FinalStage url(String url) { - this.url = url; + public _FinalStage url(@NotNull String url) { + this.url = Objects.requireNonNull(url, "url must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhookEventsResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhookEventsResponse.java index 95f2ea3..2ff91c6 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhookEventsResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhookEventsResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountWebhookEventsResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountWebhookEventsResponse other); } public interface ParamsStage { - _FinalStage params(CountWebhookEventsParams params); + _FinalStage params(@NotNull CountWebhookEventsParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountWebhookEventsResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountWebhookEventsParams params) { - this.params = params; + public _FinalStage params(@NotNull CountWebhookEventsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhooksResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhooksResponse.java index 3b377b8..976383e 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhooksResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/CountWebhooksResponse.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CountWebhooksResponse.Builder.class) @@ -75,13 +76,13 @@ public static DataStage builder() { } public interface DataStage { - ParamsStage data(CountResponse data); + ParamsStage data(@NotNull CountResponse data); Builder from(CountWebhooksResponse other); } public interface ParamsStage { - _FinalStage params(CountWebhooksParams params); + _FinalStage params(@NotNull CountWebhooksParams params); } public interface _FinalStage { @@ -108,8 +109,8 @@ public Builder from(CountWebhooksResponse other) { @java.lang.Override @JsonSetter("data") - public ParamsStage data(CountResponse data) { - this.data = data; + public ParamsStage data(@NotNull CountResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } @@ -119,8 +120,8 @@ public ParamsStage data(CountResponse data) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(CountWebhooksParams params) { - this.params = params; + public _FinalStage params(@NotNull CountWebhooksParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/CreateWebhookResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/CreateWebhookResponse.java index 4a878bd..0591e7f 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/CreateWebhookResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/CreateWebhookResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateWebhookResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(WebhookResponseData data); + _FinalStage data(@NotNull WebhookResponseData data); Builder from(CreateWebhookResponse other); } @@ -113,8 +114,8 @@ public Builder from(CreateWebhookResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(WebhookResponseData data) { - this.data = data; + public _FinalStage data(@NotNull WebhookResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/DeleteWebhookResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/DeleteWebhookResponse.java index 9ebf0a9..5f17a05 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/DeleteWebhookResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/DeleteWebhookResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = DeleteWebhookResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(DeleteResponse data); + _FinalStage data(@NotNull DeleteResponse data); Builder from(DeleteWebhookResponse other); } @@ -113,8 +114,8 @@ public Builder from(DeleteWebhookResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(DeleteResponse data) { - this.data = data; + public _FinalStage data(@NotNull DeleteResponse data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookEventResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookEventResponse.java index c243e58..90a37f4 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookEventResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookEventResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetWebhookEventResponse.Builder.class) @@ -80,7 +81,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(WebhookEventDetailResponseData data); + _FinalStage data(@NotNull WebhookEventDetailResponseData data); Builder from(GetWebhookEventResponse other); } @@ -115,8 +116,8 @@ public Builder from(GetWebhookEventResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(WebhookEventDetailResponseData data) { - this.data = data; + public _FinalStage data(@NotNull WebhookEventDetailResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookResponse.java index db9c4c8..d2b127d 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/GetWebhookResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GetWebhookResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(WebhookResponseData data); + _FinalStage data(@NotNull WebhookResponseData data); Builder from(GetWebhookResponse other); } @@ -113,8 +114,8 @@ public Builder from(GetWebhookResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(WebhookResponseData data) { - this.data = data; + public _FinalStage data(@NotNull WebhookResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhookEventsResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhookEventsResponse.java index 79176f1..4d98046 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhookEventsResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhookEventsResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListWebhookEventsResponse.Builder.class) @@ -83,7 +84,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListWebhookEventsParams params); + _FinalStage params(@NotNull ListWebhookEventsParams params); Builder from(ListWebhookEventsResponse other); } @@ -122,8 +123,8 @@ public Builder from(ListWebhookEventsResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListWebhookEventsParams params) { - this.params = params; + public _FinalStage params(@NotNull ListWebhookEventsParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhooksResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhooksResponse.java index f86c472..8144ec8 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhooksResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/ListWebhooksResponse.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListWebhooksResponse.Builder.class) @@ -81,7 +82,7 @@ public static ParamsStage builder() { } public interface ParamsStage { - _FinalStage params(ListWebhooksParams params); + _FinalStage params(@NotNull ListWebhooksParams params); Builder from(ListWebhooksResponse other); } @@ -120,8 +121,8 @@ public Builder from(ListWebhooksResponse other) { */ @java.lang.Override @JsonSetter("params") - public _FinalStage params(ListWebhooksParams params) { - this.params = params; + public _FinalStage params(@NotNull ListWebhooksParams params) { + this.params = Objects.requireNonNull(params, "params must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/resources/webhooks/types/UpdateWebhookResponse.java b/src/main/java/com/schematic/api/resources/webhooks/types/UpdateWebhookResponse.java index 6314bb1..9f94716 100644 --- a/src/main/java/com/schematic/api/resources/webhooks/types/UpdateWebhookResponse.java +++ b/src/main/java/com/schematic/api/resources/webhooks/types/UpdateWebhookResponse.java @@ -18,6 +18,7 @@ import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateWebhookResponse.Builder.class) @@ -78,7 +79,7 @@ public static DataStage builder() { } public interface DataStage { - _FinalStage data(WebhookResponseData data); + _FinalStage data(@NotNull WebhookResponseData data); Builder from(UpdateWebhookResponse other); } @@ -113,8 +114,8 @@ public Builder from(UpdateWebhookResponse other) { @java.lang.Override @JsonSetter("data") - public _FinalStage data(WebhookResponseData data) { - this.data = data; + public _FinalStage data(@NotNull WebhookResponseData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ApiError.java b/src/main/java/com/schematic/api/types/ApiError.java index 5d17d52..5643bf1 100644 --- a/src/main/java/com/schematic/api/types/ApiError.java +++ b/src/main/java/com/schematic/api/types/ApiError.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ApiError.Builder.class) @@ -65,7 +66,7 @@ public static ErrorStage builder() { } public interface ErrorStage { - _FinalStage error(String error); + _FinalStage error(@NotNull String error); Builder from(ApiError other); } @@ -95,8 +96,8 @@ public Builder from(ApiError other) { */ @java.lang.Override @JsonSetter("error") - public _FinalStage error(String error) { - this.error = error; + public _FinalStage error(@NotNull String error) { + this.error = Objects.requireNonNull(error, "error must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ApiKeyCreateResponseData.java b/src/main/java/com/schematic/api/types/ApiKeyCreateResponseData.java index ba098c9..f503e7b 100644 --- a/src/main/java/com/schematic/api/types/ApiKeyCreateResponseData.java +++ b/src/main/java/com/schematic/api/types/ApiKeyCreateResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ApiKeyCreateResponseData.Builder.class) @@ -158,25 +159,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(ApiKeyCreateResponseData other); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - SecretStage name(String name); + SecretStage name(@NotNull String name); } public interface SecretStage { - UpdatedAtStage secret(String secret); + UpdatedAtStage secret(@NotNull String secret); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -243,36 +244,36 @@ public Builder from(ApiKeyCreateResponseData other) { @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public SecretStage name(String name) { - this.name = name; + public SecretStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("secret") - public UpdatedAtStage secret(String secret) { - this.secret = secret; + public UpdatedAtStage secret(@NotNull String secret) { + this.secret = Objects.requireNonNull(secret, "secret must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ApiKeyRequestListResponseData.java b/src/main/java/com/schematic/api/types/ApiKeyRequestListResponseData.java index 4ec0490..24516fe 100644 --- a/src/main/java/com/schematic/api/types/ApiKeyRequestListResponseData.java +++ b/src/main/java/com/schematic/api/types/ApiKeyRequestListResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ApiKeyRequestListResponseData.Builder.class) @@ -233,25 +234,25 @@ public static ApiKeyIdStage builder() { } public interface ApiKeyIdStage { - IdStage apiKeyId(String apiKeyId); + IdStage apiKeyId(@NotNull String apiKeyId); Builder from(ApiKeyRequestListResponseData other); } public interface IdStage { - MethodStage id(String id); + MethodStage id(@NotNull String id); } public interface MethodStage { - StartedAtStage method(String method); + StartedAtStage method(@NotNull String method); } public interface StartedAtStage { - UrlStage startedAt(OffsetDateTime startedAt); + UrlStage startedAt(@NotNull OffsetDateTime startedAt); } public interface UrlStage { - _FinalStage url(String url); + _FinalStage url(@NotNull String url); } public interface _FinalStage { @@ -365,36 +366,36 @@ public Builder from(ApiKeyRequestListResponseData other) { @java.lang.Override @JsonSetter("api_key_id") - public IdStage apiKeyId(String apiKeyId) { - this.apiKeyId = apiKeyId; + public IdStage apiKeyId(@NotNull String apiKeyId) { + this.apiKeyId = Objects.requireNonNull(apiKeyId, "apiKeyId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public MethodStage id(String id) { - this.id = id; + public MethodStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("method") - public StartedAtStage method(String method) { - this.method = method; + public StartedAtStage method(@NotNull String method) { + this.method = Objects.requireNonNull(method, "method must not be null"); return this; } @java.lang.Override @JsonSetter("started_at") - public UrlStage startedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; + public UrlStage startedAt(@NotNull OffsetDateTime startedAt) { + this.startedAt = Objects.requireNonNull(startedAt, "startedAt must not be null"); return this; } @java.lang.Override @JsonSetter("url") - public _FinalStage url(String url) { - this.url = url; + public _FinalStage url(@NotNull String url) { + this.url = Objects.requireNonNull(url, "url must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ApiKeyRequestResponseData.java b/src/main/java/com/schematic/api/types/ApiKeyRequestResponseData.java index 4b75220..1b6ff57 100644 --- a/src/main/java/com/schematic/api/types/ApiKeyRequestResponseData.java +++ b/src/main/java/com/schematic/api/types/ApiKeyRequestResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ApiKeyRequestResponseData.Builder.class) @@ -266,25 +267,25 @@ public static ApiKeyIdStage builder() { } public interface ApiKeyIdStage { - IdStage apiKeyId(String apiKeyId); + IdStage apiKeyId(@NotNull String apiKeyId); Builder from(ApiKeyRequestResponseData other); } public interface IdStage { - MethodStage id(String id); + MethodStage id(@NotNull String id); } public interface MethodStage { - StartedAtStage method(String method); + StartedAtStage method(@NotNull String method); } public interface StartedAtStage { - UrlStage startedAt(OffsetDateTime startedAt); + UrlStage startedAt(@NotNull OffsetDateTime startedAt); } public interface UrlStage { - _FinalStage url(String url); + _FinalStage url(@NotNull String url); } public interface _FinalStage { @@ -419,36 +420,36 @@ public Builder from(ApiKeyRequestResponseData other) { @java.lang.Override @JsonSetter("api_key_id") - public IdStage apiKeyId(String apiKeyId) { - this.apiKeyId = apiKeyId; + public IdStage apiKeyId(@NotNull String apiKeyId) { + this.apiKeyId = Objects.requireNonNull(apiKeyId, "apiKeyId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public MethodStage id(String id) { - this.id = id; + public MethodStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("method") - public StartedAtStage method(String method) { - this.method = method; + public StartedAtStage method(@NotNull String method) { + this.method = Objects.requireNonNull(method, "method must not be null"); return this; } @java.lang.Override @JsonSetter("started_at") - public UrlStage startedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; + public UrlStage startedAt(@NotNull OffsetDateTime startedAt) { + this.startedAt = Objects.requireNonNull(startedAt, "startedAt must not be null"); return this; } @java.lang.Override @JsonSetter("url") - public _FinalStage url(String url) { - this.url = url; + public _FinalStage url(@NotNull String url) { + this.url = Objects.requireNonNull(url, "url must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ApiKeyResponseData.java b/src/main/java/com/schematic/api/types/ApiKeyResponseData.java index 6d307b9..80a1f55 100644 --- a/src/main/java/com/schematic/api/types/ApiKeyResponseData.java +++ b/src/main/java/com/schematic/api/types/ApiKeyResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ApiKeyResponseData.Builder.class) @@ -147,21 +148,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(ApiKeyResponseData other); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -224,29 +225,29 @@ public Builder from(ApiKeyResponseData other) { @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingCouponResponseData.java b/src/main/java/com/schematic/api/types/BillingCouponResponseData.java index bcfa1ac..bc30aa3 100644 --- a/src/main/java/com/schematic/api/types/BillingCouponResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingCouponResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingCouponResponseData.Builder.class) @@ -235,21 +236,21 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - EnvironmentIdStage accountId(String accountId); + EnvironmentIdStage accountId(@NotNull String accountId); Builder from(BillingCouponResponseData other); } public interface EnvironmentIdStage { - ExternalIdStage environmentId(String environmentId); + ExternalIdStage environmentId(@NotNull String environmentId); } public interface ExternalIdStage { - IdStage externalId(String externalId); + IdStage externalId(@NotNull String externalId); } public interface IdStage { - IsActiveStage id(String id); + IsActiveStage id(@NotNull String id); } public interface IsActiveStage { @@ -257,7 +258,7 @@ public interface IsActiveStage { } public interface NameStage { - TimesRedeemedStage name(String name); + TimesRedeemedStage name(@NotNull String name); } public interface TimesRedeemedStage { @@ -376,29 +377,29 @@ public Builder from(BillingCouponResponseData other) { @java.lang.Override @JsonSetter("account_id") - public EnvironmentIdStage accountId(String accountId) { - this.accountId = accountId; + public EnvironmentIdStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExternalIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExternalIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public IdStage externalId(String externalId) { - this.externalId = externalId; + public IdStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IsActiveStage id(String id) { - this.id = id; + public IsActiveStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @@ -411,8 +412,8 @@ public NameStage isActive(boolean isActive) { @java.lang.Override @JsonSetter("name") - public TimesRedeemedStage name(String name) { - this.name = name; + public TimesRedeemedStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingCustomerResponseData.java b/src/main/java/com/schematic/api/types/BillingCustomerResponseData.java index 54d7484..7743261 100644 --- a/src/main/java/com/schematic/api/types/BillingCustomerResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingCustomerResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingCustomerResponseData.Builder.class) @@ -145,13 +146,13 @@ public static EmailStage builder() { } public interface EmailStage { - ExternalIdStage email(String email); + ExternalIdStage email(@NotNull String email); Builder from(BillingCustomerResponseData other); } public interface ExternalIdStage { - FailedToImportStage externalId(String externalId); + FailedToImportStage externalId(@NotNull String externalId); } public interface FailedToImportStage { @@ -159,15 +160,15 @@ public interface FailedToImportStage { } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -227,15 +228,15 @@ public Builder from(BillingCustomerResponseData other) { @java.lang.Override @JsonSetter("email") - public ExternalIdStage email(String email) { - this.email = email; + public ExternalIdStage email(@NotNull String email) { + this.email = Objects.requireNonNull(email, "email must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public FailedToImportStage externalId(String externalId) { - this.externalId = externalId; + public FailedToImportStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @@ -248,22 +249,22 @@ public IdStage failedToImport(boolean failedToImport) { @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingCustomerSubscription.java b/src/main/java/com/schematic/api/types/BillingCustomerSubscription.java index 6e6684e..21b304d 100644 --- a/src/main/java/com/schematic/api/types/BillingCustomerSubscription.java +++ b/src/main/java/com/schematic/api/types/BillingCustomerSubscription.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingCustomerSubscription.Builder.class) @@ -118,13 +119,13 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - IntervalStage currency(String currency); + IntervalStage currency(@NotNull String currency); Builder from(BillingCustomerSubscription other); } public interface IntervalStage { - MeteredUsageStage interval(String interval); + MeteredUsageStage interval(@NotNull String interval); } public interface MeteredUsageStage { @@ -185,15 +186,15 @@ public Builder from(BillingCustomerSubscription other) { @java.lang.Override @JsonSetter("currency") - public IntervalStage currency(String currency) { - this.currency = currency; + public IntervalStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public MeteredUsageStage interval(String interval) { - this.interval = interval; + public MeteredUsageStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingCustomerWithSubscriptionsResponseData.java b/src/main/java/com/schematic/api/types/BillingCustomerWithSubscriptionsResponseData.java index d152232..633ed57 100644 --- a/src/main/java/com/schematic/api/types/BillingCustomerWithSubscriptionsResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingCustomerWithSubscriptionsResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingCustomerWithSubscriptionsResponseData.Builder.class) @@ -159,13 +160,13 @@ public static EmailStage builder() { } public interface EmailStage { - ExternalIdStage email(String email); + ExternalIdStage email(@NotNull String email); Builder from(BillingCustomerWithSubscriptionsResponseData other); } public interface ExternalIdStage { - FailedToImportStage externalId(String externalId); + FailedToImportStage externalId(@NotNull String externalId); } public interface FailedToImportStage { @@ -173,15 +174,15 @@ public interface FailedToImportStage { } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -250,15 +251,15 @@ public Builder from(BillingCustomerWithSubscriptionsResponseData other) { @java.lang.Override @JsonSetter("email") - public ExternalIdStage email(String email) { - this.email = email; + public ExternalIdStage email(@NotNull String email) { + this.email = Objects.requireNonNull(email, "email must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public FailedToImportStage externalId(String externalId) { - this.externalId = externalId; + public FailedToImportStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @@ -271,22 +272,22 @@ public IdStage failedToImport(boolean failedToImport) { @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingMeterResponseData.java b/src/main/java/com/schematic/api/types/BillingMeterResponseData.java index 61e01ca..3bb90ff 100644 --- a/src/main/java/com/schematic/api/types/BillingMeterResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingMeterResponseData.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingMeterResponseData.Builder.class) @@ -104,25 +105,25 @@ public static DispalyNameStage builder() { } public interface DispalyNameStage { - EventNameStage dispalyName(String dispalyName); + EventNameStage dispalyName(@NotNull String dispalyName); Builder from(BillingMeterResponseData other); } public interface EventNameStage { - EventPayloadKeyStage eventName(String eventName); + EventPayloadKeyStage eventName(@NotNull String eventName); } public interface EventPayloadKeyStage { - ExternalPriceIdStage eventPayloadKey(String eventPayloadKey); + ExternalPriceIdStage eventPayloadKey(@NotNull String eventPayloadKey); } public interface ExternalPriceIdStage { - IdStage externalPriceId(String externalPriceId); + IdStage externalPriceId(@NotNull String externalPriceId); } public interface IdStage { - _FinalStage id(String id); + _FinalStage id(@NotNull String id); } public interface _FinalStage { @@ -164,36 +165,36 @@ public Builder from(BillingMeterResponseData other) { @java.lang.Override @JsonSetter("dispaly_name") - public EventNameStage dispalyName(String dispalyName) { - this.dispalyName = dispalyName; + public EventNameStage dispalyName(@NotNull String dispalyName) { + this.dispalyName = Objects.requireNonNull(dispalyName, "dispalyName must not be null"); return this; } @java.lang.Override @JsonSetter("event_name") - public EventPayloadKeyStage eventName(String eventName) { - this.eventName = eventName; + public EventPayloadKeyStage eventName(@NotNull String eventName) { + this.eventName = Objects.requireNonNull(eventName, "eventName must not be null"); return this; } @java.lang.Override @JsonSetter("event_payload_key") - public ExternalPriceIdStage eventPayloadKey(String eventPayloadKey) { - this.eventPayloadKey = eventPayloadKey; + public ExternalPriceIdStage eventPayloadKey(@NotNull String eventPayloadKey) { + this.eventPayloadKey = Objects.requireNonNull(eventPayloadKey, "eventPayloadKey must not be null"); return this; } @java.lang.Override @JsonSetter("external_price_id") - public IdStage externalPriceId(String externalPriceId) { - this.externalPriceId = externalPriceId; + public IdStage externalPriceId(@NotNull String externalPriceId) { + this.externalPriceId = Objects.requireNonNull(externalPriceId, "externalPriceId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public _FinalStage id(String id) { - this.id = id; + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingPriceResponseData.java b/src/main/java/com/schematic/api/types/BillingPriceResponseData.java index f8074be..9193142 100644 --- a/src/main/java/com/schematic/api/types/BillingPriceResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingPriceResponseData.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingPriceResponseData.Builder.class) @@ -104,21 +105,21 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - ExternalPriceIdStage currency(String currency); + ExternalPriceIdStage currency(@NotNull String currency); Builder from(BillingPriceResponseData other); } public interface ExternalPriceIdStage { - IdStage externalPriceId(String externalPriceId); + IdStage externalPriceId(@NotNull String externalPriceId); } public interface IdStage { - IntervalStage id(String id); + IntervalStage id(@NotNull String id); } public interface IntervalStage { - PriceStage interval(String interval); + PriceStage interval(@NotNull String interval); } public interface PriceStage { @@ -159,29 +160,29 @@ public Builder from(BillingPriceResponseData other) { @java.lang.Override @JsonSetter("currency") - public ExternalPriceIdStage currency(String currency) { - this.currency = currency; + public ExternalPriceIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("external_price_id") - public IdStage externalPriceId(String externalPriceId) { - this.externalPriceId = externalPriceId; + public IdStage externalPriceId(@NotNull String externalPriceId) { + this.externalPriceId = Objects.requireNonNull(externalPriceId, "externalPriceId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IntervalStage id(String id) { - this.id = id; + public IntervalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PriceStage interval(String interval) { - this.interval = interval; + public PriceStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingPriceView.java b/src/main/java/com/schematic/api/types/BillingPriceView.java index 4f5f9e0..fa589f2 100644 --- a/src/main/java/com/schematic/api/types/BillingPriceView.java +++ b/src/main/java/com/schematic/api/types/BillingPriceView.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingPriceView.Builder.class) @@ -200,21 +201,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(BillingPriceView other); } public interface CurrencyStage { - IdStage currency(String currency); + IdStage currency(@NotNull String currency); } public interface IdStage { - IntervalStage id(String id); + IntervalStage id(@NotNull String id); } public interface IntervalStage { - PriceStage interval(String interval); + PriceStage interval(@NotNull String interval); } public interface PriceStage { @@ -222,31 +223,31 @@ public interface PriceStage { } public interface PriceExternalIdStage { - PriceIdStage priceExternalId(String priceExternalId); + PriceIdStage priceExternalId(@NotNull String priceExternalId); } public interface PriceIdStage { - ProductExternalIdStage priceId(String priceId); + ProductExternalIdStage priceId(@NotNull String priceId); } public interface ProductExternalIdStage { - ProductIdStage productExternalId(String productExternalId); + ProductIdStage productExternalId(@NotNull String productExternalId); } public interface ProductIdStage { - ProductNameStage productId(String productId); + ProductNameStage productId(@NotNull String productId); } public interface ProductNameStage { - UpdatedAtStage productName(String productName); + UpdatedAtStage productName(@NotNull String productName); } public interface UpdatedAtStage { - UsageTypeStage updatedAt(OffsetDateTime updatedAt); + UsageTypeStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UsageTypeStage { - _FinalStage usageType(String usageType); + _FinalStage usageType(@NotNull String usageType); } public interface _FinalStage { @@ -323,29 +324,29 @@ public Builder from(BillingPriceView other) { @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public IdStage currency(String currency) { - this.currency = currency; + public IdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IntervalStage id(String id) { - this.id = id; + public IntervalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PriceStage interval(String interval) { - this.interval = interval; + public PriceStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @@ -358,50 +359,50 @@ public PriceExternalIdStage price(int price) { @java.lang.Override @JsonSetter("price_external_id") - public PriceIdStage priceExternalId(String priceExternalId) { - this.priceExternalId = priceExternalId; + public PriceIdStage priceExternalId(@NotNull String priceExternalId) { + this.priceExternalId = Objects.requireNonNull(priceExternalId, "priceExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("price_id") - public ProductExternalIdStage priceId(String priceId) { - this.priceId = priceId; + public ProductExternalIdStage priceId(@NotNull String priceId) { + this.priceId = Objects.requireNonNull(priceId, "priceId must not be null"); return this; } @java.lang.Override @JsonSetter("product_external_id") - public ProductIdStage productExternalId(String productExternalId) { - this.productExternalId = productExternalId; + public ProductIdStage productExternalId(@NotNull String productExternalId) { + this.productExternalId = Objects.requireNonNull(productExternalId, "productExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("product_id") - public ProductNameStage productId(String productId) { - this.productId = productId; + public ProductNameStage productId(@NotNull String productId) { + this.productId = Objects.requireNonNull(productId, "productId must not be null"); return this; } @java.lang.Override @JsonSetter("product_name") - public UpdatedAtStage productName(String productName) { - this.productName = productName; + public UpdatedAtStage productName(@NotNull String productName) { + this.productName = Objects.requireNonNull(productName, "productName must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UsageTypeStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UsageTypeStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("usage_type") - public _FinalStage usageType(String usageType) { - this.usageType = usageType; + public _FinalStage usageType(@NotNull String usageType) { + this.usageType = Objects.requireNonNull(usageType, "usageType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingProductDetailResponseData.java b/src/main/java/com/schematic/api/types/BillingProductDetailResponseData.java index 55b7ec1..b10e3f1 100644 --- a/src/main/java/com/schematic/api/types/BillingProductDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingProductDetailResponseData.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingProductDetailResponseData.Builder.class) @@ -179,29 +180,29 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - CreatedAtStage accountId(String accountId); + CreatedAtStage accountId(@NotNull String accountId); Builder from(BillingProductDetailResponseData other); } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); } public interface CurrencyStage { - EnvironmentIdStage currency(String currency); + EnvironmentIdStage currency(@NotNull String currency); } public interface EnvironmentIdStage { - ExternalIdStage environmentId(String environmentId); + ExternalIdStage environmentId(@NotNull String environmentId); } public interface ExternalIdStage { - NameStage externalId(String externalId); + NameStage externalId(@NotNull String externalId); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { @@ -209,7 +210,7 @@ public interface PriceStage { } public interface ProductIdStage { - QuantityStage productId(String productId); + QuantityStage productId(@NotNull String productId); } public interface QuantityStage { @@ -217,7 +218,7 @@ public interface QuantityStage { } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -288,43 +289,43 @@ public Builder from(BillingProductDetailResponseData other) { @java.lang.Override @JsonSetter("account_id") - public CreatedAtStage accountId(String accountId) { - this.accountId = accountId; + public CreatedAtStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public EnvironmentIdStage currency(String currency) { - this.currency = currency; + public EnvironmentIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExternalIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExternalIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public NameStage externalId(String externalId) { - this.externalId = externalId; + public NameStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -337,8 +338,8 @@ public ProductIdStage price(double price) { @java.lang.Override @JsonSetter("product_id") - public QuantityStage productId(String productId) { - this.productId = productId; + public QuantityStage productId(@NotNull String productId) { + this.productId = Objects.requireNonNull(productId, "productId must not be null"); return this; } @@ -351,8 +352,8 @@ public UpdatedAtStage quantity(double quantity) { @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingProductForSubscriptionResponseData.java b/src/main/java/com/schematic/api/types/BillingProductForSubscriptionResponseData.java index eff8539..7c59f35 100644 --- a/src/main/java/com/schematic/api/types/BillingProductForSubscriptionResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingProductForSubscriptionResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingProductForSubscriptionResponseData.Builder.class) @@ -223,33 +224,33 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(BillingProductForSubscriptionResponseData other); } public interface CurrencyStage { - EnvironmentIdStage currency(String currency); + EnvironmentIdStage currency(@NotNull String currency); } public interface EnvironmentIdStage { - ExternalIdStage environmentId(String environmentId); + ExternalIdStage environmentId(@NotNull String environmentId); } public interface ExternalIdStage { - IdStage externalId(String externalId); + IdStage externalId(@NotNull String externalId); } public interface IdStage { - IntervalStage id(String id); + IntervalStage id(@NotNull String id); } public interface IntervalStage { - NameStage interval(String interval); + NameStage interval(@NotNull String interval); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { @@ -257,11 +258,11 @@ public interface PriceStage { } public interface PriceExternalIdStage { - PriceIdStage priceExternalId(String priceExternalId); + PriceIdStage priceExternalId(@NotNull String priceExternalId); } public interface PriceIdStage { - QuantityStage priceId(String priceId); + QuantityStage priceId(@NotNull String priceId); } public interface QuantityStage { @@ -269,15 +270,15 @@ public interface QuantityStage { } public interface SubscriptionIdStage { - UpdatedAtStage subscriptionId(String subscriptionId); + UpdatedAtStage subscriptionId(@NotNull String subscriptionId); } public interface UpdatedAtStage { - UsageTypeStage updatedAt(OffsetDateTime updatedAt); + UsageTypeStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UsageTypeStage { - _FinalStage usageType(String usageType); + _FinalStage usageType(@NotNull String usageType); } public interface _FinalStage { @@ -362,50 +363,50 @@ public Builder from(BillingProductForSubscriptionResponseData other) { @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public EnvironmentIdStage currency(String currency) { - this.currency = currency; + public EnvironmentIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExternalIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExternalIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public IdStage externalId(String externalId) { - this.externalId = externalId; + public IdStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IntervalStage id(String id) { - this.id = id; + public IntervalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public NameStage interval(String interval) { - this.interval = interval; + public NameStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -418,15 +419,15 @@ public PriceExternalIdStage price(int price) { @java.lang.Override @JsonSetter("price_external_id") - public PriceIdStage priceExternalId(String priceExternalId) { - this.priceExternalId = priceExternalId; + public PriceIdStage priceExternalId(@NotNull String priceExternalId) { + this.priceExternalId = Objects.requireNonNull(priceExternalId, "priceExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("price_id") - public QuantityStage priceId(String priceId) { - this.priceId = priceId; + public QuantityStage priceId(@NotNull String priceId) { + this.priceId = Objects.requireNonNull(priceId, "priceId must not be null"); return this; } @@ -439,22 +440,22 @@ public SubscriptionIdStage quantity(double quantity) { @java.lang.Override @JsonSetter("subscription_id") - public UpdatedAtStage subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; + public UpdatedAtStage subscriptionId(@NotNull String subscriptionId) { + this.subscriptionId = Objects.requireNonNull(subscriptionId, "subscriptionId must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UsageTypeStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UsageTypeStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("usage_type") - public _FinalStage usageType(String usageType) { - this.usageType = usageType; + public _FinalStage usageType(@NotNull String usageType) { + this.usageType = Objects.requireNonNull(usageType, "usageType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingProductPlanResponseData.java b/src/main/java/com/schematic/api/types/BillingProductPlanResponseData.java index ac2f51a..4fa4eff 100644 --- a/src/main/java/com/schematic/api/types/BillingProductPlanResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingProductPlanResponseData.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingProductPlanResponseData.Builder.class) @@ -144,17 +145,17 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - BillingProductIdStage accountId(String accountId); + BillingProductIdStage accountId(@NotNull String accountId); Builder from(BillingProductPlanResponseData other); } public interface BillingProductIdStage { - EnvironmentIdStage billingProductId(String billingProductId); + EnvironmentIdStage billingProductId(@NotNull String billingProductId); } public interface EnvironmentIdStage { - IsTrialableStage environmentId(String environmentId); + IsTrialableStage environmentId(@NotNull String environmentId); } public interface IsTrialableStage { @@ -162,7 +163,7 @@ public interface IsTrialableStage { } public interface PlanIdStage { - _FinalStage planId(String planId); + _FinalStage planId(@NotNull String planId); } public interface _FinalStage { @@ -225,22 +226,22 @@ public Builder from(BillingProductPlanResponseData other) { @java.lang.Override @JsonSetter("account_id") - public BillingProductIdStage accountId(String accountId) { - this.accountId = accountId; + public BillingProductIdStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("billing_product_id") - public EnvironmentIdStage billingProductId(String billingProductId) { - this.billingProductId = billingProductId; + public EnvironmentIdStage billingProductId(@NotNull String billingProductId) { + this.billingProductId = Objects.requireNonNull(billingProductId, "billingProductId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IsTrialableStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IsTrialableStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @@ -253,8 +254,8 @@ public PlanIdStage isTrialable(boolean isTrialable) { @java.lang.Override @JsonSetter("plan_id") - public _FinalStage planId(String planId) { - this.planId = planId; + public _FinalStage planId(@NotNull String planId) { + this.planId = Objects.requireNonNull(planId, "planId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingProductPriceResponseData.java b/src/main/java/com/schematic/api/types/BillingProductPriceResponseData.java index ee3e4dd..5429388 100644 --- a/src/main/java/com/schematic/api/types/BillingProductPriceResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingProductPriceResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingProductPriceResponseData.Builder.class) @@ -167,21 +168,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(BillingProductPriceResponseData other); } public interface CurrencyStage { - IdStage currency(String currency); + IdStage currency(@NotNull String currency); } public interface IdStage { - IntervalStage id(String id); + IntervalStage id(@NotNull String id); } public interface IntervalStage { - PriceStage interval(String interval); + PriceStage interval(@NotNull String interval); } public interface PriceStage { @@ -189,19 +190,19 @@ public interface PriceStage { } public interface PriceExternalIdStage { - ProductExternalIdStage priceExternalId(String priceExternalId); + ProductExternalIdStage priceExternalId(@NotNull String priceExternalId); } public interface ProductExternalIdStage { - UpdatedAtStage productExternalId(String productExternalId); + UpdatedAtStage productExternalId(@NotNull String productExternalId); } public interface UpdatedAtStage { - UsageTypeStage updatedAt(OffsetDateTime updatedAt); + UsageTypeStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UsageTypeStage { - _FinalStage usageType(String usageType); + _FinalStage usageType(@NotNull String usageType); } public interface _FinalStage { @@ -266,29 +267,29 @@ public Builder from(BillingProductPriceResponseData other) { @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public IdStage currency(String currency) { - this.currency = currency; + public IdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IntervalStage id(String id) { - this.id = id; + public IntervalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PriceStage interval(String interval) { - this.interval = interval; + public PriceStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @@ -301,29 +302,29 @@ public PriceExternalIdStage price(int price) { @java.lang.Override @JsonSetter("price_external_id") - public ProductExternalIdStage priceExternalId(String priceExternalId) { - this.priceExternalId = priceExternalId; + public ProductExternalIdStage priceExternalId(@NotNull String priceExternalId) { + this.priceExternalId = Objects.requireNonNull(priceExternalId, "priceExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("product_external_id") - public UpdatedAtStage productExternalId(String productExternalId) { - this.productExternalId = productExternalId; + public UpdatedAtStage productExternalId(@NotNull String productExternalId) { + this.productExternalId = Objects.requireNonNull(productExternalId, "productExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UsageTypeStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UsageTypeStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("usage_type") - public _FinalStage usageType(String usageType) { - this.usageType = usageType; + public _FinalStage usageType(@NotNull String usageType) { + this.usageType = Objects.requireNonNull(usageType, "usageType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingProductPricing.java b/src/main/java/com/schematic/api/types/BillingProductPricing.java index 707f3e9..bf71e36 100644 --- a/src/main/java/com/schematic/api/types/BillingProductPricing.java +++ b/src/main/java/com/schematic/api/types/BillingProductPricing.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingProductPricing.Builder.class) @@ -144,13 +145,13 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - IntervalStage currency(String currency); + IntervalStage currency(@NotNull String currency); Builder from(BillingProductPricing other); } public interface IntervalStage { - PriceStage interval(String interval); + PriceStage interval(@NotNull String interval); } public interface PriceStage { @@ -158,11 +159,11 @@ public interface PriceStage { } public interface PriceExternalIdStage { - ProductExternalIdStage priceExternalId(String priceExternalId); + ProductExternalIdStage priceExternalId(@NotNull String priceExternalId); } public interface ProductExternalIdStage { - QuantityStage productExternalId(String productExternalId); + QuantityStage productExternalId(@NotNull String productExternalId); } public interface QuantityStage { @@ -170,7 +171,7 @@ public interface QuantityStage { } public interface UsageTypeStage { - _FinalStage usageType(String usageType); + _FinalStage usageType(@NotNull String usageType); } public interface _FinalStage { @@ -227,15 +228,15 @@ public Builder from(BillingProductPricing other) { @java.lang.Override @JsonSetter("currency") - public IntervalStage currency(String currency) { - this.currency = currency; + public IntervalStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PriceStage interval(String interval) { - this.interval = interval; + public PriceStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @@ -248,15 +249,15 @@ public PriceExternalIdStage price(int price) { @java.lang.Override @JsonSetter("price_external_id") - public ProductExternalIdStage priceExternalId(String priceExternalId) { - this.priceExternalId = priceExternalId; + public ProductExternalIdStage priceExternalId(@NotNull String priceExternalId) { + this.priceExternalId = Objects.requireNonNull(priceExternalId, "priceExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("product_external_id") - public QuantityStage productExternalId(String productExternalId) { - this.productExternalId = productExternalId; + public QuantityStage productExternalId(@NotNull String productExternalId) { + this.productExternalId = Objects.requireNonNull(productExternalId, "productExternalId must not be null"); return this; } @@ -269,8 +270,8 @@ public UsageTypeStage quantity(int quantity) { @java.lang.Override @JsonSetter("usage_type") - public _FinalStage usageType(String usageType) { - this.usageType = usageType; + public _FinalStage usageType(@NotNull String usageType) { + this.usageType = Objects.requireNonNull(usageType, "usageType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingProductResponseData.java b/src/main/java/com/schematic/api/types/BillingProductResponseData.java index 16364d9..6287eeb 100644 --- a/src/main/java/com/schematic/api/types/BillingProductResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingProductResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingProductResponseData.Builder.class) @@ -165,29 +166,29 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - CreatedAtStage accountId(String accountId); + CreatedAtStage accountId(@NotNull String accountId); Builder from(BillingProductResponseData other); } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); } public interface CurrencyStage { - EnvironmentIdStage currency(String currency); + EnvironmentIdStage currency(@NotNull String currency); } public interface EnvironmentIdStage { - ExternalIdStage environmentId(String environmentId); + ExternalIdStage environmentId(@NotNull String environmentId); } public interface ExternalIdStage { - NameStage externalId(String externalId); + NameStage externalId(@NotNull String externalId); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { @@ -195,7 +196,7 @@ public interface PriceStage { } public interface ProductIdStage { - QuantityStage productId(String productId); + QuantityStage productId(@NotNull String productId); } public interface QuantityStage { @@ -203,7 +204,7 @@ public interface QuantityStage { } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -265,43 +266,43 @@ public Builder from(BillingProductResponseData other) { @java.lang.Override @JsonSetter("account_id") - public CreatedAtStage accountId(String accountId) { - this.accountId = accountId; + public CreatedAtStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public EnvironmentIdStage currency(String currency) { - this.currency = currency; + public EnvironmentIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExternalIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExternalIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public NameStage externalId(String externalId) { - this.externalId = externalId; + public NameStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -314,8 +315,8 @@ public ProductIdStage price(double price) { @java.lang.Override @JsonSetter("product_id") - public QuantityStage productId(String productId) { - this.productId = productId; + public QuantityStage productId(@NotNull String productId) { + this.productId = Objects.requireNonNull(productId, "productId must not be null"); return this; } @@ -328,8 +329,8 @@ public UpdatedAtStage quantity(double quantity) { @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingSubscriptionDiscount.java b/src/main/java/com/schematic/api/types/BillingSubscriptionDiscount.java index 0918305..f770b81 100644 --- a/src/main/java/com/schematic/api/types/BillingSubscriptionDiscount.java +++ b/src/main/java/com/schematic/api/types/BillingSubscriptionDiscount.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingSubscriptionDiscount.Builder.class) @@ -134,13 +135,13 @@ public static CouponExternalIdStage builder() { } public interface CouponExternalIdStage { - ExternalIdStage couponExternalId(String couponExternalId); + ExternalIdStage couponExternalId(@NotNull String couponExternalId); Builder from(BillingSubscriptionDiscount other); } public interface ExternalIdStage { - IsActiveStage externalId(String externalId); + IsActiveStage externalId(@NotNull String externalId); } public interface IsActiveStage { @@ -148,7 +149,7 @@ public interface IsActiveStage { } public interface StartedAtStage { - _FinalStage startedAt(OffsetDateTime startedAt); + _FinalStage startedAt(@NotNull OffsetDateTime startedAt); } public interface _FinalStage { @@ -203,15 +204,15 @@ public Builder from(BillingSubscriptionDiscount other) { @java.lang.Override @JsonSetter("coupon_external_id") - public ExternalIdStage couponExternalId(String couponExternalId) { - this.couponExternalId = couponExternalId; + public ExternalIdStage couponExternalId(@NotNull String couponExternalId) { + this.couponExternalId = Objects.requireNonNull(couponExternalId, "couponExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public IsActiveStage externalId(String externalId) { - this.externalId = externalId; + public IsActiveStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @@ -224,8 +225,8 @@ public StartedAtStage isActive(boolean isActive) { @java.lang.Override @JsonSetter("started_at") - public _FinalStage startedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; + public _FinalStage startedAt(@NotNull OffsetDateTime startedAt) { + this.startedAt = Objects.requireNonNull(startedAt, "startedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingSubscriptionDiscountView.java b/src/main/java/com/schematic/api/types/BillingSubscriptionDiscountView.java index d4205e8..d9c0ed3 100644 --- a/src/main/java/com/schematic/api/types/BillingSubscriptionDiscountView.java +++ b/src/main/java/com/schematic/api/types/BillingSubscriptionDiscountView.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingSubscriptionDiscountView.Builder.class) @@ -211,21 +212,21 @@ public static CouponIdStage builder() { } public interface CouponIdStage { - CouponNameStage couponId(String couponId); + CouponNameStage couponId(@NotNull String couponId); Builder from(BillingSubscriptionDiscountView other); } public interface CouponNameStage { - DiscountExternalIdStage couponName(String couponName); + DiscountExternalIdStage couponName(@NotNull String couponName); } public interface DiscountExternalIdStage { - DurationStage discountExternalId(String discountExternalId); + DurationStage discountExternalId(@NotNull String discountExternalId); } public interface DurationStage { - IsActiveStage duration(String duration); + IsActiveStage duration(@NotNull String duration); } public interface IsActiveStage { @@ -233,11 +234,11 @@ public interface IsActiveStage { } public interface StartedAtStage { - SubscriptionExternalIdStage startedAt(OffsetDateTime startedAt); + SubscriptionExternalIdStage startedAt(@NotNull OffsetDateTime startedAt); } public interface SubscriptionExternalIdStage { - _FinalStage subscriptionExternalId(String subscriptionExternalId); + _FinalStage subscriptionExternalId(@NotNull String subscriptionExternalId); } public interface _FinalStage { @@ -336,29 +337,29 @@ public Builder from(BillingSubscriptionDiscountView other) { @java.lang.Override @JsonSetter("coupon_id") - public CouponNameStage couponId(String couponId) { - this.couponId = couponId; + public CouponNameStage couponId(@NotNull String couponId) { + this.couponId = Objects.requireNonNull(couponId, "couponId must not be null"); return this; } @java.lang.Override @JsonSetter("coupon_name") - public DiscountExternalIdStage couponName(String couponName) { - this.couponName = couponName; + public DiscountExternalIdStage couponName(@NotNull String couponName) { + this.couponName = Objects.requireNonNull(couponName, "couponName must not be null"); return this; } @java.lang.Override @JsonSetter("discount_external_id") - public DurationStage discountExternalId(String discountExternalId) { - this.discountExternalId = discountExternalId; + public DurationStage discountExternalId(@NotNull String discountExternalId) { + this.discountExternalId = Objects.requireNonNull(discountExternalId, "discountExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("duration") - public IsActiveStage duration(String duration) { - this.duration = duration; + public IsActiveStage duration(@NotNull String duration) { + this.duration = Objects.requireNonNull(duration, "duration must not be null"); return this; } @@ -371,15 +372,16 @@ public StartedAtStage isActive(boolean isActive) { @java.lang.Override @JsonSetter("started_at") - public SubscriptionExternalIdStage startedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; + public SubscriptionExternalIdStage startedAt(@NotNull OffsetDateTime startedAt) { + this.startedAt = Objects.requireNonNull(startedAt, "startedAt must not be null"); return this; } @java.lang.Override @JsonSetter("subscription_external_id") - public _FinalStage subscriptionExternalId(String subscriptionExternalId) { - this.subscriptionExternalId = subscriptionExternalId; + public _FinalStage subscriptionExternalId(@NotNull String subscriptionExternalId) { + this.subscriptionExternalId = + Objects.requireNonNull(subscriptionExternalId, "subscriptionExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingSubscriptionResponseData.java b/src/main/java/com/schematic/api/types/BillingSubscriptionResponseData.java index cfb9167..6eec2bd 100644 --- a/src/main/java/com/schematic/api/types/BillingSubscriptionResponseData.java +++ b/src/main/java/com/schematic/api/types/BillingSubscriptionResponseData.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingSubscriptionResponseData.Builder.class) @@ -223,25 +224,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(BillingSubscriptionResponseData other); } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); } public interface CustomerExternalIdStage { - IdStage customerExternalId(String customerExternalId); + IdStage customerExternalId(@NotNull String customerExternalId); } public interface IdStage { - IntervalStage id(String id); + IntervalStage id(@NotNull String id); } public interface IntervalStage { - PeriodEndStage interval(String interval); + PeriodEndStage interval(@NotNull String interval); } public interface PeriodEndStage { @@ -253,11 +254,11 @@ public interface PeriodStartStage { } public interface StatusStage { - SubscriptionExternalIdStage status(String status); + SubscriptionExternalIdStage status(@NotNull String status); } public interface SubscriptionExternalIdStage { - TotalPriceStage subscriptionExternalId(String subscriptionExternalId); + TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId); } public interface TotalPriceStage { @@ -358,36 +359,36 @@ public Builder from(BillingSubscriptionResponseData other) { @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public IdStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public IdStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IntervalStage id(String id) { - this.id = id; + public IntervalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PeriodEndStage interval(String interval) { - this.interval = interval; + public PeriodEndStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @@ -407,15 +408,16 @@ public StatusStage periodStart(int periodStart) { @java.lang.Override @JsonSetter("status") - public SubscriptionExternalIdStage status(String status) { - this.status = status; + public SubscriptionExternalIdStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("subscription_external_id") - public TotalPriceStage subscriptionExternalId(String subscriptionExternalId) { - this.subscriptionExternalId = subscriptionExternalId; + public TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId) { + this.subscriptionExternalId = + Objects.requireNonNull(subscriptionExternalId, "subscriptionExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/BillingSubscriptionView.java b/src/main/java/com/schematic/api/types/BillingSubscriptionView.java index b5a34f8..7a21568 100644 --- a/src/main/java/com/schematic/api/types/BillingSubscriptionView.java +++ b/src/main/java/com/schematic/api/types/BillingSubscriptionView.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = BillingSubscriptionView.Builder.class) @@ -269,25 +270,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(BillingSubscriptionView other); } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); } public interface CustomerExternalIdStage { - IdStage customerExternalId(String customerExternalId); + IdStage customerExternalId(@NotNull String customerExternalId); } public interface IdStage { - IntervalStage id(String id); + IntervalStage id(@NotNull String id); } public interface IntervalStage { - PeriodEndStage interval(String interval); + PeriodEndStage interval(@NotNull String interval); } public interface PeriodEndStage { @@ -299,11 +300,11 @@ public interface PeriodStartStage { } public interface StatusStage { - SubscriptionExternalIdStage status(String status); + SubscriptionExternalIdStage status(@NotNull String status); } public interface SubscriptionExternalIdStage { - TotalPriceStage subscriptionExternalId(String subscriptionExternalId); + TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId); } public interface TotalPriceStage { @@ -436,36 +437,36 @@ public Builder from(BillingSubscriptionView other) { @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public IdStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public IdStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IntervalStage id(String id) { - this.id = id; + public IntervalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public PeriodEndStage interval(String interval) { - this.interval = interval; + public PeriodEndStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @@ -485,15 +486,16 @@ public StatusStage periodStart(int periodStart) { @java.lang.Override @JsonSetter("status") - public SubscriptionExternalIdStage status(String status) { - this.status = status; + public SubscriptionExternalIdStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("subscription_external_id") - public TotalPriceStage subscriptionExternalId(String subscriptionExternalId) { - this.subscriptionExternalId = subscriptionExternalId; + public TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId) { + this.subscriptionExternalId = + Objects.requireNonNull(subscriptionExternalId, "subscriptionExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ChangeSubscriptionInternalRequestBody.java b/src/main/java/com/schematic/api/types/ChangeSubscriptionInternalRequestBody.java index 8262d59..06aa99d 100644 --- a/src/main/java/com/schematic/api/types/ChangeSubscriptionInternalRequestBody.java +++ b/src/main/java/com/schematic/api/types/ChangeSubscriptionInternalRequestBody.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ChangeSubscriptionInternalRequestBody.Builder.class) @@ -136,17 +137,17 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - NewPlanIdStage companyId(String companyId); + NewPlanIdStage companyId(@NotNull String companyId); Builder from(ChangeSubscriptionInternalRequestBody other); } public interface NewPlanIdStage { - NewPriceIdStage newPlanId(String newPlanId); + NewPriceIdStage newPlanId(@NotNull String newPlanId); } public interface NewPriceIdStage { - _FinalStage newPriceId(String newPriceId); + _FinalStage newPriceId(@NotNull String newPriceId); } public interface _FinalStage { @@ -208,22 +209,22 @@ public Builder from(ChangeSubscriptionInternalRequestBody other) { @java.lang.Override @JsonSetter("company_id") - public NewPlanIdStage companyId(String companyId) { - this.companyId = companyId; + public NewPlanIdStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("new_plan_id") - public NewPriceIdStage newPlanId(String newPlanId) { - this.newPlanId = newPlanId; + public NewPriceIdStage newPlanId(@NotNull String newPlanId) { + this.newPlanId = Objects.requireNonNull(newPlanId, "newPlanId must not be null"); return this; } @java.lang.Override @JsonSetter("new_price_id") - public _FinalStage newPriceId(String newPriceId) { - this.newPriceId = newPriceId; + public _FinalStage newPriceId(@NotNull String newPriceId) { + this.newPriceId = Objects.requireNonNull(newPriceId, "newPriceId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ChangeSubscriptionRequestBody.java b/src/main/java/com/schematic/api/types/ChangeSubscriptionRequestBody.java index 00a25fd..d54c66d 100644 --- a/src/main/java/com/schematic/api/types/ChangeSubscriptionRequestBody.java +++ b/src/main/java/com/schematic/api/types/ChangeSubscriptionRequestBody.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ChangeSubscriptionRequestBody.Builder.class) @@ -124,13 +125,13 @@ public static NewPlanIdStage builder() { } public interface NewPlanIdStage { - NewPriceIdStage newPlanId(String newPlanId); + NewPriceIdStage newPlanId(@NotNull String newPlanId); Builder from(ChangeSubscriptionRequestBody other); } public interface NewPriceIdStage { - _FinalStage newPriceId(String newPriceId); + _FinalStage newPriceId(@NotNull String newPriceId); } public interface _FinalStage { @@ -189,15 +190,15 @@ public Builder from(ChangeSubscriptionRequestBody other) { @java.lang.Override @JsonSetter("new_plan_id") - public NewPriceIdStage newPlanId(String newPlanId) { - this.newPlanId = newPlanId; + public NewPriceIdStage newPlanId(@NotNull String newPlanId) { + this.newPlanId = Objects.requireNonNull(newPlanId, "newPlanId must not be null"); return this; } @java.lang.Override @JsonSetter("new_price_id") - public _FinalStage newPriceId(String newPriceId) { - this.newPriceId = newPriceId; + public _FinalStage newPriceId(@NotNull String newPriceId) { + this.newPriceId = Objects.requireNonNull(newPriceId, "newPriceId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CheckFlagOutputWithFlagKey.java b/src/main/java/com/schematic/api/types/CheckFlagOutputWithFlagKey.java index f5da13a..0c21c35 100644 --- a/src/main/java/com/schematic/api/types/CheckFlagOutputWithFlagKey.java +++ b/src/main/java/com/schematic/api/types/CheckFlagOutputWithFlagKey.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CheckFlagOutputWithFlagKey.Builder.class) @@ -137,13 +138,13 @@ public static FlagStage builder() { } public interface FlagStage { - ReasonStage flag(String flag); + ReasonStage flag(@NotNull String flag); Builder from(CheckFlagOutputWithFlagKey other); } public interface ReasonStage { - ValueStage reason(String reason); + ValueStage reason(@NotNull String reason); } public interface ValueStage { @@ -212,15 +213,15 @@ public Builder from(CheckFlagOutputWithFlagKey other) { @java.lang.Override @JsonSetter("flag") - public ReasonStage flag(String flag) { - this.flag = flag; + public ReasonStage flag(@NotNull String flag) { + this.flag = Objects.requireNonNull(flag, "flag must not be null"); return this; } @java.lang.Override @JsonSetter("reason") - public ValueStage reason(String reason) { - this.reason = reason; + public ValueStage reason(@NotNull String reason) { + this.reason = Objects.requireNonNull(reason, "reason must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CheckFlagResponseData.java b/src/main/java/com/schematic/api/types/CheckFlagResponseData.java index 495bb71..a8bbd4d 100644 --- a/src/main/java/com/schematic/api/types/CheckFlagResponseData.java +++ b/src/main/java/com/schematic/api/types/CheckFlagResponseData.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CheckFlagResponseData.Builder.class) @@ -126,7 +127,7 @@ public static ReasonStage builder() { } public interface ReasonStage { - ValueStage reason(String reason); + ValueStage reason(@NotNull String reason); Builder from(CheckFlagResponseData other); } @@ -194,8 +195,8 @@ public Builder from(CheckFlagResponseData other) { @java.lang.Override @JsonSetter("reason") - public ValueStage reason(String reason) { - this.reason = reason; + public ValueStage reason(@NotNull String reason) { + this.reason = Objects.requireNonNull(reason, "reason must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyCrmDealsResponseData.java b/src/main/java/com/schematic/api/types/CompanyCrmDealsResponseData.java index 7b2d19b..31e1c6c 100644 --- a/src/main/java/com/schematic/api/types/CompanyCrmDealsResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyCrmDealsResponseData.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyCrmDealsResponseData.Builder.class) @@ -108,17 +109,17 @@ public static DealArrStage builder() { } public interface DealArrStage { - DealExternalIdStage dealArr(String dealArr); + DealExternalIdStage dealArr(@NotNull String dealArr); Builder from(CompanyCrmDealsResponseData other); } public interface DealExternalIdStage { - DealMrrStage dealExternalId(String dealExternalId); + DealMrrStage dealExternalId(@NotNull String dealExternalId); } public interface DealMrrStage { - _FinalStage dealMrr(String dealMrr); + _FinalStage dealMrr(@NotNull String dealMrr); } public interface _FinalStage { @@ -164,22 +165,22 @@ public Builder from(CompanyCrmDealsResponseData other) { @java.lang.Override @JsonSetter("deal_arr") - public DealExternalIdStage dealArr(String dealArr) { - this.dealArr = dealArr; + public DealExternalIdStage dealArr(@NotNull String dealArr) { + this.dealArr = Objects.requireNonNull(dealArr, "dealArr must not be null"); return this; } @java.lang.Override @JsonSetter("deal_external_id") - public DealMrrStage dealExternalId(String dealExternalId) { - this.dealExternalId = dealExternalId; + public DealMrrStage dealExternalId(@NotNull String dealExternalId) { + this.dealExternalId = Objects.requireNonNull(dealExternalId, "dealExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("deal_mrr") - public _FinalStage dealMrr(String dealMrr) { - this.dealMrr = dealMrr; + public _FinalStage dealMrr(@NotNull String dealMrr) { + this.dealMrr = Objects.requireNonNull(dealMrr, "dealMrr must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyDetailResponseData.java b/src/main/java/com/schematic/api/types/CompanyDetailResponseData.java index 9dc1d24..d11161c 100644 --- a/src/main/java/com/schematic/api/types/CompanyDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyDetailResponseData.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyDetailResponseData.Builder.class) @@ -250,25 +251,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(CompanyDetailResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - UserCountStage updatedAt(OffsetDateTime updatedAt); + UserCountStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UserCountStage { @@ -407,36 +408,36 @@ public Builder from(CompanyDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UserCountStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UserCountStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyEventPeriodMetricsResponseData.java b/src/main/java/com/schematic/api/types/CompanyEventPeriodMetricsResponseData.java index a5415cc..6174fb1 100644 --- a/src/main/java/com/schematic/api/types/CompanyEventPeriodMetricsResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyEventPeriodMetricsResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyEventPeriodMetricsResponseData.Builder.class) @@ -179,41 +180,41 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - CapturedAtMaxStage accountId(String accountId); + CapturedAtMaxStage accountId(@NotNull String accountId); Builder from(CompanyEventPeriodMetricsResponseData other); } public interface CapturedAtMaxStage { - CapturedAtMinStage capturedAtMax(OffsetDateTime capturedAtMax); + CapturedAtMinStage capturedAtMax(@NotNull OffsetDateTime capturedAtMax); } public interface CapturedAtMinStage { - CompanyIdStage capturedAtMin(OffsetDateTime capturedAtMin); + CompanyIdStage capturedAtMin(@NotNull OffsetDateTime capturedAtMin); } public interface CompanyIdStage { - CreatedAtStage companyId(String companyId); + CreatedAtStage companyId(@NotNull String companyId); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - EventSubtypeStage environmentId(String environmentId); + EventSubtypeStage environmentId(@NotNull String environmentId); } public interface EventSubtypeStage { - MonthResetStage eventSubtype(String eventSubtype); + MonthResetStage eventSubtype(@NotNull String eventSubtype); } public interface MonthResetStage { - PeriodStage monthReset(String monthReset); + PeriodStage monthReset(@NotNull String monthReset); } public interface PeriodStage { - ValueStage period(String period); + ValueStage period(@NotNull String period); } public interface ValueStage { @@ -286,64 +287,64 @@ public Builder from(CompanyEventPeriodMetricsResponseData other) { @java.lang.Override @JsonSetter("account_id") - public CapturedAtMaxStage accountId(String accountId) { - this.accountId = accountId; + public CapturedAtMaxStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("captured_at_max") - public CapturedAtMinStage capturedAtMax(OffsetDateTime capturedAtMax) { - this.capturedAtMax = capturedAtMax; + public CapturedAtMinStage capturedAtMax(@NotNull OffsetDateTime capturedAtMax) { + this.capturedAtMax = Objects.requireNonNull(capturedAtMax, "capturedAtMax must not be null"); return this; } @java.lang.Override @JsonSetter("captured_at_min") - public CompanyIdStage capturedAtMin(OffsetDateTime capturedAtMin) { - this.capturedAtMin = capturedAtMin; + public CompanyIdStage capturedAtMin(@NotNull OffsetDateTime capturedAtMin) { + this.capturedAtMin = Objects.requireNonNull(capturedAtMin, "capturedAtMin must not be null"); return this; } @java.lang.Override @JsonSetter("company_id") - public CreatedAtStage companyId(String companyId) { - this.companyId = companyId; + public CreatedAtStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public EventSubtypeStage environmentId(String environmentId) { - this.environmentId = environmentId; + public EventSubtypeStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("event_subtype") - public MonthResetStage eventSubtype(String eventSubtype) { - this.eventSubtype = eventSubtype; + public MonthResetStage eventSubtype(@NotNull String eventSubtype) { + this.eventSubtype = Objects.requireNonNull(eventSubtype, "eventSubtype must not be null"); return this; } @java.lang.Override @JsonSetter("month_reset") - public PeriodStage monthReset(String monthReset) { - this.monthReset = monthReset; + public PeriodStage monthReset(@NotNull String monthReset) { + this.monthReset = Objects.requireNonNull(monthReset, "monthReset must not be null"); return this; } @java.lang.Override @JsonSetter("period") - public ValueStage period(String period) { - this.period = period; + public ValueStage period(@NotNull String period) { + this.period = Objects.requireNonNull(period, "period must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyMembershipDetailResponseData.java b/src/main/java/com/schematic/api/types/CompanyMembershipDetailResponseData.java index 72b13f0..34d8f12 100644 --- a/src/main/java/com/schematic/api/types/CompanyMembershipDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyMembershipDetailResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyMembershipDetailResponseData.Builder.class) @@ -118,25 +119,25 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - CreatedAtStage companyId(String companyId); + CreatedAtStage companyId(@NotNull String companyId); Builder from(CompanyMembershipDetailResponseData other); } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface IdStage { - UpdatedAtStage id(String id); + UpdatedAtStage id(@NotNull String id); } public interface UpdatedAtStage { - UserIdStage updatedAt(OffsetDateTime updatedAt); + UserIdStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UserIdStage { - _FinalStage userId(String userId); + _FinalStage userId(@NotNull String userId); } public interface _FinalStage { @@ -180,36 +181,36 @@ public Builder from(CompanyMembershipDetailResponseData other) { @java.lang.Override @JsonSetter("company_id") - public CreatedAtStage companyId(String companyId) { - this.companyId = companyId; + public CreatedAtStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public UpdatedAtStage id(String id) { - this.id = id; + public UpdatedAtStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UserIdStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UserIdStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("user_id") - public _FinalStage userId(String userId) { - this.userId = userId; + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyMembershipResponseData.java b/src/main/java/com/schematic/api/types/CompanyMembershipResponseData.java index 297d23a..c8bb6e1 100644 --- a/src/main/java/com/schematic/api/types/CompanyMembershipResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyMembershipResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyMembershipResponseData.Builder.class) @@ -105,25 +106,25 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - CreatedAtStage companyId(String companyId); + CreatedAtStage companyId(@NotNull String companyId); Builder from(CompanyMembershipResponseData other); } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface IdStage { - UpdatedAtStage id(String id); + UpdatedAtStage id(@NotNull String id); } public interface UpdatedAtStage { - UserIdStage updatedAt(OffsetDateTime updatedAt); + UserIdStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UserIdStage { - _FinalStage userId(String userId); + _FinalStage userId(@NotNull String userId); } public interface _FinalStage { @@ -160,36 +161,36 @@ public Builder from(CompanyMembershipResponseData other) { @java.lang.Override @JsonSetter("company_id") - public CreatedAtStage companyId(String companyId) { - this.companyId = companyId; + public CreatedAtStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public UpdatedAtStage id(String id) { - this.id = id; + public UpdatedAtStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UserIdStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UserIdStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("user_id") - public _FinalStage userId(String userId) { - this.userId = userId; + public _FinalStage userId(@NotNull String userId) { + this.userId = Objects.requireNonNull(userId, "userId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyOverrideResponseData.java b/src/main/java/com/schematic/api/types/CompanyOverrideResponseData.java index a5c8f3a..4502fe2 100644 --- a/src/main/java/com/schematic/api/types/CompanyOverrideResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyOverrideResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyOverrideResponseData.Builder.class) @@ -244,33 +245,33 @@ public static CompanyIdStage builder() { } public interface CompanyIdStage { - CreatedAtStage companyId(String companyId); + CreatedAtStage companyId(@NotNull String companyId); Builder from(CompanyOverrideResponseData other); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - FeatureIdStage environmentId(String environmentId); + FeatureIdStage environmentId(@NotNull String environmentId); } public interface FeatureIdStage { - IdStage featureId(String featureId); + IdStage featureId(@NotNull String featureId); } public interface IdStage { - UpdatedAtStage id(String id); + UpdatedAtStage id(@NotNull String id); } public interface UpdatedAtStage { - ValueTypeStage updatedAt(OffsetDateTime updatedAt); + ValueTypeStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueTypeStage { - _FinalStage valueType(String valueType); + _FinalStage valueType(@NotNull String valueType); } public interface _FinalStage { @@ -390,50 +391,50 @@ public Builder from(CompanyOverrideResponseData other) { @java.lang.Override @JsonSetter("company_id") - public CreatedAtStage companyId(String companyId) { - this.companyId = companyId; + public CreatedAtStage companyId(@NotNull String companyId) { + this.companyId = Objects.requireNonNull(companyId, "companyId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public FeatureIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public FeatureIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("feature_id") - public IdStage featureId(String featureId) { - this.featureId = featureId; + public IdStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public UpdatedAtStage id(String id) { - this.id = id; + public UpdatedAtStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueTypeStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueTypeStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(String valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull String valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyPlanDetailResponseData.java b/src/main/java/com/schematic/api/types/CompanyPlanDetailResponseData.java index d91a677..cab3087 100644 --- a/src/main/java/com/schematic/api/types/CompanyPlanDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyPlanDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyPlanDetailResponseData.Builder.class) @@ -300,7 +301,7 @@ public interface CompanyCountStage { } public interface CreatedAtStage { - CurrentStage createdAt(OffsetDateTime createdAt); + CurrentStage createdAt(@NotNull OffsetDateTime createdAt); } public interface CurrentStage { @@ -308,15 +309,15 @@ public interface CurrentStage { } public interface DescriptionStage { - IconStage description(String description); + IconStage description(@NotNull String description); } public interface IconStage { - IdStage icon(String icon); + IdStage icon(@NotNull String icon); } public interface IdStage { - IsDefaultStage id(String id); + IsDefaultStage id(@NotNull String id); } public interface IsDefaultStage { @@ -332,15 +333,15 @@ public interface IsTrialableStage { } public interface NameStage { - PlanTypeStage name(String name); + PlanTypeStage name(@NotNull String name); } public interface PlanTypeStage { - UpdatedAtStage planType(String planType); + UpdatedAtStage planType(@NotNull String planType); } public interface UpdatedAtStage { - ValidStage updatedAt(OffsetDateTime updatedAt); + ValidStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValidStage { @@ -489,8 +490,8 @@ public CreatedAtStage companyCount(int companyCount) { @java.lang.Override @JsonSetter("created_at") - public CurrentStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrentStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @@ -503,22 +504,22 @@ public DescriptionStage current(boolean current) { @java.lang.Override @JsonSetter("description") - public IconStage description(String description) { - this.description = description; + public IconStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("icon") - public IdStage icon(String icon) { - this.icon = icon; + public IdStage icon(@NotNull String icon) { + this.icon = Objects.requireNonNull(icon, "icon must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IsDefaultStage id(String id) { - this.id = id; + public IsDefaultStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @@ -545,22 +546,22 @@ public NameStage isTrialable(boolean isTrialable) { @java.lang.Override @JsonSetter("name") - public PlanTypeStage name(String name) { - this.name = name; + public PlanTypeStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("plan_type") - public UpdatedAtStage planType(String planType) { - this.planType = planType; + public UpdatedAtStage planType(@NotNull String planType) { + this.planType = Objects.requireNonNull(planType, "planType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValidStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValidStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyPlanWithBillingSubView.java b/src/main/java/com/schematic/api/types/CompanyPlanWithBillingSubView.java index c881849..748325c 100644 --- a/src/main/java/com/schematic/api/types/CompanyPlanWithBillingSubView.java +++ b/src/main/java/com/schematic/api/types/CompanyPlanWithBillingSubView.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyPlanWithBillingSubView.Builder.class) @@ -133,13 +134,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); Builder from(CompanyPlanWithBillingSubView other); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -201,15 +202,15 @@ public Builder from(CompanyPlanWithBillingSubView other) { @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanyResponseData.java b/src/main/java/com/schematic/api/types/CompanyResponseData.java index 2a6746f..15d0f9b 100644 --- a/src/main/java/com/schematic/api/types/CompanyResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanyResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanyResponseData.Builder.class) @@ -128,25 +129,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(CompanyResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -197,36 +198,36 @@ public Builder from(CompanyResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CompanySubscriptionResponseData.java b/src/main/java/com/schematic/api/types/CompanySubscriptionResponseData.java index d5503e9..a1dcb01 100644 --- a/src/main/java/com/schematic/api/types/CompanySubscriptionResponseData.java +++ b/src/main/java/com/schematic/api/types/CompanySubscriptionResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CompanySubscriptionResponseData.Builder.class) @@ -191,25 +192,25 @@ public static CurrencyStage builder() { } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); Builder from(CompanySubscriptionResponseData other); } public interface CustomerExternalIdStage { - IntervalStage customerExternalId(String customerExternalId); + IntervalStage customerExternalId(@NotNull String customerExternalId); } public interface IntervalStage { - StatusStage interval(String interval); + StatusStage interval(@NotNull String interval); } public interface StatusStage { - SubscriptionExternalIdStage status(String status); + SubscriptionExternalIdStage status(@NotNull String status); } public interface SubscriptionExternalIdStage { - TotalPriceStage subscriptionExternalId(String subscriptionExternalId); + TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId); } public interface TotalPriceStage { @@ -305,36 +306,37 @@ public Builder from(CompanySubscriptionResponseData other) { @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public IntervalStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public IntervalStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("interval") - public StatusStage interval(String interval) { - this.interval = interval; + public StatusStage interval(@NotNull String interval) { + this.interval = Objects.requireNonNull(interval, "interval must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public SubscriptionExternalIdStage status(String status) { - this.status = status; + public SubscriptionExternalIdStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("subscription_external_id") - public TotalPriceStage subscriptionExternalId(String subscriptionExternalId) { - this.subscriptionExternalId = subscriptionExternalId; + public TotalPriceStage subscriptionExternalId(@NotNull String subscriptionExternalId) { + this.subscriptionExternalId = + Objects.requireNonNull(subscriptionExternalId, "subscriptionExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/ComponentResponseData.java b/src/main/java/com/schematic/api/types/ComponentResponseData.java index 7c98ebb..1876458 100644 --- a/src/main/java/com/schematic/api/types/ComponentResponseData.java +++ b/src/main/java/com/schematic/api/types/ComponentResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ComponentResponseData.Builder.class) @@ -127,29 +128,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(ComponentResponseData other); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - StateStage name(String name); + StateStage name(@NotNull String name); } public interface StateStage { - TypeStage state(String state); + TypeStage state(@NotNull String state); } public interface TypeStage { - UpdatedAtStage type(String type); + UpdatedAtStage type(@NotNull String type); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -196,43 +197,43 @@ public Builder from(ComponentResponseData other) { @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public StateStage name(String name) { - this.name = name; + public StateStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("state") - public TypeStage state(String state) { - this.state = state; + public TypeStage state(@NotNull String state) { + this.state = Objects.requireNonNull(state, "state must not be null"); return this; } @java.lang.Override @JsonSetter("type") - public UpdatedAtStage type(String type) { - this.type = type; + public UpdatedAtStage type(@NotNull String type) { + this.type = Objects.requireNonNull(type, "type must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CouponRequestBody.java b/src/main/java/com/schematic/api/types/CouponRequestBody.java index 53cf397..58598e6 100644 --- a/src/main/java/com/schematic/api/types/CouponRequestBody.java +++ b/src/main/java/com/schematic/api/types/CouponRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CouponRequestBody.Builder.class) @@ -150,7 +151,7 @@ public interface AmountOffStage { } public interface DurationStage { - DurationInMonthsStage duration(String duration); + DurationInMonthsStage duration(@NotNull String duration); } public interface DurationInMonthsStage { @@ -162,7 +163,7 @@ public interface MaxRedemptionsStage { } public interface NameStage { - PercentOffStage name(String name); + PercentOffStage name(@NotNull String name); } public interface PercentOffStage { @@ -234,8 +235,8 @@ public DurationStage amountOff(int amountOff) { @java.lang.Override @JsonSetter("duration") - public DurationInMonthsStage duration(String duration) { - this.duration = duration; + public DurationInMonthsStage duration(@NotNull String duration) { + this.duration = Objects.requireNonNull(duration, "duration must not be null"); return this; } @@ -255,8 +256,8 @@ public NameStage maxRedemptions(int maxRedemptions) { @java.lang.Override @JsonSetter("name") - public PercentOffStage name(String name) { - this.name = name; + public PercentOffStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CreateEntitlementReqCommon.java b/src/main/java/com/schematic/api/types/CreateEntitlementReqCommon.java index 0fe2168..8343cd8 100644 --- a/src/main/java/com/schematic/api/types/CreateEntitlementReqCommon.java +++ b/src/main/java/com/schematic/api/types/CreateEntitlementReqCommon.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEntitlementReqCommon.Builder.class) @@ -133,13 +134,13 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - ValueTypeStage featureId(String featureId); + ValueTypeStage featureId(@NotNull String featureId); Builder from(CreateEntitlementReqCommon other); } public interface ValueTypeStage { - _FinalStage valueType(CreateEntitlementReqCommonValueType valueType); + _FinalStage valueType(@NotNull CreateEntitlementReqCommonValueType valueType); } public interface _FinalStage { @@ -202,15 +203,15 @@ public Builder from(CreateEntitlementReqCommon other) { @java.lang.Override @JsonSetter("feature_id") - public ValueTypeStage featureId(String featureId) { - this.featureId = featureId; + public ValueTypeStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(CreateEntitlementReqCommonValueType valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull CreateEntitlementReqCommonValueType valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CreateEventRequestBody.java b/src/main/java/com/schematic/api/types/CreateEventRequestBody.java index 02a41a5..d73bfd3 100644 --- a/src/main/java/com/schematic/api/types/CreateEventRequestBody.java +++ b/src/main/java/com/schematic/api/types/CreateEventRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateEventRequestBody.Builder.class) @@ -91,7 +92,7 @@ public static EventTypeStage builder() { } public interface EventTypeStage { - _FinalStage eventType(CreateEventRequestBodyEventType eventType); + _FinalStage eventType(@NotNull CreateEventRequestBodyEventType eventType); Builder from(CreateEventRequestBody other); } @@ -135,8 +136,8 @@ public Builder from(CreateEventRequestBody other) { */ @java.lang.Override @JsonSetter("event_type") - public _FinalStage eventType(CreateEventRequestBodyEventType eventType) { - this.eventType = eventType; + public _FinalStage eventType(@NotNull CreateEventRequestBodyEventType eventType) { + this.eventType = Objects.requireNonNull(eventType, "eventType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CreateFlagRequestBody.java b/src/main/java/com/schematic/api/types/CreateFlagRequestBody.java index a1865f3..2c3ab1e 100644 --- a/src/main/java/com/schematic/api/types/CreateFlagRequestBody.java +++ b/src/main/java/com/schematic/api/types/CreateFlagRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateFlagRequestBody.Builder.class) @@ -139,19 +140,19 @@ public interface DefaultValueStage { } public interface DescriptionStage { - FlagTypeStage description(String description); + FlagTypeStage description(@NotNull String description); } public interface FlagTypeStage { - KeyStage flagType(String flagType); + KeyStage flagType(@NotNull String flagType); } public interface KeyStage { - NameStage key(String key); + NameStage key(@NotNull String key); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -209,29 +210,29 @@ public DescriptionStage defaultValue(boolean defaultValue) { @java.lang.Override @JsonSetter("description") - public FlagTypeStage description(String description) { - this.description = description; + public FlagTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("flag_type") - public KeyStage flagType(String flagType) { - this.flagType = flagType; + public KeyStage flagType(@NotNull String flagType) { + this.flagType = Objects.requireNonNull(flagType, "flagType must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public NameStage key(String key) { - this.key = key; + public NameStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CreateOrUpdateConditionRequestBody.java b/src/main/java/com/schematic/api/types/CreateOrUpdateConditionRequestBody.java index e0cb5d8..af40b22 100644 --- a/src/main/java/com/schematic/api/types/CreateOrUpdateConditionRequestBody.java +++ b/src/main/java/com/schematic/api/types/CreateOrUpdateConditionRequestBody.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateOrUpdateConditionRequestBody.Builder.class) @@ -204,13 +205,13 @@ public static ConditionTypeStage builder() { } public interface ConditionTypeStage { - OperatorStage conditionType(CreateOrUpdateConditionRequestBodyConditionType conditionType); + OperatorStage conditionType(@NotNull CreateOrUpdateConditionRequestBodyConditionType conditionType); Builder from(CreateOrUpdateConditionRequestBody other); } public interface OperatorStage { - _FinalStage operator(CreateOrUpdateConditionRequestBodyOperator operator); + _FinalStage operator(@NotNull CreateOrUpdateConditionRequestBodyOperator operator); } public interface _FinalStage { @@ -305,15 +306,15 @@ public Builder from(CreateOrUpdateConditionRequestBody other) { @java.lang.Override @JsonSetter("condition_type") - public OperatorStage conditionType(CreateOrUpdateConditionRequestBodyConditionType conditionType) { - this.conditionType = conditionType; + public OperatorStage conditionType(@NotNull CreateOrUpdateConditionRequestBodyConditionType conditionType) { + this.conditionType = Objects.requireNonNull(conditionType, "conditionType must not be null"); return this; } @java.lang.Override @JsonSetter("operator") - public _FinalStage operator(CreateOrUpdateConditionRequestBodyOperator operator) { - this.operator = operator; + public _FinalStage operator(@NotNull CreateOrUpdateConditionRequestBodyOperator operator) { + this.operator = Objects.requireNonNull(operator, "operator must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CreateOrUpdateFlagRequestBody.java b/src/main/java/com/schematic/api/types/CreateOrUpdateFlagRequestBody.java index d8f001f..28c4904 100644 --- a/src/main/java/com/schematic/api/types/CreateOrUpdateFlagRequestBody.java +++ b/src/main/java/com/schematic/api/types/CreateOrUpdateFlagRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateOrUpdateFlagRequestBody.Builder.class) @@ -150,19 +151,19 @@ public interface DefaultValueStage { } public interface DescriptionStage { - FlagTypeStage description(String description); + FlagTypeStage description(@NotNull String description); } public interface FlagTypeStage { - KeyStage flagType(String flagType); + KeyStage flagType(@NotNull String flagType); } public interface KeyStage { - NameStage key(String key); + NameStage key(@NotNull String key); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -227,29 +228,29 @@ public DescriptionStage defaultValue(boolean defaultValue) { @java.lang.Override @JsonSetter("description") - public FlagTypeStage description(String description) { - this.description = description; + public FlagTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("flag_type") - public KeyStage flagType(String flagType) { - this.flagType = flagType; + public KeyStage flagType(@NotNull String flagType) { + this.flagType = Objects.requireNonNull(flagType, "flagType must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public NameStage key(String key) { - this.key = key; + public NameStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CreateOrUpdateRuleRequestBody.java b/src/main/java/com/schematic/api/types/CreateOrUpdateRuleRequestBody.java index 82131b9..357ddc6 100644 --- a/src/main/java/com/schematic/api/types/CreateOrUpdateRuleRequestBody.java +++ b/src/main/java/com/schematic/api/types/CreateOrUpdateRuleRequestBody.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CreateOrUpdateRuleRequestBody.Builder.class) @@ -129,7 +130,7 @@ public static NameStage builder() { } public interface NameStage { - PriorityStage name(String name); + PriorityStage name(@NotNull String name); Builder from(CreateOrUpdateRuleRequestBody other); } @@ -201,8 +202,8 @@ public Builder from(CreateOrUpdateRuleRequestBody other) { @java.lang.Override @JsonSetter("name") - public PriorityStage name(String name) { - this.name = name; + public PriorityStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CrmDealLineItem.java b/src/main/java/com/schematic/api/types/CrmDealLineItem.java index a5d28cb..eb9e9ad 100644 --- a/src/main/java/com/schematic/api/types/CrmDealLineItem.java +++ b/src/main/java/com/schematic/api/types/CrmDealLineItem.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CrmDealLineItem.Builder.class) @@ -190,29 +191,29 @@ public static BillingFrequencyStage builder() { } public interface BillingFrequencyStage { - CreatedAtStage billingFrequency(String billingFrequency); + CreatedAtStage billingFrequency(@NotNull String billingFrequency); Builder from(CrmDealLineItem other); } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); } public interface CurrencyStage { - DescriptionStage currency(String currency); + DescriptionStage currency(@NotNull String currency); } public interface DescriptionStage { - IdStage description(String description); + IdStage description(@NotNull String description); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { @@ -224,7 +225,7 @@ public interface QuantityStage { } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -303,43 +304,43 @@ public Builder from(CrmDealLineItem other) { @java.lang.Override @JsonSetter("billing_frequency") - public CreatedAtStage billingFrequency(String billingFrequency) { - this.billingFrequency = billingFrequency; + public CreatedAtStage billingFrequency(@NotNull String billingFrequency) { + this.billingFrequency = Objects.requireNonNull(billingFrequency, "billingFrequency must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public DescriptionStage currency(String currency) { - this.currency = currency; + public DescriptionStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public IdStage description(String description) { - this.description = description; + public IdStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -359,8 +360,8 @@ public UpdatedAtStage quantity(int quantity) { @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CrmDealResponseData.java b/src/main/java/com/schematic/api/types/CrmDealResponseData.java index a601e62..cf29f82 100644 --- a/src/main/java/com/schematic/api/types/CrmDealResponseData.java +++ b/src/main/java/com/schematic/api/types/CrmDealResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CrmDealResponseData.Builder.class) @@ -178,37 +179,37 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - ArrStage accountId(String accountId); + ArrStage accountId(@NotNull String accountId); Builder from(CrmDealResponseData other); } public interface ArrStage { - CreatedAtStage arr(String arr); + CreatedAtStage arr(@NotNull String arr); } public interface CreatedAtStage { - DealExternalIdStage createdAt(OffsetDateTime createdAt); + DealExternalIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface DealExternalIdStage { - DealIdStage dealExternalId(String dealExternalId); + DealIdStage dealExternalId(@NotNull String dealExternalId); } public interface DealIdStage { - EnvironmentIdStage dealId(String dealId); + EnvironmentIdStage dealId(@NotNull String dealId); } public interface EnvironmentIdStage { - MrrStage environmentId(String environmentId); + MrrStage environmentId(@NotNull String environmentId); } public interface MrrStage { - UpdatedAtStage mrr(String mrr); + UpdatedAtStage mrr(@NotNull String mrr); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -283,57 +284,57 @@ public Builder from(CrmDealResponseData other) { @java.lang.Override @JsonSetter("account_id") - public ArrStage accountId(String accountId) { - this.accountId = accountId; + public ArrStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("arr") - public CreatedAtStage arr(String arr) { - this.arr = arr; + public CreatedAtStage arr(@NotNull String arr) { + this.arr = Objects.requireNonNull(arr, "arr must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public DealExternalIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DealExternalIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("deal_external_id") - public DealIdStage dealExternalId(String dealExternalId) { - this.dealExternalId = dealExternalId; + public DealIdStage dealExternalId(@NotNull String dealExternalId) { + this.dealExternalId = Objects.requireNonNull(dealExternalId, "dealExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("deal_id") - public EnvironmentIdStage dealId(String dealId) { - this.dealId = dealId; + public EnvironmentIdStage dealId(@NotNull String dealId) { + this.dealId = Objects.requireNonNull(dealId, "dealId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public MrrStage environmentId(String environmentId) { - this.environmentId = environmentId; + public MrrStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("mrr") - public UpdatedAtStage mrr(String mrr) { - this.mrr = mrr; + public UpdatedAtStage mrr(@NotNull String mrr) { + this.mrr = Objects.requireNonNull(mrr, "mrr must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CrmLineItemResponseData.java b/src/main/java/com/schematic/api/types/CrmLineItemResponseData.java index e5908db..b19ae0d 100644 --- a/src/main/java/com/schematic/api/types/CrmLineItemResponseData.java +++ b/src/main/java/com/schematic/api/types/CrmLineItemResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CrmLineItemResponseData.Builder.class) @@ -123,21 +124,21 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - CreatedAtStage accountId(String accountId); + CreatedAtStage accountId(@NotNull String accountId); Builder from(CrmLineItemResponseData other); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - UpdatedAtStage environmentId(String environmentId); + UpdatedAtStage environmentId(@NotNull String environmentId); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -185,29 +186,29 @@ public Builder from(CrmLineItemResponseData other) { @java.lang.Override @JsonSetter("account_id") - public CreatedAtStage accountId(String accountId) { - this.accountId = accountId; + public CreatedAtStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public UpdatedAtStage environmentId(String environmentId) { - this.environmentId = environmentId; + public UpdatedAtStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/CrmProductResponseData.java b/src/main/java/com/schematic/api/types/CrmProductResponseData.java index 94d99ac..aafa32e 100644 --- a/src/main/java/com/schematic/api/types/CrmProductResponseData.java +++ b/src/main/java/com/schematic/api/types/CrmProductResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = CrmProductResponseData.Builder.class) @@ -165,37 +166,37 @@ public static AccountIdStage builder() { } public interface AccountIdStage { - CreatedAtStage accountId(String accountId); + CreatedAtStage accountId(@NotNull String accountId); Builder from(CrmProductResponseData other); } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); } public interface CurrencyStage { - EnvironmentIdStage currency(String currency); + EnvironmentIdStage currency(@NotNull String currency); } public interface EnvironmentIdStage { - ExternalIdStage environmentId(String environmentId); + ExternalIdStage environmentId(@NotNull String environmentId); } public interface ExternalIdStage { - NameStage externalId(String externalId); + NameStage externalId(@NotNull String externalId); } public interface NameStage { - PriceStage name(String name); + PriceStage name(@NotNull String name); } public interface PriceStage { - ProductIdStage price(String price); + ProductIdStage price(@NotNull String price); } public interface ProductIdStage { - QuantityStage productId(String productId); + QuantityStage productId(@NotNull String productId); } public interface QuantityStage { @@ -203,7 +204,7 @@ public interface QuantityStage { } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -265,57 +266,57 @@ public Builder from(CrmProductResponseData other) { @java.lang.Override @JsonSetter("account_id") - public CreatedAtStage accountId(String accountId) { - this.accountId = accountId; + public CreatedAtStage accountId(@NotNull String accountId) { + this.accountId = Objects.requireNonNull(accountId, "accountId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public EnvironmentIdStage currency(String currency) { - this.currency = currency; + public EnvironmentIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExternalIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExternalIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public NameStage externalId(String externalId) { - this.externalId = externalId; + public NameStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriceStage name(String name) { - this.name = name; + public PriceStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("price") - public ProductIdStage price(String price) { - this.price = price; + public ProductIdStage price(@NotNull String price) { + this.price = Objects.requireNonNull(price, "price must not be null"); return this; } @java.lang.Override @JsonSetter("product_id") - public QuantityStage productId(String productId) { - this.productId = productId; + public QuantityStage productId(@NotNull String productId) { + this.productId = Objects.requireNonNull(productId, "productId must not be null"); return this; } @@ -328,8 +329,8 @@ public UpdatedAtStage quantity(double quantity) { @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityKeyDefinitionResponseData.java b/src/main/java/com/schematic/api/types/EntityKeyDefinitionResponseData.java index b29f93e..1e40627 100644 --- a/src/main/java/com/schematic/api/types/EntityKeyDefinitionResponseData.java +++ b/src/main/java/com/schematic/api/types/EntityKeyDefinitionResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityKeyDefinitionResponseData.Builder.class) @@ -105,25 +106,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EntityTypeStage createdAt(OffsetDateTime createdAt); + EntityTypeStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EntityKeyDefinitionResponseData other); } public interface EntityTypeStage { - IdStage entityType(String entityType); + IdStage entityType(@NotNull String entityType); } public interface IdStage { - KeyStage id(String id); + KeyStage id(@NotNull String id); } public interface KeyStage { - UpdatedAtStage key(String key); + UpdatedAtStage key(@NotNull String key); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -160,36 +161,36 @@ public Builder from(EntityKeyDefinitionResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EntityTypeStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EntityTypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("entity_type") - public IdStage entityType(String entityType) { - this.entityType = entityType; + public IdStage entityType(@NotNull String entityType) { + this.entityType = Objects.requireNonNull(entityType, "entityType must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public KeyStage id(String id) { - this.id = id; + public KeyStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public UpdatedAtStage key(String key) { - this.key = key; + public UpdatedAtStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityKeyDetailResponseData.java b/src/main/java/com/schematic/api/types/EntityKeyDetailResponseData.java index 4cd59c3..b224447 100644 --- a/src/main/java/com/schematic/api/types/EntityKeyDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/EntityKeyDetailResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityKeyDetailResponseData.Builder.class) @@ -167,41 +168,41 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DefinitionIdStage createdAt(OffsetDateTime createdAt); + DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EntityKeyDetailResponseData other); } public interface DefinitionIdStage { - EntityIdStage definitionId(String definitionId); + EntityIdStage definitionId(@NotNull String definitionId); } public interface EntityIdStage { - EntityTypeStage entityId(String entityId); + EntityTypeStage entityId(@NotNull String entityId); } public interface EntityTypeStage { - EnvironmentIdStage entityType(String entityType); + EnvironmentIdStage entityType(@NotNull String entityType); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - KeyStage id(String id); + KeyStage id(@NotNull String id); } public interface KeyStage { - UpdatedAtStage key(String key); + UpdatedAtStage key(@NotNull String key); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { - _FinalStage value(String value); + _FinalStage value(@NotNull String value); } public interface _FinalStage { @@ -266,64 +267,64 @@ public Builder from(EntityKeyDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DefinitionIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("definition_id") - public EntityIdStage definitionId(String definitionId) { - this.definitionId = definitionId; + public EntityIdStage definitionId(@NotNull String definitionId) { + this.definitionId = Objects.requireNonNull(definitionId, "definitionId must not be null"); return this; } @java.lang.Override @JsonSetter("entity_id") - public EntityTypeStage entityId(String entityId) { - this.entityId = entityId; + public EntityTypeStage entityId(@NotNull String entityId) { + this.entityId = Objects.requireNonNull(entityId, "entityId must not be null"); return this; } @java.lang.Override @JsonSetter("entity_type") - public EnvironmentIdStage entityType(String entityType) { - this.entityType = entityType; + public EnvironmentIdStage entityType(@NotNull String entityType) { + this.entityType = Objects.requireNonNull(entityType, "entityType must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public KeyStage id(String id) { - this.id = id; + public KeyStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public UpdatedAtStage key(String key) { - this.key = key; + public UpdatedAtStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(String value) { - this.value = value; + public _FinalStage value(@NotNull String value) { + this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityKeyResponseData.java b/src/main/java/com/schematic/api/types/EntityKeyResponseData.java index 7bddf4a..2ed75ed 100644 --- a/src/main/java/com/schematic/api/types/EntityKeyResponseData.java +++ b/src/main/java/com/schematic/api/types/EntityKeyResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityKeyResponseData.Builder.class) @@ -154,41 +155,41 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DefinitionIdStage createdAt(OffsetDateTime createdAt); + DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EntityKeyResponseData other); } public interface DefinitionIdStage { - EntityIdStage definitionId(String definitionId); + EntityIdStage definitionId(@NotNull String definitionId); } public interface EntityIdStage { - EntityTypeStage entityId(String entityId); + EntityTypeStage entityId(@NotNull String entityId); } public interface EntityTypeStage { - EnvironmentIdStage entityType(String entityType); + EnvironmentIdStage entityType(@NotNull String entityType); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - KeyStage id(String id); + KeyStage id(@NotNull String id); } public interface KeyStage { - UpdatedAtStage key(String key); + UpdatedAtStage key(@NotNull String key); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { - _FinalStage value(String value); + _FinalStage value(@NotNull String value); } public interface _FinalStage { @@ -246,64 +247,64 @@ public Builder from(EntityKeyResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DefinitionIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("definition_id") - public EntityIdStage definitionId(String definitionId) { - this.definitionId = definitionId; + public EntityIdStage definitionId(@NotNull String definitionId) { + this.definitionId = Objects.requireNonNull(definitionId, "definitionId must not be null"); return this; } @java.lang.Override @JsonSetter("entity_id") - public EntityTypeStage entityId(String entityId) { - this.entityId = entityId; + public EntityTypeStage entityId(@NotNull String entityId) { + this.entityId = Objects.requireNonNull(entityId, "entityId must not be null"); return this; } @java.lang.Override @JsonSetter("entity_type") - public EnvironmentIdStage entityType(String entityType) { - this.entityType = entityType; + public EnvironmentIdStage entityType(@NotNull String entityType) { + this.entityType = Objects.requireNonNull(entityType, "entityType must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public KeyStage id(String id) { - this.id = id; + public KeyStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public UpdatedAtStage key(String key) { - this.key = key; + public UpdatedAtStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(String value) { - this.value = value; + public _FinalStage value(@NotNull String value) { + this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityTraitDefinitionResponseData.java b/src/main/java/com/schematic/api/types/EntityTraitDefinitionResponseData.java index 95b7064..43e19c9 100644 --- a/src/main/java/com/schematic/api/types/EntityTraitDefinitionResponseData.java +++ b/src/main/java/com/schematic/api/types/EntityTraitDefinitionResponseData.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityTraitDefinitionResponseData.Builder.class) @@ -135,29 +136,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DisplayNameStage createdAt(OffsetDateTime createdAt); + DisplayNameStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EntityTraitDefinitionResponseData other); } public interface DisplayNameStage { - EntityTypeStage displayName(String displayName); + EntityTypeStage displayName(@NotNull String displayName); } public interface EntityTypeStage { - IdStage entityType(String entityType); + IdStage entityType(@NotNull String entityType); } public interface IdStage { - TraitTypeStage id(String id); + TraitTypeStage id(@NotNull String id); } public interface TraitTypeStage { - UpdatedAtStage traitType(String traitType); + UpdatedAtStage traitType(@NotNull String traitType); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -212,43 +213,43 @@ public Builder from(EntityTraitDefinitionResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DisplayNameStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DisplayNameStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("display_name") - public EntityTypeStage displayName(String displayName) { - this.displayName = displayName; + public EntityTypeStage displayName(@NotNull String displayName) { + this.displayName = Objects.requireNonNull(displayName, "displayName must not be null"); return this; } @java.lang.Override @JsonSetter("entity_type") - public IdStage entityType(String entityType) { - this.entityType = entityType; + public IdStage entityType(@NotNull String entityType) { + this.entityType = Objects.requireNonNull(entityType, "entityType must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public TraitTypeStage id(String id) { - this.id = id; + public TraitTypeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("trait_type") - public UpdatedAtStage traitType(String traitType) { - this.traitType = traitType; + public UpdatedAtStage traitType(@NotNull String traitType) { + this.traitType = Objects.requireNonNull(traitType, "traitType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityTraitDetailResponseData.java b/src/main/java/com/schematic/api/types/EntityTraitDetailResponseData.java index 6a504bc..f85315a 100644 --- a/src/main/java/com/schematic/api/types/EntityTraitDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/EntityTraitDetailResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityTraitDetailResponseData.Builder.class) @@ -134,29 +135,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DefinitionIdStage createdAt(OffsetDateTime createdAt); + DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EntityTraitDetailResponseData other); } public interface DefinitionIdStage { - EnvironmentIdStage definitionId(String definitionId); + EnvironmentIdStage definitionId(@NotNull String definitionId); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - UpdatedAtStage id(String id); + UpdatedAtStage id(@NotNull String id); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { - _FinalStage value(String value); + _FinalStage value(@NotNull String value); } public interface _FinalStage { @@ -209,43 +210,43 @@ public Builder from(EntityTraitDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DefinitionIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("definition_id") - public EnvironmentIdStage definitionId(String definitionId) { - this.definitionId = definitionId; + public EnvironmentIdStage definitionId(@NotNull String definitionId) { + this.definitionId = Objects.requireNonNull(definitionId, "definitionId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public UpdatedAtStage id(String id) { - this.id = id; + public UpdatedAtStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(String value) { - this.value = value; + public _FinalStage value(@NotNull String value) { + this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityTraitResponseData.java b/src/main/java/com/schematic/api/types/EntityTraitResponseData.java index bc2fc87..9bc7990 100644 --- a/src/main/java/com/schematic/api/types/EntityTraitResponseData.java +++ b/src/main/java/com/schematic/api/types/EntityTraitResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityTraitResponseData.Builder.class) @@ -115,29 +116,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DefinitionIdStage createdAt(OffsetDateTime createdAt); + DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EntityTraitResponseData other); } public interface DefinitionIdStage { - EnvironmentIdStage definitionId(String definitionId); + EnvironmentIdStage definitionId(@NotNull String definitionId); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - UpdatedAtStage id(String id); + UpdatedAtStage id(@NotNull String id); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { - _FinalStage value(String value); + _FinalStage value(@NotNull String value); } public interface _FinalStage { @@ -183,43 +184,43 @@ public Builder from(EntityTraitResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DefinitionIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DefinitionIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("definition_id") - public EnvironmentIdStage definitionId(String definitionId) { - this.definitionId = definitionId; + public EnvironmentIdStage definitionId(@NotNull String definitionId) { + this.definitionId = Objects.requireNonNull(definitionId, "definitionId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public UpdatedAtStage id(String id) { - this.id = id; + public UpdatedAtStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(String value) { - this.value = value; + public _FinalStage value(@NotNull String value) { + this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EntityTraitValue.java b/src/main/java/com/schematic/api/types/EntityTraitValue.java index 8cdbacd..be38ed9 100644 --- a/src/main/java/com/schematic/api/types/EntityTraitValue.java +++ b/src/main/java/com/schematic/api/types/EntityTraitValue.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EntityTraitValue.Builder.class) @@ -70,13 +71,13 @@ public static DefinitionIdStage builder() { } public interface DefinitionIdStage { - ValueStage definitionId(String definitionId); + ValueStage definitionId(@NotNull String definitionId); Builder from(EntityTraitValue other); } public interface ValueStage { - _FinalStage value(String value); + _FinalStage value(@NotNull String value); } public interface _FinalStage { @@ -103,15 +104,15 @@ public Builder from(EntityTraitValue other) { @java.lang.Override @JsonSetter("definition_id") - public ValueStage definitionId(String definitionId) { - this.definitionId = definitionId; + public ValueStage definitionId(@NotNull String definitionId) { + this.definitionId = Objects.requireNonNull(definitionId, "definitionId must not be null"); return this; } @java.lang.Override @JsonSetter("value") - public _FinalStage value(String value) { - this.value = value; + public _FinalStage value(@NotNull String value) { + this.value = Objects.requireNonNull(value, "value must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EnvironmentDetailResponseData.java b/src/main/java/com/schematic/api/types/EnvironmentDetailResponseData.java index 0fdad3b..0d8ca0a 100644 --- a/src/main/java/com/schematic/api/types/EnvironmentDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/EnvironmentDetailResponseData.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EnvironmentDetailResponseData.Builder.class) @@ -118,25 +119,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentTypeStage createdAt(OffsetDateTime createdAt); + EnvironmentTypeStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EnvironmentDetailResponseData other); } public interface EnvironmentTypeStage { - IdStage environmentType(String environmentType); + IdStage environmentType(@NotNull String environmentType); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -182,36 +183,36 @@ public Builder from(EnvironmentDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentTypeStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentTypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_type") - public IdStage environmentType(String environmentType) { - this.environmentType = environmentType; + public IdStage environmentType(@NotNull String environmentType) { + this.environmentType = Objects.requireNonNull(environmentType, "environmentType must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EnvironmentResponseData.java b/src/main/java/com/schematic/api/types/EnvironmentResponseData.java index 79d5dc2..e6a0ec6 100644 --- a/src/main/java/com/schematic/api/types/EnvironmentResponseData.java +++ b/src/main/java/com/schematic/api/types/EnvironmentResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EnvironmentResponseData.Builder.class) @@ -105,25 +106,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentTypeStage createdAt(OffsetDateTime createdAt); + EnvironmentTypeStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(EnvironmentResponseData other); } public interface EnvironmentTypeStage { - IdStage environmentType(String environmentType); + IdStage environmentType(@NotNull String environmentType); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -160,36 +161,36 @@ public Builder from(EnvironmentResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentTypeStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentTypeStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_type") - public IdStage environmentType(String environmentType) { - this.environmentType = environmentType; + public IdStage environmentType(@NotNull String environmentType) { + this.environmentType = Objects.requireNonNull(environmentType, "environmentType must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EventBodyFlagCheck.java b/src/main/java/com/schematic/api/types/EventBodyFlagCheck.java index f43119b..80e3118 100644 --- a/src/main/java/com/schematic/api/types/EventBodyFlagCheck.java +++ b/src/main/java/com/schematic/api/types/EventBodyFlagCheck.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventBodyFlagCheck.Builder.class) @@ -196,13 +197,13 @@ public static FlagKeyStage builder() { } public interface FlagKeyStage { - ReasonStage flagKey(String flagKey); + ReasonStage flagKey(@NotNull String flagKey); Builder from(EventBodyFlagCheck other); } public interface ReasonStage { - ValueStage reason(String reason); + ValueStage reason(@NotNull String reason); } public interface ValueStage { @@ -289,8 +290,8 @@ public Builder from(EventBodyFlagCheck other) { */ @java.lang.Override @JsonSetter("flag_key") - public ReasonStage flagKey(String flagKey) { - this.flagKey = flagKey; + public ReasonStage flagKey(@NotNull String flagKey) { + this.flagKey = Objects.requireNonNull(flagKey, "flagKey must not be null"); return this; } @@ -300,8 +301,8 @@ public ReasonStage flagKey(String flagKey) { */ @java.lang.Override @JsonSetter("reason") - public ValueStage reason(String reason) { - this.reason = reason; + public ValueStage reason(@NotNull String reason) { + this.reason = Objects.requireNonNull(reason, "reason must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EventBodyTrack.java b/src/main/java/com/schematic/api/types/EventBodyTrack.java index a124a68..0e95c17 100644 --- a/src/main/java/com/schematic/api/types/EventBodyTrack.java +++ b/src/main/java/com/schematic/api/types/EventBodyTrack.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventBodyTrack.Builder.class) @@ -109,7 +110,7 @@ public static EventStage builder() { } public interface EventStage { - _FinalStage event(String event); + _FinalStage event(@NotNull String event); Builder from(EventBodyTrack other); } @@ -160,8 +161,8 @@ public Builder from(EventBodyTrack other) { */ @java.lang.Override @JsonSetter("event") - public _FinalStage event(String event) { - this.event = event; + public _FinalStage event(@NotNull String event) { + this.event = Objects.requireNonNull(event, "event must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EventDetailResponseData.java b/src/main/java/com/schematic/api/types/EventDetailResponseData.java index 8f736b5..7ef1cbf 100644 --- a/src/main/java/com/schematic/api/types/EventDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/EventDetailResponseData.java @@ -21,6 +21,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventDetailResponseData.Builder.class) @@ -292,29 +293,29 @@ public static BodyPreviewStage builder() { } public interface BodyPreviewStage { - CapturedAtStage bodyPreview(String bodyPreview); + CapturedAtStage bodyPreview(@NotNull String bodyPreview); Builder from(EventDetailResponseData other); } public interface CapturedAtStage { - IdStage capturedAt(OffsetDateTime capturedAt); + IdStage capturedAt(@NotNull OffsetDateTime capturedAt); } public interface IdStage { - StatusStage id(String id); + StatusStage id(@NotNull String id); } public interface StatusStage { - TypeStage status(String status); + TypeStage status(@NotNull String status); } public interface TypeStage { - UpdatedAtStage type(String type); + UpdatedAtStage type(@NotNull String type); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -465,43 +466,43 @@ public Builder from(EventDetailResponseData other) { @java.lang.Override @JsonSetter("body_preview") - public CapturedAtStage bodyPreview(String bodyPreview) { - this.bodyPreview = bodyPreview; + public CapturedAtStage bodyPreview(@NotNull String bodyPreview) { + this.bodyPreview = Objects.requireNonNull(bodyPreview, "bodyPreview must not be null"); return this; } @java.lang.Override @JsonSetter("captured_at") - public IdStage capturedAt(OffsetDateTime capturedAt) { - this.capturedAt = capturedAt; + public IdStage capturedAt(@NotNull OffsetDateTime capturedAt) { + this.capturedAt = Objects.requireNonNull(capturedAt, "capturedAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public StatusStage id(String id) { - this.id = id; + public StatusStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public TypeStage status(String status) { - this.status = status; + public TypeStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("type") - public UpdatedAtStage type(String type) { - this.type = type; + public UpdatedAtStage type(@NotNull String type) { + this.type = Objects.requireNonNull(type, "type must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EventResponseData.java b/src/main/java/com/schematic/api/types/EventResponseData.java index 66e096b..d53de72 100644 --- a/src/main/java/com/schematic/api/types/EventResponseData.java +++ b/src/main/java/com/schematic/api/types/EventResponseData.java @@ -21,6 +21,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventResponseData.Builder.class) @@ -259,29 +260,29 @@ public static BodyPreviewStage builder() { } public interface BodyPreviewStage { - CapturedAtStage bodyPreview(String bodyPreview); + CapturedAtStage bodyPreview(@NotNull String bodyPreview); Builder from(EventResponseData other); } public interface CapturedAtStage { - IdStage capturedAt(OffsetDateTime capturedAt); + IdStage capturedAt(@NotNull OffsetDateTime capturedAt); } public interface IdStage { - StatusStage id(String id); + StatusStage id(@NotNull String id); } public interface StatusStage { - TypeStage status(String status); + TypeStage status(@NotNull String status); } public interface TypeStage { - UpdatedAtStage type(String type); + UpdatedAtStage type(@NotNull String type); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -409,43 +410,43 @@ public Builder from(EventResponseData other) { @java.lang.Override @JsonSetter("body_preview") - public CapturedAtStage bodyPreview(String bodyPreview) { - this.bodyPreview = bodyPreview; + public CapturedAtStage bodyPreview(@NotNull String bodyPreview) { + this.bodyPreview = Objects.requireNonNull(bodyPreview, "bodyPreview must not be null"); return this; } @java.lang.Override @JsonSetter("captured_at") - public IdStage capturedAt(OffsetDateTime capturedAt) { - this.capturedAt = capturedAt; + public IdStage capturedAt(@NotNull OffsetDateTime capturedAt) { + this.capturedAt = Objects.requireNonNull(capturedAt, "capturedAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public StatusStage id(String id) { - this.id = id; + public StatusStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public TypeStage status(String status) { - this.status = status; + public TypeStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("type") - public UpdatedAtStage type(String type) { - this.type = type; + public UpdatedAtStage type(@NotNull String type) { + this.type = Objects.requireNonNull(type, "type must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/EventSummaryResponseData.java b/src/main/java/com/schematic/api/types/EventSummaryResponseData.java index d54a6f3..89cb3bb 100644 --- a/src/main/java/com/schematic/api/types/EventSummaryResponseData.java +++ b/src/main/java/com/schematic/api/types/EventSummaryResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventSummaryResponseData.Builder.class) @@ -129,7 +130,7 @@ public interface CompanyCountStage { } public interface EnvironmentIdStage { - EventCountStage environmentId(String environmentId); + EventCountStage environmentId(@NotNull String environmentId); } public interface EventCountStage { @@ -137,7 +138,7 @@ public interface EventCountStage { } public interface EventSubtypeStage { - UserCountStage eventSubtype(String eventSubtype); + UserCountStage eventSubtype(@NotNull String eventSubtype); } public interface UserCountStage { @@ -197,8 +198,8 @@ public EnvironmentIdStage companyCount(int companyCount) { @java.lang.Override @JsonSetter("environment_id") - public EventCountStage environmentId(String environmentId) { - this.environmentId = environmentId; + public EventCountStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @@ -211,8 +212,8 @@ public EventSubtypeStage eventCount(int eventCount) { @java.lang.Override @JsonSetter("event_subtype") - public UserCountStage eventSubtype(String eventSubtype) { - this.eventSubtype = eventSubtype; + public UserCountStage eventSubtype(@NotNull String eventSubtype) { + this.eventSubtype = Objects.requireNonNull(eventSubtype, "eventSubtype must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FeatureCompanyResponseData.java b/src/main/java/com/schematic/api/types/FeatureCompanyResponseData.java index 85f78ca..2dba20c 100644 --- a/src/main/java/com/schematic/api/types/FeatureCompanyResponseData.java +++ b/src/main/java/com/schematic/api/types/FeatureCompanyResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FeatureCompanyResponseData.Builder.class) @@ -227,15 +228,15 @@ public interface AccessStage { } public interface AllocationTypeStage { - EntitlementIdStage allocationType(FeatureCompanyResponseDataAllocationType allocationType); + EntitlementIdStage allocationType(@NotNull FeatureCompanyResponseDataAllocationType allocationType); } public interface EntitlementIdStage { - EntitlementTypeStage entitlementId(String entitlementId); + EntitlementTypeStage entitlementId(@NotNull String entitlementId); } public interface EntitlementTypeStage { - _FinalStage entitlementType(String entitlementType); + _FinalStage entitlementType(@NotNull String entitlementType); } public interface _FinalStage { @@ -347,22 +348,22 @@ public AllocationTypeStage access(boolean access) { */ @java.lang.Override @JsonSetter("allocation_type") - public EntitlementIdStage allocationType(FeatureCompanyResponseDataAllocationType allocationType) { - this.allocationType = allocationType; + public EntitlementIdStage allocationType(@NotNull FeatureCompanyResponseDataAllocationType allocationType) { + this.allocationType = Objects.requireNonNull(allocationType, "allocationType must not be null"); return this; } @java.lang.Override @JsonSetter("entitlement_id") - public EntitlementTypeStage entitlementId(String entitlementId) { - this.entitlementId = entitlementId; + public EntitlementTypeStage entitlementId(@NotNull String entitlementId) { + this.entitlementId = Objects.requireNonNull(entitlementId, "entitlementId must not be null"); return this; } @java.lang.Override @JsonSetter("entitlement_type") - public _FinalStage entitlementType(String entitlementType) { - this.entitlementType = entitlementType; + public _FinalStage entitlementType(@NotNull String entitlementType) { + this.entitlementType = Objects.requireNonNull(entitlementType, "entitlementType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FeatureCompanyUserResponseData.java b/src/main/java/com/schematic/api/types/FeatureCompanyUserResponseData.java index 3830e99..b6fd381 100644 --- a/src/main/java/com/schematic/api/types/FeatureCompanyUserResponseData.java +++ b/src/main/java/com/schematic/api/types/FeatureCompanyUserResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FeatureCompanyUserResponseData.Builder.class) @@ -227,15 +228,15 @@ public interface AccessStage { } public interface AllocationTypeStage { - EntitlementIdStage allocationType(FeatureCompanyUserResponseDataAllocationType allocationType); + EntitlementIdStage allocationType(@NotNull FeatureCompanyUserResponseDataAllocationType allocationType); } public interface EntitlementIdStage { - EntitlementTypeStage entitlementId(String entitlementId); + EntitlementTypeStage entitlementId(@NotNull String entitlementId); } public interface EntitlementTypeStage { - _FinalStage entitlementType(String entitlementType); + _FinalStage entitlementType(@NotNull String entitlementType); } public interface _FinalStage { @@ -347,22 +348,22 @@ public AllocationTypeStage access(boolean access) { */ @java.lang.Override @JsonSetter("allocation_type") - public EntitlementIdStage allocationType(FeatureCompanyUserResponseDataAllocationType allocationType) { - this.allocationType = allocationType; + public EntitlementIdStage allocationType(@NotNull FeatureCompanyUserResponseDataAllocationType allocationType) { + this.allocationType = Objects.requireNonNull(allocationType, "allocationType must not be null"); return this; } @java.lang.Override @JsonSetter("entitlement_id") - public EntitlementTypeStage entitlementId(String entitlementId) { - this.entitlementId = entitlementId; + public EntitlementTypeStage entitlementId(@NotNull String entitlementId) { + this.entitlementId = Objects.requireNonNull(entitlementId, "entitlementId must not be null"); return this; } @java.lang.Override @JsonSetter("entitlement_type") - public _FinalStage entitlementType(String entitlementType) { - this.entitlementType = entitlementType; + public _FinalStage entitlementType(@NotNull String entitlementType) { + this.entitlementType = Objects.requireNonNull(entitlementType, "entitlementType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FeatureDetailResponseData.java b/src/main/java/com/schematic/api/types/FeatureDetailResponseData.java index 1ee8811..0988bf4 100644 --- a/src/main/java/com/schematic/api/types/FeatureDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/FeatureDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FeatureDetailResponseData.Builder.class) @@ -224,33 +225,33 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DescriptionStage createdAt(OffsetDateTime createdAt); + DescriptionStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(FeatureDetailResponseData other); } public interface DescriptionStage { - FeatureTypeStage description(String description); + FeatureTypeStage description(@NotNull String description); } public interface FeatureTypeStage { - IconStage featureType(String featureType); + IconStage featureType(@NotNull String featureType); } public interface IconStage { - IdStage icon(String icon); + IdStage icon(@NotNull String icon); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -360,50 +361,50 @@ public Builder from(FeatureDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DescriptionStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DescriptionStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public FeatureTypeStage description(String description) { - this.description = description; + public FeatureTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("feature_type") - public IconStage featureType(String featureType) { - this.featureType = featureType; + public IconStage featureType(@NotNull String featureType) { + this.featureType = Objects.requireNonNull(featureType, "featureType must not be null"); return this; } @java.lang.Override @JsonSetter("icon") - public IdStage icon(String icon) { - this.icon = icon; + public IdStage icon(@NotNull String icon) { + this.icon = Objects.requireNonNull(icon, "icon must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FeatureResponseData.java b/src/main/java/com/schematic/api/types/FeatureResponseData.java index 9b15f3c..87853cf 100644 --- a/src/main/java/com/schematic/api/types/FeatureResponseData.java +++ b/src/main/java/com/schematic/api/types/FeatureResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FeatureResponseData.Builder.class) @@ -178,33 +179,33 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DescriptionStage createdAt(OffsetDateTime createdAt); + DescriptionStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(FeatureResponseData other); } public interface DescriptionStage { - FeatureTypeStage description(String description); + FeatureTypeStage description(@NotNull String description); } public interface FeatureTypeStage { - IconStage featureType(String featureType); + IconStage featureType(@NotNull String featureType); } public interface IconStage { - IdStage icon(String icon); + IdStage icon(@NotNull String icon); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -282,50 +283,50 @@ public Builder from(FeatureResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DescriptionStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DescriptionStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public FeatureTypeStage description(String description) { - this.description = description; + public FeatureTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("feature_type") - public IconStage featureType(String featureType) { - this.featureType = featureType; + public IconStage featureType(@NotNull String featureType) { + this.featureType = Objects.requireNonNull(featureType, "featureType must not be null"); return this; } @java.lang.Override @JsonSetter("icon") - public IdStage icon(String icon) { - this.icon = icon; + public IdStage icon(@NotNull String icon) { + this.icon = Objects.requireNonNull(icon, "icon must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FeatureUsageResponseData.java b/src/main/java/com/schematic/api/types/FeatureUsageResponseData.java index 4f024ac..2694f6c 100644 --- a/src/main/java/com/schematic/api/types/FeatureUsageResponseData.java +++ b/src/main/java/com/schematic/api/types/FeatureUsageResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FeatureUsageResponseData.Builder.class) @@ -249,15 +250,15 @@ public interface AccessStage { } public interface AllocationTypeStage { - EntitlementIdStage allocationType(FeatureUsageResponseDataAllocationType allocationType); + EntitlementIdStage allocationType(@NotNull FeatureUsageResponseDataAllocationType allocationType); } public interface EntitlementIdStage { - EntitlementTypeStage entitlementId(String entitlementId); + EntitlementTypeStage entitlementId(@NotNull String entitlementId); } public interface EntitlementTypeStage { - _FinalStage entitlementType(String entitlementType); + _FinalStage entitlementType(@NotNull String entitlementType); } public interface _FinalStage { @@ -383,22 +384,22 @@ public AllocationTypeStage access(boolean access) { */ @java.lang.Override @JsonSetter("allocation_type") - public EntitlementIdStage allocationType(FeatureUsageResponseDataAllocationType allocationType) { - this.allocationType = allocationType; + public EntitlementIdStage allocationType(@NotNull FeatureUsageResponseDataAllocationType allocationType) { + this.allocationType = Objects.requireNonNull(allocationType, "allocationType must not be null"); return this; } @java.lang.Override @JsonSetter("entitlement_id") - public EntitlementTypeStage entitlementId(String entitlementId) { - this.entitlementId = entitlementId; + public EntitlementTypeStage entitlementId(@NotNull String entitlementId) { + this.entitlementId = Objects.requireNonNull(entitlementId, "entitlementId must not be null"); return this; } @java.lang.Override @JsonSetter("entitlement_type") - public _FinalStage entitlementType(String entitlementType) { - this.entitlementType = entitlementType; + public _FinalStage entitlementType(@NotNull String entitlementType) { + this.entitlementType = Objects.requireNonNull(entitlementType, "entitlementType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FlagDetailResponseData.java b/src/main/java/com/schematic/api/types/FlagDetailResponseData.java index aaa9c16..95dece4 100644 --- a/src/main/java/com/schematic/api/types/FlagDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/FlagDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FlagDetailResponseData.Builder.class) @@ -202,7 +203,7 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DefaultValueStage createdAt(OffsetDateTime createdAt); + DefaultValueStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(FlagDetailResponseData other); } @@ -212,27 +213,27 @@ public interface DefaultValueStage { } public interface DescriptionStage { - FlagTypeStage description(String description); + FlagTypeStage description(@NotNull String description); } public interface FlagTypeStage { - IdStage flagType(String flagType); + IdStage flagType(@NotNull String flagType); } public interface IdStage { - KeyStage id(String id); + KeyStage id(@NotNull String id); } public interface KeyStage { - NameStage key(String key); + NameStage key(@NotNull String key); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -323,8 +324,8 @@ public Builder from(FlagDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DefaultValueStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DefaultValueStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @@ -337,43 +338,43 @@ public DescriptionStage defaultValue(boolean defaultValue) { @java.lang.Override @JsonSetter("description") - public FlagTypeStage description(String description) { - this.description = description; + public FlagTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("flag_type") - public IdStage flagType(String flagType) { - this.flagType = flagType; + public IdStage flagType(@NotNull String flagType) { + this.flagType = Objects.requireNonNull(flagType, "flagType must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public KeyStage id(String id) { - this.id = id; + public KeyStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public NameStage key(String key) { - this.key = key; + public NameStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/FlagResponseData.java b/src/main/java/com/schematic/api/types/FlagResponseData.java index c062fe4..637336e 100644 --- a/src/main/java/com/schematic/api/types/FlagResponseData.java +++ b/src/main/java/com/schematic/api/types/FlagResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = FlagResponseData.Builder.class) @@ -167,7 +168,7 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DefaultValueStage createdAt(OffsetDateTime createdAt); + DefaultValueStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(FlagResponseData other); } @@ -177,27 +178,27 @@ public interface DefaultValueStage { } public interface DescriptionStage { - FlagTypeStage description(String description); + FlagTypeStage description(@NotNull String description); } public interface FlagTypeStage { - IdStage flagType(String flagType); + IdStage flagType(@NotNull String flagType); } public interface IdStage { - KeyStage id(String id); + KeyStage id(@NotNull String id); } public interface KeyStage { - NameStage key(String key); + NameStage key(@NotNull String key); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -265,8 +266,8 @@ public Builder from(FlagResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DefaultValueStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DefaultValueStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @@ -279,43 +280,43 @@ public DescriptionStage defaultValue(boolean defaultValue) { @java.lang.Override @JsonSetter("description") - public FlagTypeStage description(String description) { - this.description = description; + public FlagTypeStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("flag_type") - public IdStage flagType(String flagType) { - this.flagType = flagType; + public IdStage flagType(@NotNull String flagType) { + this.flagType = Objects.requireNonNull(flagType, "flagType must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public KeyStage id(String id) { - this.id = id; + public KeyStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("key") - public NameStage key(String key) { - this.key = key; + public NameStage key(@NotNull String key) { + this.key = Objects.requireNonNull(key, "key must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/GenericPreviewObject.java b/src/main/java/com/schematic/api/types/GenericPreviewObject.java index f1406fd..14a562e 100644 --- a/src/main/java/com/schematic/api/types/GenericPreviewObject.java +++ b/src/main/java/com/schematic/api/types/GenericPreviewObject.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = GenericPreviewObject.Builder.class) @@ -96,13 +97,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); Builder from(GenericPreviewObject other); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -143,15 +144,15 @@ public Builder from(GenericPreviewObject other) { @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/InvoiceRequestBody.java b/src/main/java/com/schematic/api/types/InvoiceRequestBody.java index c9a7ea2..6f4b003 100644 --- a/src/main/java/com/schematic/api/types/InvoiceRequestBody.java +++ b/src/main/java/com/schematic/api/types/InvoiceRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = InvoiceRequestBody.Builder.class) @@ -192,15 +193,15 @@ public interface AmountRemainingStage { } public interface CollectionMethodStage { - CurrencyStage collectionMethod(String collectionMethod); + CurrencyStage collectionMethod(@NotNull String collectionMethod); } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); } public interface CustomerExternalIdStage { - SubtotalStage customerExternalId(String customerExternalId); + SubtotalStage customerExternalId(@NotNull String customerExternalId); } public interface SubtotalStage { @@ -303,22 +304,22 @@ public CollectionMethodStage amountRemaining(int amountRemaining) { @java.lang.Override @JsonSetter("collection_method") - public CurrencyStage collectionMethod(String collectionMethod) { - this.collectionMethod = collectionMethod; + public CurrencyStage collectionMethod(@NotNull String collectionMethod) { + this.collectionMethod = Objects.requireNonNull(collectionMethod, "collectionMethod must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public SubtotalStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public SubtotalStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/InvoiceResponseData.java b/src/main/java/com/schematic/api/types/InvoiceResponseData.java index 9355cb2..6f7f03e 100644 --- a/src/main/java/com/schematic/api/types/InvoiceResponseData.java +++ b/src/main/java/com/schematic/api/types/InvoiceResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = InvoiceResponseData.Builder.class) @@ -258,27 +259,27 @@ public interface AmountRemainingStage { } public interface CollectionMethodStage { - CreatedAtStage collectionMethod(String collectionMethod); + CreatedAtStage collectionMethod(@NotNull String collectionMethod); } public interface CreatedAtStage { - CurrencyStage createdAt(OffsetDateTime createdAt); + CurrencyStage createdAt(@NotNull OffsetDateTime createdAt); } public interface CurrencyStage { - CustomerExternalIdStage currency(String currency); + CustomerExternalIdStage currency(@NotNull String currency); } public interface CustomerExternalIdStage { - EnvironmentIdStage customerExternalId(String customerExternalId); + EnvironmentIdStage customerExternalId(@NotNull String customerExternalId); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - SubtotalStage id(String id); + SubtotalStage id(@NotNull String id); } public interface SubtotalStage { @@ -286,7 +287,7 @@ public interface SubtotalStage { } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -415,43 +416,43 @@ public CollectionMethodStage amountRemaining(int amountRemaining) { @java.lang.Override @JsonSetter("collection_method") - public CreatedAtStage collectionMethod(String collectionMethod) { - this.collectionMethod = collectionMethod; + public CreatedAtStage collectionMethod(@NotNull String collectionMethod) { + this.collectionMethod = Objects.requireNonNull(collectionMethod, "collectionMethod must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public CurrencyStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CurrencyStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("currency") - public CustomerExternalIdStage currency(String currency) { - this.currency = currency; + public CustomerExternalIdStage currency(@NotNull String currency) { + this.currency = Objects.requireNonNull(currency, "currency must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public EnvironmentIdStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public EnvironmentIdStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public SubtotalStage id(String id) { - this.id = id; + public SubtotalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @@ -464,8 +465,8 @@ public UpdatedAtStage subtotal(int subtotal) { @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/IssueTemporaryAccessTokenResponseData.java b/src/main/java/com/schematic/api/types/IssueTemporaryAccessTokenResponseData.java index 88f1b55..9d6e1cc 100644 --- a/src/main/java/com/schematic/api/types/IssueTemporaryAccessTokenResponseData.java +++ b/src/main/java/com/schematic/api/types/IssueTemporaryAccessTokenResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = IssueTemporaryAccessTokenResponseData.Builder.class) @@ -144,37 +145,37 @@ public static ApiKeyIdStage builder() { } public interface ApiKeyIdStage { - CreatedAtStage apiKeyId(String apiKeyId); + CreatedAtStage apiKeyId(@NotNull String apiKeyId); Builder from(IssueTemporaryAccessTokenResponseData other); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - ExpiredAtStage environmentId(String environmentId); + ExpiredAtStage environmentId(@NotNull String environmentId); } public interface ExpiredAtStage { - IdStage expiredAt(OffsetDateTime expiredAt); + IdStage expiredAt(@NotNull OffsetDateTime expiredAt); } public interface IdStage { - ResourceTypeStage id(String id); + ResourceTypeStage id(@NotNull String id); } public interface ResourceTypeStage { - TokenStage resourceType(String resourceType); + TokenStage resourceType(@NotNull String resourceType); } public interface TokenStage { - UpdatedAtStage token(String token); + UpdatedAtStage token(@NotNull String token); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -228,57 +229,57 @@ public Builder from(IssueTemporaryAccessTokenResponseData other) { @java.lang.Override @JsonSetter("api_key_id") - public CreatedAtStage apiKeyId(String apiKeyId) { - this.apiKeyId = apiKeyId; + public CreatedAtStage apiKeyId(@NotNull String apiKeyId) { + this.apiKeyId = Objects.requireNonNull(apiKeyId, "apiKeyId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExpiredAtStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExpiredAtStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("expired_at") - public IdStage expiredAt(OffsetDateTime expiredAt) { - this.expiredAt = expiredAt; + public IdStage expiredAt(@NotNull OffsetDateTime expiredAt) { + this.expiredAt = Objects.requireNonNull(expiredAt, "expiredAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public ResourceTypeStage id(String id) { - this.id = id; + public ResourceTypeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("resource_type") - public TokenStage resourceType(String resourceType) { - this.resourceType = resourceType; + public TokenStage resourceType(@NotNull String resourceType) { + this.resourceType = Objects.requireNonNull(resourceType, "resourceType must not be null"); return this; } @java.lang.Override @JsonSetter("token") - public UpdatedAtStage token(String token) { - this.token = token; + public UpdatedAtStage token(@NotNull String token) { + this.token = Objects.requireNonNull(token, "token must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/MeterRequestBody.java b/src/main/java/com/schematic/api/types/MeterRequestBody.java index 6da139f..6297398 100644 --- a/src/main/java/com/schematic/api/types/MeterRequestBody.java +++ b/src/main/java/com/schematic/api/types/MeterRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = MeterRequestBody.Builder.class) @@ -81,17 +82,17 @@ public static DisplayNameStage builder() { } public interface DisplayNameStage { - EventNameStage displayName(String displayName); + EventNameStage displayName(@NotNull String displayName); Builder from(MeterRequestBody other); } public interface EventNameStage { - EventPayloadKeyStage eventName(String eventName); + EventPayloadKeyStage eventName(@NotNull String eventName); } public interface EventPayloadKeyStage { - _FinalStage eventPayloadKey(String eventPayloadKey); + _FinalStage eventPayloadKey(@NotNull String eventPayloadKey); } public interface _FinalStage { @@ -121,22 +122,22 @@ public Builder from(MeterRequestBody other) { @java.lang.Override @JsonSetter("display_name") - public EventNameStage displayName(String displayName) { - this.displayName = displayName; + public EventNameStage displayName(@NotNull String displayName) { + this.displayName = Objects.requireNonNull(displayName, "displayName must not be null"); return this; } @java.lang.Override @JsonSetter("event_name") - public EventPayloadKeyStage eventName(String eventName) { - this.eventName = eventName; + public EventPayloadKeyStage eventName(@NotNull String eventName) { + this.eventName = Objects.requireNonNull(eventName, "eventName must not be null"); return this; } @java.lang.Override @JsonSetter("event_payload_key") - public _FinalStage eventPayloadKey(String eventPayloadKey) { - this.eventPayloadKey = eventPayloadKey; + public _FinalStage eventPayloadKey(@NotNull String eventPayloadKey) { + this.eventPayloadKey = Objects.requireNonNull(eventPayloadKey, "eventPayloadKey must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PaymentMethodRequestBody.java b/src/main/java/com/schematic/api/types/PaymentMethodRequestBody.java index d030f29..30f3c02 100644 --- a/src/main/java/com/schematic/api/types/PaymentMethodRequestBody.java +++ b/src/main/java/com/schematic/api/types/PaymentMethodRequestBody.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PaymentMethodRequestBody.Builder.class) @@ -188,13 +189,13 @@ public static CustomerExternalIdStage builder() { } public interface CustomerExternalIdStage { - PaymentMethodTypeStage customerExternalId(String customerExternalId); + PaymentMethodTypeStage customerExternalId(@NotNull String customerExternalId); Builder from(PaymentMethodRequestBody other); } public interface PaymentMethodTypeStage { - _FinalStage paymentMethodType(String paymentMethodType); + _FinalStage paymentMethodType(@NotNull String paymentMethodType); } public interface _FinalStage { @@ -291,15 +292,15 @@ public Builder from(PaymentMethodRequestBody other) { @java.lang.Override @JsonSetter("customer_external_id") - public PaymentMethodTypeStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public PaymentMethodTypeStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("payment_method_type") - public _FinalStage paymentMethodType(String paymentMethodType) { - this.paymentMethodType = paymentMethodType; + public _FinalStage paymentMethodType(@NotNull String paymentMethodType) { + this.paymentMethodType = Objects.requireNonNull(paymentMethodType, "paymentMethodType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PaymentMethodResponseData.java b/src/main/java/com/schematic/api/types/PaymentMethodResponseData.java index 4e7e84c..0bf5fee 100644 --- a/src/main/java/com/schematic/api/types/PaymentMethodResponseData.java +++ b/src/main/java/com/schematic/api/types/PaymentMethodResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PaymentMethodResponseData.Builder.class) @@ -255,33 +256,33 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - CustomerExternalIdStage createdAt(OffsetDateTime createdAt); + CustomerExternalIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(PaymentMethodResponseData other); } public interface CustomerExternalIdStage { - EnvironmentIdStage customerExternalId(String customerExternalId); + EnvironmentIdStage customerExternalId(@NotNull String customerExternalId); } public interface EnvironmentIdStage { - ExternalIdStage environmentId(String environmentId); + ExternalIdStage environmentId(@NotNull String environmentId); } public interface ExternalIdStage { - IdStage externalId(String externalId); + IdStage externalId(@NotNull String externalId); } public interface IdStage { - PaymentMethodTypeStage id(String id); + PaymentMethodTypeStage id(@NotNull String id); } public interface PaymentMethodTypeStage { - UpdatedAtStage paymentMethodType(String paymentMethodType); + UpdatedAtStage paymentMethodType(@NotNull String paymentMethodType); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -408,50 +409,50 @@ public Builder from(PaymentMethodResponseData other) { @java.lang.Override @JsonSetter("created_at") - public CustomerExternalIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public CustomerExternalIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("customer_external_id") - public EnvironmentIdStage customerExternalId(String customerExternalId) { - this.customerExternalId = customerExternalId; + public EnvironmentIdStage customerExternalId(@NotNull String customerExternalId) { + this.customerExternalId = Objects.requireNonNull(customerExternalId, "customerExternalId must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExternalIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExternalIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("external_id") - public IdStage externalId(String externalId) { - this.externalId = externalId; + public IdStage externalId(@NotNull String externalId) { + this.externalId = Objects.requireNonNull(externalId, "externalId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public PaymentMethodTypeStage id(String id) { - this.id = id; + public PaymentMethodTypeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("payment_method_type") - public UpdatedAtStage paymentMethodType(String paymentMethodType) { - this.paymentMethodType = paymentMethodType; + public UpdatedAtStage paymentMethodType(@NotNull String paymentMethodType) { + this.paymentMethodType = Objects.requireNonNull(paymentMethodType, "paymentMethodType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanAudienceDetailResponseData.java b/src/main/java/com/schematic/api/types/PlanAudienceDetailResponseData.java index eedc3d2..c52729f 100644 --- a/src/main/java/com/schematic/api/types/PlanAudienceDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanAudienceDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanAudienceDetailResponseData.Builder.class) @@ -191,21 +192,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(PlanAudienceDetailResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - PriorityStage name(String name); + PriorityStage name(@NotNull String name); } public interface PriorityStage { @@ -213,11 +214,11 @@ public interface PriorityStage { } public interface RuleTypeStage { - UpdatedAtStage ruleType(String ruleType); + UpdatedAtStage ruleType(@NotNull String ruleType); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { @@ -307,29 +308,29 @@ public Builder from(PlanAudienceDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriorityStage name(String name) { - this.name = name; + public PriorityStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -342,15 +343,15 @@ public RuleTypeStage priority(int priority) { @java.lang.Override @JsonSetter("rule_type") - public UpdatedAtStage ruleType(String ruleType) { - this.ruleType = ruleType; + public UpdatedAtStage ruleType(@NotNull String ruleType) { + this.ruleType = Objects.requireNonNull(ruleType, "ruleType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanAudienceResponseData.java b/src/main/java/com/schematic/api/types/PlanAudienceResponseData.java index ca6102f..d345528 100644 --- a/src/main/java/com/schematic/api/types/PlanAudienceResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanAudienceResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanAudienceResponseData.Builder.class) @@ -167,21 +168,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(PlanAudienceResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - PriorityStage name(String name); + PriorityStage name(@NotNull String name); } public interface PriorityStage { @@ -189,11 +190,11 @@ public interface PriorityStage { } public interface RuleTypeStage { - UpdatedAtStage ruleType(String ruleType); + UpdatedAtStage ruleType(@NotNull String ruleType); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { @@ -265,29 +266,29 @@ public Builder from(PlanAudienceResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriorityStage name(String name) { - this.name = name; + public PriorityStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -300,15 +301,15 @@ public RuleTypeStage priority(int priority) { @java.lang.Override @JsonSetter("rule_type") - public UpdatedAtStage ruleType(String ruleType) { - this.ruleType = ruleType; + public UpdatedAtStage ruleType(@NotNull String ruleType) { + this.ruleType = Objects.requireNonNull(ruleType, "ruleType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanDetailResponseData.java b/src/main/java/com/schematic/api/types/PlanDetailResponseData.java index 760247c..dee8b8f 100644 --- a/src/main/java/com/schematic/api/types/PlanDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanDetailResponseData.Builder.class) @@ -252,19 +253,19 @@ public interface CompanyCountStage { } public interface CreatedAtStage { - DescriptionStage createdAt(OffsetDateTime createdAt); + DescriptionStage createdAt(@NotNull OffsetDateTime createdAt); } public interface DescriptionStage { - IconStage description(String description); + IconStage description(@NotNull String description); } public interface IconStage { - IdStage icon(String icon); + IdStage icon(@NotNull String icon); } public interface IdStage { - IsDefaultStage id(String id); + IsDefaultStage id(@NotNull String id); } public interface IsDefaultStage { @@ -280,15 +281,15 @@ public interface IsTrialableStage { } public interface NameStage { - PlanTypeStage name(String name); + PlanTypeStage name(@NotNull String name); } public interface PlanTypeStage { - UpdatedAtStage planType(String planType); + UpdatedAtStage planType(@NotNull String planType); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -405,29 +406,29 @@ public CreatedAtStage companyCount(int companyCount) { @java.lang.Override @JsonSetter("created_at") - public DescriptionStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DescriptionStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public IconStage description(String description) { - this.description = description; + public IconStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("icon") - public IdStage icon(String icon) { - this.icon = icon; + public IdStage icon(@NotNull String icon) { + this.icon = Objects.requireNonNull(icon, "icon must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IsDefaultStage id(String id) { - this.id = id; + public IsDefaultStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @@ -454,22 +455,22 @@ public NameStage isTrialable(boolean isTrialable) { @java.lang.Override @JsonSetter("name") - public PlanTypeStage name(String name) { - this.name = name; + public PlanTypeStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("plan_type") - public UpdatedAtStage planType(String planType) { - this.planType = planType; + public UpdatedAtStage planType(@NotNull String planType) { + this.planType = Objects.requireNonNull(planType, "planType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanEntitlementResponseData.java b/src/main/java/com/schematic/api/types/PlanEntitlementResponseData.java index e68376d..7abff32 100644 --- a/src/main/java/com/schematic/api/types/PlanEntitlementResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanEntitlementResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanEntitlementResponseData.Builder.class) @@ -266,37 +267,37 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(PlanEntitlementResponseData other); } public interface EnvironmentIdStage { - FeatureIdStage environmentId(String environmentId); + FeatureIdStage environmentId(@NotNull String environmentId); } public interface FeatureIdStage { - IdStage featureId(String featureId); + IdStage featureId(@NotNull String featureId); } public interface IdStage { - PlanIdStage id(String id); + PlanIdStage id(@NotNull String id); } public interface PlanIdStage { - RuleIdStage planId(String planId); + RuleIdStage planId(@NotNull String planId); } public interface RuleIdStage { - UpdatedAtStage ruleId(String ruleId); + UpdatedAtStage ruleId(@NotNull String ruleId); } public interface UpdatedAtStage { - ValueTypeStage updatedAt(OffsetDateTime updatedAt); + ValueTypeStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueTypeStage { - _FinalStage valueType(String valueType); + _FinalStage valueType(@NotNull String valueType); } public interface _FinalStage { @@ -427,57 +428,57 @@ public Builder from(PlanEntitlementResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public FeatureIdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public FeatureIdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("feature_id") - public IdStage featureId(String featureId) { - this.featureId = featureId; + public IdStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public PlanIdStage id(String id) { - this.id = id; + public PlanIdStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("plan_id") - public RuleIdStage planId(String planId) { - this.planId = planId; + public RuleIdStage planId(@NotNull String planId) { + this.planId = Objects.requireNonNull(planId, "planId must not be null"); return this; } @java.lang.Override @JsonSetter("rule_id") - public UpdatedAtStage ruleId(String ruleId) { - this.ruleId = ruleId; + public UpdatedAtStage ruleId(@NotNull String ruleId) { + this.ruleId = Objects.requireNonNull(ruleId, "ruleId must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueTypeStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueTypeStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(String valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull String valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanGroupDetailResponseData.java b/src/main/java/com/schematic/api/types/PlanGroupDetailResponseData.java index 0ff2558..e6ea415 100644 --- a/src/main/java/com/schematic/api/types/PlanGroupDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanGroupDetailResponseData.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanGroupDetailResponseData.Builder.class) @@ -135,7 +136,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(String id); + _FinalStage id(@NotNull String id); Builder from(PlanGroupDetailResponseData other); } @@ -207,8 +208,8 @@ public Builder from(PlanGroupDetailResponseData other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(String id) { - this.id = id; + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanGroupPlanDetailResponseData.java b/src/main/java/com/schematic/api/types/PlanGroupPlanDetailResponseData.java index 95a863a..af3fc1e 100644 --- a/src/main/java/com/schematic/api/types/PlanGroupPlanDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanGroupPlanDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanGroupPlanDetailResponseData.Builder.class) @@ -263,19 +264,19 @@ public interface CompanyCountStage { } public interface CreatedAtStage { - DescriptionStage createdAt(OffsetDateTime createdAt); + DescriptionStage createdAt(@NotNull OffsetDateTime createdAt); } public interface DescriptionStage { - IconStage description(String description); + IconStage description(@NotNull String description); } public interface IconStage { - IdStage icon(String icon); + IdStage icon(@NotNull String icon); } public interface IdStage { - IsDefaultStage id(String id); + IsDefaultStage id(@NotNull String id); } public interface IsDefaultStage { @@ -291,15 +292,15 @@ public interface IsTrialableStage { } public interface NameStage { - PlanTypeStage name(String name); + PlanTypeStage name(@NotNull String name); } public interface PlanTypeStage { - UpdatedAtStage planType(String planType); + UpdatedAtStage planType(@NotNull String planType); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -425,29 +426,29 @@ public CreatedAtStage companyCount(int companyCount) { @java.lang.Override @JsonSetter("created_at") - public DescriptionStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DescriptionStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public IconStage description(String description) { - this.description = description; + public IconStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("icon") - public IdStage icon(String icon) { - this.icon = icon; + public IdStage icon(@NotNull String icon) { + this.icon = Objects.requireNonNull(icon, "icon must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public IsDefaultStage id(String id) { - this.id = id; + public IsDefaultStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @@ -474,22 +475,22 @@ public NameStage isTrialable(boolean isTrialable) { @java.lang.Override @JsonSetter("name") - public PlanTypeStage name(String name) { - this.name = name; + public PlanTypeStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("plan_type") - public UpdatedAtStage planType(String planType) { - this.planType = planType; + public UpdatedAtStage planType(@NotNull String planType) { + this.planType = Objects.requireNonNull(planType, "planType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanGroupResponseData.java b/src/main/java/com/schematic/api/types/PlanGroupResponseData.java index 61413cd..734402b 100644 --- a/src/main/java/com/schematic/api/types/PlanGroupResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanGroupResponseData.java @@ -18,6 +18,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanGroupResponseData.Builder.class) @@ -124,7 +125,7 @@ public static IdStage builder() { } public interface IdStage { - _FinalStage id(String id); + _FinalStage id(@NotNull String id); Builder from(PlanGroupResponseData other); } @@ -189,8 +190,8 @@ public Builder from(PlanGroupResponseData other) { @java.lang.Override @JsonSetter("id") - public _FinalStage id(String id) { - this.id = id; + public _FinalStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PlanResponseData.java b/src/main/java/com/schematic/api/types/PlanResponseData.java index 791be37..ed86395 100644 --- a/src/main/java/com/schematic/api/types/PlanResponseData.java +++ b/src/main/java/com/schematic/api/types/PlanResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PlanResponseData.Builder.class) @@ -145,33 +146,33 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - DescriptionStage createdAt(OffsetDateTime createdAt); + DescriptionStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(PlanResponseData other); } public interface DescriptionStage { - IconStage description(String description); + IconStage description(@NotNull String description); } public interface IconStage { - IdStage icon(String icon); + IdStage icon(@NotNull String icon); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - PlanTypeStage name(String name); + PlanTypeStage name(@NotNull String name); } public interface PlanTypeStage { - UpdatedAtStage planType(String planType); + UpdatedAtStage planType(@NotNull String planType); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -228,50 +229,50 @@ public Builder from(PlanResponseData other) { @java.lang.Override @JsonSetter("created_at") - public DescriptionStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public DescriptionStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("description") - public IconStage description(String description) { - this.description = description; + public IconStage description(@NotNull String description) { + this.description = Objects.requireNonNull(description, "description must not be null"); return this; } @java.lang.Override @JsonSetter("icon") - public IdStage icon(String icon) { - this.icon = icon; + public IdStage icon(@NotNull String icon) { + this.icon = Objects.requireNonNull(icon, "icon must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PlanTypeStage name(String name) { - this.name = name; + public PlanTypeStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("plan_type") - public UpdatedAtStage planType(String planType) { - this.planType = planType; + public UpdatedAtStage planType(@NotNull String planType) { + this.planType = Objects.requireNonNull(planType, "planType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PreviewObject.java b/src/main/java/com/schematic/api/types/PreviewObject.java index 3c0ec28..696c7f0 100644 --- a/src/main/java/com/schematic/api/types/PreviewObject.java +++ b/src/main/java/com/schematic/api/types/PreviewObject.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PreviewObject.Builder.class) @@ -96,13 +97,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); Builder from(PreviewObject other); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -143,15 +144,15 @@ public Builder from(PreviewObject other) { @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PreviewObjectResponseData.java b/src/main/java/com/schematic/api/types/PreviewObjectResponseData.java index 56c23b2..a33a4a8 100644 --- a/src/main/java/com/schematic/api/types/PreviewObjectResponseData.java +++ b/src/main/java/com/schematic/api/types/PreviewObjectResponseData.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PreviewObjectResponseData.Builder.class) @@ -96,13 +97,13 @@ public static IdStage builder() { } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); Builder from(PreviewObjectResponseData other); } public interface NameStage { - _FinalStage name(String name); + _FinalStage name(@NotNull String name); } public interface _FinalStage { @@ -143,15 +144,15 @@ public Builder from(PreviewObjectResponseData other) { @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public _FinalStage name(String name) { - this.name = name; + public _FinalStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/PreviewSubscriptionChangeResponseData.java b/src/main/java/com/schematic/api/types/PreviewSubscriptionChangeResponseData.java index 432c1bc..7e87310 100644 --- a/src/main/java/com/schematic/api/types/PreviewSubscriptionChangeResponseData.java +++ b/src/main/java/com/schematic/api/types/PreviewSubscriptionChangeResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PreviewSubscriptionChangeResponseData.Builder.class) @@ -164,7 +165,7 @@ public interface PercentOffStage { } public interface PeriodStartStage { - PromoCodeAppliedStage periodStart(OffsetDateTime periodStart); + PromoCodeAppliedStage periodStart(@NotNull OffsetDateTime periodStart); } public interface PromoCodeAppliedStage { @@ -257,8 +258,8 @@ public PeriodStartStage percentOff(double percentOff) { @java.lang.Override @JsonSetter("period_start") - public PromoCodeAppliedStage periodStart(OffsetDateTime periodStart) { - this.periodStart = periodStart; + public PromoCodeAppliedStage periodStart(@NotNull OffsetDateTime periodStart) { + this.periodStart = Objects.requireNonNull(periodStart, "periodStart must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RawEventResponseData.java b/src/main/java/com/schematic/api/types/RawEventResponseData.java index 450307e..eb90646 100644 --- a/src/main/java/com/schematic/api/types/RawEventResponseData.java +++ b/src/main/java/com/schematic/api/types/RawEventResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RawEventResponseData.Builder.class) @@ -107,21 +108,21 @@ public static CapturedAtStage builder() { } public interface CapturedAtStage { - RemoteAddrStage capturedAt(OffsetDateTime capturedAt); + RemoteAddrStage capturedAt(@NotNull OffsetDateTime capturedAt); Builder from(RawEventResponseData other); } public interface RemoteAddrStage { - RemoteIpStage remoteAddr(String remoteAddr); + RemoteIpStage remoteAddr(@NotNull String remoteAddr); } public interface RemoteIpStage { - UserAgentStage remoteIp(String remoteIp); + UserAgentStage remoteIp(@NotNull String remoteIp); } public interface UserAgentStage { - _FinalStage userAgent(String userAgent); + _FinalStage userAgent(@NotNull String userAgent); } public interface _FinalStage { @@ -162,29 +163,29 @@ public Builder from(RawEventResponseData other) { @java.lang.Override @JsonSetter("captured_at") - public RemoteAddrStage capturedAt(OffsetDateTime capturedAt) { - this.capturedAt = capturedAt; + public RemoteAddrStage capturedAt(@NotNull OffsetDateTime capturedAt) { + this.capturedAt = Objects.requireNonNull(capturedAt, "capturedAt must not be null"); return this; } @java.lang.Override @JsonSetter("remote_addr") - public RemoteIpStage remoteAddr(String remoteAddr) { - this.remoteAddr = remoteAddr; + public RemoteIpStage remoteAddr(@NotNull String remoteAddr) { + this.remoteAddr = Objects.requireNonNull(remoteAddr, "remoteAddr must not be null"); return this; } @java.lang.Override @JsonSetter("remote_ip") - public UserAgentStage remoteIp(String remoteIp) { - this.remoteIp = remoteIp; + public UserAgentStage remoteIp(@NotNull String remoteIp) { + this.remoteIp = Objects.requireNonNull(remoteIp, "remoteIp must not be null"); return this; } @java.lang.Override @JsonSetter("user_agent") - public _FinalStage userAgent(String userAgent) { - this.userAgent = userAgent; + public _FinalStage userAgent(@NotNull String userAgent) { + this.userAgent = Objects.requireNonNull(userAgent, "userAgent must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RuleConditionDetailResponseData.java b/src/main/java/com/schematic/api/types/RuleConditionDetailResponseData.java index ead5e00..7b072b7 100644 --- a/src/main/java/com/schematic/api/types/RuleConditionDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/RuleConditionDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RuleConditionDetailResponseData.Builder.class) @@ -301,37 +302,37 @@ public static ConditionTypeStage builder() { } public interface ConditionTypeStage { - CreatedAtStage conditionType(String conditionType); + CreatedAtStage conditionType(@NotNull String conditionType); Builder from(RuleConditionDetailResponseData other); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - OperatorStage id(String id); + OperatorStage id(@NotNull String id); } public interface OperatorStage { - RuleIdStage operator(String operator); + RuleIdStage operator(@NotNull String operator); } public interface RuleIdStage { - TraitValueStage ruleId(String ruleId); + TraitValueStage ruleId(@NotNull String ruleId); } public interface TraitValueStage { - UpdatedAtStage traitValue(String traitValue); + UpdatedAtStage traitValue(@NotNull String traitValue); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -487,57 +488,57 @@ public Builder from(RuleConditionDetailResponseData other) { @java.lang.Override @JsonSetter("condition_type") - public CreatedAtStage conditionType(String conditionType) { - this.conditionType = conditionType; + public CreatedAtStage conditionType(@NotNull String conditionType) { + this.conditionType = Objects.requireNonNull(conditionType, "conditionType must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public OperatorStage id(String id) { - this.id = id; + public OperatorStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("operator") - public RuleIdStage operator(String operator) { - this.operator = operator; + public RuleIdStage operator(@NotNull String operator) { + this.operator = Objects.requireNonNull(operator, "operator must not be null"); return this; } @java.lang.Override @JsonSetter("rule_id") - public TraitValueStage ruleId(String ruleId) { - this.ruleId = ruleId; + public TraitValueStage ruleId(@NotNull String ruleId) { + this.ruleId = Objects.requireNonNull(ruleId, "ruleId must not be null"); return this; } @java.lang.Override @JsonSetter("trait_value") - public UpdatedAtStage traitValue(String traitValue) { - this.traitValue = traitValue; + public UpdatedAtStage traitValue(@NotNull String traitValue) { + this.traitValue = Objects.requireNonNull(traitValue, "traitValue must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RuleConditionGroupDetailResponseData.java b/src/main/java/com/schematic/api/types/RuleConditionGroupDetailResponseData.java index 915c745..eda3a8e 100644 --- a/src/main/java/com/schematic/api/types/RuleConditionGroupDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/RuleConditionGroupDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RuleConditionGroupDetailResponseData.Builder.class) @@ -148,25 +149,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(RuleConditionGroupDetailResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - RuleIdStage id(String id); + RuleIdStage id(@NotNull String id); } public interface RuleIdStage { - UpdatedAtStage ruleId(String ruleId); + UpdatedAtStage ruleId(@NotNull String ruleId); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -226,36 +227,36 @@ public Builder from(RuleConditionGroupDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public RuleIdStage id(String id) { - this.id = id; + public RuleIdStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("rule_id") - public UpdatedAtStage ruleId(String ruleId) { - this.ruleId = ruleId; + public UpdatedAtStage ruleId(@NotNull String ruleId) { + this.ruleId = Objects.requireNonNull(ruleId, "ruleId must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RuleConditionGroupResponseData.java b/src/main/java/com/schematic/api/types/RuleConditionGroupResponseData.java index 8893531..5b726c3 100644 --- a/src/main/java/com/schematic/api/types/RuleConditionGroupResponseData.java +++ b/src/main/java/com/schematic/api/types/RuleConditionGroupResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RuleConditionGroupResponseData.Builder.class) @@ -128,25 +129,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(RuleConditionGroupResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - RuleIdStage id(String id); + RuleIdStage id(@NotNull String id); } public interface RuleIdStage { - UpdatedAtStage ruleId(String ruleId); + UpdatedAtStage ruleId(@NotNull String ruleId); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -197,36 +198,36 @@ public Builder from(RuleConditionGroupResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public RuleIdStage id(String id) { - this.id = id; + public RuleIdStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("rule_id") - public UpdatedAtStage ruleId(String ruleId) { - this.ruleId = ruleId; + public UpdatedAtStage ruleId(@NotNull String ruleId) { + this.ruleId = Objects.requireNonNull(ruleId, "ruleId must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RuleConditionResponseData.java b/src/main/java/com/schematic/api/types/RuleConditionResponseData.java index 837925b..5fb269f 100644 --- a/src/main/java/com/schematic/api/types/RuleConditionResponseData.java +++ b/src/main/java/com/schematic/api/types/RuleConditionResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RuleConditionResponseData.Builder.class) @@ -268,37 +269,37 @@ public static ConditionTypeStage builder() { } public interface ConditionTypeStage { - CreatedAtStage conditionType(String conditionType); + CreatedAtStage conditionType(@NotNull String conditionType); Builder from(RuleConditionResponseData other); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - OperatorStage id(String id); + OperatorStage id(@NotNull String id); } public interface OperatorStage { - RuleIdStage operator(String operator); + RuleIdStage operator(@NotNull String operator); } public interface RuleIdStage { - TraitValueStage ruleId(String ruleId); + TraitValueStage ruleId(@NotNull String ruleId); } public interface TraitValueStage { - UpdatedAtStage traitValue(String traitValue); + UpdatedAtStage traitValue(@NotNull String traitValue); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -431,57 +432,57 @@ public Builder from(RuleConditionResponseData other) { @java.lang.Override @JsonSetter("condition_type") - public CreatedAtStage conditionType(String conditionType) { - this.conditionType = conditionType; + public CreatedAtStage conditionType(@NotNull String conditionType) { + this.conditionType = Objects.requireNonNull(conditionType, "conditionType must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public OperatorStage id(String id) { - this.id = id; + public OperatorStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("operator") - public RuleIdStage operator(String operator) { - this.operator = operator; + public RuleIdStage operator(@NotNull String operator) { + this.operator = Objects.requireNonNull(operator, "operator must not be null"); return this; } @java.lang.Override @JsonSetter("rule_id") - public TraitValueStage ruleId(String ruleId) { - this.ruleId = ruleId; + public TraitValueStage ruleId(@NotNull String ruleId) { + this.ruleId = Objects.requireNonNull(ruleId, "ruleId must not be null"); return this; } @java.lang.Override @JsonSetter("trait_value") - public UpdatedAtStage traitValue(String traitValue) { - this.traitValue = traitValue; + public UpdatedAtStage traitValue(@NotNull String traitValue) { + this.traitValue = Objects.requireNonNull(traitValue, "traitValue must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RuleDetailResponseData.java b/src/main/java/com/schematic/api/types/RuleDetailResponseData.java index c989e23..6f1e6cb 100644 --- a/src/main/java/com/schematic/api/types/RuleDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/RuleDetailResponseData.java @@ -19,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RuleDetailResponseData.Builder.class) @@ -191,21 +192,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(RuleDetailResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - PriorityStage name(String name); + PriorityStage name(@NotNull String name); } public interface PriorityStage { @@ -213,11 +214,11 @@ public interface PriorityStage { } public interface RuleTypeStage { - UpdatedAtStage ruleType(String ruleType); + UpdatedAtStage ruleType(@NotNull String ruleType); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { @@ -307,29 +308,29 @@ public Builder from(RuleDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriorityStage name(String name) { - this.name = name; + public PriorityStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -342,15 +343,15 @@ public RuleTypeStage priority(int priority) { @java.lang.Override @JsonSetter("rule_type") - public UpdatedAtStage ruleType(String ruleType) { - this.ruleType = ruleType; + public UpdatedAtStage ruleType(@NotNull String ruleType) { + this.ruleType = Objects.requireNonNull(ruleType, "ruleType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/RuleResponseData.java b/src/main/java/com/schematic/api/types/RuleResponseData.java index a53d529..c9a8bdc 100644 --- a/src/main/java/com/schematic/api/types/RuleResponseData.java +++ b/src/main/java/com/schematic/api/types/RuleResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = RuleResponseData.Builder.class) @@ -167,21 +168,21 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(RuleResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - PriorityStage name(String name); + PriorityStage name(@NotNull String name); } public interface PriorityStage { @@ -189,11 +190,11 @@ public interface PriorityStage { } public interface RuleTypeStage { - UpdatedAtStage ruleType(String ruleType); + UpdatedAtStage ruleType(@NotNull String ruleType); } public interface UpdatedAtStage { - ValueStage updatedAt(OffsetDateTime updatedAt); + ValueStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface ValueStage { @@ -265,29 +266,29 @@ public Builder from(RuleResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public PriorityStage name(String name) { - this.name = name; + public PriorityStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @@ -300,15 +301,15 @@ public RuleTypeStage priority(int priority) { @java.lang.Override @JsonSetter("rule_type") - public UpdatedAtStage ruleType(String ruleType) { - this.ruleType = ruleType; + public UpdatedAtStage ruleType(@NotNull String ruleType) { + this.ruleType = Objects.requireNonNull(ruleType, "ruleType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public ValueStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public ValueStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/SegmentStatusResp.java b/src/main/java/com/schematic/api/types/SegmentStatusResp.java index afd4805..95c5c22 100644 --- a/src/main/java/com/schematic/api/types/SegmentStatusResp.java +++ b/src/main/java/com/schematic/api/types/SegmentStatusResp.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = SegmentStatusResp.Builder.class) @@ -93,7 +94,7 @@ public interface ConnectedStage { } public interface EnvironmentIdStage { - _FinalStage environmentId(String environmentId); + _FinalStage environmentId(@NotNull String environmentId); } public interface _FinalStage { @@ -134,8 +135,8 @@ public EnvironmentIdStage connected(boolean connected) { @java.lang.Override @JsonSetter("environment_id") - public _FinalStage environmentId(String environmentId) { - this.environmentId = environmentId; + public _FinalStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/StripeEmbedInfo.java b/src/main/java/com/schematic/api/types/StripeEmbedInfo.java index 2977c06..36a3c0f 100644 --- a/src/main/java/com/schematic/api/types/StripeEmbedInfo.java +++ b/src/main/java/com/schematic/api/types/StripeEmbedInfo.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = StripeEmbedInfo.Builder.class) @@ -74,7 +75,7 @@ public static PublishableKeyStage builder() { } public interface PublishableKeyStage { - _FinalStage publishableKey(String publishableKey); + _FinalStage publishableKey(@NotNull String publishableKey); Builder from(StripeEmbedInfo other); } @@ -107,8 +108,8 @@ public Builder from(StripeEmbedInfo other) { @java.lang.Override @JsonSetter("publishable_key") - public _FinalStage publishableKey(String publishableKey) { - this.publishableKey = publishableKey; + public _FinalStage publishableKey(@NotNull String publishableKey) { + this.publishableKey = Objects.requireNonNull(publishableKey, "publishableKey must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/TemporaryAccessTokenResponseData.java b/src/main/java/com/schematic/api/types/TemporaryAccessTokenResponseData.java index 387ffb7..e919f93 100644 --- a/src/main/java/com/schematic/api/types/TemporaryAccessTokenResponseData.java +++ b/src/main/java/com/schematic/api/types/TemporaryAccessTokenResponseData.java @@ -15,6 +15,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = TemporaryAccessTokenResponseData.Builder.class) @@ -132,33 +133,33 @@ public static ApiKeyIdStage builder() { } public interface ApiKeyIdStage { - CreatedAtStage apiKeyId(String apiKeyId); + CreatedAtStage apiKeyId(@NotNull String apiKeyId); Builder from(TemporaryAccessTokenResponseData other); } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); } public interface EnvironmentIdStage { - ExpiredAtStage environmentId(String environmentId); + ExpiredAtStage environmentId(@NotNull String environmentId); } public interface ExpiredAtStage { - IdStage expiredAt(OffsetDateTime expiredAt); + IdStage expiredAt(@NotNull OffsetDateTime expiredAt); } public interface IdStage { - ResourceTypeStage id(String id); + ResourceTypeStage id(@NotNull String id); } public interface ResourceTypeStage { - UpdatedAtStage resourceType(String resourceType); + UpdatedAtStage resourceType(@NotNull String resourceType); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -208,50 +209,50 @@ public Builder from(TemporaryAccessTokenResponseData other) { @java.lang.Override @JsonSetter("api_key_id") - public CreatedAtStage apiKeyId(String apiKeyId) { - this.apiKeyId = apiKeyId; + public CreatedAtStage apiKeyId(@NotNull String apiKeyId) { + this.apiKeyId = Objects.requireNonNull(apiKeyId, "apiKeyId must not be null"); return this; } @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public ExpiredAtStage environmentId(String environmentId) { - this.environmentId = environmentId; + public ExpiredAtStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("expired_at") - public IdStage expiredAt(OffsetDateTime expiredAt) { - this.expiredAt = expiredAt; + public IdStage expiredAt(@NotNull OffsetDateTime expiredAt) { + this.expiredAt = Objects.requireNonNull(expiredAt, "expiredAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public ResourceTypeStage id(String id) { - this.id = id; + public ResourceTypeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("resource_type") - public UpdatedAtStage resourceType(String resourceType) { - this.resourceType = resourceType; + public UpdatedAtStage resourceType(@NotNull String resourceType) { + this.resourceType = Objects.requireNonNull(resourceType, "resourceType must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UpdateAddOnRequestBody.java b/src/main/java/com/schematic/api/types/UpdateAddOnRequestBody.java index 28a80a1..2ebb74a 100644 --- a/src/main/java/com/schematic/api/types/UpdateAddOnRequestBody.java +++ b/src/main/java/com/schematic/api/types/UpdateAddOnRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateAddOnRequestBody.Builder.class) @@ -70,13 +71,13 @@ public static AddOnIdStage builder() { } public interface AddOnIdStage { - PriceIdStage addOnId(String addOnId); + PriceIdStage addOnId(@NotNull String addOnId); Builder from(UpdateAddOnRequestBody other); } public interface PriceIdStage { - _FinalStage priceId(String priceId); + _FinalStage priceId(@NotNull String priceId); } public interface _FinalStage { @@ -103,15 +104,15 @@ public Builder from(UpdateAddOnRequestBody other) { @java.lang.Override @JsonSetter("add_on_id") - public PriceIdStage addOnId(String addOnId) { - this.addOnId = addOnId; + public PriceIdStage addOnId(@NotNull String addOnId) { + this.addOnId = Objects.requireNonNull(addOnId, "addOnId must not be null"); return this; } @java.lang.Override @JsonSetter("price_id") - public _FinalStage priceId(String priceId) { - this.priceId = priceId; + public _FinalStage priceId(@NotNull String priceId) { + this.priceId = Objects.requireNonNull(priceId, "priceId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UpdateEntitlementReqCommon.java b/src/main/java/com/schematic/api/types/UpdateEntitlementReqCommon.java index d63ee19..14ec27c 100644 --- a/src/main/java/com/schematic/api/types/UpdateEntitlementReqCommon.java +++ b/src/main/java/com/schematic/api/types/UpdateEntitlementReqCommon.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateEntitlementReqCommon.Builder.class) @@ -122,7 +123,7 @@ public static ValueTypeStage builder() { } public interface ValueTypeStage { - _FinalStage valueType(UpdateEntitlementReqCommonValueType valueType); + _FinalStage valueType(@NotNull UpdateEntitlementReqCommonValueType valueType); Builder from(UpdateEntitlementReqCommon other); } @@ -184,8 +185,8 @@ public Builder from(UpdateEntitlementReqCommon other) { @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(UpdateEntitlementReqCommonValueType valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull UpdateEntitlementReqCommonValueType valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UpdatePayInAdvanceRequestBody.java b/src/main/java/com/schematic/api/types/UpdatePayInAdvanceRequestBody.java index c33b612..415f97c 100644 --- a/src/main/java/com/schematic/api/types/UpdatePayInAdvanceRequestBody.java +++ b/src/main/java/com/schematic/api/types/UpdatePayInAdvanceRequestBody.java @@ -14,6 +14,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdatePayInAdvanceRequestBody.Builder.class) @@ -70,7 +71,7 @@ public static PriceIdStage builder() { } public interface PriceIdStage { - QuantityStage priceId(String priceId); + QuantityStage priceId(@NotNull String priceId); Builder from(UpdatePayInAdvanceRequestBody other); } @@ -103,8 +104,8 @@ public Builder from(UpdatePayInAdvanceRequestBody other) { @java.lang.Override @JsonSetter("price_id") - public QuantityStage priceId(String priceId) { - this.priceId = priceId; + public QuantityStage priceId(@NotNull String priceId) { + this.priceId = Objects.requireNonNull(priceId, "priceId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UpdateRuleRequestBody.java b/src/main/java/com/schematic/api/types/UpdateRuleRequestBody.java index d3937b8..f80aab6 100644 --- a/src/main/java/com/schematic/api/types/UpdateRuleRequestBody.java +++ b/src/main/java/com/schematic/api/types/UpdateRuleRequestBody.java @@ -17,6 +17,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpdateRuleRequestBody.Builder.class) @@ -107,7 +108,7 @@ public static NameStage builder() { } public interface NameStage { - PriorityStage name(String name); + PriorityStage name(@NotNull String name); Builder from(UpdateRuleRequestBody other); } @@ -165,8 +166,8 @@ public Builder from(UpdateRuleRequestBody other) { @java.lang.Override @JsonSetter("name") - public PriorityStage name(String name) { - this.name = name; + public PriorityStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UpsertTraitRequestBody.java b/src/main/java/com/schematic/api/types/UpsertTraitRequestBody.java index d6d2072..dc03bb6 100644 --- a/src/main/java/com/schematic/api/types/UpsertTraitRequestBody.java +++ b/src/main/java/com/schematic/api/types/UpsertTraitRequestBody.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UpsertTraitRequestBody.Builder.class) @@ -122,7 +123,7 @@ public static TraitStage builder() { } public interface TraitStage { - _FinalStage trait(String trait); + _FinalStage trait(@NotNull String trait); Builder from(UpsertTraitRequestBody other); } @@ -182,8 +183,8 @@ public Builder from(UpsertTraitRequestBody other) { */ @java.lang.Override @JsonSetter("trait") - public _FinalStage trait(String trait) { - this.trait = trait; + public _FinalStage trait(@NotNull String trait) { + this.trait = Objects.requireNonNull(trait, "trait must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UsageBasedEntitlementResponseData.java b/src/main/java/com/schematic/api/types/UsageBasedEntitlementResponseData.java index 4c7ff39..96056a1 100644 --- a/src/main/java/com/schematic/api/types/UsageBasedEntitlementResponseData.java +++ b/src/main/java/com/schematic/api/types/UsageBasedEntitlementResponseData.java @@ -16,6 +16,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UsageBasedEntitlementResponseData.Builder.class) @@ -144,13 +145,13 @@ public static FeatureIdStage builder() { } public interface FeatureIdStage { - ValueTypeStage featureId(String featureId); + ValueTypeStage featureId(@NotNull String featureId); Builder from(UsageBasedEntitlementResponseData other); } public interface ValueTypeStage { - _FinalStage valueType(String valueType); + _FinalStage valueType(@NotNull String valueType); } public interface _FinalStage { @@ -219,15 +220,15 @@ public Builder from(UsageBasedEntitlementResponseData other) { @java.lang.Override @JsonSetter("feature_id") - public ValueTypeStage featureId(String featureId) { - this.featureId = featureId; + public ValueTypeStage featureId(@NotNull String featureId) { + this.featureId = Objects.requireNonNull(featureId, "featureId must not be null"); return this; } @java.lang.Override @JsonSetter("value_type") - public _FinalStage valueType(String valueType) { - this.valueType = valueType; + public _FinalStage valueType(@NotNull String valueType) { + this.valueType = Objects.requireNonNull(valueType, "valueType must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UserDetailResponseData.java b/src/main/java/com/schematic/api/types/UserDetailResponseData.java index 38d3a73..5d0879d 100644 --- a/src/main/java/com/schematic/api/types/UserDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/UserDetailResponseData.java @@ -20,6 +20,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UserDetailResponseData.Builder.class) @@ -173,25 +174,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(UserDetailResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -269,36 +270,36 @@ public Builder from(UserDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/UserResponseData.java b/src/main/java/com/schematic/api/types/UserResponseData.java index 7547b08..6f529f3 100644 --- a/src/main/java/com/schematic/api/types/UserResponseData.java +++ b/src/main/java/com/schematic/api/types/UserResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UserResponseData.Builder.class) @@ -117,25 +118,25 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - EnvironmentIdStage createdAt(OffsetDateTime createdAt); + EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(UserResponseData other); } public interface EnvironmentIdStage { - IdStage environmentId(String environmentId); + IdStage environmentId(@NotNull String environmentId); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - UpdatedAtStage name(String name); + UpdatedAtStage name(@NotNull String name); } public interface UpdatedAtStage { - _FinalStage updatedAt(OffsetDateTime updatedAt); + _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface _FinalStage { @@ -179,36 +180,36 @@ public Builder from(UserResponseData other) { @java.lang.Override @JsonSetter("created_at") - public EnvironmentIdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public EnvironmentIdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("environment_id") - public IdStage environmentId(String environmentId) { - this.environmentId = environmentId; + public IdStage environmentId(@NotNull String environmentId) { + this.environmentId = Objects.requireNonNull(environmentId, "environmentId must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public UpdatedAtStage name(String name) { - this.name = name; + public UpdatedAtStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public _FinalStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public _FinalStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/WebhookEventDetailResponseData.java b/src/main/java/com/schematic/api/types/WebhookEventDetailResponseData.java index f887d48..d420620 100644 --- a/src/main/java/com/schematic/api/types/WebhookEventDetailResponseData.java +++ b/src/main/java/com/schematic/api/types/WebhookEventDetailResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = WebhookEventDetailResponseData.Builder.class) @@ -167,29 +168,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(WebhookEventDetailResponseData other); } public interface IdStage { - RequestTypeStage id(String id); + RequestTypeStage id(@NotNull String id); } public interface RequestTypeStage { - StatusStage requestType(String requestType); + StatusStage requestType(@NotNull String requestType); } public interface StatusStage { - UpdatedAtStage status(String status); + UpdatedAtStage status(@NotNull String status); } public interface UpdatedAtStage { - WebhookIdStage updatedAt(OffsetDateTime updatedAt); + WebhookIdStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface WebhookIdStage { - _FinalStage webhookId(String webhookId); + _FinalStage webhookId(@NotNull String webhookId); } public interface _FinalStage { @@ -263,43 +264,43 @@ public Builder from(WebhookEventDetailResponseData other) { @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public RequestTypeStage id(String id) { - this.id = id; + public RequestTypeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("request_type") - public StatusStage requestType(String requestType) { - this.requestType = requestType; + public StatusStage requestType(@NotNull String requestType) { + this.requestType = Objects.requireNonNull(requestType, "requestType must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public UpdatedAtStage status(String status) { - this.status = status; + public UpdatedAtStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public WebhookIdStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public WebhookIdStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("webhook_id") - public _FinalStage webhookId(String webhookId) { - this.webhookId = webhookId; + public _FinalStage webhookId(@NotNull String webhookId) { + this.webhookId = Objects.requireNonNull(webhookId, "webhookId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/WebhookEventResponseData.java b/src/main/java/com/schematic/api/types/WebhookEventResponseData.java index 3f66e19..bc284e7 100644 --- a/src/main/java/com/schematic/api/types/WebhookEventResponseData.java +++ b/src/main/java/com/schematic/api/types/WebhookEventResponseData.java @@ -17,6 +17,7 @@ import java.util.Map; import java.util.Objects; import java.util.Optional; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = WebhookEventResponseData.Builder.class) @@ -156,29 +157,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(WebhookEventResponseData other); } public interface IdStage { - RequestTypeStage id(String id); + RequestTypeStage id(@NotNull String id); } public interface RequestTypeStage { - StatusStage requestType(String requestType); + StatusStage requestType(@NotNull String requestType); } public interface StatusStage { - UpdatedAtStage status(String status); + UpdatedAtStage status(@NotNull String status); } public interface UpdatedAtStage { - WebhookIdStage updatedAt(OffsetDateTime updatedAt); + WebhookIdStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface WebhookIdStage { - _FinalStage webhookId(String webhookId); + _FinalStage webhookId(@NotNull String webhookId); } public interface _FinalStage { @@ -245,43 +246,43 @@ public Builder from(WebhookEventResponseData other) { @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public RequestTypeStage id(String id) { - this.id = id; + public RequestTypeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("request_type") - public StatusStage requestType(String requestType) { - this.requestType = requestType; + public StatusStage requestType(@NotNull String requestType) { + this.requestType = Objects.requireNonNull(requestType, "requestType must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public UpdatedAtStage status(String status) { - this.status = status; + public UpdatedAtStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public WebhookIdStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public WebhookIdStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("webhook_id") - public _FinalStage webhookId(String webhookId) { - this.webhookId = webhookId; + public _FinalStage webhookId(@NotNull String webhookId) { + this.webhookId = Objects.requireNonNull(webhookId, "webhookId must not be null"); return this; } diff --git a/src/main/java/com/schematic/api/types/WebhookResponseData.java b/src/main/java/com/schematic/api/types/WebhookResponseData.java index dd48f47..13e3791 100644 --- a/src/main/java/com/schematic/api/types/WebhookResponseData.java +++ b/src/main/java/com/schematic/api/types/WebhookResponseData.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import org.jetbrains.annotations.NotNull; @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = WebhookResponseData.Builder.class) @@ -129,29 +130,29 @@ public static CreatedAtStage builder() { } public interface CreatedAtStage { - IdStage createdAt(OffsetDateTime createdAt); + IdStage createdAt(@NotNull OffsetDateTime createdAt); Builder from(WebhookResponseData other); } public interface IdStage { - NameStage id(String id); + NameStage id(@NotNull String id); } public interface NameStage { - StatusStage name(String name); + StatusStage name(@NotNull String name); } public interface StatusStage { - UpdatedAtStage status(String status); + UpdatedAtStage status(@NotNull String status); } public interface UpdatedAtStage { - UrlStage updatedAt(OffsetDateTime updatedAt); + UrlStage updatedAt(@NotNull OffsetDateTime updatedAt); } public interface UrlStage { - _FinalStage url(String url); + _FinalStage url(@NotNull String url); } public interface _FinalStage { @@ -200,43 +201,43 @@ public Builder from(WebhookResponseData other) { @java.lang.Override @JsonSetter("created_at") - public IdStage createdAt(OffsetDateTime createdAt) { - this.createdAt = createdAt; + public IdStage createdAt(@NotNull OffsetDateTime createdAt) { + this.createdAt = Objects.requireNonNull(createdAt, "createdAt must not be null"); return this; } @java.lang.Override @JsonSetter("id") - public NameStage id(String id) { - this.id = id; + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); return this; } @java.lang.Override @JsonSetter("name") - public StatusStage name(String name) { - this.name = name; + public StatusStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); return this; } @java.lang.Override @JsonSetter("status") - public UpdatedAtStage status(String status) { - this.status = status; + public UpdatedAtStage status(@NotNull String status) { + this.status = Objects.requireNonNull(status, "status must not be null"); return this; } @java.lang.Override @JsonSetter("updated_at") - public UrlStage updatedAt(OffsetDateTime updatedAt) { - this.updatedAt = updatedAt; + public UrlStage updatedAt(@NotNull OffsetDateTime updatedAt) { + this.updatedAt = Objects.requireNonNull(updatedAt, "updatedAt must not be null"); return this; } @java.lang.Override @JsonSetter("url") - public _FinalStage url(String url) { - this.url = url; + public _FinalStage url(@NotNull String url) { + this.url = Objects.requireNonNull(url, "url must not be null"); return this; }