From bf2218badfcd10ba40cd8766c99d7e9521fdb8b0 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 2 Jan 2024 15:58:52 +0000 Subject: [PATCH 1/2] make tfgen --- .pulumi-java-gen.version | 2 +- examples/go.mod | 6 +++--- examples/go.sum | 12 ++++++------ provider/go.mod | 10 +++++----- provider/go.sum | 20 ++++++++++---------- sdk/go.mod | 4 ++-- sdk/go.sum | 8 ++++---- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index b5d0ec558..6f060dcbc 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.9.8 \ No newline at end of file +0.9.9 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 8828c090d..695400f75 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-rancher2/examples/v5 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.98.0 +require github.com/pulumi/pulumi/pkg/v3 v3.99.0 require ( cloud.google.com/go v0.110.4 // indirect @@ -138,8 +138,8 @@ require ( github.com/pkg/term v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.98.0 // indirect + github.com/pulumi/esc v0.6.2 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.99.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 91d4a077b..09efe5183 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -1445,12 +1445,12 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/rakyll/embedmd v0.0.0-20171029212350-c8060a0752a2/go.mod h1:7jOTMgqac46PZcF54q6l2hkLEG8op93fZu61KmxWDV4= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= diff --git a/provider/go.mod b/provider/go.mod index 63dcaa721..81b48cc63 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -42,8 +42,8 @@ replace ( require ( github.com/hashicorp/terraform-plugin-sdk v1.17.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 - github.com/pulumi/pulumi/sdk/v3 v3.98.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 github.com/rancher/terraform-provider-rancher2 v1.25.1-0.20231013004807-59ba43ca3a23 ) @@ -236,11 +236,11 @@ require ( github.com/prometheus/common v0.39.0 // indirect github.com/prometheus/procfs v0.8.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/pulumi/pulumi-java/pkg v0.9.8 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 // indirect - github.com/pulumi/pulumi-yaml v1.4.3 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.98.0 // indirect + github.com/pulumi/pulumi-yaml v1.4.4 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.99.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rancher/aks-operator v1.1.1-rc2 // indirect diff --git a/provider/go.sum b/provider/go.sum index 0ed18dade..058a95111 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2205,22 +2205,22 @@ github.com/prometheus/prometheus v0.42.0/go.mod h1:Pfqb/MLnnR2KK+0vchiaH39jXxvLM github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= github.com/pulumi/pulumi-java/pkg v0.9.8 h1:c8mYsalnRXA2Ibgvv6scefOn6mW1Vb0UT0mcDqjsivQ= github.com/pulumi/pulumi-java/pkg v0.9.8/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc= github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1/go.mod h1:7OeUPH8rpt5ipyj9EFcnXpuzQ8SHL0dyqdfa8nOacdk= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0 h1:PsIB738ZqrQbHKe5Q5Ag8Kq/ejrOyO8skLUQeAqRjzM= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0/go.mod h1:/wXhD95iSr4FlmGtVN/H8hXriMW4isDDrAUprozXG4A= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0 h1:+o0c2gUjZURORGNftW4dEOm/E4rzh2JnK+z9PAwLjbE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.70.0/go.mod h1:jcdXdda230ZJJjzeRwWuFPRzq1EI8APwYVQIH32MoRk= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4 h1:rIzMmtcVpPX8ynaz6/nW5AHNY63DiNfCohqmxWvMpM4= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.4/go.mod h1:Kt8RIZWa/N8rW3+0g6NrqCBmF3o+HuIhFaZpssEkG6w= -github.com/pulumi/pulumi-yaml v1.4.3 h1:GO36c7FTl8If20Dn/w2Hi3huP7kmsO00KNaz3GJU0Ws= -github.com/pulumi/pulumi-yaml v1.4.3/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0 h1:lQyjy31az5bMfTmsyqeeAEQMKjrLyx8IL+C27D6b+x4= -github.com/pulumi/pulumi/pkg/v3 v3.98.0/go.mod h1:aeQmrCMwvMOIz1s6qOk+vg1oCWff5hmeRrg1vYv8eRU= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/pulumi-yaml v1.4.4 h1:BODM3hnmy/kjmbjxySNI5dmGURn2fczVql2MSGjdeQw= +github.com/pulumi/pulumi-yaml v1.4.4/go.mod h1:1hwsXFnT7hm2ZeftY5fzjkngjs2eT/rv9MsPE48Leb4= +github.com/pulumi/pulumi/pkg/v3 v3.99.0 h1:Mal/ncVw16RBw+0M7jwX4mDlma/X324PXotuHJHDa7s= +github.com/pulumi/pulumi/pkg/v3 v3.99.0/go.mod h1:Gk/N8qblqKI6+fTORH7oJi2SSWaOVTDhNwTrazoQPao= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index 146a49cd6..287a2904f 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.98.0 + github.com/pulumi/pulumi/sdk/v3 v3.99.0 ) require ( @@ -57,7 +57,7 @@ require ( github.com/pkg/errors v0.9.1 // indirect github.com/pkg/term v1.1.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect - github.com/pulumi/esc v0.6.1 // indirect + github.com/pulumi/esc v0.6.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect diff --git a/sdk/go.sum b/sdk/go.sum index 2f94a4521..1e455351e 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -149,10 +149,10 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435cARxCW6q9gc0S/Yxz7Mkd38pOb0= github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= -github.com/pulumi/esc v0.6.1 h1:X6gRcw1cH/oNkZG8MuD4rUhetO7fUTGKZXPzQWAPX40= -github.com/pulumi/esc v0.6.1/go.mod h1:1+tlMNX29iqfyElwo0tc2eRx9MWjWHRjrPLyLvTQMqM= -github.com/pulumi/pulumi/sdk/v3 v3.98.0 h1:H18eCWKiv7oXy7n/dni3JxFfwvY3UEjAzjeqtaaZT+I= -github.com/pulumi/pulumi/sdk/v3 v3.98.0/go.mod h1:/bHwzPhsCJCjzY0STmvZ7DzV5gZN6iDSXQ/gitEAyws= +github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw= +github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k= +github.com/pulumi/pulumi/sdk/v3 v3.99.0 h1:vsFoEEdweYg3Hm6/Jlj1sE2cLtauzoqAdVbLMcC7Cw8= +github.com/pulumi/pulumi/sdk/v3 v3.99.0/go.mod h1:wFM/6iAMlidgLDSF9QU+p3P+B+vg/xloFyVeZrVwA1w= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= From 28cf5574c6aa9f4c939c9d9bd960fac2dbe562f4 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Tue, 2 Jan 2024 16:00:45 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/java/build.gradle | 2 +- .../pulumi/rancher2/ActiveDirectoryArgs.java | 25 ++- .../java/com/pulumi/rancher2/AppArgs.java | 17 +- .../java/com/pulumi/rancher2/AppV2Args.java | 17 +- .../AuthConfigActiveDirectoryArgs.java | 25 ++- .../pulumi/rancher2/AuthConfigAdfsArgs.java | 33 +++- .../rancher2/AuthConfigAzureAdArgs.java | 29 ++- .../rancher2/AuthConfigFreeIpaArgs.java | 25 ++- .../pulumi/rancher2/AuthConfigGithubArgs.java | 9 +- .../rancher2/AuthConfigKeycloakArgs.java | 33 +++- .../pulumi/rancher2/AuthConfigOktaArgs.java | 33 +++- .../rancher2/AuthConfigOpenLdapArgs.java | 25 ++- .../pulumi/rancher2/AuthConfigPingArgs.java | 33 +++- .../java/com/pulumi/rancher2/CatalogArgs.java | 5 +- .../com/pulumi/rancher2/CatalogV2Args.java | 5 +- .../com/pulumi/rancher2/CertificateArgs.java | 13 +- .../rancher2/ClusterAlertGroupArgs.java | 5 +- .../pulumi/rancher2/ClusterAlertRuleArgs.java | 9 +- .../rancher2/ClusterAlterGroupArgs.java | 5 +- .../pulumi/rancher2/ClusterAlterRuleArgs.java | 9 +- .../pulumi/rancher2/ClusterDriverArgs.java | 13 +- .../ClusterRoleTemplateBindingArgs.java | 9 +- .../com/pulumi/rancher2/ClusterSyncArgs.java | 5 +- .../com/pulumi/rancher2/ClusterV2Args.java | 5 +- .../com/pulumi/rancher2/ConfigMapV2Args.java | 9 +- .../pulumi/rancher2/CustomUserTokenArgs.java | 9 +- .../com/pulumi/rancher2/EtcdBackupArgs.java | 5 +- .../com/pulumi/rancher2/GlobalDnsArgs.java | 9 +- .../rancher2/GlobalDnsProviderArgs.java | 5 +- .../rancher2/GlobalRoleBindingArgs.java | 5 +- .../pulumi/rancher2/MachineConfigV2Args.java | 5 +- .../pulumi/rancher2/MultiClusterAppArgs.java | 17 +- .../com/pulumi/rancher2/NamespaceArgs.java | 5 +- .../com/pulumi/rancher2/NodeDriverArgs.java | 13 +- .../com/pulumi/rancher2/NodePoolArgs.java | 13 +- .../com/pulumi/rancher2/NotifierArgs.java | 5 +- .../rancher2/ProjectAlertGroupArgs.java | 5 +- .../pulumi/rancher2/ProjectAlertRuleArgs.java | 9 +- .../java/com/pulumi/rancher2/ProjectArgs.java | 5 +- .../ProjectRoleTemplateBindingArgs.java | 9 +- .../com/pulumi/rancher2/ProviderArgs.java | 5 +- .../com/pulumi/rancher2/RegistryArgs.java | 9 +- .../java/com/pulumi/rancher2/SecretArgs.java | 9 +- .../com/pulumi/rancher2/SecretV2Args.java | 9 +- .../java/com/pulumi/rancher2/SettingArgs.java | 5 +- .../pulumi/rancher2/StorageClassV2Args.java | 9 +- .../java/com/pulumi/rancher2/UserArgs.java | 9 +- ...edentialAmazonec2CredentialConfigArgs.java | 9 +- ...udCredentialAzureCredentialConfigArgs.java | 13 +- ...ntialDigitaloceanCredentialConfigArgs.java | 5 +- ...dCredentialGoogleCredentialConfigArgs.java | 5 +- ...edentialHarvesterCredentialConfigArgs.java | 9 +- ...dCredentialLinodeCredentialConfigArgs.java | 5 +- ...edentialOpenstackCredentialConfigArgs.java | 5 +- ...CloudCredentialS3CredentialConfigArgs.java | 9 +- ...CredentialVsphereCredentialConfigArgs.java | 13 +- .../inputs/ClusterAgentEnvVarArgs.java | 9 +- .../rancher2/inputs/ClusterAksConfigArgs.java | 49 +++-- .../inputs/ClusterAksConfigV2Args.java | 13 +- .../ClusterAksConfigV2NodePoolArgs.java | 5 +- .../ClusterAlertGroupRecipientArgs.java | 5 +- .../inputs/ClusterAlertRuleEventRuleArgs.java | 5 +- .../ClusterAlertRuleMetricRuleArgs.java | 13 +- .../ClusterAlterGroupRecipientArgs.java | 5 +- .../inputs/ClusterAlterRuleEventRuleArgs.java | 5 +- .../ClusterAlterRuleMetricRuleArgs.java | 13 +- ...mentCustomizationAppendTolerationArgs.java | 5 +- .../ClusterClusterTemplateQuestionArgs.java | 9 +- .../rancher2/inputs/ClusterEksConfigArgs.java | 13 +- .../inputs/ClusterEksConfigV2Args.java | 5 +- .../ClusterEksConfigV2NodeGroupArgs.java | 5 +- ...ksConfigV2NodeGroupLaunchTemplateArgs.java | 5 +- ...mentCustomizationAppendTolerationArgs.java | 5 +- .../rancher2/inputs/ClusterGkeConfigArgs.java | 89 ++++++--- .../inputs/ClusterGkeConfigV2Args.java | 13 +- ...gV2MasterAuthorizedNetworksConfigArgs.java | 5 +- ...AuthorizedNetworksConfigCidrBlockArgs.java | 5 +- .../ClusterGkeConfigV2NodePoolArgs.java | 13 +- ...terGkeConfigV2NodePoolConfigTaintArgs.java | 13 +- ...erGkeConfigV2PrivateClusterConfigArgs.java | 5 +- .../rancher2/inputs/ClusterOkeConfigArgs.java | 37 +++- .../ClusterRkeConfigBastionHostArgs.java | 9 +- ...erAwsCloudProviderServiceOverrideArgs.java | 5 +- ...igCloudProviderAzureCloudProviderArgs.java | 17 +- ...oudProviderOpenstackCloudProviderArgs.java | 5 +- ...viderOpenstackCloudProviderGlobalArgs.java | 13 +- ...CloudProviderVsphereCloudProviderArgs.java | 9 +- ...VsphereCloudProviderVirtualCenterArgs.java | 17 +- ...iderVsphereCloudProviderWorkspaceArgs.java | 13 +- .../ClusterRkeConfigDnsTolerationArgs.java | 5 +- ...ClusterRkeConfigIngressTolerationArgs.java | 5 +- ...sterRkeConfigMonitoringTolerationArgs.java | 5 +- ...keConfigNetworkAciNetworkProviderArgs.java | 81 +++++++-- ...ClusterRkeConfigNetworkTolerationArgs.java | 5 +- ...ConfigNetworkWeaveNetworkProviderArgs.java | 5 +- .../inputs/ClusterRkeConfigNodeArgs.java | 13 +- .../ClusterRkeConfigPrivateRegistryArgs.java | 5 +- ...cesEtcdBackupConfigS3BackupConfigArgs.java | 9 +- .../ClusterTemplateTemplateRevisionArgs.java | 9 +- ...lateTemplateRevisionClusterConfigArgs.java | 5 +- ...ClusterConfigRkeConfigBastionHostArgs.java | 9 +- ...erAwsCloudProviderServiceOverrideArgs.java | 5 +- ...igCloudProviderAzureCloudProviderArgs.java | 17 +- ...oudProviderOpenstackCloudProviderArgs.java | 5 +- ...viderOpenstackCloudProviderGlobalArgs.java | 13 +- ...CloudProviderVsphereCloudProviderArgs.java | 9 +- ...VsphereCloudProviderVirtualCenterArgs.java | 17 +- ...iderVsphereCloudProviderWorkspaceArgs.java | 13 +- ...usterConfigRkeConfigDnsTolerationArgs.java | 5 +- ...rConfigRkeConfigIngressTolerationArgs.java | 5 +- ...nfigRkeConfigMonitoringTolerationArgs.java | 5 +- ...keConfigNetworkAciNetworkProviderArgs.java | 81 +++++++-- ...rConfigRkeConfigNetworkTolerationArgs.java | 5 +- ...ConfigNetworkWeaveNetworkProviderArgs.java | 5 +- ...evisionClusterConfigRkeConfigNodeArgs.java | 13 +- ...terConfigRkeConfigPrivateRegistryArgs.java | 5 +- ...cesEtcdBackupConfigS3BackupConfigArgs.java | 9 +- ...rTemplateTemplateRevisionQuestionArgs.java | 9 +- .../inputs/ClusterV2AgentEnvVarArgs.java | 9 +- ...mentCustomizationAppendTolerationArgs.java | 5 +- ...mentCustomizationAppendTolerationArgs.java | 5 +- .../ClusterV2RkeConfigEtcdS3ConfigArgs.java | 9 +- ...sterV2RkeConfigEtcdSnapshotCreateArgs.java | 5 +- ...terV2RkeConfigEtcdSnapshotRestoreArgs.java | 9 +- .../ClusterV2RkeConfigMachinePoolArgs.java | 9 +- ...RkeConfigMachinePoolMachineConfigArgs.java | 9 +- ...lusterV2RkeConfigMachinePoolTaintArgs.java | 9 +- ...lusterV2RkeConfigRegistriesConfigArgs.java | 5 +- ...lusterV2RkeConfigRegistriesMirrorArgs.java | 5 +- ...sterV2RkeConfigRotateCertificatesArgs.java | 5 +- ...dBackupBackupConfigS3BackupConfigArgs.java | 9 +- .../pulumi/rancher2/inputs/GetAppArgs.java | 9 +- .../rancher2/inputs/GetAppPlainArgs.java | 9 +- .../rancher2/inputs/GetCatalogArgs.java | 5 +- .../rancher2/inputs/GetCatalogPlainArgs.java | 5 +- .../rancher2/inputs/GetCatalogV2Args.java | 9 +- .../inputs/GetCatalogV2PlainArgs.java | 9 +- .../rancher2/inputs/GetCertificateArgs.java | 9 +- .../inputs/GetCertificatePlainArgs.java | 9 +- .../inputs/GetCloudCredentialArgs.java | 5 +- .../inputs/GetCloudCredentialPlainArgs.java | 5 +- .../inputs/GetClusterAlertGroupArgs.java | 9 +- .../inputs/GetClusterAlertGroupPlainArgs.java | 9 +- .../inputs/GetClusterAlterRuleArgs.java | 9 +- .../inputs/GetClusterAlterRulePlainArgs.java | 9 +- .../rancher2/inputs/GetClusterArgs.java | 5 +- .../rancher2/inputs/GetClusterDriverArgs.java | 5 +- .../inputs/GetClusterDriverPlainArgs.java | 5 +- .../rancher2/inputs/GetClusterPlainArgs.java | 5 +- .../GetClusterRoleTemplateBindingArgs.java | 9 +- ...etClusterRoleTemplateBindingPlainArgs.java | 9 +- .../inputs/GetClusterTemplateArgs.java | 5 +- .../inputs/GetClusterTemplatePlainArgs.java | 5 +- .../rancher2/inputs/GetClusterV2Args.java | 5 +- .../inputs/GetClusterV2PlainArgs.java | 5 +- .../rancher2/inputs/GetConfigMapV2Args.java | 9 +- .../inputs/GetConfigMapV2PlainArgs.java | 9 +- .../rancher2/inputs/GetEtcdBackupArgs.java | 9 +- .../inputs/GetEtcdBackupPlainArgs.java | 9 +- .../inputs/GetGlobalDnsProviderArgs.java | 5 +- .../inputs/GetGlobalDnsProviderPlainArgs.java | 5 +- .../rancher2/inputs/GetGlobalRoleArgs.java | 5 +- .../inputs/GetGlobalRoleBindingArgs.java | 5 +- .../inputs/GetGlobalRoleBindingPlainArgs.java | 5 +- .../inputs/GetGlobalRolePlainArgs.java | 5 +- .../inputs/GetMultiClusterAppArgs.java | 5 +- .../inputs/GetMultiClusterAppPlainArgs.java | 5 +- .../rancher2/inputs/GetNamespaceArgs.java | 9 +- .../inputs/GetNamespacePlainArgs.java | 9 +- .../rancher2/inputs/GetNodeDriverArgs.java | 5 +- .../inputs/GetNodeDriverPlainArgs.java | 5 +- .../rancher2/inputs/GetNodePoolArgs.java | 9 +- .../rancher2/inputs/GetNodePoolPlainArgs.java | 9 +- .../rancher2/inputs/GetNodeTemplateArgs.java | 5 +- .../inputs/GetNodeTemplatePlainArgs.java | 5 +- .../rancher2/inputs/GetNotifierArgs.java | 9 +- .../inputs/GetNotifierDingtalkConfig.java | 5 +- .../inputs/GetNotifierDingtalkConfigArgs.java | 5 +- .../inputs/GetNotifierMsteamsConfig.java | 5 +- .../inputs/GetNotifierMsteamsConfigArgs.java | 5 +- .../rancher2/inputs/GetNotifierPlainArgs.java | 9 +- ...ecurityPolicyTemplateAllowedCsiDriver.java | 5 +- ...ityPolicyTemplateAllowedCsiDriverArgs.java | 5 +- ...curityPolicyTemplateAllowedFlexVolume.java | 5 +- ...tyPolicyTemplateAllowedFlexVolumeArgs.java | 5 +- ...SecurityPolicyTemplateAllowedHostPath.java | 5 +- ...rityPolicyTemplateAllowedHostPathArgs.java | 5 +- .../GetPodSecurityPolicyTemplateArgs.java | 5 +- .../GetPodSecurityPolicyTemplateFsGroup.java | 5 +- ...tPodSecurityPolicyTemplateFsGroupArgs.java | 5 +- ...PodSecurityPolicyTemplateFsGroupRange.java | 9 +- ...ecurityPolicyTemplateFsGroupRangeArgs.java | 9 +- .../GetPodSecurityPolicyTemplateHostPort.java | 9 +- ...PodSecurityPolicyTemplateHostPortArgs.java | 9 +- ...GetPodSecurityPolicyTemplatePlainArgs.java | 5 +- ...etPodSecurityPolicyTemplateRunAsGroup.java | 5 +- ...dSecurityPolicyTemplateRunAsGroupArgs.java | 5 +- ...SecurityPolicyTemplateRunAsGroupRange.java | 9 +- ...rityPolicyTemplateRunAsGroupRangeArgs.java | 9 +- ...GetPodSecurityPolicyTemplateRunAsUser.java | 5 +- ...odSecurityPolicyTemplateRunAsUserArgs.java | 5 +- ...dSecurityPolicyTemplateRunAsUserRange.java | 9 +- ...urityPolicyTemplateRunAsUserRangeArgs.java | 9 +- ...PodSecurityPolicyTemplateRuntimeClass.java | 5 +- ...ecurityPolicyTemplateRuntimeClassArgs.java | 5 +- .../GetPodSecurityPolicyTemplateSeLinux.java | 5 +- ...tPodSecurityPolicyTemplateSeLinuxArgs.java | 5 +- ...curityPolicyTemplateSupplementalGroup.java | 5 +- ...tyPolicyTemplateSupplementalGroupArgs.java | 5 +- ...yPolicyTemplateSupplementalGroupRange.java | 9 +- ...icyTemplateSupplementalGroupRangeArgs.java | 9 +- .../rancher2/inputs/GetPrincipalArgs.java | 5 +- .../inputs/GetPrincipalPlainArgs.java | 5 +- .../inputs/GetProjectAlertGroupArgs.java | 9 +- .../inputs/GetProjectAlertGroupPlainArgs.java | 9 +- .../inputs/GetProjectAlertRuleArgs.java | 9 +- .../inputs/GetProjectAlertRulePlainArgs.java | 9 +- .../rancher2/inputs/GetProjectArgs.java | 9 +- .../rancher2/inputs/GetProjectPlainArgs.java | 9 +- .../GetProjectRoleTemplateBindingArgs.java | 9 +- ...etProjectRoleTemplateBindingPlainArgs.java | 9 +- .../rancher2/inputs/GetRegistryArgs.java | 9 +- .../rancher2/inputs/GetRegistryPlainArgs.java | 9 +- .../rancher2/inputs/GetRoleTempalteArgs.java | 5 +- .../inputs/GetRoleTempaltePlainArgs.java | 5 +- .../rancher2/inputs/GetRoleTemplateArgs.java | 5 +- .../inputs/GetRoleTemplatePlainArgs.java | 5 +- .../pulumi/rancher2/inputs/GetSecretArgs.java | 9 +- .../rancher2/inputs/GetSecretPlainArgs.java | 9 +- .../rancher2/inputs/GetSecretV2Args.java | 9 +- .../rancher2/inputs/GetSecretV2PlainArgs.java | 9 +- .../rancher2/inputs/GetSettingArgs.java | 5 +- .../rancher2/inputs/GetSettingPlainArgs.java | 5 +- .../inputs/GetStorageClassV2Args.java | 9 +- .../inputs/GetStorageClassV2PlainArgs.java | 9 +- .../GlobalDnsProviderAlidnsConfigArgs.java | 9 +- ...GlobalDnsProviderCloudflareConfigArgs.java | 9 +- .../GlobalDnsProviderRoute53ConfigArgs.java | 9 +- .../MachineConfigV2Amazonec2ConfigArgs.java | 25 ++- .../MachineConfigV2HarvesterConfigArgs.java | 9 +- .../MachineConfigV2OpenstackConfigArgs.java | 13 +- .../inputs/MultiClusterAppTargetArgs.java | 5 +- .../inputs/NamespaceResourceQuotaArgs.java | 5 +- .../inputs/NodePoolNodeTaintArgs.java | 9 +- .../NodeTemplateAmazonec2ConfigArgs.java | 25 ++- .../NodeTemplateHarvesterConfigArgs.java | 9 +- .../inputs/NodeTemplateHetznerConfigArgs.java | 5 +- .../inputs/NodeTemplateNodeTaintArgs.java | 9 +- .../NodeTemplateOpennebulaConfigArgs.java | 13 +- .../NodeTemplateOpenstackConfigArgs.java | 13 +- .../NodeTemplateOutscaleConfigArgs.java | 9 +- .../inputs/NotifierDingtalkConfigArgs.java | 5 +- .../inputs/NotifierMsteamsConfigArgs.java | 5 +- .../inputs/NotifierPagerdutyConfigArgs.java | 5 +- .../inputs/NotifierSlackConfigArgs.java | 9 +- .../inputs/NotifierSmtpConfigArgs.java | 17 +- .../inputs/NotifierWebhookConfigArgs.java | 5 +- .../inputs/NotifierWechatConfigArgs.java | 17 +- ...ityPolicyTemplateAllowedCsiDriverArgs.java | 5 +- ...tyPolicyTemplateAllowedFlexVolumeArgs.java | 5 +- ...rityPolicyTemplateAllowedHostPathArgs.java | 5 +- ...ecurityPolicyTemplateFsGroupRangeArgs.java | 9 +- ...PodSecurityPolicyTemplateHostPortArgs.java | 9 +- ...dSecurityPolicyTemplateRunAsGroupArgs.java | 5 +- ...rityPolicyTemplateRunAsGroupRangeArgs.java | 9 +- ...odSecurityPolicyTemplateRunAsUserArgs.java | 5 +- ...urityPolicyTemplateRunAsUserRangeArgs.java | 9 +- ...ecurityPolicyTemplateRuntimeClassArgs.java | 5 +- .../PodSecurityPolicyTemplateSeLinuxArgs.java | 5 +- ...icyTemplateSupplementalGroupRangeArgs.java | 9 +- .../ProjectAlertGroupRecipientArgs.java | 5 +- .../ProjectAlertRuleMetricRuleArgs.java | 13 +- .../inputs/ProjectAlertRulePodRuleArgs.java | 5 +- .../inputs/ProjectResourceQuotaArgs.java | 9 +- .../rancher2/inputs/RegistryRegistryArgs.java | 5 +- ...udCredentialAmazonec2CredentialConfig.java | 12 +- .../CloudCredentialAzureCredentialConfig.java | 18 +- ...redentialDigitaloceanCredentialConfig.java | 6 +- ...CloudCredentialGoogleCredentialConfig.java | 6 +- ...udCredentialHarvesterCredentialConfig.java | 12 +- ...CloudCredentialLinodeCredentialConfig.java | 6 +- ...udCredentialOpenstackCredentialConfig.java | 6 +- .../CloudCredentialS3CredentialConfig.java | 17 +- ...loudCredentialVsphereCredentialConfig.java | 17 +- .../rancher2/outputs/ClusterAgentEnvVar.java | 11 +- .../rancher2/outputs/ClusterAksConfig.java | 88 +++++++-- .../rancher2/outputs/ClusterAksConfigV2.java | 42 ++++- .../outputs/ClusterAksConfigV2NodePool.java | 21 ++- .../outputs/ClusterAlertGroupRecipient.java | 9 +- .../outputs/ClusterAlertRuleEventRule.java | 7 +- .../outputs/ClusterAlertRuleMetricRule.java | 18 +- .../outputs/ClusterAlertRuleNodeRule.java | 5 + .../ClusterAlertRuleSystemServiceRule.java | 1 + .../outputs/ClusterAlterGroupRecipient.java | 9 +- .../outputs/ClusterAlterRuleEventRule.java | 7 +- .../outputs/ClusterAlterRuleMetricRule.java | 18 +- .../outputs/ClusterAlterRuleNodeRule.java | 5 + .../ClusterAlterRuleSystemServiceRule.java | 1 + ...erClusterAgentDeploymentCustomization.java | 3 + ...ploymentCustomizationAppendToleration.java | 10 +- ...tomizationOverrideResourceRequirement.java | 4 + .../outputs/ClusterClusterAuthEndpoint.java | 3 + .../ClusterClusterMonitoringInput.java | 2 + .../ClusterClusterRegistrationToken.java | 13 ++ .../ClusterClusterTemplateAnswers.java | 3 + .../ClusterClusterTemplateQuestion.java | 13 +- .../rancher2/outputs/ClusterEksConfig.java | 32 +++- .../rancher2/outputs/ClusterEksConfigV2.java | 21 ++- .../outputs/ClusterEksConfigV2NodeGroup.java | 24 ++- ...terEksConfigV2NodeGroupLaunchTemplate.java | 8 +- ...sterFleetAgentDeploymentCustomization.java | 3 + ...ploymentCustomizationAppendToleration.java | 10 +- ...tomizationOverrideResourceRequirement.java | 4 + .../rancher2/outputs/ClusterGkeConfig.java | 142 ++++++++++++--- .../rancher2/outputs/ClusterGkeConfigV2.java | 36 +++- .../ClusterGkeConfigV2ClusterAddons.java | 3 + .../ClusterGkeConfigV2IpAllocationPolicy.java | 8 + ...onfigV2MasterAuthorizedNetworksConfig.java | 7 +- ...sterAuthorizedNetworksConfigCidrBlock.java | 7 +- .../outputs/ClusterGkeConfigV2NodePool.java | 20 +- ...ClusterGkeConfigV2NodePoolAutoscaling.java | 3 + .../ClusterGkeConfigV2NodePoolConfig.java | 10 + ...ClusterGkeConfigV2NodePoolConfigTaint.java | 16 +- .../ClusterGkeConfigV2NodePoolManagement.java | 2 + ...lusterGkeConfigV2PrivateClusterConfig.java | 8 +- .../rancher2/outputs/ClusterK3sConfig.java | 2 + .../ClusterK3sConfigUpgradeStrategy.java | 4 + .../rancher2/outputs/ClusterOkeConfig.java | 69 ++++++- .../rancher2/outputs/ClusterRke2Config.java | 2 + .../ClusterRke2ConfigUpgradeStrategy.java | 4 + .../rancher2/outputs/ClusterRkeConfig.java | 23 +++ .../ClusterRkeConfigAuthentication.java | 2 + .../ClusterRkeConfigAuthorization.java | 2 + .../outputs/ClusterRkeConfigBastionHost.java | 15 +- .../ClusterRkeConfigCloudProvider.java | 6 + ...keConfigCloudProviderAwsCloudProvider.java | 2 + ...igCloudProviderAwsCloudProviderGlobal.java | 10 + ...oviderAwsCloudProviderServiceOverride.java | 11 +- ...ConfigCloudProviderAzureCloudProvider.java | 46 ++++- ...igCloudProviderOpenstackCloudProvider.java | 10 +- ...derOpenstackCloudProviderBlockStorage.java | 3 + ...dProviderOpenstackCloudProviderGlobal.java | 23 ++- ...derOpenstackCloudProviderLoadBalancer.java | 11 ++ ...roviderOpenstackCloudProviderMetadata.java | 2 + ...udProviderOpenstackCloudProviderRoute.java | 1 + ...nfigCloudProviderVsphereCloudProvider.java | 14 +- ...CloudProviderVsphereCloudProviderDisk.java | 1 + ...oudProviderVsphereCloudProviderGlobal.java | 6 + ...udProviderVsphereCloudProviderNetwork.java | 1 + ...iderVsphereCloudProviderVirtualCenter.java | 23 ++- ...ProviderVsphereCloudProviderWorkspace.java | 18 +- .../rancher2/outputs/ClusterRkeConfigDns.java | 9 + ...terRkeConfigDnsLinearAutoscalerParams.java | 5 + .../outputs/ClusterRkeConfigDnsNodelocal.java | 2 + .../ClusterRkeConfigDnsToleration.java | 10 +- .../ClusterRkeConfigDnsUpdateStrategy.java | 2 + ...eConfigDnsUpdateStrategyRollingUpdate.java | 2 + .../outputs/ClusterRkeConfigIngress.java | 11 ++ .../ClusterRkeConfigIngressToleration.java | 10 +- ...ClusterRkeConfigIngressUpdateStrategy.java | 2 + ...figIngressUpdateStrategyRollingUpdate.java | 1 + .../outputs/ClusterRkeConfigMonitoring.java | 6 + .../ClusterRkeConfigMonitoringToleration.java | 10 +- ...sterRkeConfigMonitoringUpdateStrategy.java | 2 + ...MonitoringUpdateStrategyRollingUpdate.java | 2 + .../outputs/ClusterRkeConfigNetwork.java | 9 + ...terRkeConfigNetworkAciNetworkProvider.java | 155 ++++++++++++++-- ...RkeConfigNetworkCalicoNetworkProvider.java | 1 + ...rRkeConfigNetworkCanalNetworkProvider.java | 1 + ...keConfigNetworkFlannelNetworkProvider.java | 1 + .../ClusterRkeConfigNetworkToleration.java | 10 +- ...rRkeConfigNetworkWeaveNetworkProvider.java | 6 +- .../outputs/ClusterRkeConfigNode.java | 25 ++- .../ClusterRkeConfigPrivateRegistry.java | 10 +- ...figPrivateRegistryEcrCredentialPlugin.java | 3 + .../outputs/ClusterRkeConfigServices.java | 6 + .../outputs/ClusterRkeConfigServicesEtcd.java | 15 ++ ...sterRkeConfigServicesEtcdBackupConfig.java | 6 + ...ervicesEtcdBackupConfigS3BackupConfig.java | 16 +- .../ClusterRkeConfigServicesKubeApi.java | 12 ++ ...ServicesKubeApiAdmissionConfiguration.java | 3 + ...esKubeApiAdmissionConfigurationPlugin.java | 3 + ...usterRkeConfigServicesKubeApiAuditLog.java | 2 + ...gServicesKubeApiAuditLogConfiguration.java | 6 + ...keConfigServicesKubeApiEventRateLimit.java | 2 + ...ervicesKubeApiSecretsEncryptionConfig.java | 2 + ...lusterRkeConfigServicesKubeController.java | 6 + .../ClusterRkeConfigServicesKubelet.java | 9 + .../ClusterRkeConfigServicesKubeproxy.java | 4 + .../ClusterRkeConfigServicesScheduler.java | 4 + .../ClusterRkeConfigUpgradeStrategy.java | 4 + ...terRkeConfigUpgradeStrategyDrainInput.java | 5 + .../rancher2/outputs/ClusterSyncNode.java | 16 ++ .../outputs/ClusterTemplateMember.java | 3 + .../ClusterTemplateTemplateRevision.java | 18 +- ...TemplateTemplateRevisionClusterConfig.java | 17 +- ...isionClusterConfigClusterAuthEndpoint.java | 3 + ...emplateRevisionClusterConfigRkeConfig.java | 23 +++ ...nClusterConfigRkeConfigAuthentication.java | 2 + ...onClusterConfigRkeConfigAuthorization.java | 2 + ...sionClusterConfigRkeConfigBastionHost.java | 15 +- ...onClusterConfigRkeConfigCloudProvider.java | 6 + ...keConfigCloudProviderAwsCloudProvider.java | 2 + ...igCloudProviderAwsCloudProviderGlobal.java | 10 + ...oviderAwsCloudProviderServiceOverride.java | 11 +- ...ConfigCloudProviderAzureCloudProvider.java | 46 ++++- ...igCloudProviderOpenstackCloudProvider.java | 10 +- ...derOpenstackCloudProviderBlockStorage.java | 3 + ...dProviderOpenstackCloudProviderGlobal.java | 23 ++- ...derOpenstackCloudProviderLoadBalancer.java | 11 ++ ...roviderOpenstackCloudProviderMetadata.java | 2 + ...udProviderOpenstackCloudProviderRoute.java | 1 + ...nfigCloudProviderVsphereCloudProvider.java | 14 +- ...CloudProviderVsphereCloudProviderDisk.java | 1 + ...oudProviderVsphereCloudProviderGlobal.java | 6 + ...udProviderVsphereCloudProviderNetwork.java | 1 + ...iderVsphereCloudProviderVirtualCenter.java | 23 ++- ...ProviderVsphereCloudProviderWorkspace.java | 18 +- ...lateRevisionClusterConfigRkeConfigDns.java | 9 + ...figRkeConfigDnsLinearAutoscalerParams.java | 5 + ...ionClusterConfigRkeConfigDnsNodelocal.java | 2 + ...onClusterConfigRkeConfigDnsToleration.java | 10 +- ...usterConfigRkeConfigDnsUpdateStrategy.java | 2 + ...eConfigDnsUpdateStrategyRollingUpdate.java | 2 + ...RevisionClusterConfigRkeConfigIngress.java | 11 ++ ...usterConfigRkeConfigIngressToleration.java | 10 +- ...rConfigRkeConfigIngressUpdateStrategy.java | 2 + ...figIngressUpdateStrategyRollingUpdate.java | 1 + ...isionClusterConfigRkeConfigMonitoring.java | 6 + ...erConfigRkeConfigMonitoringToleration.java | 10 +- ...nfigRkeConfigMonitoringUpdateStrategy.java | 2 + ...MonitoringUpdateStrategyRollingUpdate.java | 2 + ...RevisionClusterConfigRkeConfigNetwork.java | 9 + ...figRkeConfigNetworkAciNetworkProvider.java | 155 ++++++++++++++-- ...RkeConfigNetworkCalicoNetworkProvider.java | 1 + ...gRkeConfigNetworkCanalNetworkProvider.java | 1 + ...keConfigNetworkFlannelNetworkProvider.java | 1 + ...usterConfigRkeConfigNetworkToleration.java | 10 +- ...gRkeConfigNetworkWeaveNetworkProvider.java | 6 +- ...ateRevisionClusterConfigRkeConfigNode.java | 25 ++- ...ClusterConfigRkeConfigPrivateRegistry.java | 10 +- ...figPrivateRegistryEcrCredentialPlugin.java | 3 + ...evisionClusterConfigRkeConfigServices.java | 6 + ...ionClusterConfigRkeConfigServicesEtcd.java | 15 ++ ...nfigRkeConfigServicesEtcdBackupConfig.java | 6 + ...ervicesEtcdBackupConfigS3BackupConfig.java | 16 +- ...ClusterConfigRkeConfigServicesKubeApi.java | 12 ++ ...ServicesKubeApiAdmissionConfiguration.java | 3 + ...esKubeApiAdmissionConfigurationPlugin.java | 3 + ...onfigRkeConfigServicesKubeApiAuditLog.java | 2 + ...gServicesKubeApiAuditLogConfiguration.java | 6 + ...keConfigServicesKubeApiEventRateLimit.java | 2 + ...ervicesKubeApiSecretsEncryptionConfig.java | 2 + ...ConfigRkeConfigServicesKubeController.java | 6 + ...ClusterConfigRkeConfigServicesKubelet.java | 9 + ...usterConfigRkeConfigServicesKubeproxy.java | 4 + ...usterConfigRkeConfigServicesScheduler.java | 4 + ...ClusterConfigRkeConfigUpgradeStrategy.java | 4 + ...figRkeConfigUpgradeStrategyDrainInput.java | 5 + ...usterTemplateTemplateRevisionQuestion.java | 13 +- .../outputs/ClusterV2AgentEnvVar.java | 11 +- ...V2ClusterAgentDeploymentCustomization.java | 3 + ...ploymentCustomizationAppendToleration.java | 10 +- ...tomizationOverrideResourceRequirement.java | 4 + .../ClusterV2ClusterRegistrationToken.java | 13 ++ ...erV2FleetAgentDeploymentCustomization.java | 3 + ...ploymentCustomizationAppendToleration.java | 10 +- ...tomizationOverrideResourceRequirement.java | 4 + .../outputs/ClusterV2LocalAuthEndpoint.java | 3 + .../rancher2/outputs/ClusterV2RkeConfig.java | 13 ++ .../outputs/ClusterV2RkeConfigEtcd.java | 4 + .../ClusterV2RkeConfigEtcdS3Config.java | 16 +- .../ClusterV2RkeConfigEtcdSnapshotCreate.java | 6 +- ...ClusterV2RkeConfigEtcdSnapshotRestore.java | 12 +- .../ClusterV2RkeConfigLocalAuthEndpoint.java | 3 + .../ClusterV2RkeConfigMachinePool.java | 29 ++- .../ClusterV2RkeConfigMachinePoolDefault.java | 1 + ...erV2RkeConfigMachinePoolMachineConfig.java | 11 +- ...erV2RkeConfigMachinePoolRollingUpdate.java | 2 + .../ClusterV2RkeConfigMachinePoolTaint.java | 12 +- ...usterV2RkeConfigMachineSelectorConfig.java | 2 + ...ineSelectorConfigMachineLabelSelector.java | 2 + ...igMachineLabelSelectorMatchExpression.java | 3 + .../outputs/ClusterV2RkeConfigRegistries.java | 2 + .../ClusterV2RkeConfigRegistriesConfig.java | 10 +- .../ClusterV2RkeConfigRegistriesMirror.java | 8 +- .../ClusterV2RkeConfigRotateCertificates.java | 7 +- .../ClusterV2RkeConfigUpgradeStrategy.java | 4 + ...gradeStrategyControlPlaneDrainOptions.java | 9 + ...nfigUpgradeStrategyWorkerDrainOptions.java | 9 + .../outputs/EtcdBackupBackupConfig.java | 6 + .../EtcdBackupBackupConfigS3BackupConfig.java | 16 +- .../pulumi/rancher2/outputs/GetAppResult.java | 71 ++++++-- .../rancher2/outputs/GetCatalogResult.java | 67 +++++-- .../rancher2/outputs/GetCatalogV2Result.java | 81 +++++++-- .../outputs/GetCertificateResult.java | 37 +++- .../outputs/GetCloudCredentialResult.java | 21 ++- .../rancher2/outputs/GetClusterAksConfig.java | 100 ++++++++-- .../outputs/GetClusterAksConfigV2.java | 114 +++++++++--- .../GetClusterAksConfigV2NodePool.java | 33 +++- .../GetClusterAlertGroupRecipient.java | 17 +- .../outputs/GetClusterAlertGroupResult.java | 51 +++++- .../outputs/GetClusterAlterRuleEventRule.java | 7 +- .../GetClusterAlterRuleMetricRule.java | 18 +- .../outputs/GetClusterAlterRuleNodeRule.java | 5 + .../outputs/GetClusterAlterRuleResult.java | 72 ++++++-- .../GetClusterAlterRuleSystemServiceRule.java | 1 + .../GetClusterClusterAuthEndpoint.java | 3 + .../GetClusterClusterMonitoringInput.java | 2 + .../GetClusterClusterRegistrationToken.java | 66 +++++-- .../GetClusterClusterTemplateAnswers.java | 16 +- .../GetClusterClusterTemplateQuestion.java | 13 +- .../outputs/GetClusterDriverResult.java | 56 ++++-- .../rancher2/outputs/GetClusterEksConfig.java | 36 +++- .../outputs/GetClusterEksConfigV2.java | 49 ++++- .../GetClusterEksConfigV2NodeGroup.java | 36 +++- ...terEksConfigV2NodeGroupLaunchTemplate.java | 12 +- .../rancher2/outputs/GetClusterGkeConfig.java | 150 ++++++++++++--- .../outputs/GetClusterGkeConfigV2.java | 112 +++++++++--- .../GetClusterGkeConfigV2ClusterAddons.java | 16 +- ...tClusterGkeConfigV2IpAllocationPolicy.java | 41 ++++- ...onfigV2MasterAuthorizedNetworksConfig.java | 7 +- ...sterAuthorizedNetworksConfigCidrBlock.java | 7 +- .../GetClusterGkeConfigV2NodePool.java | 36 +++- ...ClusterGkeConfigV2NodePoolAutoscaling.java | 12 +- .../GetClusterGkeConfigV2NodePoolConfig.java | 23 ++- ...ClusterGkeConfigV2NodePoolConfigTaint.java | 16 +- ...tClusterGkeConfigV2NodePoolManagement.java | 11 +- ...lusterGkeConfigV2PrivateClusterConfig.java | 8 +- .../rancher2/outputs/GetClusterK3sConfig.java | 11 +- .../GetClusterK3sConfigUpgradeStrategy.java | 4 + .../rancher2/outputs/GetClusterOkeConfig.java | 69 ++++++- .../rancher2/outputs/GetClusterResult.java | 171 ++++++++++++++---- .../outputs/GetClusterRke2Config.java | 11 +- .../GetClusterRke2ConfigUpgradeStrategy.java | 4 + .../rancher2/outputs/GetClusterRkeConfig.java | 88 +++++++-- .../GetClusterRkeConfigAuthentication.java | 11 +- .../GetClusterRkeConfigAuthorization.java | 7 +- .../GetClusterRkeConfigBastionHost.java | 23 ++- .../GetClusterRkeConfigCloudProvider.java | 11 +- ...keConfigCloudProviderAwsCloudProvider.java | 7 +- ...igCloudProviderAwsCloudProviderGlobal.java | 43 ++++- ...oviderAwsCloudProviderServiceOverride.java | 31 +++- ...ConfigCloudProviderAzureCloudProvider.java | 142 ++++++++++++--- ...igCloudProviderOpenstackCloudProvider.java | 26 ++- ...derOpenstackCloudProviderBlockStorage.java | 16 +- ...dProviderOpenstackCloudProviderGlobal.java | 51 +++++- ...derOpenstackCloudProviderLoadBalancer.java | 44 ++++- ...roviderOpenstackCloudProviderMetadata.java | 11 +- ...udProviderOpenstackCloudProviderRoute.java | 6 +- ...nfigCloudProviderVsphereCloudProvider.java | 26 ++- ...CloudProviderVsphereCloudProviderDisk.java | 6 +- ...oudProviderVsphereCloudProviderGlobal.java | 31 +++- ...udProviderVsphereCloudProviderNetwork.java | 6 +- ...iderVsphereCloudProviderVirtualCenter.java | 31 +++- ...ProviderVsphereCloudProviderWorkspace.java | 26 ++- .../outputs/GetClusterRkeConfigDns.java | 26 ++- ...terRkeConfigDnsLinearAutoscalerParams.java | 5 + .../GetClusterRkeConfigDnsNodelocal.java | 2 + .../GetClusterRkeConfigDnsToleration.java | 14 +- .../GetClusterRkeConfigDnsUpdateStrategy.java | 2 + ...eConfigDnsUpdateStrategyRollingUpdate.java | 2 + .../outputs/GetClusterRkeConfigIngress.java | 44 ++++- .../GetClusterRkeConfigIngressToleration.java | 14 +- ...ClusterRkeConfigIngressUpdateStrategy.java | 2 + ...figIngressUpdateStrategyRollingUpdate.java | 1 + .../GetClusterRkeConfigMonitoring.java | 19 +- ...tClusterRkeConfigMonitoringToleration.java | 14 +- ...sterRkeConfigMonitoringUpdateStrategy.java | 2 + ...MonitoringUpdateStrategyRollingUpdate.java | 2 + .../outputs/GetClusterRkeConfigNetwork.java | 18 +- ...terRkeConfigNetworkAciNetworkProvider.java | 155 ++++++++++++++-- ...RkeConfigNetworkCalicoNetworkProvider.java | 6 +- ...rRkeConfigNetworkCanalNetworkProvider.java | 6 +- ...keConfigNetworkFlannelNetworkProvider.java | 6 +- .../GetClusterRkeConfigNetworkToleration.java | 14 +- ...rRkeConfigNetworkWeaveNetworkProvider.java | 6 +- .../outputs/GetClusterRkeConfigNode.java | 37 +++- .../GetClusterRkeConfigPrivateRegistry.java | 10 +- ...figPrivateRegistryEcrCredentialPlugin.java | 3 + .../outputs/GetClusterRkeConfigServices.java | 31 +++- .../GetClusterRkeConfigServicesEtcd.java | 56 +++++- ...sterRkeConfigServicesEtcdBackupConfig.java | 11 +- ...ervicesEtcdBackupConfigS3BackupConfig.java | 16 +- .../GetClusterRkeConfigServicesKubeApi.java | 29 ++- ...ServicesKubeApiAdmissionConfiguration.java | 8 +- ...esKubeApiAdmissionConfigurationPlugin.java | 12 +- ...usterRkeConfigServicesKubeApiAuditLog.java | 7 +- ...gServicesKubeApiAuditLogConfiguration.java | 11 +- ...keConfigServicesKubeApiEventRateLimit.java | 7 +- ...ervicesKubeApiSecretsEncryptionConfig.java | 7 +- ...lusterRkeConfigServicesKubeController.java | 23 ++- .../GetClusterRkeConfigServicesKubelet.java | 34 +++- .../GetClusterRkeConfigServicesKubeproxy.java | 13 +- .../GetClusterRkeConfigServicesScheduler.java | 13 +- .../GetClusterRkeConfigUpgradeStrategy.java | 9 +- ...terRkeConfigUpgradeStrategyDrainInput.java | 5 + .../GetClusterRoleTemplateBindingResult.java | 51 +++++- .../outputs/GetClusterTemplateMember.java | 3 + .../outputs/GetClusterTemplateResult.java | 41 ++++- .../GetClusterTemplateTemplateRevision.java | 34 +++- ...TemplateTemplateRevisionClusterConfig.java | 45 ++++- ...isionClusterConfigClusterAuthEndpoint.java | 3 + ...emplateRevisionClusterConfigRkeConfig.java | 88 +++++++-- ...nClusterConfigRkeConfigAuthentication.java | 11 +- ...onClusterConfigRkeConfigAuthorization.java | 7 +- ...sionClusterConfigRkeConfigBastionHost.java | 23 ++- ...onClusterConfigRkeConfigCloudProvider.java | 11 +- ...keConfigCloudProviderAwsCloudProvider.java | 7 +- ...igCloudProviderAwsCloudProviderGlobal.java | 43 ++++- ...oviderAwsCloudProviderServiceOverride.java | 31 +++- ...ConfigCloudProviderAzureCloudProvider.java | 142 ++++++++++++--- ...igCloudProviderOpenstackCloudProvider.java | 26 ++- ...derOpenstackCloudProviderBlockStorage.java | 16 +- ...dProviderOpenstackCloudProviderGlobal.java | 51 +++++- ...derOpenstackCloudProviderLoadBalancer.java | 44 ++++- ...roviderOpenstackCloudProviderMetadata.java | 11 +- ...udProviderOpenstackCloudProviderRoute.java | 6 +- ...nfigCloudProviderVsphereCloudProvider.java | 26 ++- ...CloudProviderVsphereCloudProviderDisk.java | 6 +- ...oudProviderVsphereCloudProviderGlobal.java | 31 +++- ...udProviderVsphereCloudProviderNetwork.java | 6 +- ...iderVsphereCloudProviderVirtualCenter.java | 31 +++- ...ProviderVsphereCloudProviderWorkspace.java | 26 ++- ...lateRevisionClusterConfigRkeConfigDns.java | 26 ++- ...figRkeConfigDnsLinearAutoscalerParams.java | 5 + ...ionClusterConfigRkeConfigDnsNodelocal.java | 2 + ...onClusterConfigRkeConfigDnsToleration.java | 14 +- ...usterConfigRkeConfigDnsUpdateStrategy.java | 2 + ...eConfigDnsUpdateStrategyRollingUpdate.java | 2 + ...RevisionClusterConfigRkeConfigIngress.java | 44 ++++- ...usterConfigRkeConfigIngressToleration.java | 14 +- ...rConfigRkeConfigIngressUpdateStrategy.java | 2 + ...figIngressUpdateStrategyRollingUpdate.java | 1 + ...isionClusterConfigRkeConfigMonitoring.java | 19 +- ...erConfigRkeConfigMonitoringToleration.java | 14 +- ...nfigRkeConfigMonitoringUpdateStrategy.java | 2 + ...MonitoringUpdateStrategyRollingUpdate.java | 2 + ...RevisionClusterConfigRkeConfigNetwork.java | 18 +- ...figRkeConfigNetworkAciNetworkProvider.java | 155 ++++++++++++++-- ...RkeConfigNetworkCalicoNetworkProvider.java | 6 +- ...gRkeConfigNetworkCanalNetworkProvider.java | 6 +- ...keConfigNetworkFlannelNetworkProvider.java | 6 +- ...usterConfigRkeConfigNetworkToleration.java | 14 +- ...gRkeConfigNetworkWeaveNetworkProvider.java | 6 +- ...ateRevisionClusterConfigRkeConfigNode.java | 37 +++- ...ClusterConfigRkeConfigPrivateRegistry.java | 10 +- ...figPrivateRegistryEcrCredentialPlugin.java | 3 + ...evisionClusterConfigRkeConfigServices.java | 31 +++- ...ionClusterConfigRkeConfigServicesEtcd.java | 56 +++++- ...nfigRkeConfigServicesEtcdBackupConfig.java | 11 +- ...ervicesEtcdBackupConfigS3BackupConfig.java | 16 +- ...ClusterConfigRkeConfigServicesKubeApi.java | 29 ++- ...ServicesKubeApiAdmissionConfiguration.java | 8 +- ...esKubeApiAdmissionConfigurationPlugin.java | 12 +- ...onfigRkeConfigServicesKubeApiAuditLog.java | 7 +- ...gServicesKubeApiAuditLogConfiguration.java | 11 +- ...keConfigServicesKubeApiEventRateLimit.java | 7 +- ...ervicesKubeApiSecretsEncryptionConfig.java | 7 +- ...ConfigRkeConfigServicesKubeController.java | 23 ++- ...ClusterConfigRkeConfigServicesKubelet.java | 34 +++- ...usterConfigRkeConfigServicesKubeproxy.java | 13 +- ...usterConfigRkeConfigServicesScheduler.java | 13 +- ...ClusterConfigRkeConfigUpgradeStrategy.java | 9 +- ...figRkeConfigUpgradeStrategyDrainInput.java | 5 + ...usterTemplateTemplateRevisionQuestion.java | 13 +- .../outputs/GetClusterV2AgentEnvVar.java | 11 +- .../GetClusterV2ClusterRegistrationToken.java | 66 +++++-- .../rancher2/outputs/GetClusterV2Result.java | 82 +++++++-- .../outputs/GetClusterV2RkeConfig.java | 30 ++- .../outputs/GetClusterV2RkeConfigEtcd.java | 4 + .../GetClusterV2RkeConfigEtcdS3Config.java | 16 +- ...tClusterV2RkeConfigEtcdSnapshotCreate.java | 6 +- ...ClusterV2RkeConfigEtcdSnapshotRestore.java | 12 +- ...etClusterV2RkeConfigLocalAuthEndpoint.java | 3 + .../GetClusterV2RkeConfigMachinePool.java | 41 ++++- ...tClusterV2RkeConfigMachinePoolDefault.java | 1 + ...erV2RkeConfigMachinePoolMachineConfig.java | 11 +- ...erV2RkeConfigMachinePoolRollingUpdate.java | 2 + ...GetClusterV2RkeConfigMachinePoolTaint.java | 12 +- ...usterV2RkeConfigMachineSelectorConfig.java | 2 + ...ineSelectorConfigMachineLabelSelector.java | 2 + ...igMachineLabelSelectorMatchExpression.java | 3 + .../GetClusterV2RkeConfigRegistries.java | 2 + ...GetClusterV2RkeConfigRegistriesConfig.java | 10 +- ...GetClusterV2RkeConfigRegistriesMirror.java | 8 +- ...tClusterV2RkeConfigRotateCertificates.java | 7 +- .../GetClusterV2RkeConfigUpgradeStrategy.java | 4 + ...gradeStrategyControlPlaneDrainOptions.java | 22 ++- ...nfigUpgradeStrategyWorkerDrainOptions.java | 22 ++- .../outputs/GetConfigMapV2Result.java | 42 ++++- .../outputs/GetEtcdBackupBackupConfig.java | 11 +- ...tEtcdBackupBackupConfigS3BackupConfig.java | 16 +- .../rancher2/outputs/GetEtcdBackupResult.java | 46 ++++- .../GetGlobalDnsProviderAlidnsConfig.java | 11 +- .../GetGlobalDnsProviderCloudflareConfig.java | 12 +- .../outputs/GetGlobalDnsProviderResult.java | 46 ++++- .../GetGlobalDnsProviderRoute53Config.java | 15 +- .../outputs/GetGlobalRoleBindingResult.java | 36 +++- .../rancher2/outputs/GetGlobalRoleResult.java | 41 ++++- .../rancher2/outputs/GetGlobalRoleRule.java | 5 + .../outputs/GetMultiClusterAppAnswer.java | 16 +- .../outputs/GetMultiClusterAppMember.java | 3 + .../outputs/GetMultiClusterAppResult.java | 76 ++++++-- .../outputs/GetMultiClusterAppTarget.java | 21 ++- .../GetMultiClusterAppUpgradeStrategy.java | 1 + ...lusterAppUpgradeStrategyRollingUpdate.java | 2 + .../GetNamespaceContainerResourceLimit.java | 4 + .../outputs/GetNamespaceResourceQuota.java | 6 +- .../GetNamespaceResourceQuotaLimit.java | 13 ++ .../rancher2/outputs/GetNamespaceResult.java | 41 ++++- .../rancher2/outputs/GetNodeDriverResult.java | 61 +++++-- .../outputs/GetNodePoolNodeTaint.java | 17 +- .../rancher2/outputs/GetNodePoolResult.java | 66 +++++-- .../outputs/GetNodeTemplateNodeTaint.java | 17 +- .../outputs/GetNodeTemplateResult.java | 77 ++++++-- .../outputs/GetNotifierDingtalkConfig.java | 8 +- .../outputs/GetNotifierMsteamsConfig.java | 7 +- .../outputs/GetNotifierPagerdutyConfig.java | 7 +- .../rancher2/outputs/GetNotifierResult.java | 58 ++++-- .../outputs/GetNotifierSlackConfig.java | 12 +- .../outputs/GetNotifierSmtpConfig.java | 24 ++- .../outputs/GetNotifierWebhookConfig.java | 7 +- .../outputs/GetNotifierWechatConfig.java | 23 ++- ...ecurityPolicyTemplateAllowedCsiDriver.java | 6 +- ...curityPolicyTemplateAllowedFlexVolume.java | 6 +- ...SecurityPolicyTemplateAllowedHostPath.java | 7 +- .../GetPodSecurityPolicyTemplateFsGroup.java | 7 +- ...PodSecurityPolicyTemplateFsGroupRange.java | 11 +- .../GetPodSecurityPolicyTemplateHostPort.java | 11 +- .../GetPodSecurityPolicyTemplateResult.java | 98 ++++++++-- ...etPodSecurityPolicyTemplateRunAsGroup.java | 7 +- ...SecurityPolicyTemplateRunAsGroupRange.java | 11 +- ...GetPodSecurityPolicyTemplateRunAsUser.java | 7 +- ...dSecurityPolicyTemplateRunAsUserRange.java | 11 +- ...PodSecurityPolicyTemplateRuntimeClass.java | 7 +- .../GetPodSecurityPolicyTemplateSeLinux.java | 7 +- ...ityPolicyTemplateSeLinuxSeLinuxOption.java | 4 + ...curityPolicyTemplateSupplementalGroup.java | 7 +- ...yPolicyTemplateSupplementalGroupRange.java | 11 +- .../rancher2/outputs/GetPrincipalResult.java | 12 +- .../GetProjectAlertGroupRecipient.java | 17 +- .../outputs/GetProjectAlertGroupResult.java | 51 +++++- .../GetProjectAlertRuleMetricRule.java | 18 +- .../outputs/GetProjectAlertRulePodRule.java | 9 +- .../outputs/GetProjectAlertRuleResult.java | 67 +++++-- .../GetProjectAlertRuleWorkloadRule.java | 3 + .../GetProjectContainerResourceLimit.java | 4 + .../outputs/GetProjectResourceQuota.java | 11 +- ...ectResourceQuotaNamespaceDefaultLimit.java | 13 ++ .../GetProjectResourceQuotaProjectLimit.java | 13 ++ .../rancher2/outputs/GetProjectResult.java | 56 ++++-- .../GetProjectRoleTemplateBindingResult.java | 51 +++++- .../rancher2/outputs/GetRegistryRegistry.java | 8 +- .../rancher2/outputs/GetRegistryResult.java | 37 +++- .../outputs/GetRoleTempalteResult.java | 71 ++++++-- .../rancher2/outputs/GetRoleTempalteRule.java | 5 + .../outputs/GetRoleTemplateResult.java | 71 ++++++-- .../rancher2/outputs/GetRoleTemplateRule.java | 5 + .../rancher2/outputs/GetSecretResult.java | 37 +++- .../rancher2/outputs/GetSecretV2Result.java | 47 ++++- .../rancher2/outputs/GetSettingResult.java | 16 +- .../outputs/GetStorageClassV2Result.java | 61 +++++-- .../rancher2/outputs/GetUserResult.java | 37 +++- .../GlobalDnsProviderAlidnsConfig.java | 11 +- .../GlobalDnsProviderCloudflareConfig.java | 12 +- .../GlobalDnsProviderRoute53Config.java | 15 +- .../rancher2/outputs/GlobalRoleRule.java | 5 + .../MachineConfigV2Amazonec2Config.java | 59 +++++- .../outputs/MachineConfigV2AzureConfig.java | 33 ++++ .../MachineConfigV2DigitaloceanConfig.java | 14 ++ .../MachineConfigV2HarvesterConfig.java | 24 ++- .../outputs/MachineConfigV2LinodeConfig.java | 16 ++ .../MachineConfigV2OpenstackConfig.java | 55 +++++- .../outputs/MachineConfigV2VsphereConfig.java | 31 ++++ .../outputs/MultiClusterAppAnswer.java | 3 + .../outputs/MultiClusterAppMember.java | 3 + .../outputs/MultiClusterAppTarget.java | 9 +- .../MultiClusterAppUpgradeStrategy.java | 1 + ...lusterAppUpgradeStrategyRollingUpdate.java | 2 + .../NamespaceContainerResourceLimit.java | 4 + .../outputs/NamespaceResourceQuota.java | 6 +- .../outputs/NamespaceResourceQuotaLimit.java | 13 ++ .../rancher2/outputs/NodePoolNodeTaint.java | 13 +- .../outputs/NodeTemplateAmazonec2Config.java | 59 +++++- .../outputs/NodeTemplateAzureConfig.java | 32 ++++ .../NodeTemplateDigitaloceanConfig.java | 14 ++ .../outputs/NodeTemplateHarvesterConfig.java | 24 ++- .../outputs/NodeTemplateHetznerConfig.java | 14 +- .../outputs/NodeTemplateLinodeConfig.java | 16 ++ .../outputs/NodeTemplateNodeTaint.java | 13 +- .../outputs/NodeTemplateOpennebulaConfig.java | 32 +++- .../outputs/NodeTemplateOpenstackConfig.java | 51 +++++- .../outputs/NodeTemplateOutscaleConfig.java | 20 +- .../outputs/NodeTemplateVsphereConfig.java | 31 ++++ .../outputs/NotifierDingtalkConfig.java | 8 +- .../outputs/NotifierMsteamsConfig.java | 7 +- .../outputs/NotifierPagerdutyConfig.java | 7 +- .../rancher2/outputs/NotifierSlackConfig.java | 12 +- .../rancher2/outputs/NotifierSmtpConfig.java | 24 ++- .../outputs/NotifierWebhookConfig.java | 7 +- .../outputs/NotifierWechatConfig.java | 23 ++- ...ecurityPolicyTemplateAllowedCsiDriver.java | 6 +- ...curityPolicyTemplateAllowedFlexVolume.java | 6 +- ...SecurityPolicyTemplateAllowedHostPath.java | 7 +- .../PodSecurityPolicyTemplateFsGroup.java | 2 + ...PodSecurityPolicyTemplateFsGroupRange.java | 11 +- .../PodSecurityPolicyTemplateHostPort.java | 11 +- .../PodSecurityPolicyTemplateRunAsGroup.java | 7 +- ...SecurityPolicyTemplateRunAsGroupRange.java | 11 +- .../PodSecurityPolicyTemplateRunAsUser.java | 7 +- ...dSecurityPolicyTemplateRunAsUserRange.java | 11 +- ...PodSecurityPolicyTemplateRuntimeClass.java | 7 +- .../PodSecurityPolicyTemplateSeLinux.java | 7 +- ...ityPolicyTemplateSeLinuxSeLinuxOption.java | 4 + ...curityPolicyTemplateSupplementalGroup.java | 2 + ...yPolicyTemplateSupplementalGroupRange.java | 11 +- .../outputs/ProjectAlertGroupRecipient.java | 9 +- .../outputs/ProjectAlertRuleMetricRule.java | 18 +- .../outputs/ProjectAlertRulePodRule.java | 9 +- .../outputs/ProjectAlertRuleWorkloadRule.java | 3 + .../ProjectContainerResourceLimit.java | 4 + .../ProjectProjectMonitoringInput.java | 2 + .../outputs/ProjectResourceQuota.java | 11 +- ...ectResourceQuotaNamespaceDefaultLimit.java | 13 ++ .../ProjectResourceQuotaProjectLimit.java | 13 ++ .../rancher2/outputs/RegistryRegistry.java | 8 +- .../rancher2/outputs/RoleTempalteRule.java | 5 + .../rancher2/outputs/RoleTemplateRule.java | 5 + 829 files changed, 10670 insertions(+), 2037 deletions(-) diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index bd45ddd8b..6a11347d2 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.9.8") + implementation("com.pulumi:pulumi:0.9.9") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java index d50129d7b..8892f0789 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ActiveDirectoryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -1285,12 +1286,24 @@ public Builder userSearchFilter(String userSearchFilter) { } public ActiveDirectoryArgs build() { - $.servers = Objects.requireNonNull($.servers, "expected parameter 'servers' to be non-null"); - $.serviceAccountPassword = Objects.requireNonNull($.serviceAccountPassword, "expected parameter 'serviceAccountPassword' to be non-null"); - $.serviceAccountUsername = Objects.requireNonNull($.serviceAccountUsername, "expected parameter 'serviceAccountUsername' to be non-null"); - $.testPassword = Objects.requireNonNull($.testPassword, "expected parameter 'testPassword' to be non-null"); - $.testUsername = Objects.requireNonNull($.testUsername, "expected parameter 'testUsername' to be non-null"); - $.userSearchBase = Objects.requireNonNull($.userSearchBase, "expected parameter 'userSearchBase' to be non-null"); + if ($.servers == null) { + throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "servers"); + } + if ($.serviceAccountPassword == null) { + throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "serviceAccountPassword"); + } + if ($.serviceAccountUsername == null) { + throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "serviceAccountUsername"); + } + if ($.testPassword == null) { + throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "testPassword"); + } + if ($.testUsername == null) { + throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "testUsername"); + } + if ($.userSearchBase == null) { + throw new MissingRequiredPropertyException("ActiveDirectoryArgs", "userSearchBase"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AppArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AppArgs.java index e6fbb85f6..840acc144 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AppArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AppArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -568,10 +569,18 @@ public Builder wait_(Boolean wait) { } public AppArgs build() { - $.catalogName = Objects.requireNonNull($.catalogName, "expected parameter 'catalogName' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.targetNamespace = Objects.requireNonNull($.targetNamespace, "expected parameter 'targetNamespace' to be non-null"); - $.templateName = Objects.requireNonNull($.templateName, "expected parameter 'templateName' to be non-null"); + if ($.catalogName == null) { + throw new MissingRequiredPropertyException("AppArgs", "catalogName"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("AppArgs", "projectId"); + } + if ($.targetNamespace == null) { + throw new MissingRequiredPropertyException("AppArgs", "targetNamespace"); + } + if ($.templateName == null) { + throw new MissingRequiredPropertyException("AppArgs", "templateName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java index 6af9c050f..9ca014eb4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AppV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -597,10 +598,18 @@ public Builder wait_(Boolean wait) { } public AppV2Args build() { - $.chartName = Objects.requireNonNull($.chartName, "expected parameter 'chartName' to be non-null"); - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.namespace = Objects.requireNonNull($.namespace, "expected parameter 'namespace' to be non-null"); - $.repoName = Objects.requireNonNull($.repoName, "expected parameter 'repoName' to be non-null"); + if ($.chartName == null) { + throw new MissingRequiredPropertyException("AppV2Args", "chartName"); + } + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("AppV2Args", "clusterId"); + } + if ($.namespace == null) { + throw new MissingRequiredPropertyException("AppV2Args", "namespace"); + } + if ($.repoName == null) { + throw new MissingRequiredPropertyException("AppV2Args", "repoName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectoryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectoryArgs.java index 59900f716..ec7feebb1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectoryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigActiveDirectoryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -1285,12 +1286,24 @@ public Builder userSearchFilter(String userSearchFilter) { } public AuthConfigActiveDirectoryArgs build() { - $.servers = Objects.requireNonNull($.servers, "expected parameter 'servers' to be non-null"); - $.serviceAccountPassword = Objects.requireNonNull($.serviceAccountPassword, "expected parameter 'serviceAccountPassword' to be non-null"); - $.serviceAccountUsername = Objects.requireNonNull($.serviceAccountUsername, "expected parameter 'serviceAccountUsername' to be non-null"); - $.testPassword = Objects.requireNonNull($.testPassword, "expected parameter 'testPassword' to be non-null"); - $.testUsername = Objects.requireNonNull($.testUsername, "expected parameter 'testUsername' to be non-null"); - $.userSearchBase = Objects.requireNonNull($.userSearchBase, "expected parameter 'userSearchBase' to be non-null"); + if ($.servers == null) { + throw new MissingRequiredPropertyException("AuthConfigActiveDirectoryArgs", "servers"); + } + if ($.serviceAccountPassword == null) { + throw new MissingRequiredPropertyException("AuthConfigActiveDirectoryArgs", "serviceAccountPassword"); + } + if ($.serviceAccountUsername == null) { + throw new MissingRequiredPropertyException("AuthConfigActiveDirectoryArgs", "serviceAccountUsername"); + } + if ($.testPassword == null) { + throw new MissingRequiredPropertyException("AuthConfigActiveDirectoryArgs", "testPassword"); + } + if ($.testUsername == null) { + throw new MissingRequiredPropertyException("AuthConfigActiveDirectoryArgs", "testUsername"); + } + if ($.userSearchBase == null) { + throw new MissingRequiredPropertyException("AuthConfigActiveDirectoryArgs", "userSearchBase"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAdfsArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAdfsArgs.java index 5f860d94c..0bf4a9ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAdfsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAdfsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -534,14 +535,30 @@ public Builder userNameField(String userNameField) { } public AuthConfigAdfsArgs build() { - $.displayNameField = Objects.requireNonNull($.displayNameField, "expected parameter 'displayNameField' to be non-null"); - $.groupsField = Objects.requireNonNull($.groupsField, "expected parameter 'groupsField' to be non-null"); - $.idpMetadataContent = Objects.requireNonNull($.idpMetadataContent, "expected parameter 'idpMetadataContent' to be non-null"); - $.rancherApiHost = Objects.requireNonNull($.rancherApiHost, "expected parameter 'rancherApiHost' to be non-null"); - $.spCert = Objects.requireNonNull($.spCert, "expected parameter 'spCert' to be non-null"); - $.spKey = Objects.requireNonNull($.spKey, "expected parameter 'spKey' to be non-null"); - $.uidField = Objects.requireNonNull($.uidField, "expected parameter 'uidField' to be non-null"); - $.userNameField = Objects.requireNonNull($.userNameField, "expected parameter 'userNameField' to be non-null"); + if ($.displayNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "displayNameField"); + } + if ($.groupsField == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "groupsField"); + } + if ($.idpMetadataContent == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "idpMetadataContent"); + } + if ($.rancherApiHost == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "rancherApiHost"); + } + if ($.spCert == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "spCert"); + } + if ($.spKey == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "spKey"); + } + if ($.uidField == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "uidField"); + } + if ($.userNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigAdfsArgs", "userNameField"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAzureAdArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAzureAdArgs.java index b2a4c90ce..4db76e90a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAzureAdArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigAzureAdArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -534,13 +535,27 @@ public Builder tokenEndpoint(String tokenEndpoint) { } public AuthConfigAzureAdArgs build() { - $.applicationId = Objects.requireNonNull($.applicationId, "expected parameter 'applicationId' to be non-null"); - $.applicationSecret = Objects.requireNonNull($.applicationSecret, "expected parameter 'applicationSecret' to be non-null"); - $.authEndpoint = Objects.requireNonNull($.authEndpoint, "expected parameter 'authEndpoint' to be non-null"); - $.graphEndpoint = Objects.requireNonNull($.graphEndpoint, "expected parameter 'graphEndpoint' to be non-null"); - $.rancherUrl = Objects.requireNonNull($.rancherUrl, "expected parameter 'rancherUrl' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); - $.tokenEndpoint = Objects.requireNonNull($.tokenEndpoint, "expected parameter 'tokenEndpoint' to be non-null"); + if ($.applicationId == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "applicationId"); + } + if ($.applicationSecret == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "applicationSecret"); + } + if ($.authEndpoint == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "authEndpoint"); + } + if ($.graphEndpoint == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "graphEndpoint"); + } + if ($.rancherUrl == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "rancherUrl"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "tenantId"); + } + if ($.tokenEndpoint == null) { + throw new MissingRequiredPropertyException("AuthConfigAzureAdArgs", "tokenEndpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigFreeIpaArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigFreeIpaArgs.java index dfa200219..def5c889a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigFreeIpaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigFreeIpaArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -1225,12 +1226,24 @@ public Builder userSearchFilter(String userSearchFilter) { } public AuthConfigFreeIpaArgs build() { - $.servers = Objects.requireNonNull($.servers, "expected parameter 'servers' to be non-null"); - $.serviceAccountDistinguishedName = Objects.requireNonNull($.serviceAccountDistinguishedName, "expected parameter 'serviceAccountDistinguishedName' to be non-null"); - $.serviceAccountPassword = Objects.requireNonNull($.serviceAccountPassword, "expected parameter 'serviceAccountPassword' to be non-null"); - $.testPassword = Objects.requireNonNull($.testPassword, "expected parameter 'testPassword' to be non-null"); - $.testUsername = Objects.requireNonNull($.testUsername, "expected parameter 'testUsername' to be non-null"); - $.userSearchBase = Objects.requireNonNull($.userSearchBase, "expected parameter 'userSearchBase' to be non-null"); + if ($.servers == null) { + throw new MissingRequiredPropertyException("AuthConfigFreeIpaArgs", "servers"); + } + if ($.serviceAccountDistinguishedName == null) { + throw new MissingRequiredPropertyException("AuthConfigFreeIpaArgs", "serviceAccountDistinguishedName"); + } + if ($.serviceAccountPassword == null) { + throw new MissingRequiredPropertyException("AuthConfigFreeIpaArgs", "serviceAccountPassword"); + } + if ($.testPassword == null) { + throw new MissingRequiredPropertyException("AuthConfigFreeIpaArgs", "testPassword"); + } + if ($.testUsername == null) { + throw new MissingRequiredPropertyException("AuthConfigFreeIpaArgs", "testUsername"); + } + if ($.userSearchBase == null) { + throw new MissingRequiredPropertyException("AuthConfigFreeIpaArgs", "userSearchBase"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigGithubArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigGithubArgs.java index b0034252f..a93479d38 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigGithubArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigGithubArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -386,8 +387,12 @@ public Builder tls(Boolean tls) { } public AuthConfigGithubArgs build() { - $.clientId = Objects.requireNonNull($.clientId, "expected parameter 'clientId' to be non-null"); - $.clientSecret = Objects.requireNonNull($.clientSecret, "expected parameter 'clientSecret' to be non-null"); + if ($.clientId == null) { + throw new MissingRequiredPropertyException("AuthConfigGithubArgs", "clientId"); + } + if ($.clientSecret == null) { + throw new MissingRequiredPropertyException("AuthConfigGithubArgs", "clientSecret"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigKeycloakArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigKeycloakArgs.java index e03933268..df7f82a53 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigKeycloakArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigKeycloakArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -571,14 +572,30 @@ public Builder userNameField(String userNameField) { } public AuthConfigKeycloakArgs build() { - $.displayNameField = Objects.requireNonNull($.displayNameField, "expected parameter 'displayNameField' to be non-null"); - $.groupsField = Objects.requireNonNull($.groupsField, "expected parameter 'groupsField' to be non-null"); - $.idpMetadataContent = Objects.requireNonNull($.idpMetadataContent, "expected parameter 'idpMetadataContent' to be non-null"); - $.rancherApiHost = Objects.requireNonNull($.rancherApiHost, "expected parameter 'rancherApiHost' to be non-null"); - $.spCert = Objects.requireNonNull($.spCert, "expected parameter 'spCert' to be non-null"); - $.spKey = Objects.requireNonNull($.spKey, "expected parameter 'spKey' to be non-null"); - $.uidField = Objects.requireNonNull($.uidField, "expected parameter 'uidField' to be non-null"); - $.userNameField = Objects.requireNonNull($.userNameField, "expected parameter 'userNameField' to be non-null"); + if ($.displayNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "displayNameField"); + } + if ($.groupsField == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "groupsField"); + } + if ($.idpMetadataContent == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "idpMetadataContent"); + } + if ($.rancherApiHost == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "rancherApiHost"); + } + if ($.spCert == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "spCert"); + } + if ($.spKey == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "spKey"); + } + if ($.uidField == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "uidField"); + } + if ($.userNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigKeycloakArgs", "userNameField"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOktaArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOktaArgs.java index 1fad700d3..55b27e765 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOktaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOktaArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -534,14 +535,30 @@ public Builder userNameField(String userNameField) { } public AuthConfigOktaArgs build() { - $.displayNameField = Objects.requireNonNull($.displayNameField, "expected parameter 'displayNameField' to be non-null"); - $.groupsField = Objects.requireNonNull($.groupsField, "expected parameter 'groupsField' to be non-null"); - $.idpMetadataContent = Objects.requireNonNull($.idpMetadataContent, "expected parameter 'idpMetadataContent' to be non-null"); - $.rancherApiHost = Objects.requireNonNull($.rancherApiHost, "expected parameter 'rancherApiHost' to be non-null"); - $.spCert = Objects.requireNonNull($.spCert, "expected parameter 'spCert' to be non-null"); - $.spKey = Objects.requireNonNull($.spKey, "expected parameter 'spKey' to be non-null"); - $.uidField = Objects.requireNonNull($.uidField, "expected parameter 'uidField' to be non-null"); - $.userNameField = Objects.requireNonNull($.userNameField, "expected parameter 'userNameField' to be non-null"); + if ($.displayNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "displayNameField"); + } + if ($.groupsField == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "groupsField"); + } + if ($.idpMetadataContent == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "idpMetadataContent"); + } + if ($.rancherApiHost == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "rancherApiHost"); + } + if ($.spCert == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "spCert"); + } + if ($.spKey == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "spKey"); + } + if ($.uidField == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "uidField"); + } + if ($.userNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigOktaArgs", "userNameField"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOpenLdapArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOpenLdapArgs.java index edd3642ac..2f12f006f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOpenLdapArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigOpenLdapArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -1225,12 +1226,24 @@ public Builder userSearchFilter(String userSearchFilter) { } public AuthConfigOpenLdapArgs build() { - $.servers = Objects.requireNonNull($.servers, "expected parameter 'servers' to be non-null"); - $.serviceAccountDistinguishedName = Objects.requireNonNull($.serviceAccountDistinguishedName, "expected parameter 'serviceAccountDistinguishedName' to be non-null"); - $.serviceAccountPassword = Objects.requireNonNull($.serviceAccountPassword, "expected parameter 'serviceAccountPassword' to be non-null"); - $.testPassword = Objects.requireNonNull($.testPassword, "expected parameter 'testPassword' to be non-null"); - $.testUsername = Objects.requireNonNull($.testUsername, "expected parameter 'testUsername' to be non-null"); - $.userSearchBase = Objects.requireNonNull($.userSearchBase, "expected parameter 'userSearchBase' to be non-null"); + if ($.servers == null) { + throw new MissingRequiredPropertyException("AuthConfigOpenLdapArgs", "servers"); + } + if ($.serviceAccountDistinguishedName == null) { + throw new MissingRequiredPropertyException("AuthConfigOpenLdapArgs", "serviceAccountDistinguishedName"); + } + if ($.serviceAccountPassword == null) { + throw new MissingRequiredPropertyException("AuthConfigOpenLdapArgs", "serviceAccountPassword"); + } + if ($.testPassword == null) { + throw new MissingRequiredPropertyException("AuthConfigOpenLdapArgs", "testPassword"); + } + if ($.testUsername == null) { + throw new MissingRequiredPropertyException("AuthConfigOpenLdapArgs", "testUsername"); + } + if ($.userSearchBase == null) { + throw new MissingRequiredPropertyException("AuthConfigOpenLdapArgs", "userSearchBase"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigPingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigPingArgs.java index cbb3e5de7..9def0df8a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigPingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/AuthConfigPingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -571,14 +572,30 @@ public Builder userNameField(String userNameField) { } public AuthConfigPingArgs build() { - $.displayNameField = Objects.requireNonNull($.displayNameField, "expected parameter 'displayNameField' to be non-null"); - $.groupsField = Objects.requireNonNull($.groupsField, "expected parameter 'groupsField' to be non-null"); - $.idpMetadataContent = Objects.requireNonNull($.idpMetadataContent, "expected parameter 'idpMetadataContent' to be non-null"); - $.rancherApiHost = Objects.requireNonNull($.rancherApiHost, "expected parameter 'rancherApiHost' to be non-null"); - $.spCert = Objects.requireNonNull($.spCert, "expected parameter 'spCert' to be non-null"); - $.spKey = Objects.requireNonNull($.spKey, "expected parameter 'spKey' to be non-null"); - $.uidField = Objects.requireNonNull($.uidField, "expected parameter 'uidField' to be non-null"); - $.userNameField = Objects.requireNonNull($.userNameField, "expected parameter 'userNameField' to be non-null"); + if ($.displayNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "displayNameField"); + } + if ($.groupsField == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "groupsField"); + } + if ($.idpMetadataContent == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "idpMetadataContent"); + } + if ($.rancherApiHost == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "rancherApiHost"); + } + if ($.spCert == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "spCert"); + } + if ($.spKey == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "spKey"); + } + if ($.uidField == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "uidField"); + } + if ($.userNameField == null) { + throw new MissingRequiredPropertyException("AuthConfigPingArgs", "userNameField"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogArgs.java index 2c147fcf3..c3c53b02a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -560,7 +561,9 @@ public Builder version(String version) { } public CatalogArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("CatalogArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java index 45e007483..15cd8a94f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/CatalogV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -560,7 +561,9 @@ public Builder url(String url) { } public CatalogV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("CatalogV2Args", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/CertificateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/CertificateArgs.java index fc7dc4fb0..4ff31f2cd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/CertificateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/CertificateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -337,9 +338,15 @@ public Builder projectId(String projectId) { } public CertificateArgs build() { - $.certs = Objects.requireNonNull($.certs, "expected parameter 'certs' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.certs == null) { + throw new MissingRequiredPropertyException("CertificateArgs", "certs"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("CertificateArgs", "key"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("CertificateArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroupArgs.java index 0351f4f5d..887babda1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterAlertGroupRecipientArgs; import java.lang.Integer; import java.lang.Object; @@ -387,7 +388,9 @@ public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { } public ClusterAlertGroupArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ClusterAlertGroupArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRuleArgs.java index c690890fd..c0038547d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlertRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterAlertRuleEventRuleArgs; import com.pulumi.rancher2.inputs.ClusterAlertRuleMetricRuleArgs; import com.pulumi.rancher2.inputs.ClusterAlertRuleNodeRuleArgs; @@ -565,8 +566,12 @@ public Builder systemServiceRule(ClusterAlertRuleSystemServiceRuleArgs systemSer } public ClusterAlertRuleArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleArgs", "clusterId"); + } + if ($.groupId == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleArgs", "groupId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java index 06948516f..b20c837ae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterAlterGroupRecipientArgs; import java.lang.Integer; import java.lang.Object; @@ -387,7 +388,9 @@ public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { } public ClusterAlterGroupArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ClusterAlterGroupArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java index 0e7e26975..64fc5816f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterAlterRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterAlterRuleEventRuleArgs; import com.pulumi.rancher2.inputs.ClusterAlterRuleMetricRuleArgs; import com.pulumi.rancher2.inputs.ClusterAlterRuleNodeRuleArgs; @@ -565,8 +566,12 @@ public Builder systemServiceRule(ClusterAlterRuleSystemServiceRuleArgs systemSer } public ClusterAlterRuleArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleArgs", "clusterId"); + } + if ($.groupId == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleArgs", "groupId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterDriverArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterDriverArgs.java index ab0ccd3e3..d752ae351 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -423,9 +424,15 @@ public Builder whitelistDomains(String... whitelistDomains) { } public ClusterDriverArgs build() { - $.active = Objects.requireNonNull($.active, "expected parameter 'active' to be non-null"); - $.builtin = Objects.requireNonNull($.builtin, "expected parameter 'builtin' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.active == null) { + throw new MissingRequiredPropertyException("ClusterDriverArgs", "active"); + } + if ($.builtin == null) { + throw new MissingRequiredPropertyException("ClusterDriverArgs", "builtin"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("ClusterDriverArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterRoleTemplateBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterRoleTemplateBindingArgs.java index 5cd875778..67c1f16bc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterRoleTemplateBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterRoleTemplateBindingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -382,8 +383,12 @@ public Builder userPrincipalId(String userPrincipalId) { } public ClusterRoleTemplateBindingArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.roleTemplateId = Objects.requireNonNull($.roleTemplateId, "expected parameter 'roleTemplateId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ClusterRoleTemplateBindingArgs", "clusterId"); + } + if ($.roleTemplateId == null) { + throw new MissingRequiredPropertyException("ClusterRoleTemplateBindingArgs", "roleTemplateId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterSyncArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterSyncArgs.java index 02575fab3..170dcefbe 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterSyncArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterSyncArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -299,7 +300,9 @@ public Builder waitMonitoring(Boolean waitMonitoring) { } public ClusterSyncArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ClusterSyncArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java index ebc4a3ac3..98a52ec1b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ClusterV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterV2AgentEnvVarArgs; import com.pulumi.rancher2.inputs.ClusterV2ClusterAgentDeploymentCustomizationArgs; import com.pulumi.rancher2.inputs.ClusterV2FleetAgentDeploymentCustomizationArgs; @@ -633,7 +634,9 @@ public Builder rkeConfig(ClusterV2RkeConfigArgs rkeConfig) { } public ClusterV2Args build() { - $.kubernetesVersion = Objects.requireNonNull($.kubernetesVersion, "expected parameter 'kubernetesVersion' to be non-null"); + if ($.kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterV2Args", "kubernetesVersion"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ConfigMapV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/ConfigMapV2Args.java index 6204168d4..e04c56773 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ConfigMapV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ConfigMapV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -301,8 +302,12 @@ public Builder namespace(String namespace) { } public ConfigMapV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.data = Objects.requireNonNull($.data, "expected parameter 'data' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ConfigMapV2Args", "clusterId"); + } + if ($.data == null) { + throw new MissingRequiredPropertyException("ConfigMapV2Args", "data"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/CustomUserTokenArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/CustomUserTokenArgs.java index 23949ab82..0dc47a3f9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/CustomUserTokenArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/CustomUserTokenArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -347,8 +348,12 @@ public Builder username(String username) { } public CustomUserTokenArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("CustomUserTokenArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("CustomUserTokenArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/EtcdBackupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/EtcdBackupArgs.java index 29dbea354..e2504b312 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/EtcdBackupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/EtcdBackupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.EtcdBackupBackupConfigArgs; import java.lang.Boolean; import java.lang.Object; @@ -339,7 +340,9 @@ public Builder namespaceId(String namespaceId) { } public EtcdBackupArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("EtcdBackupArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsArgs.java index 2f1c42e50..91d390280 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.Object; import java.lang.String; @@ -349,8 +350,12 @@ public Builder ttl(Integer ttl) { } public GlobalDnsArgs build() { - $.fqdn = Objects.requireNonNull($.fqdn, "expected parameter 'fqdn' to be non-null"); - $.providerId = Objects.requireNonNull($.providerId, "expected parameter 'providerId' to be non-null"); + if ($.fqdn == null) { + throw new MissingRequiredPropertyException("GlobalDnsArgs", "fqdn"); + } + if ($.providerId == null) { + throw new MissingRequiredPropertyException("GlobalDnsArgs", "providerId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsProviderArgs.java index f50565305..ccc04e487 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalDnsProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GlobalDnsProviderAlidnsConfigArgs; import com.pulumi.rancher2.inputs.GlobalDnsProviderCloudflareConfigArgs; import com.pulumi.rancher2.inputs.GlobalDnsProviderRoute53ConfigArgs; @@ -243,7 +244,9 @@ public Builder route53Config(GlobalDnsProviderRoute53ConfigArgs route53Config) { } public GlobalDnsProviderArgs build() { - $.rootDomain = Objects.requireNonNull($.rootDomain, "expected parameter 'rootDomain' to be non-null"); + if ($.rootDomain == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderArgs", "rootDomain"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleBindingArgs.java index 9c01d0f5e..7129aa4a4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/GlobalRoleBindingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -271,7 +272,9 @@ public Builder userId(String userId) { } public GlobalRoleBindingArgs build() { - $.globalRoleId = Objects.requireNonNull($.globalRoleId, "expected parameter 'globalRoleId' to be non-null"); + if ($.globalRoleId == null) { + throw new MissingRequiredPropertyException("GlobalRoleBindingArgs", "globalRoleId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2Args.java index f244204ea..931da0e43 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/MachineConfigV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.MachineConfigV2Amazonec2ConfigArgs; import com.pulumi.rancher2.inputs.MachineConfigV2AzureConfigArgs; import com.pulumi.rancher2.inputs.MachineConfigV2DigitaloceanConfigArgs; @@ -463,7 +464,9 @@ public Builder vsphereConfig(MachineConfigV2VsphereConfigArgs vsphereConfig) { } public MachineConfigV2Args build() { - $.generateName = Objects.requireNonNull($.generateName, "expected parameter 'generateName' to be non-null"); + if ($.generateName == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Args", "generateName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/MultiClusterAppArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/MultiClusterAppArgs.java index f9a30bf0e..36bf0d3d3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/MultiClusterAppArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/MultiClusterAppArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.MultiClusterAppAnswerArgs; import com.pulumi.rancher2.inputs.MultiClusterAppMemberArgs; import com.pulumi.rancher2.inputs.MultiClusterAppTargetArgs; @@ -606,10 +607,18 @@ public Builder wait_(Boolean wait) { } public MultiClusterAppArgs build() { - $.catalogName = Objects.requireNonNull($.catalogName, "expected parameter 'catalogName' to be non-null"); - $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); - $.targets = Objects.requireNonNull($.targets, "expected parameter 'targets' to be non-null"); - $.templateName = Objects.requireNonNull($.templateName, "expected parameter 'templateName' to be non-null"); + if ($.catalogName == null) { + throw new MissingRequiredPropertyException("MultiClusterAppArgs", "catalogName"); + } + if ($.roles == null) { + throw new MissingRequiredPropertyException("MultiClusterAppArgs", "roles"); + } + if ($.targets == null) { + throw new MissingRequiredPropertyException("MultiClusterAppArgs", "targets"); + } + if ($.templateName == null) { + throw new MissingRequiredPropertyException("MultiClusterAppArgs", "templateName"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/NamespaceArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/NamespaceArgs.java index a9e1e5143..f53ac7f06 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/NamespaceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/NamespaceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.NamespaceContainerResourceLimitArgs; import com.pulumi.rancher2.inputs.NamespaceResourceQuotaArgs; import java.lang.Boolean; @@ -340,7 +341,9 @@ public Builder waitForCluster(Boolean waitForCluster) { } public NamespaceArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("NamespaceArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/NodeDriverArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/NodeDriverArgs.java index 4f9fb9697..704fe4eaa 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/NodeDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/NodeDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -460,9 +461,15 @@ public Builder whitelistDomains(String... whitelistDomains) { } public NodeDriverArgs build() { - $.active = Objects.requireNonNull($.active, "expected parameter 'active' to be non-null"); - $.builtin = Objects.requireNonNull($.builtin, "expected parameter 'builtin' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.active == null) { + throw new MissingRequiredPropertyException("NodeDriverArgs", "active"); + } + if ($.builtin == null) { + throw new MissingRequiredPropertyException("NodeDriverArgs", "builtin"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("NodeDriverArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/NodePoolArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/NodePoolArgs.java index 9578f1e43..de8d5ffae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/NodePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/NodePoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.NodePoolNodeTaintArgs; import java.lang.Boolean; import java.lang.Integer; @@ -536,9 +537,15 @@ public Builder worker(Boolean worker) { } public NodePoolArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.hostnamePrefix = Objects.requireNonNull($.hostnamePrefix, "expected parameter 'hostnamePrefix' to be non-null"); - $.nodeTemplateId = Objects.requireNonNull($.nodeTemplateId, "expected parameter 'nodeTemplateId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("NodePoolArgs", "clusterId"); + } + if ($.hostnamePrefix == null) { + throw new MissingRequiredPropertyException("NodePoolArgs", "hostnamePrefix"); + } + if ($.nodeTemplateId == null) { + throw new MissingRequiredPropertyException("NodePoolArgs", "nodeTemplateId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/NotifierArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/NotifierArgs.java index e1efb0071..0621f179a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/NotifierArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/NotifierArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.NotifierDingtalkConfigArgs; import com.pulumi.rancher2.inputs.NotifierMsteamsConfigArgs; import com.pulumi.rancher2.inputs.NotifierPagerdutyConfigArgs; @@ -530,7 +531,9 @@ public Builder wechatConfig(NotifierWechatConfigArgs wechatConfig) { } public NotifierArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("NotifierArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertGroupArgs.java index 94505279c..6f5d45dca 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ProjectAlertGroupRecipientArgs; import java.lang.Integer; import java.lang.Object; @@ -387,7 +388,9 @@ public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { } public ProjectAlertGroupArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectAlertGroupArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertRuleArgs.java index 72cd5bb4a..671c65075 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectAlertRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ProjectAlertRuleMetricRuleArgs; import com.pulumi.rancher2.inputs.ProjectAlertRulePodRuleArgs; import com.pulumi.rancher2.inputs.ProjectAlertRuleWorkloadRuleArgs; @@ -527,8 +528,12 @@ public Builder workloadRule(ProjectAlertRuleWorkloadRuleArgs workloadRule) { } public ProjectAlertRuleArgs build() { - $.groupId = Objects.requireNonNull($.groupId, "expected parameter 'groupId' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.groupId == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleArgs", "groupId"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectArgs.java index e6c170b83..acbcb3d17 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ProjectContainerResourceLimitArgs; import com.pulumi.rancher2.inputs.ProjectProjectMonitoringInputArgs; import com.pulumi.rancher2.inputs.ProjectResourceQuotaArgs; @@ -452,7 +453,9 @@ public Builder waitForCluster(Boolean waitForCluster) { } public ProjectArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("ProjectArgs", "clusterId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java index 8010feca5..b5953a6e8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProjectRoleTemplateBindingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -382,8 +383,12 @@ public Builder userPrincipalId(String userPrincipalId) { } public ProjectRoleTemplateBindingArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.roleTemplateId = Objects.requireNonNull($.roleTemplateId, "expected parameter 'roleTemplateId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ProjectRoleTemplateBindingArgs", "projectId"); + } + if ($.roleTemplateId == null) { + throw new MissingRequiredPropertyException("ProjectRoleTemplateBindingArgs", "roleTemplateId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/ProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/ProviderArgs.java index 77759f6d0..37871ee86 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/ProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/ProviderArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.core.internal.Codegen; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -391,7 +392,9 @@ public Builder tokenKey(String tokenKey) { } public ProviderArgs build() { - $.apiUrl = Objects.requireNonNull($.apiUrl, "expected parameter 'apiUrl' to be non-null"); + if ($.apiUrl == null) { + throw new MissingRequiredPropertyException("ProviderArgs", "apiUrl"); + } $.bootstrap = Codegen.booleanProp("bootstrap").output().arg($.bootstrap).env("RANCHER_BOOTSTRAP").def(false).getNullable(); $.insecure = Codegen.booleanProp("insecure").output().arg($.insecure).env("RANCHER_INSECURE").def(false).getNullable(); return $; diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/RegistryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/RegistryArgs.java index 5925b9df7..64a1bd89b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/RegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/RegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.RegistryRegistryArgs; import java.lang.Object; import java.lang.String; @@ -312,8 +313,12 @@ public Builder registries(RegistryRegistryArgs... registries) { } public RegistryArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.registries = Objects.requireNonNull($.registries, "expected parameter 'registries' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("RegistryArgs", "projectId"); + } + if ($.registries == null) { + throw new MissingRequiredPropertyException("RegistryArgs", "registries"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/SecretArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/SecretArgs.java index da7d9cc03..66819ea3d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/SecretArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/SecretArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -300,8 +301,12 @@ public Builder projectId(String projectId) { } public SecretArgs build() { - $.data = Objects.requireNonNull($.data, "expected parameter 'data' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.data == null) { + throw new MissingRequiredPropertyException("SecretArgs", "data"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("SecretArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/SecretV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/SecretV2Args.java index 1c49a9819..8b8087e09 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/SecretV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/SecretV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -338,8 +339,12 @@ public Builder type(String type) { } public SecretV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.data = Objects.requireNonNull($.data, "expected parameter 'data' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("SecretV2Args", "clusterId"); + } + if ($.data == null) { + throw new MissingRequiredPropertyException("SecretV2Args", "data"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/SettingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/SettingArgs.java index 3911bcb07..afab7cbf4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/SettingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/SettingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -189,7 +190,9 @@ public Builder value(String value) { } public SettingArgs build() { - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.value == null) { + throw new MissingRequiredPropertyException("SettingArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/StorageClassV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/StorageClassV2Args.java index 0f4f4b374..f40b42a50 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/StorageClassV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/StorageClassV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -423,8 +424,12 @@ public Builder volumeBindingMode(String volumeBindingMode) { } public StorageClassV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.k8sProvisioner = Objects.requireNonNull($.k8sProvisioner, "expected parameter 'k8sProvisioner' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("StorageClassV2Args", "clusterId"); + } + if ($.k8sProvisioner == null) { + throw new MissingRequiredPropertyException("StorageClassV2Args", "k8sProvisioner"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/UserArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/UserArgs.java index e79c7f009..163c3e70e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/UserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/UserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -244,8 +245,12 @@ public Builder username(String username) { } public UserArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("UserArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("UserArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAmazonec2CredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAmazonec2CredentialConfigArgs.java index 11eb8bb02..ab97ece6f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAmazonec2CredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAmazonec2CredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder secretKey(String secretKey) { } public CloudCredentialAmazonec2CredentialConfigArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialAmazonec2CredentialConfigArgs", "accessKey"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialAmazonec2CredentialConfigArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAzureCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAzureCredentialConfigArgs.java index e46c2c0df..2ea46dafa 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAzureCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialAzureCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -224,9 +225,15 @@ public Builder tenantId(String tenantId) { } public CloudCredentialAzureCredentialConfigArgs build() { - $.clientId = Objects.requireNonNull($.clientId, "expected parameter 'clientId' to be non-null"); - $.clientSecret = Objects.requireNonNull($.clientSecret, "expected parameter 'clientSecret' to be non-null"); - $.subscriptionId = Objects.requireNonNull($.subscriptionId, "expected parameter 'subscriptionId' to be non-null"); + if ($.clientId == null) { + throw new MissingRequiredPropertyException("CloudCredentialAzureCredentialConfigArgs", "clientId"); + } + if ($.clientSecret == null) { + throw new MissingRequiredPropertyException("CloudCredentialAzureCredentialConfigArgs", "clientSecret"); + } + if ($.subscriptionId == null) { + throw new MissingRequiredPropertyException("CloudCredentialAzureCredentialConfigArgs", "subscriptionId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialDigitaloceanCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialDigitaloceanCredentialConfigArgs.java index f55b791ec..49465f030 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialDigitaloceanCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialDigitaloceanCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder accessToken(String accessToken) { } public CloudCredentialDigitaloceanCredentialConfigArgs build() { - $.accessToken = Objects.requireNonNull($.accessToken, "expected parameter 'accessToken' to be non-null"); + if ($.accessToken == null) { + throw new MissingRequiredPropertyException("CloudCredentialDigitaloceanCredentialConfigArgs", "accessToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialGoogleCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialGoogleCredentialConfigArgs.java index d5d035cfc..81df82159 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialGoogleCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialGoogleCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder authEncodedJson(String authEncodedJson) { } public CloudCredentialGoogleCredentialConfigArgs build() { - $.authEncodedJson = Objects.requireNonNull($.authEncodedJson, "expected parameter 'authEncodedJson' to be non-null"); + if ($.authEncodedJson == null) { + throw new MissingRequiredPropertyException("CloudCredentialGoogleCredentialConfigArgs", "authEncodedJson"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialHarvesterCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialHarvesterCredentialConfigArgs.java index e260a9d5c..2c8554aa2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialHarvesterCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialHarvesterCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder kubeconfigContent(String kubeconfigContent) { } public CloudCredentialHarvesterCredentialConfigArgs build() { - $.clusterType = Objects.requireNonNull($.clusterType, "expected parameter 'clusterType' to be non-null"); - $.kubeconfigContent = Objects.requireNonNull($.kubeconfigContent, "expected parameter 'kubeconfigContent' to be non-null"); + if ($.clusterType == null) { + throw new MissingRequiredPropertyException("CloudCredentialHarvesterCredentialConfigArgs", "clusterType"); + } + if ($.kubeconfigContent == null) { + throw new MissingRequiredPropertyException("CloudCredentialHarvesterCredentialConfigArgs", "kubeconfigContent"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialLinodeCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialLinodeCredentialConfigArgs.java index 793c76212..38928e901 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialLinodeCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialLinodeCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder token(String token) { } public CloudCredentialLinodeCredentialConfigArgs build() { - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); + if ($.token == null) { + throw new MissingRequiredPropertyException("CloudCredentialLinodeCredentialConfigArgs", "token"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialOpenstackCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialOpenstackCredentialConfigArgs.java index 142c7576b..3b93bf1de 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialOpenstackCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialOpenstackCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder password(String password) { } public CloudCredentialOpenstackCredentialConfigArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("CloudCredentialOpenstackCredentialConfigArgs", "password"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialS3CredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialS3CredentialConfigArgs.java index 050b96717..3f7a7885d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialS3CredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialS3CredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -336,8 +337,12 @@ public Builder secretKey(String secretKey) { } public CloudCredentialS3CredentialConfigArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialS3CredentialConfigArgs", "accessKey"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialS3CredentialConfigArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialVsphereCredentialConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialVsphereCredentialConfigArgs.java index 822c2c685..3faefa37b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialVsphereCredentialConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/CloudCredentialVsphereCredentialConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,9 +188,15 @@ public Builder vcenterPort(String vcenterPort) { } public CloudCredentialVsphereCredentialConfigArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); - $.vcenter = Objects.requireNonNull($.vcenter, "expected parameter 'vcenter' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("CloudCredentialVsphereCredentialConfigArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("CloudCredentialVsphereCredentialConfigArgs", "username"); + } + if ($.vcenter == null) { + throw new MissingRequiredPropertyException("CloudCredentialVsphereCredentialConfigArgs", "vcenter"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAgentEnvVarArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAgentEnvVarArgs.java index f94a86785..0211eb9a9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAgentEnvVarArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAgentEnvVarArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder value(String value) { } public ClusterAgentEnvVarArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterAgentEnvVarArgs", "name"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ClusterAgentEnvVarArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigArgs.java index bce8f6082..3e6b6624e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -1513,18 +1514,42 @@ public Builder virtualNetworkResourceGroup(String virtualNetworkResourceGroup) { } public ClusterAksConfigArgs build() { - $.agentDnsPrefix = Objects.requireNonNull($.agentDnsPrefix, "expected parameter 'agentDnsPrefix' to be non-null"); - $.clientId = Objects.requireNonNull($.clientId, "expected parameter 'clientId' to be non-null"); - $.clientSecret = Objects.requireNonNull($.clientSecret, "expected parameter 'clientSecret' to be non-null"); - $.kubernetesVersion = Objects.requireNonNull($.kubernetesVersion, "expected parameter 'kubernetesVersion' to be non-null"); - $.masterDnsPrefix = Objects.requireNonNull($.masterDnsPrefix, "expected parameter 'masterDnsPrefix' to be non-null"); - $.resourceGroup = Objects.requireNonNull($.resourceGroup, "expected parameter 'resourceGroup' to be non-null"); - $.sshPublicKeyContents = Objects.requireNonNull($.sshPublicKeyContents, "expected parameter 'sshPublicKeyContents' to be non-null"); - $.subnet = Objects.requireNonNull($.subnet, "expected parameter 'subnet' to be non-null"); - $.subscriptionId = Objects.requireNonNull($.subscriptionId, "expected parameter 'subscriptionId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); - $.virtualNetwork = Objects.requireNonNull($.virtualNetwork, "expected parameter 'virtualNetwork' to be non-null"); - $.virtualNetworkResourceGroup = Objects.requireNonNull($.virtualNetworkResourceGroup, "expected parameter 'virtualNetworkResourceGroup' to be non-null"); + if ($.agentDnsPrefix == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "agentDnsPrefix"); + } + if ($.clientId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "clientId"); + } + if ($.clientSecret == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "clientSecret"); + } + if ($.kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "kubernetesVersion"); + } + if ($.masterDnsPrefix == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "masterDnsPrefix"); + } + if ($.resourceGroup == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "resourceGroup"); + } + if ($.sshPublicKeyContents == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "sshPublicKeyContents"); + } + if ($.subnet == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "subnet"); + } + if ($.subscriptionId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "subscriptionId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "tenantId"); + } + if ($.virtualNetwork == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "virtualNetwork"); + } + if ($.virtualNetworkResourceGroup == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigArgs", "virtualNetworkResourceGroup"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2Args.java index 2cee53a5d..045e25c5d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterAksConfigV2NodePoolArgs; import java.lang.Boolean; import java.lang.Object; @@ -1137,9 +1138,15 @@ public Builder virtualNetworkResourceGroup(String virtualNetworkResourceGroup) { } public ClusterAksConfigV2Args build() { - $.cloudCredentialId = Objects.requireNonNull($.cloudCredentialId, "expected parameter 'cloudCredentialId' to be non-null"); - $.resourceGroup = Objects.requireNonNull($.resourceGroup, "expected parameter 'resourceGroup' to be non-null"); - $.resourceLocation = Objects.requireNonNull($.resourceLocation, "expected parameter 'resourceLocation' to be non-null"); + if ($.cloudCredentialId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2Args", "cloudCredentialId"); + } + if ($.resourceGroup == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2Args", "resourceGroup"); + } + if ($.resourceLocation == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2Args", "resourceLocation"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2NodePoolArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2NodePoolArgs.java index 5da9b0c2f..30c40590c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2NodePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAksConfigV2NodePoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -656,7 +657,9 @@ public Builder vmSize(String vmSize) { } public ClusterAksConfigV2NodePoolArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2NodePoolArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertGroupRecipientArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertGroupRecipientArgs.java index 86a99cf85..5f91b2757 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertGroupRecipientArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertGroupRecipientArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,7 +189,9 @@ public Builder recipient(String recipient) { } public ClusterAlertGroupRecipientArgs build() { - $.notifierId = Objects.requireNonNull($.notifierId, "expected parameter 'notifierId' to be non-null"); + if ($.notifierId == null) { + throw new MissingRequiredPropertyException("ClusterAlertGroupRecipientArgs", "notifierId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleEventRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleEventRuleArgs.java index 593bda535..8e3657fcf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleEventRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleEventRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder resourceKind(String resourceKind) { } public ClusterAlertRuleEventRuleArgs build() { - $.resourceKind = Objects.requireNonNull($.resourceKind, "expected parameter 'resourceKind' to be non-null"); + if ($.resourceKind == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleEventRuleArgs", "resourceKind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleMetricRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleMetricRuleArgs.java index 44198fa55..15cf81501 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleMetricRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlertRuleMetricRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -225,9 +226,15 @@ public Builder thresholdValue(Double thresholdValue) { } public ClusterAlertRuleMetricRuleArgs build() { - $.duration = Objects.requireNonNull($.duration, "expected parameter 'duration' to be non-null"); - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.thresholdValue = Objects.requireNonNull($.thresholdValue, "expected parameter 'thresholdValue' to be non-null"); + if ($.duration == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleMetricRuleArgs", "duration"); + } + if ($.expression == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleMetricRuleArgs", "expression"); + } + if ($.thresholdValue == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleMetricRuleArgs", "thresholdValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java index 70b71456c..5cc21ada6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterGroupRecipientArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,7 +189,9 @@ public Builder recipient(String recipient) { } public ClusterAlterGroupRecipientArgs build() { - $.notifierId = Objects.requireNonNull($.notifierId, "expected parameter 'notifierId' to be non-null"); + if ($.notifierId == null) { + throw new MissingRequiredPropertyException("ClusterAlterGroupRecipientArgs", "notifierId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java index 3dd79b4fd..bd1725264 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleEventRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -73,7 +74,9 @@ public Builder resourceKind(String resourceKind) { } public ClusterAlterRuleEventRuleArgs build() { - $.resourceKind = Objects.requireNonNull($.resourceKind, "expected parameter 'resourceKind' to be non-null"); + if ($.resourceKind == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleEventRuleArgs", "resourceKind"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java index bd77ce4ba..a4569da2c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterAlterRuleMetricRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -145,9 +146,15 @@ public Builder thresholdValue(Double thresholdValue) { } public ClusterAlterRuleMetricRuleArgs build() { - $.duration = Objects.requireNonNull($.duration, "expected parameter 'duration' to be non-null"); - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.thresholdValue = Objects.requireNonNull($.thresholdValue, "expected parameter 'thresholdValue' to be non-null"); + if ($.duration == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRuleArgs", "duration"); + } + if ($.expression == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRuleArgs", "expression"); + } + if ($.thresholdValue == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRuleArgs", "thresholdValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs.java index d4fe1e01e..528e42143 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterClusterAgentDeploymentCustomizationAppendTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterTemplateQuestionArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterTemplateQuestionArgs.java index 0d5d88ef8..9b260cf94 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterTemplateQuestionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterClusterTemplateQuestionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,8 +189,12 @@ public Builder variable(String variable) { } public ClusterClusterTemplateQuestionArgs build() { - $.default_ = Objects.requireNonNull($.default_, "expected parameter 'default' to be non-null"); - $.variable = Objects.requireNonNull($.variable, "expected parameter 'variable' to be non-null"); + if ($.default_ == null) { + throw new MissingRequiredPropertyException("ClusterClusterTemplateQuestionArgs", "default_"); + } + if ($.variable == null) { + throw new MissingRequiredPropertyException("ClusterClusterTemplateQuestionArgs", "variable"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigArgs.java index 5815531ba..4d0a60eae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -745,9 +746,15 @@ public Builder virtualNetwork(String virtualNetwork) { } public ClusterEksConfigArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.kubernetesVersion = Objects.requireNonNull($.kubernetesVersion, "expected parameter 'kubernetesVersion' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigArgs", "accessKey"); + } + if ($.kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigArgs", "kubernetesVersion"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java index c528c85ab..b25186fb2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterEksConfigV2NodeGroupArgs; import java.lang.Boolean; import java.lang.Object; @@ -686,7 +687,9 @@ public Builder tags(Map tags) { } public ClusterEksConfigV2Args build() { - $.cloudCredentialId = Objects.requireNonNull($.cloudCredentialId, "expected parameter 'cloudCredentialId' to be non-null"); + if ($.cloudCredentialId == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigV2Args", "cloudCredentialId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupArgs.java index ea62c00f6..3c796a55d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterEksConfigV2NodeGroupLaunchTemplateArgs; import java.lang.Boolean; import java.lang.Integer; @@ -778,7 +779,9 @@ public Builder version(String version) { } public ClusterEksConfigV2NodeGroupArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigV2NodeGroupArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupLaunchTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupLaunchTemplateArgs.java index 9d1efb546..3bfc74015 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupLaunchTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterEksConfigV2NodeGroupLaunchTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder version(Integer version) { } public ClusterEksConfigV2NodeGroupLaunchTemplateArgs build() { - $.id = Objects.requireNonNull($.id, "expected parameter 'id' to be non-null"); + if ($.id == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigV2NodeGroupLaunchTemplateArgs", "id"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs.java index d5d5981b0..cd455c3c2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterFleetAgentDeploymentCustomizationAppendTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigArgs.java index 44ae29842..1dcfba20a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -2045,28 +2046,72 @@ public Builder zone(String zone) { } public ClusterGkeConfigArgs build() { - $.clusterIpv4Cidr = Objects.requireNonNull($.clusterIpv4Cidr, "expected parameter 'clusterIpv4Cidr' to be non-null"); - $.credential = Objects.requireNonNull($.credential, "expected parameter 'credential' to be non-null"); - $.diskType = Objects.requireNonNull($.diskType, "expected parameter 'diskType' to be non-null"); - $.imageType = Objects.requireNonNull($.imageType, "expected parameter 'imageType' to be non-null"); - $.ipPolicyClusterIpv4CidrBlock = Objects.requireNonNull($.ipPolicyClusterIpv4CidrBlock, "expected parameter 'ipPolicyClusterIpv4CidrBlock' to be non-null"); - $.ipPolicyClusterSecondaryRangeName = Objects.requireNonNull($.ipPolicyClusterSecondaryRangeName, "expected parameter 'ipPolicyClusterSecondaryRangeName' to be non-null"); - $.ipPolicyNodeIpv4CidrBlock = Objects.requireNonNull($.ipPolicyNodeIpv4CidrBlock, "expected parameter 'ipPolicyNodeIpv4CidrBlock' to be non-null"); - $.ipPolicyServicesIpv4CidrBlock = Objects.requireNonNull($.ipPolicyServicesIpv4CidrBlock, "expected parameter 'ipPolicyServicesIpv4CidrBlock' to be non-null"); - $.ipPolicyServicesSecondaryRangeName = Objects.requireNonNull($.ipPolicyServicesSecondaryRangeName, "expected parameter 'ipPolicyServicesSecondaryRangeName' to be non-null"); - $.ipPolicySubnetworkName = Objects.requireNonNull($.ipPolicySubnetworkName, "expected parameter 'ipPolicySubnetworkName' to be non-null"); - $.locations = Objects.requireNonNull($.locations, "expected parameter 'locations' to be non-null"); - $.machineType = Objects.requireNonNull($.machineType, "expected parameter 'machineType' to be non-null"); - $.maintenanceWindow = Objects.requireNonNull($.maintenanceWindow, "expected parameter 'maintenanceWindow' to be non-null"); - $.masterIpv4CidrBlock = Objects.requireNonNull($.masterIpv4CidrBlock, "expected parameter 'masterIpv4CidrBlock' to be non-null"); - $.masterVersion = Objects.requireNonNull($.masterVersion, "expected parameter 'masterVersion' to be non-null"); - $.network = Objects.requireNonNull($.network, "expected parameter 'network' to be non-null"); - $.nodePool = Objects.requireNonNull($.nodePool, "expected parameter 'nodePool' to be non-null"); - $.nodeVersion = Objects.requireNonNull($.nodeVersion, "expected parameter 'nodeVersion' to be non-null"); - $.oauthScopes = Objects.requireNonNull($.oauthScopes, "expected parameter 'oauthScopes' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); - $.serviceAccount = Objects.requireNonNull($.serviceAccount, "expected parameter 'serviceAccount' to be non-null"); - $.subNetwork = Objects.requireNonNull($.subNetwork, "expected parameter 'subNetwork' to be non-null"); + if ($.clusterIpv4Cidr == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "clusterIpv4Cidr"); + } + if ($.credential == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "credential"); + } + if ($.diskType == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "diskType"); + } + if ($.imageType == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "imageType"); + } + if ($.ipPolicyClusterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "ipPolicyClusterIpv4CidrBlock"); + } + if ($.ipPolicyClusterSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "ipPolicyClusterSecondaryRangeName"); + } + if ($.ipPolicyNodeIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "ipPolicyNodeIpv4CidrBlock"); + } + if ($.ipPolicyServicesIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "ipPolicyServicesIpv4CidrBlock"); + } + if ($.ipPolicyServicesSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "ipPolicyServicesSecondaryRangeName"); + } + if ($.ipPolicySubnetworkName == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "ipPolicySubnetworkName"); + } + if ($.locations == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "locations"); + } + if ($.machineType == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "machineType"); + } + if ($.maintenanceWindow == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "maintenanceWindow"); + } + if ($.masterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "masterIpv4CidrBlock"); + } + if ($.masterVersion == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "masterVersion"); + } + if ($.network == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "network"); + } + if ($.nodePool == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "nodePool"); + } + if ($.nodeVersion == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "nodeVersion"); + } + if ($.oauthScopes == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "oauthScopes"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "projectId"); + } + if ($.serviceAccount == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "serviceAccount"); + } + if ($.subNetwork == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigArgs", "subNetwork"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2Args.java index 4b2090ea3..fba39859a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2ClusterAddonsArgs; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2IpAllocationPolicyArgs; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs; @@ -919,9 +920,15 @@ public Builder zone(String zone) { } public ClusterGkeConfigV2Args build() { - $.googleCredentialSecret = Objects.requireNonNull($.googleCredentialSecret, "expected parameter 'googleCredentialSecret' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.googleCredentialSecret == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2Args", "googleCredentialSecret"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2Args", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2Args", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs.java index 7d6794a78..216ea898f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs; import java.lang.Boolean; import java.util.List; @@ -125,7 +126,9 @@ public Builder enabled(Boolean enabled) { } public ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs build() { - $.cidrBlocks = Objects.requireNonNull($.cidrBlocks, "expected parameter 'cidrBlocks' to be non-null"); + if ($.cidrBlocks == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2MasterAuthorizedNetworksConfigArgs", "cidrBlocks"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs.java index 9b421d853..16dae67c9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder displayName(String displayName) { } public ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs build() { - $.cidrBlock = Objects.requireNonNull($.cidrBlock, "expected parameter 'cidrBlock' to be non-null"); + if ($.cidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlockArgs", "cidrBlock"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolArgs.java index 9a4c710e9..f61306e22 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2NodePoolAutoscalingArgs; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2NodePoolConfigArgs; import com.pulumi.rancher2.inputs.ClusterGkeConfigV2NodePoolManagementArgs; @@ -302,9 +303,15 @@ public Builder version(String version) { } public ClusterGkeConfigV2NodePoolArgs build() { - $.initialNodeCount = Objects.requireNonNull($.initialNodeCount, "expected parameter 'initialNodeCount' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.version = Objects.requireNonNull($.version, "expected parameter 'version' to be non-null"); + if ($.initialNodeCount == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolArgs", "initialNodeCount"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolArgs", "name"); + } + if ($.version == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolArgs", "version"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolConfigTaintArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolConfigTaintArgs.java index b6bf6c1a7..06eca3e85 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolConfigTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2NodePoolConfigTaintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -148,9 +149,15 @@ public Builder value(String value) { } public ClusterGkeConfigV2NodePoolConfigTaintArgs build() { - $.effect = Objects.requireNonNull($.effect, "expected parameter 'effect' to be non-null"); - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.effect == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolConfigTaintArgs", "effect"); + } + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolConfigTaintArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolConfigTaintArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2PrivateClusterConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2PrivateClusterConfigArgs.java index f31870a31..51b10d3b1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2PrivateClusterConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterGkeConfigV2PrivateClusterConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -151,7 +152,9 @@ public Builder masterIpv4CidrBlock(String masterIpv4CidrBlock) { } public ClusterGkeConfigV2PrivateClusterConfigArgs build() { - $.masterIpv4CidrBlock = Objects.requireNonNull($.masterIpv4CidrBlock, "expected parameter 'masterIpv4CidrBlock' to be non-null"); + if ($.masterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2PrivateClusterConfigArgs", "masterIpv4CidrBlock"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterOkeConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterOkeConfigArgs.java index dd677abe9..cf166d71b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterOkeConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterOkeConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -1225,15 +1226,33 @@ public Builder workerNodeIngressCidr(String workerNodeIngressCidr) { } public ClusterOkeConfigArgs build() { - $.compartmentId = Objects.requireNonNull($.compartmentId, "expected parameter 'compartmentId' to be non-null"); - $.fingerprint = Objects.requireNonNull($.fingerprint, "expected parameter 'fingerprint' to be non-null"); - $.kubernetesVersion = Objects.requireNonNull($.kubernetesVersion, "expected parameter 'kubernetesVersion' to be non-null"); - $.nodeImage = Objects.requireNonNull($.nodeImage, "expected parameter 'nodeImage' to be non-null"); - $.nodeShape = Objects.requireNonNull($.nodeShape, "expected parameter 'nodeShape' to be non-null"); - $.privateKeyContents = Objects.requireNonNull($.privateKeyContents, "expected parameter 'privateKeyContents' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); - $.tenancyId = Objects.requireNonNull($.tenancyId, "expected parameter 'tenancyId' to be non-null"); - $.userOcid = Objects.requireNonNull($.userOcid, "expected parameter 'userOcid' to be non-null"); + if ($.compartmentId == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "compartmentId"); + } + if ($.fingerprint == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "fingerprint"); + } + if ($.kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "kubernetesVersion"); + } + if ($.nodeImage == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "nodeImage"); + } + if ($.nodeShape == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "nodeShape"); + } + if ($.privateKeyContents == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "privateKeyContents"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "region"); + } + if ($.tenancyId == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "tenancyId"); + } + if ($.userOcid == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfigArgs", "userOcid"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigBastionHostArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigBastionHostArgs.java index 761205df4..4d60a8926 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigBastionHostArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigBastionHostArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -262,8 +263,12 @@ public Builder user(String user) { } public ClusterRkeConfigBastionHostArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigBastionHostArgs", "address"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigBastionHostArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java index cd2559710..0f7ef1682 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,7 +262,9 @@ public Builder url(String url) { } public ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs build() { - $.service = Objects.requireNonNull($.service, "expected parameter 'service' to be non-null"); + if ($.service == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs", "service"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAzureCloudProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAzureCloudProviderArgs.java index ce5408ce6..40d4d03e9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAzureCloudProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderAzureCloudProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -1114,10 +1115,18 @@ public Builder vnetResourceGroup(String vnetResourceGroup) { } public ClusterRkeConfigCloudProviderAzureCloudProviderArgs build() { - $.aadClientId = Objects.requireNonNull($.aadClientId, "expected parameter 'aadClientId' to be non-null"); - $.aadClientSecret = Objects.requireNonNull($.aadClientSecret, "expected parameter 'aadClientSecret' to be non-null"); - $.subscriptionId = Objects.requireNonNull($.subscriptionId, "expected parameter 'subscriptionId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); + if ($.aadClientId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProviderArgs", "aadClientId"); + } + if ($.aadClientSecret == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProviderArgs", "aadClientSecret"); + } + if ($.subscriptionId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProviderArgs", "subscriptionId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProviderArgs", "tenantId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderArgs.java index 284849a08..f1ff17a77 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorageArgs; import com.pulumi.rancher2.inputs.ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs; import com.pulumi.rancher2.inputs.ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancerArgs; @@ -228,7 +229,9 @@ public Builder route(ClusterRkeConfigCloudProviderOpenstackCloudProviderRouteArg } public ClusterRkeConfigCloudProviderOpenstackCloudProviderArgs build() { - $.global = Objects.requireNonNull($.global, "expected parameter 'global' to be non-null"); + if ($.global == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderArgs", "global"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java index 6f9b4547b..87aee857b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -409,9 +410,15 @@ public Builder username(String username) { } public ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs build() { - $.authUrl = Objects.requireNonNull($.authUrl, "expected parameter 'authUrl' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.authUrl == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs", "authUrl"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderArgs.java index ef0892c84..3841f3b04 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterRkeConfigCloudProviderVsphereCloudProviderDiskArgs; import com.pulumi.rancher2.inputs.ClusterRkeConfigCloudProviderVsphereCloudProviderGlobalArgs; import com.pulumi.rancher2.inputs.ClusterRkeConfigCloudProviderVsphereCloudProviderNetworkArgs; @@ -239,8 +240,12 @@ public Builder workspace(ClusterRkeConfigCloudProviderVsphereCloudProviderWorksp } public ClusterRkeConfigCloudProviderVsphereCloudProviderArgs build() { - $.virtualCenters = Objects.requireNonNull($.virtualCenters, "expected parameter 'virtualCenters' to be non-null"); - $.workspace = Objects.requireNonNull($.workspace, "expected parameter 'workspace' to be non-null"); + if ($.virtualCenters == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderArgs", "virtualCenters"); + } + if ($.workspace == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderArgs", "workspace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java index 1eddee213..968a51eec 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -262,10 +263,18 @@ public Builder user(String user) { } public ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs build() { - $.datacenters = Objects.requireNonNull($.datacenters, "expected parameter 'datacenters' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.datacenters == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "datacenters"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "name"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "password"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java index a75194f1d..a247855db 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -224,9 +225,15 @@ public Builder server(String server) { } public ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs build() { - $.datacenter = Objects.requireNonNull($.datacenter, "expected parameter 'datacenter' to be non-null"); - $.folder = Objects.requireNonNull($.folder, "expected parameter 'folder' to be non-null"); - $.server = Objects.requireNonNull($.server, "expected parameter 'server' to be non-null"); + if ($.datacenter == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs", "datacenter"); + } + if ($.folder == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs", "folder"); + } + if ($.server == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs", "server"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigDnsTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigDnsTolerationArgs.java index 996e59ea5..f604cc3f4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigDnsTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigDnsTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterRkeConfigDnsTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigDnsTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigIngressTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigIngressTolerationArgs.java index 35b580887..11fc6852e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigIngressTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigIngressTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterRkeConfigIngressTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigIngressTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigMonitoringTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigMonitoringTolerationArgs.java index ee6c52232..759ab89c9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigMonitoringTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigMonitoringTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterRkeConfigMonitoringTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigMonitoringTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkAciNetworkProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkAciNetworkProviderArgs.java index 69e6fbc86..34215df0e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkAciNetworkProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkAciNetworkProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -2808,26 +2809,66 @@ public Builder vrfTenant(String vrfTenant) { } public ClusterRkeConfigNetworkAciNetworkProviderArgs build() { - $.aep = Objects.requireNonNull($.aep, "expected parameter 'aep' to be non-null"); - $.apicHosts = Objects.requireNonNull($.apicHosts, "expected parameter 'apicHosts' to be non-null"); - $.apicUserCrt = Objects.requireNonNull($.apicUserCrt, "expected parameter 'apicUserCrt' to be non-null"); - $.apicUserKey = Objects.requireNonNull($.apicUserKey, "expected parameter 'apicUserKey' to be non-null"); - $.apicUserName = Objects.requireNonNull($.apicUserName, "expected parameter 'apicUserName' to be non-null"); - $.encapType = Objects.requireNonNull($.encapType, "expected parameter 'encapType' to be non-null"); - $.externDynamic = Objects.requireNonNull($.externDynamic, "expected parameter 'externDynamic' to be non-null"); - $.externStatic = Objects.requireNonNull($.externStatic, "expected parameter 'externStatic' to be non-null"); - $.kubeApiVlan = Objects.requireNonNull($.kubeApiVlan, "expected parameter 'kubeApiVlan' to be non-null"); - $.l3out = Objects.requireNonNull($.l3out, "expected parameter 'l3out' to be non-null"); - $.l3outExternalNetworks = Objects.requireNonNull($.l3outExternalNetworks, "expected parameter 'l3outExternalNetworks' to be non-null"); - $.mcastRangeEnd = Objects.requireNonNull($.mcastRangeEnd, "expected parameter 'mcastRangeEnd' to be non-null"); - $.mcastRangeStart = Objects.requireNonNull($.mcastRangeStart, "expected parameter 'mcastRangeStart' to be non-null"); - $.nodeSubnet = Objects.requireNonNull($.nodeSubnet, "expected parameter 'nodeSubnet' to be non-null"); - $.nodeSvcSubnet = Objects.requireNonNull($.nodeSvcSubnet, "expected parameter 'nodeSvcSubnet' to be non-null"); - $.serviceVlan = Objects.requireNonNull($.serviceVlan, "expected parameter 'serviceVlan' to be non-null"); - $.systemId = Objects.requireNonNull($.systemId, "expected parameter 'systemId' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.vrfName = Objects.requireNonNull($.vrfName, "expected parameter 'vrfName' to be non-null"); - $.vrfTenant = Objects.requireNonNull($.vrfTenant, "expected parameter 'vrfTenant' to be non-null"); + if ($.aep == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "aep"); + } + if ($.apicHosts == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "apicHosts"); + } + if ($.apicUserCrt == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "apicUserCrt"); + } + if ($.apicUserKey == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "apicUserKey"); + } + if ($.apicUserName == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "apicUserName"); + } + if ($.encapType == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "encapType"); + } + if ($.externDynamic == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "externDynamic"); + } + if ($.externStatic == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "externStatic"); + } + if ($.kubeApiVlan == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "kubeApiVlan"); + } + if ($.l3out == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "l3out"); + } + if ($.l3outExternalNetworks == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "l3outExternalNetworks"); + } + if ($.mcastRangeEnd == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "mcastRangeEnd"); + } + if ($.mcastRangeStart == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "mcastRangeStart"); + } + if ($.nodeSubnet == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "nodeSubnet"); + } + if ($.nodeSvcSubnet == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "nodeSvcSubnet"); + } + if ($.serviceVlan == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "serviceVlan"); + } + if ($.systemId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "systemId"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "token"); + } + if ($.vrfName == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "vrfName"); + } + if ($.vrfTenant == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProviderArgs", "vrfTenant"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkTolerationArgs.java index b2cc237c3..726e0fb1b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterRkeConfigNetworkTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkWeaveNetworkProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkWeaveNetworkProviderArgs.java index 8b2cda2ed..f5bff37ab 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkWeaveNetworkProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNetworkWeaveNetworkProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder password(String password) { } public ClusterRkeConfigNetworkWeaveNetworkProviderArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkWeaveNetworkProviderArgs", "password"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNodeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNodeArgs.java index 88240eaf6..7d7c8f478 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNodeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigNodeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -497,9 +498,15 @@ public Builder user(String user) { } public ClusterRkeConfigNodeArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNodeArgs", "address"); + } + if ($.roles == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNodeArgs", "roles"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNodeArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigPrivateRegistryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigPrivateRegistryArgs.java index 6c3f27950..57ed73438 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigPrivateRegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigPrivateRegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterRkeConfigPrivateRegistryEcrCredentialPluginArgs; import java.lang.Boolean; import java.lang.String; @@ -226,7 +227,9 @@ public Builder user(String user) { } public ClusterRkeConfigPrivateRegistryArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigPrivateRegistryArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java index 8b73f1ec8..85e9a10e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -298,8 +299,12 @@ public Builder secretKey(String secretKey) { } public ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs", "bucketName"); + } + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionArgs.java index 84de123c2..cce813aec 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigArgs; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionQuestionArgs; import java.lang.Boolean; @@ -388,8 +389,12 @@ public Builder questions(ClusterTemplateTemplateRevisionQuestionArgs... question } public ClusterTemplateTemplateRevisionArgs build() { - $.clusterConfig = Objects.requireNonNull($.clusterConfig, "expected parameter 'clusterConfig' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterConfig == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionArgs", "clusterConfig"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigArgs.java index 5586c4b90..bf62fd21f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpointArgs; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigArgs; import java.lang.Boolean; @@ -466,7 +467,9 @@ public Builder windowsPreferedCluster(Boolean windowsPreferedCluster) { } public ClusterTemplateTemplateRevisionClusterConfigArgs build() { - $.rkeConfig = Objects.requireNonNull($.rkeConfig, "expected parameter 'rkeConfig' to be non-null"); + if ($.rkeConfig == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigArgs", "rkeConfig"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs.java index 9be633186..b93d6b150 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -142,8 +143,12 @@ public Builder user(String user) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs", "address"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHostArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java index d63a89a44..9a0d2f11f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -141,7 +142,9 @@ public Builder url(String url) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs build() { - $.service = Objects.requireNonNull($.service, "expected parameter 'service' to be non-null"); + if ($.service == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverrideArgs", "service"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs.java index f99d0ed2c..3f3697e45 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -534,10 +535,18 @@ public Builder vnetResourceGroup(String vnetResourceGroup) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs build() { - $.aadClientId = Objects.requireNonNull($.aadClientId, "expected parameter 'aadClientId' to be non-null"); - $.aadClientSecret = Objects.requireNonNull($.aadClientSecret, "expected parameter 'aadClientSecret' to be non-null"); - $.subscriptionId = Objects.requireNonNull($.subscriptionId, "expected parameter 'subscriptionId' to be non-null"); - $.tenantId = Objects.requireNonNull($.tenantId, "expected parameter 'tenantId' to be non-null"); + if ($.aadClientId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs", "aadClientId"); + } + if ($.aadClientSecret == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs", "aadClientSecret"); + } + if ($.subscriptionId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs", "subscriptionId"); + } + if ($.tenantId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProviderArgs", "tenantId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderArgs.java index dbc2ff9d5..30ce7032a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorageArgs; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancerArgs; @@ -128,7 +129,9 @@ public Builder route(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudP } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderArgs build() { - $.global = Objects.requireNonNull($.global, "expected parameter 'global' to be non-null"); + if ($.global == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderArgs", "global"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java index 66967eaad..f8002f2ca 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -209,9 +210,15 @@ public Builder username(String username) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs build() { - $.authUrl = Objects.requireNonNull($.authUrl, "expected parameter 'authUrl' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.username = Objects.requireNonNull($.username, "expected parameter 'username' to be non-null"); + if ($.authUrl == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs", "authUrl"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs", "password"); + } + if ($.username == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobalArgs", "username"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs.java index 45d0c3f2f..0fb8105bd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDiskArgs; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobalArgs; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetworkArgs; @@ -133,8 +134,12 @@ public Builder workspace(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCl } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs build() { - $.virtualCenters = Objects.requireNonNull($.virtualCenters, "expected parameter 'virtualCenters' to be non-null"); - $.workspace = Objects.requireNonNull($.workspace, "expected parameter 'workspace' to be non-null"); + if ($.virtualCenters == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs", "virtualCenters"); + } + if ($.workspace == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderArgs", "workspace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java index 5e1822edb..27f685476 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -162,10 +163,18 @@ public Builder user(String user) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs build() { - $.datacenters = Objects.requireNonNull($.datacenters, "expected parameter 'datacenters' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.datacenters == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "datacenters"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "name"); + } + if ($.password == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "password"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenterArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java index a97a4c3a7..12c58a60e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -124,9 +125,15 @@ public Builder server(String server) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs build() { - $.datacenter = Objects.requireNonNull($.datacenter, "expected parameter 'datacenter' to be non-null"); - $.folder = Objects.requireNonNull($.folder, "expected parameter 'folder' to be non-null"); - $.server = Objects.requireNonNull($.server, "expected parameter 'server' to be non-null"); + if ($.datacenter == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs", "datacenter"); + } + if ($.folder == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs", "folder"); + } + if ($.server == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspaceArgs", "server"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs.java index 6a916af2b..060e90b30 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -125,7 +126,9 @@ public Builder value(String value) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs.java index 32e7f595e..9e8182f22 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -125,7 +126,9 @@ public Builder value(String value) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs.java index 93a872b14..690d5e6e3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -125,7 +126,9 @@ public Builder value(String value) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs.java index a43823f89..08e960276 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -1310,26 +1311,66 @@ public Builder vrfTenant(String vrfTenant) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs build() { - $.aep = Objects.requireNonNull($.aep, "expected parameter 'aep' to be non-null"); - $.apicHosts = Objects.requireNonNull($.apicHosts, "expected parameter 'apicHosts' to be non-null"); - $.apicUserCrt = Objects.requireNonNull($.apicUserCrt, "expected parameter 'apicUserCrt' to be non-null"); - $.apicUserKey = Objects.requireNonNull($.apicUserKey, "expected parameter 'apicUserKey' to be non-null"); - $.apicUserName = Objects.requireNonNull($.apicUserName, "expected parameter 'apicUserName' to be non-null"); - $.encapType = Objects.requireNonNull($.encapType, "expected parameter 'encapType' to be non-null"); - $.externDynamic = Objects.requireNonNull($.externDynamic, "expected parameter 'externDynamic' to be non-null"); - $.externStatic = Objects.requireNonNull($.externStatic, "expected parameter 'externStatic' to be non-null"); - $.kubeApiVlan = Objects.requireNonNull($.kubeApiVlan, "expected parameter 'kubeApiVlan' to be non-null"); - $.l3out = Objects.requireNonNull($.l3out, "expected parameter 'l3out' to be non-null"); - $.l3outExternalNetworks = Objects.requireNonNull($.l3outExternalNetworks, "expected parameter 'l3outExternalNetworks' to be non-null"); - $.mcastRangeEnd = Objects.requireNonNull($.mcastRangeEnd, "expected parameter 'mcastRangeEnd' to be non-null"); - $.mcastRangeStart = Objects.requireNonNull($.mcastRangeStart, "expected parameter 'mcastRangeStart' to be non-null"); - $.nodeSubnet = Objects.requireNonNull($.nodeSubnet, "expected parameter 'nodeSubnet' to be non-null"); - $.nodeSvcSubnet = Objects.requireNonNull($.nodeSvcSubnet, "expected parameter 'nodeSvcSubnet' to be non-null"); - $.serviceVlan = Objects.requireNonNull($.serviceVlan, "expected parameter 'serviceVlan' to be non-null"); - $.systemId = Objects.requireNonNull($.systemId, "expected parameter 'systemId' to be non-null"); - $.token = Objects.requireNonNull($.token, "expected parameter 'token' to be non-null"); - $.vrfName = Objects.requireNonNull($.vrfName, "expected parameter 'vrfName' to be non-null"); - $.vrfTenant = Objects.requireNonNull($.vrfTenant, "expected parameter 'vrfTenant' to be non-null"); + if ($.aep == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "aep"); + } + if ($.apicHosts == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "apicHosts"); + } + if ($.apicUserCrt == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "apicUserCrt"); + } + if ($.apicUserKey == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "apicUserKey"); + } + if ($.apicUserName == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "apicUserName"); + } + if ($.encapType == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "encapType"); + } + if ($.externDynamic == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "externDynamic"); + } + if ($.externStatic == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "externStatic"); + } + if ($.kubeApiVlan == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "kubeApiVlan"); + } + if ($.l3out == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "l3out"); + } + if ($.l3outExternalNetworks == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "l3outExternalNetworks"); + } + if ($.mcastRangeEnd == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "mcastRangeEnd"); + } + if ($.mcastRangeStart == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "mcastRangeStart"); + } + if ($.nodeSubnet == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "nodeSubnet"); + } + if ($.nodeSvcSubnet == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "nodeSvcSubnet"); + } + if ($.serviceVlan == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "serviceVlan"); + } + if ($.systemId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "systemId"); + } + if ($.token == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "token"); + } + if ($.vrfName == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "vrfName"); + } + if ($.vrfTenant == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProviderArgs", "vrfTenant"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs.java index dd99e5fcc..d6edfbbca 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -125,7 +126,9 @@ public Builder value(String value) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs.java index 29cf93ea4..e9c15ad8f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder password(String password) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProviderArgs", "password"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs.java index 49e983563..f8d395ae0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -271,9 +272,15 @@ public Builder user(String user) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); - $.roles = Objects.requireNonNull($.roles, "expected parameter 'roles' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs", "address"); + } + if ($.roles == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs", "roles"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNodeArgs", "user"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs.java index 5c1e03764..388cff640 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPluginArgs; import java.lang.Boolean; import java.lang.String; @@ -126,7 +127,9 @@ public Builder user(String user) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java index 760566898..06cf10358 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -158,8 +159,12 @@ public Builder secretKey(String secretKey) { } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs", "bucketName"); + } + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfigArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionQuestionArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionQuestionArgs.java index 485225fc6..2c7a816e3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionQuestionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionQuestionArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -188,8 +189,12 @@ public Builder variable(String variable) { } public ClusterTemplateTemplateRevisionQuestionArgs build() { - $.default_ = Objects.requireNonNull($.default_, "expected parameter 'default' to be non-null"); - $.variable = Objects.requireNonNull($.variable, "expected parameter 'variable' to be non-null"); + if ($.default_ == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionQuestionArgs", "default_"); + } + if ($.variable == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionQuestionArgs", "variable"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java index af28017fe..6f420bebf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2AgentEnvVarArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder value(String value) { } public ClusterV2AgentEnvVarArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterV2AgentEnvVarArgs", "name"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ClusterV2AgentEnvVarArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java index d6b51a82b..d60b67def 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterV2ClusterAgentDeploymentCustomizationAppendTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java index 4365e754b..07d80f366 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder value(String value) { } public ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterV2FleetAgentDeploymentCustomizationAppendTolerationArgs", "key"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java index b0b857eb1..7e2f4bf32 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdS3ConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -299,8 +300,12 @@ public Builder skipSslVerify(Boolean skipSslVerify) { } public ClusterV2RkeConfigEtcdS3ConfigArgs build() { - $.bucket = Objects.requireNonNull($.bucket, "expected parameter 'bucket' to be non-null"); - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.bucket == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdS3ConfigArgs", "bucket"); + } + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdS3ConfigArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java index a7f41d768..f0fe1d410 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotCreateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder generation(Integer generation) { } public ClusterV2RkeConfigEtcdSnapshotCreateArgs build() { - $.generation = Objects.requireNonNull($.generation, "expected parameter 'generation' to be non-null"); + if ($.generation == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdSnapshotCreateArgs", "generation"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java index 2deb23fe7..fd05d7934 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigEtcdSnapshotRestoreArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -151,8 +152,12 @@ public Builder restoreRkeConfig(String restoreRkeConfig) { } public ClusterV2RkeConfigEtcdSnapshotRestoreArgs build() { - $.generation = Objects.requireNonNull($.generation, "expected parameter 'generation' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.generation == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdSnapshotRestoreArgs", "generation"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdSnapshotRestoreArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java index 9c2cc80b6..041992e31 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachinePoolMachineConfigArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachinePoolRollingUpdateArgs; import com.pulumi.rancher2.inputs.ClusterV2RkeConfigMachinePoolTaintArgs; @@ -777,8 +778,12 @@ public Builder workerRole(Boolean workerRole) { } public ClusterV2RkeConfigMachinePoolArgs build() { - $.machineConfig = Objects.requireNonNull($.machineConfig, "expected parameter 'machineConfig' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.machineConfig == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolArgs", "machineConfig"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java index 06b56c5d1..bfdae773b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolMachineConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public ClusterV2RkeConfigMachinePoolMachineConfigArgs build() { - $.kind = Objects.requireNonNull($.kind, "expected parameter 'kind' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.kind == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolMachineConfigArgs", "kind"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolMachineConfigArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java index 244284881..d6bb8fb2c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigMachinePoolTaintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder value(String value) { } public ClusterV2RkeConfigMachinePoolTaintArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolTaintArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolTaintArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java index d2777d872..75c66d5d6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -225,7 +226,9 @@ public Builder tlsSecretName(String tlsSecretName) { } public ClusterV2RkeConfigRegistriesConfigArgs build() { - $.hostname = Objects.requireNonNull($.hostname, "expected parameter 'hostname' to be non-null"); + if ($.hostname == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigRegistriesConfigArgs", "hostname"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java index e4903be4b..8f979fe2b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRegistriesMirrorArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -163,7 +164,9 @@ public Builder rewrites(Map rewrites) { } public ClusterV2RkeConfigRegistriesMirrorArgs build() { - $.hostname = Objects.requireNonNull($.hostname, "expected parameter 'hostname' to be non-null"); + if ($.hostname == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigRegistriesMirrorArgs", "hostname"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java index 618dff3d2..a22120646 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterV2RkeConfigRotateCertificatesArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -125,7 +126,9 @@ public Builder services(String... services) { } public ClusterV2RkeConfigRotateCertificatesArgs build() { - $.generation = Objects.requireNonNull($.generation, "expected parameter 'generation' to be non-null"); + if ($.generation == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigRotateCertificatesArgs", "generation"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/EtcdBackupBackupConfigS3BackupConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/EtcdBackupBackupConfigS3BackupConfigArgs.java index feb4e04a1..d0ae0281a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/EtcdBackupBackupConfigS3BackupConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/EtcdBackupBackupConfigS3BackupConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -298,8 +299,12 @@ public Builder secretKey(String secretKey) { } public EtcdBackupBackupConfigS3BackupConfigArgs build() { - $.bucketName = Objects.requireNonNull($.bucketName, "expected parameter 'bucketName' to be non-null"); - $.endpoint = Objects.requireNonNull($.endpoint, "expected parameter 'endpoint' to be non-null"); + if ($.bucketName == null) { + throw new MissingRequiredPropertyException("EtcdBackupBackupConfigS3BackupConfigArgs", "bucketName"); + } + if ($.endpoint == null) { + throw new MissingRequiredPropertyException("EtcdBackupBackupConfigS3BackupConfigArgs", "endpoint"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppArgs.java index e939aabf5..b891c13ad 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -189,8 +190,12 @@ public Builder targetNamespace(String targetNamespace) { } public GetAppArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetAppArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAppArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppPlainArgs.java index d082c5bc4..8b9466675 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetAppPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -148,8 +149,12 @@ public Builder targetNamespace(@Nullable String targetNamespace) { } public GetAppPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetAppPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetAppPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogArgs.java index e62a42ebf..279168c1d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder scope(String scope) { } public GetCatalogArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCatalogArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogPlainArgs.java index c8f071efe..5661f1a65 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder scope(@Nullable String scope) { } public GetCatalogPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCatalogPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2Args.java index 016aa3f29..1d02edf07 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetCatalogV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Args", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2PlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2PlainArgs.java index 330bd00cd..febf14a94 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2PlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCatalogV2PlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetCatalogV2PlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetCatalogV2PlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCatalogV2PlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificateArgs.java index 26f9da302..9268df481 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder projectId(String projectId) { } public GetCertificateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCertificateArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCertificateArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificatePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificatePlainArgs.java index d74bf118b..7dfa1933d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificatePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCertificatePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder projectId(String projectId) { } public GetCertificatePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCertificatePlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetCertificatePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialArgs.java index 3427d63c4..e0041ec8b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetCloudCredentialArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCloudCredentialArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialPlainArgs.java index 5c8c36caa..2bff5a8b2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetCloudCredentialPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetCloudCredentialPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetCloudCredentialPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupArgs.java index a09dd8ab2..81fdf8b42 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetClusterAlertGroupArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupPlainArgs.java index 0bfd4d706..6b9fff086 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlertGroupPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetClusterAlertGroupPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java index c5ddfed0b..bb522a50e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -152,8 +153,12 @@ public Builder name(String name) { } public GetClusterAlterRuleArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java index a1e8a64ff..9ae594166 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterAlterRulePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -121,8 +122,12 @@ public Builder name(String name) { } public GetClusterAlterRulePlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRulePlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRulePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterArgs.java index 00955d504..1f89a6085 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -93,7 +94,9 @@ public Builder name(String name) { } public GetClusterArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverArgs.java index 8c38349c4..485568569 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder url(String url) { } public GetClusterDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterDriverArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverPlainArgs.java index ac52c0b15..f578507d7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterDriverPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder url(@Nullable String url) { } public GetClusterDriverPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterDriverPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterPlainArgs.java index 4e90f7235..0a988c1e9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -78,7 +79,9 @@ public Builder name(String name) { } public GetClusterPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingArgs.java index 0197a4f59..87ae94e55 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder roleTemplateId(String roleTemplateId) { } public GetClusterRoleTemplateBindingArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingPlainArgs.java index 37731e3ff..6525f3a06 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterRoleTemplateBindingPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder roleTemplateId(@Nullable String roleTemplateId) { } public GetClusterRoleTemplateBindingPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplateArgs.java index 191a166b6..df290e8a2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -169,7 +170,9 @@ public Builder name(String name) { } public GetClusterTemplateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplatePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplatePlainArgs.java index 3de5ea13f..463ac9b00 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplatePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterTemplatePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -134,7 +135,9 @@ public Builder name(String name) { } public GetClusterTemplatePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterTemplatePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2Args.java index 42b58217b..0f64a6e21 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public GetClusterV2Args build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterV2Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2PlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2PlainArgs.java index a5e8ea810..9520f7832 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2PlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetClusterV2PlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder name(String name) { } public GetClusterV2PlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetClusterV2PlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2Args.java index 56f3dbfb2..e570e9c65 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder namespace(String namespace) { } public GetConfigMapV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Args", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2PlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2PlainArgs.java index 5870c865b..135aaae09 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2PlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetConfigMapV2PlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder namespace(@Nullable String namespace) { } public GetConfigMapV2PlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2PlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2PlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupArgs.java index 64837e632..6ddafb030 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetEtcdBackupArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupPlainArgs.java index e019c3204..a131ab1fd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetEtcdBackupPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetEtcdBackupPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderArgs.java index bdcfc743a..379b9996f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetGlobalDnsProviderArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderPlainArgs.java index ee502bf65..cf24fa85f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalDnsProviderPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetGlobalDnsProviderPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java index d3529e62c..5576cf85e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetGlobalRoleArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingArgs.java index de9858dc5..00a8676b5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public GetGlobalRoleBindingArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingPlainArgs.java index f261db26d..a6a3e5c41 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRoleBindingPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder name(String name) { } public GetGlobalRoleBindingPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java index ae9183c59..affc369a3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetGlobalRolePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetGlobalRolePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetGlobalRolePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppArgs.java index c40e9b683..d2c7341cc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetMultiClusterAppArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppPlainArgs.java index 656637656..4ae18b4b1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetMultiClusterAppPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetMultiClusterAppPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespaceArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespaceArgs.java index 5bb6a967f..84c23a0c0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespaceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespaceArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder projectId(String projectId) { } public GetNamespaceArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNamespaceArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNamespaceArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespacePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespacePlainArgs.java index 24b87cee3..d7e940ddb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespacePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNamespacePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder projectId(String projectId) { } public GetNamespacePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNamespacePlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetNamespacePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverArgs.java index 0304cdb0b..501f96bd4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder url(String url) { } public GetNodeDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNodeDriverArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverPlainArgs.java index 98e12c87a..d10397027 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeDriverPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder url(@Nullable String url) { } public GetNodeDriverPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNodeDriverPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolArgs.java index d7ac64b12..a7629a5d0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder nodeTemplateId(String nodeTemplateId) { } public GetNodePoolArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetNodePoolArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNodePoolArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolPlainArgs.java index 9971fe900..81b4bc010 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodePoolPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder nodeTemplateId(@Nullable String nodeTemplateId) { } public GetNodePoolPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetNodePoolPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNodePoolPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplateArgs.java index a234e17ca..bc8c102de 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -114,7 +115,9 @@ public Builder useInternalIpAddress(Boolean useInternalIpAddress) { } public GetNodeTemplateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplatePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplatePlainArgs.java index 7248661f9..eb7026259 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplatePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNodeTemplatePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -93,7 +94,9 @@ public Builder useInternalIpAddress(@Nullable Boolean useInternalIpAddress) { } public GetNodeTemplatePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNodeTemplatePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierArgs.java index 0ce0f602c..6e96dd0b3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetNotifierDingtalkConfigArgs; import com.pulumi.rancher2.inputs.GetNotifierMsteamsConfigArgs; import java.lang.String; @@ -189,8 +190,12 @@ public Builder name(String name) { } public GetNotifierArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetNotifierArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNotifierArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfig.java index f23348587..f3952b0b6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -77,7 +78,9 @@ public Builder url(String url) { } public GetNotifierDingtalkConfig build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("GetNotifierDingtalkConfig", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfigArgs.java index 9217f5ca0..176efc4f0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierDingtalkConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -90,7 +91,9 @@ public Builder url(String url) { } public GetNotifierDingtalkConfigArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("GetNotifierDingtalkConfigArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfig.java index 2e43f696e..4f2fc2a75 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -64,7 +65,9 @@ public Builder url(String url) { } public GetNotifierMsteamsConfig build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("GetNotifierMsteamsConfig", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfigArgs.java index 15389530c..d3678e8ff 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierMsteamsConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -73,7 +74,9 @@ public Builder url(String url) { } public GetNotifierMsteamsConfigArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("GetNotifierMsteamsConfigArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierPlainArgs.java index dbf4e3b0d..48529bdb3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetNotifierPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetNotifierDingtalkConfig; import com.pulumi.rancher2.inputs.GetNotifierMsteamsConfig; import java.lang.String; @@ -148,8 +149,12 @@ public Builder name(String name) { } public GetNotifierPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetNotifierPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetNotifierPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java index d2fcb735d..acfa1ab5d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetPodSecurityPolicyTemplateAllowedCsiDriver build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedCsiDriver", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriverArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriverArgs.java index a7cb7e33f..d787b8e7f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedCsiDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetPodSecurityPolicyTemplateAllowedCsiDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedCsiDriverArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java index 224090d4f..55c2ed490 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -49,7 +50,9 @@ public Builder driver(String driver) { } public GetPodSecurityPolicyTemplateAllowedFlexVolume build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedFlexVolume", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs.java index b609e363f..19cdb9493 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder driver(String driver) { } public GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPath.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPath.java index 30c779237..c150f053e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPath.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPath.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -65,7 +66,9 @@ public Builder readOnly(@Nullable Boolean readOnly) { } public GetPodSecurityPolicyTemplateAllowedHostPath build() { - $.pathPrefix = Objects.requireNonNull($.pathPrefix, "expected parameter 'pathPrefix' to be non-null"); + if ($.pathPrefix == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedHostPath", "pathPrefix"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPathArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPathArgs.java index 3613c392e..0e267d677 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateAllowedHostPathArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder readOnly(Boolean readOnly) { } public GetPodSecurityPolicyTemplateAllowedHostPathArgs build() { - $.pathPrefix = Objects.requireNonNull($.pathPrefix, "expected parameter 'pathPrefix' to be non-null"); + if ($.pathPrefix == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedHostPathArgs", "pathPrefix"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateArgs.java index 0c6234cb4..00e903f7a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateAllowedCsiDriverArgs; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateAllowedFlexVolumeArgs; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateAllowedHostPathArgs; @@ -1179,7 +1180,9 @@ public Builder volumes(String... volumes) { } public GetPodSecurityPolicyTemplateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroup.java index f2fc7846a..681815ca9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateFsGroupRange; import java.lang.String; import java.util.List; @@ -70,7 +71,9 @@ public Builder rule(@Nullable String rule) { } public GetPodSecurityPolicyTemplateFsGroup build() { - $.ranges = Objects.requireNonNull($.ranges, "expected parameter 'ranges' to be non-null"); + if ($.ranges == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroup", "ranges"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupArgs.java index 66b940f51..168a39b25 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateFsGroupRangeArgs; import java.lang.String; import java.util.List; @@ -79,7 +80,9 @@ public Builder rule(String rule) { } public GetPodSecurityPolicyTemplateFsGroupArgs build() { - $.ranges = Objects.requireNonNull($.ranges, "expected parameter 'ranges' to be non-null"); + if ($.ranges == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupArgs", "ranges"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRange.java index c94fb397b..96b83eedb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateFsGroupRange build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupRange", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupRange", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRangeArgs.java index 6088e4295..d164a56c9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateFsGroupRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -71,8 +72,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateFsGroupRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPort.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPort.java index 2826f4652..cb3f88a67 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPort.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPort.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateHostPort build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateHostPort", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateHostPort", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPortArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPortArgs.java index 957837811..c03baee44 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateHostPortArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -71,8 +72,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateHostPortArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateHostPortArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateHostPortArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplatePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplatePlainArgs.java index e95174647..773dd753a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplatePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplatePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateAllowedCsiDriver; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateAllowedFlexVolume; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateAllowedHostPath; @@ -904,7 +905,9 @@ public Builder volumes(String... volumes) { } public GetPodSecurityPolicyTemplatePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplatePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroup.java index 916c55bad..2ce0c120e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateRunAsGroupRange; import java.lang.String; import java.util.List; @@ -70,7 +71,9 @@ public Builder rule(String rule) { } public GetPodSecurityPolicyTemplateRunAsGroup build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroup", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupArgs.java index 99e65bb99..03660afb4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateRunAsGroupRangeArgs; import java.lang.String; import java.util.List; @@ -79,7 +80,9 @@ public Builder rule(String rule) { } public GetPodSecurityPolicyTemplateRunAsGroupArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java index d52778863..0dea2427c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateRunAsGroupRange build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupRange", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupRange", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRangeArgs.java index 19f341c89..d6ca020ef 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsGroupRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -71,8 +72,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateRunAsGroupRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUser.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUser.java index eb6946e51..d5ac8664c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUser.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUser.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateRunAsUserRange; import java.lang.String; import java.util.List; @@ -70,7 +71,9 @@ public Builder rule(String rule) { } public GetPodSecurityPolicyTemplateRunAsUser build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUser", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserArgs.java index 58fbf1ff3..1c398228e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateRunAsUserRangeArgs; import java.lang.String; import java.util.List; @@ -79,7 +80,9 @@ public Builder rule(String rule) { } public GetPodSecurityPolicyTemplateRunAsUserArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRange.java index 32b38a533..b51397fba 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateRunAsUserRange build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserRange", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserRange", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRangeArgs.java index 8e19c25d7..8a52d7b2a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRunAsUserRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -71,8 +72,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateRunAsUserRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClass.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClass.java index d8da1d0dc..319024843 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClass.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClass.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -69,7 +70,9 @@ public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) } public GetPodSecurityPolicyTemplateRuntimeClass build() { - $.allowedRuntimeClassNames = Objects.requireNonNull($.allowedRuntimeClassNames, "expected parameter 'allowedRuntimeClassNames' to be non-null"); + if ($.allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRuntimeClass", "allowedRuntimeClassNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClassArgs.java index fe2166c3e..ccc1f016c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateRuntimeClassArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -78,7 +79,9 @@ public Builder defaultRuntimeClassName(String defaultRuntimeClassName) { } public GetPodSecurityPolicyTemplateRuntimeClassArgs build() { - $.allowedRuntimeClassNames = Objects.requireNonNull($.allowedRuntimeClassNames, "expected parameter 'allowedRuntimeClassNames' to be non-null"); + if ($.allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRuntimeClassArgs", "allowedRuntimeClassNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinux.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinux.java index f17091a67..a8f8ad3af 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinux.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinux.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption; import java.lang.String; import java.util.Objects; @@ -65,7 +66,9 @@ public Builder seLinuxOption(@Nullable GetPodSecurityPolicyTemplateSeLinuxSeLinu } public GetPodSecurityPolicyTemplateSeLinux build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSeLinux", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinuxArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinuxArgs.java index 7a6d5a167..9ea0ba92b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinuxArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSeLinuxArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateSeLinuxSeLinuxOptionArgs; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder seLinuxOption(GetPodSecurityPolicyTemplateSeLinuxSeLinuxOptionArg } public GetPodSecurityPolicyTemplateSeLinuxArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSeLinuxArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroup.java index 13591cf4d..2a68bef2b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateSupplementalGroupRange; import java.lang.String; import java.util.List; @@ -70,7 +71,9 @@ public Builder rule(@Nullable String rule) { } public GetPodSecurityPolicyTemplateSupplementalGroup build() { - $.ranges = Objects.requireNonNull($.ranges, "expected parameter 'ranges' to be non-null"); + if ($.ranges == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroup", "ranges"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupArgs.java index 6618a4b29..47efa23d7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs; import java.lang.String; import java.util.List; @@ -79,7 +80,9 @@ public Builder rule(String rule) { } public GetPodSecurityPolicyTemplateSupplementalGroupArgs build() { - $.ranges = Objects.requireNonNull($.ranges, "expected parameter 'ranges' to be non-null"); + if ($.ranges == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupArgs", "ranges"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java index 4ed2590f4..3f95378c2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -62,8 +63,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateSupplementalGroupRange build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupRange", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupRange", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs.java index 06e5fc54b..a48cebe8d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -71,8 +72,12 @@ public Builder min(Integer min) { } public GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalArgs.java index c8befa590..d16bb21fc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder type(String type) { } public GetPrincipalArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPrincipalArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalPlainArgs.java index 4cbe431d5..cb890f9ef 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetPrincipalPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder type(@Nullable String type) { } public GetPrincipalPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetPrincipalPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupArgs.java index f4887e175..a9496680b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder projectId(String projectId) { } public GetProjectAlertGroupArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupPlainArgs.java index 60a799eaf..ef15e065a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertGroupPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder projectId(String projectId) { } public GetProjectAlertGroupPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRuleArgs.java index 1d9a4dc86..2ff00ca99 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -152,8 +153,12 @@ public Builder projectId(String projectId) { } public GetProjectAlertRuleArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRulePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRulePlainArgs.java index 4e79092a9..4cc3558f0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRulePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectAlertRulePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -121,8 +122,12 @@ public Builder projectId(String projectId) { } public GetProjectAlertRulePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRulePlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRulePlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectArgs.java index 30144f36a..899ea5f5e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetProjectArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetProjectArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectPlainArgs.java index 60d993a4e..da0e2c068 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetProjectPlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetProjectPlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingArgs.java index 6144f53c2..a013072f8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder roleTemplateId(String roleTemplateId) { } public GetProjectRoleTemplateBindingArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingPlainArgs.java index d5227dfe0..455ec3b13 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetProjectRoleTemplateBindingPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder roleTemplateId(@Nullable String roleTemplateId) { } public GetProjectRoleTemplateBindingPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryArgs.java index 69fc1d608..7e8c82f56 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder projectId(String projectId) { } public GetRegistryArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRegistryArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetRegistryArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryPlainArgs.java index 5746d77b4..09a46bdee 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRegistryPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder projectId(String projectId) { } public GetRegistryPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRegistryPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetRegistryPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java index 7eebf9c28..4c79856f8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempalteArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public GetRoleTempalteArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java index bd509272b..29cf97261 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTempaltePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder name(String name) { } public GetRoleTempaltePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRoleTempaltePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplateArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplateArgs.java index 6c8f8e054..089ca17cd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplateArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplateArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder name(String name) { } public GetRoleTemplateArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplatePlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplatePlainArgs.java index e62e72297..bd1df7b60 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplatePlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetRoleTemplatePlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -92,7 +93,9 @@ public Builder name(String name) { } public GetRoleTemplatePlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetRoleTemplatePlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretArgs.java index 30d8735c2..90e6e1bc4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder projectId(String projectId) { } public GetSecretArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSecretArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSecretArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretPlainArgs.java index abcc69507..5407e3274 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder projectId(String projectId) { } public GetSecretPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSecretPlainArgs", "name"); + } + if ($.projectId == null) { + throw new MissingRequiredPropertyException("GetSecretPlainArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2Args.java index f6c72618d..74b9546ba 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder namespace(String namespace) { } public GetSecretV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetSecretV2Args", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSecretV2Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2PlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2PlainArgs.java index 9c3793e3b..d83730d96 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2PlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSecretV2PlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -119,8 +120,12 @@ public Builder namespace(@Nullable String namespace) { } public GetSecretV2PlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetSecretV2PlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSecretV2PlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingArgs.java index 44a1b99f4..fcd64b139 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public GetSettingArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSettingArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingPlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingPlainArgs.java index 672cdee1f..14c728b72 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetSettingPlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -63,7 +64,9 @@ public Builder name(String name) { } public GetSettingPlainArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("GetSettingPlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2Args.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2Args.java index fdc78d6ca..a20af10bb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2Args.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2Args.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder name(String name) { } public GetStorageClassV2Args build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Args", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Args", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2PlainArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2PlainArgs.java index b277ec6d7..d58ab6533 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2PlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GetStorageClassV2PlainArgs.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.inputs; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -90,8 +91,12 @@ public Builder name(String name) { } public GetStorageClassV2PlainArgs build() { - $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null"); - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.clusterId == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2PlainArgs", "clusterId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2PlainArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderAlidnsConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderAlidnsConfigArgs.java index 17646ba20..351ffc5cd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderAlidnsConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderAlidnsConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder secretKey(String secretKey) { } public GlobalDnsProviderAlidnsConfigArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderAlidnsConfigArgs", "accessKey"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderAlidnsConfigArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderCloudflareConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderCloudflareConfigArgs.java index f5672ed7d..3c7611f8a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderCloudflareConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderCloudflareConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -151,8 +152,12 @@ public Builder proxySetting(Boolean proxySetting) { } public GlobalDnsProviderCloudflareConfigArgs build() { - $.apiEmail = Objects.requireNonNull($.apiEmail, "expected parameter 'apiEmail' to be non-null"); - $.apiKey = Objects.requireNonNull($.apiKey, "expected parameter 'apiKey' to be non-null"); + if ($.apiEmail == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderCloudflareConfigArgs", "apiEmail"); + } + if ($.apiKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderCloudflareConfigArgs", "apiKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderRoute53ConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderRoute53ConfigArgs.java index 10c1bffac..a6f333538 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderRoute53ConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/GlobalDnsProviderRoute53ConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,8 +262,12 @@ public Builder zoneType(String zoneType) { } public GlobalDnsProviderRoute53ConfigArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderRoute53ConfigArgs", "accessKey"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderRoute53ConfigArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2Amazonec2ConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2Amazonec2ConfigArgs.java index 2060f26b4..b88d9ea06 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2Amazonec2ConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2Amazonec2ConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -1279,12 +1280,24 @@ public Builder zone(String zone) { } public MachineConfigV2Amazonec2ConfigArgs build() { - $.ami = Objects.requireNonNull($.ami, "expected parameter 'ami' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); - $.securityGroups = Objects.requireNonNull($.securityGroups, "expected parameter 'securityGroups' to be non-null"); - $.subnetId = Objects.requireNonNull($.subnetId, "expected parameter 'subnetId' to be non-null"); - $.vpcId = Objects.requireNonNull($.vpcId, "expected parameter 'vpcId' to be non-null"); - $.zone = Objects.requireNonNull($.zone, "expected parameter 'zone' to be non-null"); + if ($.ami == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2ConfigArgs", "ami"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2ConfigArgs", "region"); + } + if ($.securityGroups == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2ConfigArgs", "securityGroups"); + } + if ($.subnetId == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2ConfigArgs", "subnetId"); + } + if ($.vpcId == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2ConfigArgs", "vpcId"); + } + if ($.zone == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2ConfigArgs", "zone"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2HarvesterConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2HarvesterConfigArgs.java index 72c4b4016..b783fb70b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2HarvesterConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2HarvesterConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -674,8 +675,12 @@ public Builder vmNamespace(String vmNamespace) { } public MachineConfigV2HarvesterConfigArgs build() { - $.sshUser = Objects.requireNonNull($.sshUser, "expected parameter 'sshUser' to be non-null"); - $.vmNamespace = Objects.requireNonNull($.vmNamespace, "expected parameter 'vmNamespace' to be non-null"); + if ($.sshUser == null) { + throw new MissingRequiredPropertyException("MachineConfigV2HarvesterConfigArgs", "sshUser"); + } + if ($.vmNamespace == null) { + throw new MissingRequiredPropertyException("MachineConfigV2HarvesterConfigArgs", "vmNamespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2OpenstackConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2OpenstackConfigArgs.java index be88efc85..0ea3812d4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2OpenstackConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MachineConfigV2OpenstackConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -1606,9 +1607,15 @@ public Builder volumeType(String volumeType) { } public MachineConfigV2OpenstackConfigArgs build() { - $.authUrl = Objects.requireNonNull($.authUrl, "expected parameter 'authUrl' to be non-null"); - $.availabilityZone = Objects.requireNonNull($.availabilityZone, "expected parameter 'availabilityZone' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.authUrl == null) { + throw new MissingRequiredPropertyException("MachineConfigV2OpenstackConfigArgs", "authUrl"); + } + if ($.availabilityZone == null) { + throw new MissingRequiredPropertyException("MachineConfigV2OpenstackConfigArgs", "availabilityZone"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("MachineConfigV2OpenstackConfigArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MultiClusterAppTargetArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MultiClusterAppTargetArgs.java index f600fba3e..1a3482087 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MultiClusterAppTargetArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/MultiClusterAppTargetArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,7 +188,9 @@ public Builder state(String state) { } public MultiClusterAppTargetArgs build() { - $.projectId = Objects.requireNonNull($.projectId, "expected parameter 'projectId' to be non-null"); + if ($.projectId == null) { + throw new MissingRequiredPropertyException("MultiClusterAppTargetArgs", "projectId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NamespaceResourceQuotaArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NamespaceResourceQuotaArgs.java index 0c3d933d4..c1a74ca32 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NamespaceResourceQuotaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NamespaceResourceQuotaArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.NamespaceResourceQuotaLimitArgs; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder limit(NamespaceResourceQuotaLimitArgs limit) { } public NamespaceResourceQuotaArgs build() { - $.limit = Objects.requireNonNull($.limit, "expected parameter 'limit' to be non-null"); + if ($.limit == null) { + throw new MissingRequiredPropertyException("NamespaceResourceQuotaArgs", "limit"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodePoolNodeTaintArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodePoolNodeTaintArgs.java index fb65c9a1f..c77d306f0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodePoolNodeTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodePoolNodeTaintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,8 +188,12 @@ public Builder value(String value) { } public NodePoolNodeTaintArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("NodePoolNodeTaintArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("NodePoolNodeTaintArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateAmazonec2ConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateAmazonec2ConfigArgs.java index 3f2807a14..534384084 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateAmazonec2ConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateAmazonec2ConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -1307,12 +1308,24 @@ public Builder zone(String zone) { } public NodeTemplateAmazonec2ConfigArgs build() { - $.ami = Objects.requireNonNull($.ami, "expected parameter 'ami' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); - $.securityGroups = Objects.requireNonNull($.securityGroups, "expected parameter 'securityGroups' to be non-null"); - $.subnetId = Objects.requireNonNull($.subnetId, "expected parameter 'subnetId' to be non-null"); - $.vpcId = Objects.requireNonNull($.vpcId, "expected parameter 'vpcId' to be non-null"); - $.zone = Objects.requireNonNull($.zone, "expected parameter 'zone' to be non-null"); + if ($.ami == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2ConfigArgs", "ami"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2ConfigArgs", "region"); + } + if ($.securityGroups == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2ConfigArgs", "securityGroups"); + } + if ($.subnetId == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2ConfigArgs", "subnetId"); + } + if ($.vpcId == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2ConfigArgs", "vpcId"); + } + if ($.zone == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2ConfigArgs", "zone"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHarvesterConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHarvesterConfigArgs.java index 002161a37..ba6b326db 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHarvesterConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHarvesterConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -674,8 +675,12 @@ public Builder vmNamespace(String vmNamespace) { } public NodeTemplateHarvesterConfigArgs build() { - $.sshUser = Objects.requireNonNull($.sshUser, "expected parameter 'sshUser' to be non-null"); - $.vmNamespace = Objects.requireNonNull($.vmNamespace, "expected parameter 'vmNamespace' to be non-null"); + if ($.sshUser == null) { + throw new MissingRequiredPropertyException("NodeTemplateHarvesterConfigArgs", "sshUser"); + } + if ($.vmNamespace == null) { + throw new MissingRequiredPropertyException("NodeTemplateHarvesterConfigArgs", "vmNamespace"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHetznerConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHetznerConfigArgs.java index 226950518..b9d45cdb9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHetznerConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateHetznerConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -383,7 +384,9 @@ public Builder volumes(String volumes) { } public NodeTemplateHetznerConfigArgs build() { - $.apiToken = Objects.requireNonNull($.apiToken, "expected parameter 'apiToken' to be non-null"); + if ($.apiToken == null) { + throw new MissingRequiredPropertyException("NodeTemplateHetznerConfigArgs", "apiToken"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateNodeTaintArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateNodeTaintArgs.java index 08c0695d8..390f1001e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateNodeTaintArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateNodeTaintArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -187,8 +188,12 @@ public Builder value(String value) { } public NodeTemplateNodeTaintArgs build() { - $.key = Objects.requireNonNull($.key, "expected parameter 'key' to be non-null"); - $.value = Objects.requireNonNull($.value, "expected parameter 'value' to be non-null"); + if ($.key == null) { + throw new MissingRequiredPropertyException("NodeTemplateNodeTaintArgs", "key"); + } + if ($.value == null) { + throw new MissingRequiredPropertyException("NodeTemplateNodeTaintArgs", "value"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpennebulaConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpennebulaConfigArgs.java index 4ed6da0e9..30cf598bc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpennebulaConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpennebulaConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -751,9 +752,15 @@ public Builder xmlRpcUrl(String xmlRpcUrl) { } public NodeTemplateOpennebulaConfigArgs build() { - $.password = Objects.requireNonNull($.password, "expected parameter 'password' to be non-null"); - $.user = Objects.requireNonNull($.user, "expected parameter 'user' to be non-null"); - $.xmlRpcUrl = Objects.requireNonNull($.xmlRpcUrl, "expected parameter 'xmlRpcUrl' to be non-null"); + if ($.password == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpennebulaConfigArgs", "password"); + } + if ($.user == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpennebulaConfigArgs", "user"); + } + if ($.xmlRpcUrl == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpennebulaConfigArgs", "xmlRpcUrl"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpenstackConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpenstackConfigArgs.java index 94501e67c..45cf2de83 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpenstackConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOpenstackConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -1470,9 +1471,15 @@ public Builder volumeType(String volumeType) { } public NodeTemplateOpenstackConfigArgs build() { - $.authUrl = Objects.requireNonNull($.authUrl, "expected parameter 'authUrl' to be non-null"); - $.availabilityZone = Objects.requireNonNull($.availabilityZone, "expected parameter 'availabilityZone' to be non-null"); - $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null"); + if ($.authUrl == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpenstackConfigArgs", "authUrl"); + } + if ($.availabilityZone == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpenstackConfigArgs", "availabilityZone"); + } + if ($.region == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpenstackConfigArgs", "region"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOutscaleConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOutscaleConfigArgs.java index ee52c2267..b23c6f931 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOutscaleConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NodeTemplateOutscaleConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -478,8 +479,12 @@ public Builder sourceOmi(String sourceOmi) { } public NodeTemplateOutscaleConfigArgs build() { - $.accessKey = Objects.requireNonNull($.accessKey, "expected parameter 'accessKey' to be non-null"); - $.secretKey = Objects.requireNonNull($.secretKey, "expected parameter 'secretKey' to be non-null"); + if ($.accessKey == null) { + throw new MissingRequiredPropertyException("NodeTemplateOutscaleConfigArgs", "accessKey"); + } + if ($.secretKey == null) { + throw new MissingRequiredPropertyException("NodeTemplateOutscaleConfigArgs", "secretKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierDingtalkConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierDingtalkConfigArgs.java index 303428dd6..6d8ef9b5f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierDingtalkConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierDingtalkConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,7 +151,9 @@ public Builder url(String url) { } public NotifierDingtalkConfigArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("NotifierDingtalkConfigArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierMsteamsConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierMsteamsConfigArgs.java index c40ea8fcb..3f082b641 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierMsteamsConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierMsteamsConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder url(String url) { } public NotifierMsteamsConfigArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("NotifierMsteamsConfigArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierPagerdutyConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierPagerdutyConfigArgs.java index bcb5893a1..980837480 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierPagerdutyConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierPagerdutyConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder serviceKey(String serviceKey) { } public NotifierPagerdutyConfigArgs build() { - $.serviceKey = Objects.requireNonNull($.serviceKey, "expected parameter 'serviceKey' to be non-null"); + if ($.serviceKey == null) { + throw new MissingRequiredPropertyException("NotifierPagerdutyConfigArgs", "serviceKey"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSlackConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSlackConfigArgs.java index c47052599..35d6e396a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSlackConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSlackConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,8 +151,12 @@ public Builder url(String url) { } public NotifierSlackConfigArgs build() { - $.defaultRecipient = Objects.requireNonNull($.defaultRecipient, "expected parameter 'defaultRecipient' to be non-null"); - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.defaultRecipient == null) { + throw new MissingRequiredPropertyException("NotifierSlackConfigArgs", "defaultRecipient"); + } + if ($.url == null) { + throw new MissingRequiredPropertyException("NotifierSlackConfigArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSmtpConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSmtpConfigArgs.java index cbc3e19bd..856625904 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSmtpConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierSmtpConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -300,10 +301,18 @@ public Builder username(String username) { } public NotifierSmtpConfigArgs build() { - $.defaultRecipient = Objects.requireNonNull($.defaultRecipient, "expected parameter 'defaultRecipient' to be non-null"); - $.host = Objects.requireNonNull($.host, "expected parameter 'host' to be non-null"); - $.port = Objects.requireNonNull($.port, "expected parameter 'port' to be non-null"); - $.sender = Objects.requireNonNull($.sender, "expected parameter 'sender' to be non-null"); + if ($.defaultRecipient == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfigArgs", "defaultRecipient"); + } + if ($.host == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfigArgs", "host"); + } + if ($.port == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfigArgs", "port"); + } + if ($.sender == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfigArgs", "sender"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWebhookConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWebhookConfigArgs.java index 0bbbc9f66..489135d9c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWebhookConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWebhookConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -113,7 +114,9 @@ public Builder url(String url) { } public NotifierWebhookConfigArgs build() { - $.url = Objects.requireNonNull($.url, "expected parameter 'url' to be non-null"); + if ($.url == null) { + throw new MissingRequiredPropertyException("NotifierWebhookConfigArgs", "url"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWechatConfigArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWechatConfigArgs.java index 537539b79..5cbe0d757 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWechatConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/NotifierWechatConfigArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -261,10 +262,18 @@ public Builder secret(String secret) { } public NotifierWechatConfigArgs build() { - $.agent = Objects.requireNonNull($.agent, "expected parameter 'agent' to be non-null"); - $.corp = Objects.requireNonNull($.corp, "expected parameter 'corp' to be non-null"); - $.defaultRecipient = Objects.requireNonNull($.defaultRecipient, "expected parameter 'defaultRecipient' to be non-null"); - $.secret = Objects.requireNonNull($.secret, "expected parameter 'secret' to be non-null"); + if ($.agent == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfigArgs", "agent"); + } + if ($.corp == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfigArgs", "corp"); + } + if ($.defaultRecipient == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfigArgs", "defaultRecipient"); + } + if ($.secret == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfigArgs", "secret"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedCsiDriverArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedCsiDriverArgs.java index 332c88867..49e2af0d2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedCsiDriverArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedCsiDriverArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -74,7 +75,9 @@ public Builder name(String name) { } public PodSecurityPolicyTemplateAllowedCsiDriverArgs build() { - $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null"); + if ($.name == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateAllowedCsiDriverArgs", "name"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedFlexVolumeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedFlexVolumeArgs.java index 9f9b2ebec..17ee0456e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedFlexVolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedFlexVolumeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -54,7 +55,9 @@ public Builder driver(String driver) { } public PodSecurityPolicyTemplateAllowedFlexVolumeArgs build() { - $.driver = Objects.requireNonNull($.driver, "expected parameter 'driver' to be non-null"); + if ($.driver == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateAllowedFlexVolumeArgs", "driver"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedHostPathArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedHostPathArgs.java index 464976bcc..3e00b859d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedHostPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateAllowedHostPathArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -114,7 +115,9 @@ public Builder readOnly(Boolean readOnly) { } public PodSecurityPolicyTemplateAllowedHostPathArgs build() { - $.pathPrefix = Objects.requireNonNull($.pathPrefix, "expected parameter 'pathPrefix' to be non-null"); + if ($.pathPrefix == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateAllowedHostPathArgs", "pathPrefix"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateFsGroupRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateFsGroupRangeArgs.java index 6d451babc..93a7bdf76 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateFsGroupRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateFsGroupRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder min(Integer min) { } public PodSecurityPolicyTemplateFsGroupRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateFsGroupRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateFsGroupRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateHostPortArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateHostPortArgs.java index ecdb33fc5..4ccaf6694 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateHostPortArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateHostPortArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder min(Integer min) { } public PodSecurityPolicyTemplateHostPortArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateHostPortArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateHostPortArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupArgs.java index 8927ef87d..adeed1b7a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRunAsGroupRangeArgs; import java.lang.String; import java.util.List; @@ -125,7 +126,9 @@ public Builder rule(String rule) { } public PodSecurityPolicyTemplateRunAsGroupArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsGroupArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupRangeArgs.java index 92daf9dbd..2a5745c08 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsGroupRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder min(Integer min) { } public PodSecurityPolicyTemplateRunAsGroupRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsGroupRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsGroupRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserArgs.java index cc040a8e4..4e6c243cb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateRunAsUserRangeArgs; import java.lang.String; import java.util.List; @@ -125,7 +126,9 @@ public Builder rule(String rule) { } public PodSecurityPolicyTemplateRunAsUserArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsUserArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserRangeArgs.java index b2bb8f697..2ed0b1bda 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRunAsUserRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder min(Integer min) { } public PodSecurityPolicyTemplateRunAsUserRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsUserRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsUserRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRuntimeClassArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRuntimeClassArgs.java index 1bb86f940..ef74cc5e9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRuntimeClassArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateRuntimeClassArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -124,7 +125,9 @@ public Builder defaultRuntimeClassName(String defaultRuntimeClassName) { } public PodSecurityPolicyTemplateRuntimeClassArgs build() { - $.allowedRuntimeClassNames = Objects.requireNonNull($.allowedRuntimeClassNames, "expected parameter 'allowedRuntimeClassNames' to be non-null"); + if ($.allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRuntimeClassArgs", "allowedRuntimeClassNames"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSeLinuxArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSeLinuxArgs.java index 420dedc59..84b8a9d46 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSeLinuxArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSeLinuxArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.PodSecurityPolicyTemplateSeLinuxSeLinuxOptionArgs; import java.lang.String; import java.util.Objects; @@ -114,7 +115,9 @@ public Builder seLinuxOption(PodSecurityPolicyTemplateSeLinuxSeLinuxOptionArgs s } public PodSecurityPolicyTemplateSeLinuxArgs build() { - $.rule = Objects.requireNonNull($.rule, "expected parameter 'rule' to be non-null"); + if ($.rule == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateSeLinuxArgs", "rule"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSupplementalGroupRangeArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSupplementalGroupRangeArgs.java index f0711910d..4e6242df6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSupplementalGroupRangeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/PodSecurityPolicyTemplateSupplementalGroupRangeArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -111,8 +112,12 @@ public Builder min(Integer min) { } public PodSecurityPolicyTemplateSupplementalGroupRangeArgs build() { - $.max = Objects.requireNonNull($.max, "expected parameter 'max' to be non-null"); - $.min = Objects.requireNonNull($.min, "expected parameter 'min' to be non-null"); + if ($.max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateSupplementalGroupRangeArgs", "max"); + } + if ($.min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateSupplementalGroupRangeArgs", "min"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertGroupRecipientArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertGroupRecipientArgs.java index 0b87987fc..792c70ab3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertGroupRecipientArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertGroupRecipientArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -168,7 +169,9 @@ public Builder recipient(String recipient) { } public ProjectAlertGroupRecipientArgs build() { - $.notifierId = Objects.requireNonNull($.notifierId, "expected parameter 'notifierId' to be non-null"); + if ($.notifierId == null) { + throw new MissingRequiredPropertyException("ProjectAlertGroupRecipientArgs", "notifierId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRuleMetricRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRuleMetricRuleArgs.java index 4d5c8a6ad..23711e70d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRuleMetricRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRuleMetricRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -225,9 +226,15 @@ public Builder thresholdValue(Double thresholdValue) { } public ProjectAlertRuleMetricRuleArgs build() { - $.duration = Objects.requireNonNull($.duration, "expected parameter 'duration' to be non-null"); - $.expression = Objects.requireNonNull($.expression, "expected parameter 'expression' to be non-null"); - $.thresholdValue = Objects.requireNonNull($.thresholdValue, "expected parameter 'thresholdValue' to be non-null"); + if ($.duration == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleMetricRuleArgs", "duration"); + } + if ($.expression == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleMetricRuleArgs", "expression"); + } + if ($.thresholdValue == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleMetricRuleArgs", "thresholdValue"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRulePodRuleArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRulePodRuleArgs.java index 1e18c3409..d17d930f6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRulePodRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectAlertRulePodRuleArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -188,7 +189,9 @@ public Builder restartTimes(Integer restartTimes) { } public ProjectAlertRulePodRuleArgs build() { - $.podId = Objects.requireNonNull($.podId, "expected parameter 'podId' to be non-null"); + if ($.podId == null) { + throw new MissingRequiredPropertyException("ProjectAlertRulePodRuleArgs", "podId"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectResourceQuotaArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectResourceQuotaArgs.java index 2cce58fc6..2d1a19c65 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectResourceQuotaArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ProjectResourceQuotaArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.inputs.ProjectResourceQuotaNamespaceDefaultLimitArgs; import com.pulumi.rancher2.inputs.ProjectResourceQuotaProjectLimitArgs; import java.util.Objects; @@ -112,8 +113,12 @@ public Builder projectLimit(ProjectResourceQuotaProjectLimitArgs projectLimit) { } public ProjectResourceQuotaArgs build() { - $.namespaceDefaultLimit = Objects.requireNonNull($.namespaceDefaultLimit, "expected parameter 'namespaceDefaultLimit' to be non-null"); - $.projectLimit = Objects.requireNonNull($.projectLimit, "expected parameter 'projectLimit' to be non-null"); + if ($.namespaceDefaultLimit == null) { + throw new MissingRequiredPropertyException("ProjectResourceQuotaArgs", "namespaceDefaultLimit"); + } + if ($.projectLimit == null) { + throw new MissingRequiredPropertyException("ProjectResourceQuotaArgs", "projectLimit"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RegistryRegistryArgs.java b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RegistryRegistryArgs.java index 839e9aceb..65abfb6a4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RegistryRegistryArgs.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/inputs/RegistryRegistryArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -150,7 +151,9 @@ public Builder username(String username) { } public RegistryRegistryArgs build() { - $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null"); + if ($.address == null) { + throw new MissingRequiredPropertyException("RegistryRegistryArgs", "address"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAmazonec2CredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAmazonec2CredentialConfig.java index 49647985c..791fcfcb6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAmazonec2CredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAmazonec2CredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,17 +73,24 @@ public Builder(CloudCredentialAmazonec2CredentialConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialAmazonec2CredentialConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder defaultRegion(@Nullable String defaultRegion) { + this.defaultRegion = defaultRegion; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialAmazonec2CredentialConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } public CloudCredentialAmazonec2CredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAzureCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAzureCredentialConfig.java index 875aa689a..143e18c40 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAzureCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialAzureCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,26 +101,37 @@ public Builder(CloudCredentialAzureCredentialConfig defaults) { @CustomType.Setter public Builder clientId(String clientId) { - this.clientId = Objects.requireNonNull(clientId); + if (clientId == null) { + throw new MissingRequiredPropertyException("CloudCredentialAzureCredentialConfig", "clientId"); + } + this.clientId = clientId; return this; } @CustomType.Setter public Builder clientSecret(String clientSecret) { - this.clientSecret = Objects.requireNonNull(clientSecret); + if (clientSecret == null) { + throw new MissingRequiredPropertyException("CloudCredentialAzureCredentialConfig", "clientSecret"); + } + this.clientSecret = clientSecret; return this; } @CustomType.Setter public Builder environment(@Nullable String environment) { + this.environment = environment; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("CloudCredentialAzureCredentialConfig", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tenantId(@Nullable String tenantId) { + this.tenantId = tenantId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialDigitaloceanCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialDigitaloceanCredentialConfig.java index ee297d2c6..49e894a29 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialDigitaloceanCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialDigitaloceanCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(CloudCredentialDigitaloceanCredentialConfig defaults) { @CustomType.Setter public Builder accessToken(String accessToken) { - this.accessToken = Objects.requireNonNull(accessToken); + if (accessToken == null) { + throw new MissingRequiredPropertyException("CloudCredentialDigitaloceanCredentialConfig", "accessToken"); + } + this.accessToken = accessToken; return this; } public CloudCredentialDigitaloceanCredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialGoogleCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialGoogleCredentialConfig.java index 418dd88c1..6388a942f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialGoogleCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialGoogleCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(CloudCredentialGoogleCredentialConfig defaults) { @CustomType.Setter public Builder authEncodedJson(String authEncodedJson) { - this.authEncodedJson = Objects.requireNonNull(authEncodedJson); + if (authEncodedJson == null) { + throw new MissingRequiredPropertyException("CloudCredentialGoogleCredentialConfig", "authEncodedJson"); + } + this.authEncodedJson = authEncodedJson; return this; } public CloudCredentialGoogleCredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialHarvesterCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialHarvesterCredentialConfig.java index fd070d978..070824c4f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialHarvesterCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialHarvesterCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,17 +73,24 @@ public Builder(CloudCredentialHarvesterCredentialConfig defaults) { @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder clusterType(String clusterType) { - this.clusterType = Objects.requireNonNull(clusterType); + if (clusterType == null) { + throw new MissingRequiredPropertyException("CloudCredentialHarvesterCredentialConfig", "clusterType"); + } + this.clusterType = clusterType; return this; } @CustomType.Setter public Builder kubeconfigContent(String kubeconfigContent) { - this.kubeconfigContent = Objects.requireNonNull(kubeconfigContent); + if (kubeconfigContent == null) { + throw new MissingRequiredPropertyException("CloudCredentialHarvesterCredentialConfig", "kubeconfigContent"); + } + this.kubeconfigContent = kubeconfigContent; return this; } public CloudCredentialHarvesterCredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialLinodeCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialLinodeCredentialConfig.java index b8fe13d86..5c5cab0ee 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialLinodeCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialLinodeCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(CloudCredentialLinodeCredentialConfig defaults) { @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("CloudCredentialLinodeCredentialConfig", "token"); + } + this.token = token; return this; } public CloudCredentialLinodeCredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialOpenstackCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialOpenstackCredentialConfig.java index d385994c1..7522404e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialOpenstackCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialOpenstackCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(CloudCredentialOpenstackCredentialConfig defaults) { @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("CloudCredentialOpenstackCredentialConfig", "password"); + } + this.password = password; return this; } public CloudCredentialOpenstackCredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialS3CredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialS3CredentialConfig.java index 521255704..46bc42472 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialS3CredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialS3CredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -143,42 +144,54 @@ public Builder(CloudCredentialS3CredentialConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialS3CredentialConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder defaultBucket(@Nullable String defaultBucket) { + this.defaultBucket = defaultBucket; return this; } @CustomType.Setter public Builder defaultEndpoint(@Nullable String defaultEndpoint) { + this.defaultEndpoint = defaultEndpoint; return this; } @CustomType.Setter public Builder defaultEndpointCa(@Nullable String defaultEndpointCa) { + this.defaultEndpointCa = defaultEndpointCa; return this; } @CustomType.Setter public Builder defaultFolder(@Nullable String defaultFolder) { + this.defaultFolder = defaultFolder; return this; } @CustomType.Setter public Builder defaultRegion(@Nullable String defaultRegion) { + this.defaultRegion = defaultRegion; return this; } @CustomType.Setter public Builder defaultSkipSslVerify(@Nullable Boolean defaultSkipSslVerify) { + this.defaultSkipSslVerify = defaultSkipSslVerify; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("CloudCredentialS3CredentialConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } public CloudCredentialS3CredentialConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialVsphereCredentialConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialVsphereCredentialConfig.java index 80a051188..27d03bc27 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialVsphereCredentialConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/CloudCredentialVsphereCredentialConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,31 @@ public Builder(CloudCredentialVsphereCredentialConfig defaults) { @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("CloudCredentialVsphereCredentialConfig", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("CloudCredentialVsphereCredentialConfig", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder vcenter(String vcenter) { - this.vcenter = Objects.requireNonNull(vcenter); + if (vcenter == null) { + throw new MissingRequiredPropertyException("CloudCredentialVsphereCredentialConfig", "vcenter"); + } + this.vcenter = vcenter; return this; } @CustomType.Setter public Builder vcenterPort(@Nullable String vcenterPort) { + this.vcenterPort = vcenterPort; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAgentEnvVar.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAgentEnvVar.java index 3a0961d87..5f8b6fbf1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAgentEnvVar.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAgentEnvVar.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(ClusterAgentEnvVar defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterAgentEnvVar", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ClusterAgentEnvVar", "value"); + } + this.value = value; return this; } public ClusterAgentEnvVar build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfig.java index b64c1ae4a..50945265d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -589,181 +590,235 @@ public Builder(ClusterAksConfig defaults) { @CustomType.Setter public Builder aadServerAppSecret(@Nullable String aadServerAppSecret) { + this.aadServerAppSecret = aadServerAppSecret; return this; } @CustomType.Setter public Builder aadTenantId(@Nullable String aadTenantId) { + this.aadTenantId = aadTenantId; return this; } @CustomType.Setter public Builder addClientAppId(@Nullable String addClientAppId) { + this.addClientAppId = addClientAppId; return this; } @CustomType.Setter public Builder addServerAppId(@Nullable String addServerAppId) { + this.addServerAppId = addServerAppId; return this; } @CustomType.Setter public Builder adminUsername(@Nullable String adminUsername) { + this.adminUsername = adminUsername; return this; } @CustomType.Setter public Builder agentDnsPrefix(String agentDnsPrefix) { - this.agentDnsPrefix = Objects.requireNonNull(agentDnsPrefix); + if (agentDnsPrefix == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "agentDnsPrefix"); + } + this.agentDnsPrefix = agentDnsPrefix; return this; } @CustomType.Setter public Builder agentOsDiskSize(@Nullable Integer agentOsDiskSize) { + this.agentOsDiskSize = agentOsDiskSize; return this; } @CustomType.Setter public Builder agentPoolName(@Nullable String agentPoolName) { + this.agentPoolName = agentPoolName; return this; } @CustomType.Setter public Builder agentStorageProfile(@Nullable String agentStorageProfile) { + this.agentStorageProfile = agentStorageProfile; return this; } @CustomType.Setter public Builder agentVmSize(@Nullable String agentVmSize) { + this.agentVmSize = agentVmSize; return this; } @CustomType.Setter public Builder authBaseUrl(@Nullable String authBaseUrl) { + this.authBaseUrl = authBaseUrl; return this; } @CustomType.Setter public Builder baseUrl(@Nullable String baseUrl) { + this.baseUrl = baseUrl; return this; } @CustomType.Setter public Builder clientId(String clientId) { - this.clientId = Objects.requireNonNull(clientId); + if (clientId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "clientId"); + } + this.clientId = clientId; return this; } @CustomType.Setter public Builder clientSecret(String clientSecret) { - this.clientSecret = Objects.requireNonNull(clientSecret); + if (clientSecret == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "clientSecret"); + } + this.clientSecret = clientSecret; return this; } @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder dnsServiceIp(@Nullable String dnsServiceIp) { + this.dnsServiceIp = dnsServiceIp; return this; } @CustomType.Setter public Builder dockerBridgeCidr(@Nullable String dockerBridgeCidr) { + this.dockerBridgeCidr = dockerBridgeCidr; return this; } @CustomType.Setter public Builder enableHttpApplicationRouting(@Nullable Boolean enableHttpApplicationRouting) { + this.enableHttpApplicationRouting = enableHttpApplicationRouting; return this; } @CustomType.Setter public Builder enableMonitoring(@Nullable Boolean enableMonitoring) { + this.enableMonitoring = enableMonitoring; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder loadBalancerSku(@Nullable String loadBalancerSku) { + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; return this; } @CustomType.Setter public Builder logAnalyticsWorkspace(@Nullable String logAnalyticsWorkspace) { + this.logAnalyticsWorkspace = logAnalyticsWorkspace; return this; } @CustomType.Setter public Builder logAnalyticsWorkspaceResourceGroup(@Nullable String logAnalyticsWorkspaceResourceGroup) { + this.logAnalyticsWorkspaceResourceGroup = logAnalyticsWorkspaceResourceGroup; return this; } @CustomType.Setter public Builder masterDnsPrefix(String masterDnsPrefix) { - this.masterDnsPrefix = Objects.requireNonNull(masterDnsPrefix); + if (masterDnsPrefix == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "masterDnsPrefix"); + } + this.masterDnsPrefix = masterDnsPrefix; return this; } @CustomType.Setter public Builder maxPods(@Nullable Integer maxPods) { + this.maxPods = maxPods; return this; } @CustomType.Setter public Builder networkPlugin(@Nullable String networkPlugin) { + this.networkPlugin = networkPlugin; return this; } @CustomType.Setter public Builder networkPolicy(@Nullable String networkPolicy) { + this.networkPolicy = networkPolicy; return this; } @CustomType.Setter public Builder podCidr(@Nullable String podCidr) { + this.podCidr = podCidr; return this; } @CustomType.Setter public Builder resourceGroup(String resourceGroup) { - this.resourceGroup = Objects.requireNonNull(resourceGroup); + if (resourceGroup == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "resourceGroup"); + } + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder serviceCidr(@Nullable String serviceCidr) { + this.serviceCidr = serviceCidr; return this; } @CustomType.Setter public Builder sshPublicKeyContents(String sshPublicKeyContents) { - this.sshPublicKeyContents = Objects.requireNonNull(sshPublicKeyContents); + if (sshPublicKeyContents == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "sshPublicKeyContents"); + } + this.sshPublicKeyContents = sshPublicKeyContents; return this; } @CustomType.Setter public Builder subnet(String subnet) { - this.subnet = Objects.requireNonNull(subnet); + if (subnet == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "subnet"); + } + this.subnet = subnet; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tag(@Nullable Map tag) { + this.tag = tag; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -772,17 +827,26 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder virtualNetwork(String virtualNetwork) { - this.virtualNetwork = Objects.requireNonNull(virtualNetwork); + if (virtualNetwork == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "virtualNetwork"); + } + this.virtualNetwork = virtualNetwork; return this; } @CustomType.Setter public Builder virtualNetworkResourceGroup(String virtualNetworkResourceGroup) { - this.virtualNetworkResourceGroup = Objects.requireNonNull(virtualNetworkResourceGroup); + if (virtualNetworkResourceGroup == null) { + throw new MissingRequiredPropertyException("ClusterAksConfig", "virtualNetworkResourceGroup"); + } + this.virtualNetworkResourceGroup = virtualNetworkResourceGroup; return this; } public ClusterAksConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2.java index 1d116dff5..3f2271542 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterAksConfigV2NodePool; import java.lang.Boolean; import java.lang.Object; @@ -441,11 +442,13 @@ public Builder(ClusterAksConfigV2 defaults) { @CustomType.Setter public Builder authBaseUrl(@Nullable String authBaseUrl) { + this.authBaseUrl = authBaseUrl; return this; } @CustomType.Setter public Builder authorizedIpRanges(@Nullable List authorizedIpRanges) { + this.authorizedIpRanges = authorizedIpRanges; return this; } @@ -454,101 +457,123 @@ public Builder authorizedIpRanges(String... authorizedIpRanges) { } @CustomType.Setter public Builder baseUrl(@Nullable String baseUrl) { + this.baseUrl = baseUrl; return this; } @CustomType.Setter public Builder cloudCredentialId(String cloudCredentialId) { - this.cloudCredentialId = Objects.requireNonNull(cloudCredentialId); + if (cloudCredentialId == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2", "cloudCredentialId"); + } + this.cloudCredentialId = cloudCredentialId; return this; } @CustomType.Setter public Builder dnsPrefix(@Nullable String dnsPrefix) { + this.dnsPrefix = dnsPrefix; return this; } @CustomType.Setter public Builder httpApplicationRouting(@Nullable Boolean httpApplicationRouting) { + this.httpApplicationRouting = httpApplicationRouting; return this; } @CustomType.Setter public Builder imported(@Nullable Boolean imported) { + this.imported = imported; return this; } @CustomType.Setter public Builder kubernetesVersion(@Nullable String kubernetesVersion) { + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder linuxAdminUsername(@Nullable String linuxAdminUsername) { + this.linuxAdminUsername = linuxAdminUsername; return this; } @CustomType.Setter public Builder linuxSshPublicKey(@Nullable String linuxSshPublicKey) { + this.linuxSshPublicKey = linuxSshPublicKey; return this; } @CustomType.Setter public Builder loadBalancerSku(@Nullable String loadBalancerSku) { + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder logAnalyticsWorkspaceGroup(@Nullable String logAnalyticsWorkspaceGroup) { + this.logAnalyticsWorkspaceGroup = logAnalyticsWorkspaceGroup; return this; } @CustomType.Setter public Builder logAnalyticsWorkspaceName(@Nullable String logAnalyticsWorkspaceName) { + this.logAnalyticsWorkspaceName = logAnalyticsWorkspaceName; return this; } @CustomType.Setter public Builder monitoring(@Nullable Boolean monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder networkDnsServiceIp(@Nullable String networkDnsServiceIp) { + this.networkDnsServiceIp = networkDnsServiceIp; return this; } @CustomType.Setter public Builder networkDockerBridgeCidr(@Nullable String networkDockerBridgeCidr) { + this.networkDockerBridgeCidr = networkDockerBridgeCidr; return this; } @CustomType.Setter public Builder networkPlugin(@Nullable String networkPlugin) { + this.networkPlugin = networkPlugin; return this; } @CustomType.Setter public Builder networkPodCidr(@Nullable String networkPodCidr) { + this.networkPodCidr = networkPodCidr; return this; } @CustomType.Setter public Builder networkPolicy(@Nullable String networkPolicy) { + this.networkPolicy = networkPolicy; return this; } @CustomType.Setter public Builder networkServiceCidr(@Nullable String networkServiceCidr) { + this.networkServiceCidr = networkServiceCidr; return this; } @CustomType.Setter public Builder nodePools(@Nullable List nodePools) { + this.nodePools = nodePools; return this; } @@ -557,36 +582,47 @@ public Builder nodePools(ClusterAksConfigV2NodePool... nodePools) { } @CustomType.Setter public Builder privateCluster(@Nullable Boolean privateCluster) { + this.privateCluster = privateCluster; return this; } @CustomType.Setter public Builder resourceGroup(String resourceGroup) { - this.resourceGroup = Objects.requireNonNull(resourceGroup); + if (resourceGroup == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2", "resourceGroup"); + } + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder resourceLocation(String resourceLocation) { - this.resourceLocation = Objects.requireNonNull(resourceLocation); + if (resourceLocation == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2", "resourceLocation"); + } + this.resourceLocation = resourceLocation; return this; } @CustomType.Setter public Builder subnet(@Nullable String subnet) { + this.subnet = subnet; return this; } @CustomType.Setter public Builder tags(@Nullable Map tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder virtualNetwork(@Nullable String virtualNetwork) { + this.virtualNetwork = virtualNetwork; return this; } @CustomType.Setter public Builder virtualNetworkResourceGroup(@Nullable String virtualNetworkResourceGroup) { + this.virtualNetworkResourceGroup = virtualNetworkResourceGroup; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2NodePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2NodePool.java index e335a53cf..51dadb9db 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2NodePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAksConfigV2NodePool.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -259,6 +260,7 @@ public Builder(ClusterAksConfigV2NodePool defaults) { @CustomType.Setter public Builder availabilityZones(@Nullable List availabilityZones) { + this.availabilityZones = availabilityZones; return this; } @@ -267,71 +269,87 @@ public Builder availabilityZones(String... availabilityZones) { } @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder enableAutoScaling(@Nullable Boolean enableAutoScaling) { + this.enableAutoScaling = enableAutoScaling; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder maxCount(@Nullable Integer maxCount) { + this.maxCount = maxCount; return this; } @CustomType.Setter public Builder maxPods(@Nullable Integer maxPods) { + this.maxPods = maxPods; return this; } @CustomType.Setter public Builder maxSurge(@Nullable String maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder minCount(@Nullable Integer minCount) { + this.minCount = minCount; return this; } @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterAksConfigV2NodePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder orchestratorVersion(@Nullable String orchestratorVersion) { + this.orchestratorVersion = orchestratorVersion; return this; } @CustomType.Setter public Builder osDiskSizeGb(@Nullable Integer osDiskSizeGb) { + this.osDiskSizeGb = osDiskSizeGb; return this; } @CustomType.Setter public Builder osDiskType(@Nullable String osDiskType) { + this.osDiskType = osDiskType; return this; } @CustomType.Setter public Builder osType(@Nullable String osType) { + this.osType = osType; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -340,6 +358,7 @@ public Builder taints(String... taints) { } @CustomType.Setter public Builder vmSize(@Nullable String vmSize) { + this.vmSize = vmSize; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertGroupRecipient.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertGroupRecipient.java index a7a7baa85..f1c764e67 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertGroupRecipient.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertGroupRecipient.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -87,21 +88,27 @@ public Builder(ClusterAlertGroupRecipient defaults) { @CustomType.Setter public Builder defaultRecipient(@Nullable Boolean defaultRecipient) { + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("ClusterAlertGroupRecipient", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder notifierType(@Nullable String notifierType) { + this.notifierType = notifierType; return this; } @CustomType.Setter public Builder recipient(@Nullable String recipient) { + this.recipient = recipient; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleEventRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleEventRule.java index d892435a1..d04aa6cac 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleEventRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleEventRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(ClusterAlertRuleEventRule defaults) { @CustomType.Setter public Builder eventType(@Nullable String eventType) { + this.eventType = eventType; return this; } @CustomType.Setter public Builder resourceKind(String resourceKind) { - this.resourceKind = Objects.requireNonNull(resourceKind); + if (resourceKind == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleEventRule", "resourceKind"); + } + this.resourceKind = resourceKind; return this; } public ClusterAlertRuleEventRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleMetricRule.java index 18dcbda46..cd4238fdf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleMetricRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleMetricRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -101,27 +102,38 @@ public Builder(ClusterAlertRuleMetricRule defaults) { @CustomType.Setter public Builder comparison(@Nullable String comparison) { + this.comparison = comparison; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder duration(String duration) { - this.duration = Objects.requireNonNull(duration); + if (duration == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleMetricRule", "duration"); + } + this.duration = duration; return this; } @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleMetricRule", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder thresholdValue(Double thresholdValue) { - this.thresholdValue = Objects.requireNonNull(thresholdValue); + if (thresholdValue == null) { + throw new MissingRequiredPropertyException("ClusterAlertRuleMetricRule", "thresholdValue"); + } + this.thresholdValue = thresholdValue; return this; } public ClusterAlertRuleMetricRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleNodeRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleNodeRule.java index 772a7f73e..53278ea8f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleNodeRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleNodeRule.java @@ -103,26 +103,31 @@ public Builder(ClusterAlertRuleNodeRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } @CustomType.Setter public Builder cpuThreshold(@Nullable Integer cpuThreshold) { + this.cpuThreshold = cpuThreshold; return this; } @CustomType.Setter public Builder memThreshold(@Nullable Integer memThreshold) { + this.memThreshold = memThreshold; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleSystemServiceRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleSystemServiceRule.java index 0ab225d0c..0104e8076 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleSystemServiceRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlertRuleSystemServiceRule.java @@ -44,6 +44,7 @@ public Builder(ClusterAlertRuleSystemServiceRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java index fa5b210bf..0f2c00150 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterGroupRecipient.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -87,21 +88,27 @@ public Builder(ClusterAlterGroupRecipient defaults) { @CustomType.Setter public Builder defaultRecipient(@Nullable Boolean defaultRecipient) { + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("ClusterAlterGroupRecipient", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder notifierType(@Nullable String notifierType) { + this.notifierType = notifierType; return this; } @CustomType.Setter public Builder recipient(@Nullable String recipient) { + this.recipient = recipient; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java index 8e99ee795..00e961cc7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleEventRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -42,12 +43,16 @@ public Builder(ClusterAlterRuleEventRule defaults) { @CustomType.Setter public Builder eventType(@Nullable String eventType) { + this.eventType = eventType; return this; } @CustomType.Setter public Builder resourceKind(String resourceKind) { - this.resourceKind = Objects.requireNonNull(resourceKind); + if (resourceKind == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleEventRule", "resourceKind"); + } + this.resourceKind = resourceKind; return this; } public ClusterAlterRuleEventRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java index 727fe1bcd..1c003a41f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleMetricRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -69,27 +70,38 @@ public Builder(ClusterAlterRuleMetricRule defaults) { @CustomType.Setter public Builder comparison(@Nullable String comparison) { + this.comparison = comparison; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder duration(String duration) { - this.duration = Objects.requireNonNull(duration); + if (duration == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRule", "duration"); + } + this.duration = duration; return this; } @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRule", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder thresholdValue(Double thresholdValue) { - this.thresholdValue = Objects.requireNonNull(thresholdValue); + if (thresholdValue == null) { + throw new MissingRequiredPropertyException("ClusterAlterRuleMetricRule", "thresholdValue"); + } + this.thresholdValue = thresholdValue; return this; } public ClusterAlterRuleMetricRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java index 6d27b54bb..78c98092f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleNodeRule.java @@ -63,26 +63,31 @@ public Builder(ClusterAlterRuleNodeRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } @CustomType.Setter public Builder cpuThreshold(@Nullable Integer cpuThreshold) { + this.cpuThreshold = cpuThreshold; return this; } @CustomType.Setter public Builder memThreshold(@Nullable Integer memThreshold) { + this.memThreshold = memThreshold; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java index 05c555501..20f67462b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterAlterRuleSystemServiceRule.java @@ -36,6 +36,7 @@ public Builder(ClusterAlterRuleSystemServiceRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomization.java index 82cd3c464..323fbdc87 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomization.java @@ -75,6 +75,7 @@ public Builder(ClusterClusterAgentDeploymentCustomization defaults) { @CustomType.Setter public Builder appendTolerations(@Nullable List appendTolerations) { + this.appendTolerations = appendTolerations; return this; } @@ -83,11 +84,13 @@ public Builder appendTolerations(ClusterClusterAgentDeploymentCustomizationAppen } @CustomType.Setter public Builder overrideAffinity(@Nullable String overrideAffinity) { + this.overrideAffinity = overrideAffinity; return this; } @CustomType.Setter public Builder overrideResourceRequirements(@Nullable List overrideResourceRequirements) { + this.overrideResourceRequirements = overrideResourceRequirements; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationAppendToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationAppendToleration.java index 8a1bc8951..a44a35195 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationAppendToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationAppendToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterClusterAgentDeploymentCustomizationAppendToleration defaul @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterClusterAgentDeploymentCustomizationAppendToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement.java index 4ee3fdb98..64e5bf3dd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAgentDeploymentCustomizationOverrideResourceRequirement.java @@ -86,21 +86,25 @@ public Builder(ClusterClusterAgentDeploymentCustomizationOverrideResourceRequire @CustomType.Setter public Builder cpuLimit(@Nullable String cpuLimit) { + this.cpuLimit = cpuLimit; return this; } @CustomType.Setter public Builder cpuRequest(@Nullable String cpuRequest) { + this.cpuRequest = cpuRequest; return this; } @CustomType.Setter public Builder memoryLimit(@Nullable String memoryLimit) { + this.memoryLimit = memoryLimit; return this; } @CustomType.Setter public Builder memoryRequest(@Nullable String memoryRequest) { + this.memoryRequest = memoryRequest; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAuthEndpoint.java index 26dd5bc93..8f9c211fa 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterAuthEndpoint.java @@ -73,16 +73,19 @@ public Builder(ClusterClusterAuthEndpoint defaults) { @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterMonitoringInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterMonitoringInput.java index 1a77b183f..ff2b46240 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterMonitoringInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterMonitoringInput.java @@ -60,11 +60,13 @@ public Builder(ClusterClusterMonitoringInput defaults) { @CustomType.Setter public Builder answers(@Nullable Map answers) { + this.answers = answers; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterRegistrationToken.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterRegistrationToken.java index ade40fb91..17a6a9bb7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterRegistrationToken.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterRegistrationToken.java @@ -214,66 +214,79 @@ public Builder(ClusterClusterRegistrationToken defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder command(@Nullable String command) { + this.command = command; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder insecureCommand(@Nullable String insecureCommand) { + this.insecureCommand = insecureCommand; return this; } @CustomType.Setter public Builder insecureNodeCommand(@Nullable String insecureNodeCommand) { + this.insecureNodeCommand = insecureNodeCommand; return this; } @CustomType.Setter public Builder insecureWindowsNodeCommand(@Nullable String insecureWindowsNodeCommand) { + this.insecureWindowsNodeCommand = insecureWindowsNodeCommand; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder manifestUrl(@Nullable String manifestUrl) { + this.manifestUrl = manifestUrl; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodeCommand(@Nullable String nodeCommand) { + this.nodeCommand = nodeCommand; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } @CustomType.Setter public Builder windowsNodeCommand(@Nullable String windowsNodeCommand) { + this.windowsNodeCommand = windowsNodeCommand; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateAnswers.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateAnswers.java index 690b1b56c..89bc32d17 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateAnswers.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateAnswers.java @@ -74,16 +74,19 @@ public Builder(ClusterClusterTemplateAnswers defaults) { @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder values(@Nullable Map values) { + this.values = values; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateQuestion.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateQuestion.java index 6a19eaea0..c7b623e9f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateQuestion.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterClusterTemplateQuestion.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -87,22 +88,30 @@ public Builder(ClusterClusterTemplateQuestion defaults) { @CustomType.Setter("default") public Builder default_(String default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("ClusterClusterTemplateQuestion", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder variable(String variable) { - this.variable = Objects.requireNonNull(variable); + if (variable == null) { + throw new MissingRequiredPropertyException("ClusterClusterTemplateQuestion", "variable"); + } + this.variable = variable; return this; } public ClusterClusterTemplateQuestion build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfig.java index 622777c5b..5f87d0010 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -291,71 +292,91 @@ public Builder(ClusterEksConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("ClusterEksConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder ami(@Nullable String ami) { + this.ami = ami; return this; } @CustomType.Setter public Builder associateWorkerNodePublicIp(@Nullable Boolean associateWorkerNodePublicIp) { + this.associateWorkerNodePublicIp = associateWorkerNodePublicIp; return this; } @CustomType.Setter public Builder desiredNodes(@Nullable Integer desiredNodes) { + this.desiredNodes = desiredNodes; return this; } @CustomType.Setter public Builder ebsEncryption(@Nullable Boolean ebsEncryption) { + this.ebsEncryption = ebsEncryption; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder keyPairName(@Nullable String keyPairName) { + this.keyPairName = keyPairName; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterEksConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder maximumNodes(@Nullable Integer maximumNodes) { + this.maximumNodes = maximumNodes; return this; } @CustomType.Setter public Builder minimumNodes(@Nullable Integer minimumNodes) { + this.minimumNodes = minimumNodes; return this; } @CustomType.Setter public Builder nodeVolumeSize(@Nullable Integer nodeVolumeSize) { + this.nodeVolumeSize = nodeVolumeSize; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("ClusterEksConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { + this.securityGroups = securityGroups; return this; } @@ -364,16 +385,19 @@ public Builder securityGroups(String... securityGroups) { } @CustomType.Setter public Builder serviceRole(@Nullable String serviceRole) { + this.serviceRole = serviceRole; return this; } @CustomType.Setter public Builder sessionToken(@Nullable String sessionToken) { + this.sessionToken = sessionToken; return this; } @CustomType.Setter public Builder subnets(@Nullable List subnets) { + this.subnets = subnets; return this; } @@ -382,11 +406,13 @@ public Builder subnets(String... subnets) { } @CustomType.Setter public Builder userData(@Nullable String userData) { + this.userData = userData; return this; } @CustomType.Setter public Builder virtualNetwork(@Nullable String virtualNetwork) { + this.virtualNetwork = virtualNetwork; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java index 7ddf91a47..922123893 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterEksConfigV2NodeGroup; import java.lang.Boolean; import java.lang.Object; @@ -259,26 +260,33 @@ public Builder(ClusterEksConfigV2 defaults) { @CustomType.Setter public Builder cloudCredentialId(String cloudCredentialId) { - this.cloudCredentialId = Objects.requireNonNull(cloudCredentialId); + if (cloudCredentialId == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigV2", "cloudCredentialId"); + } + this.cloudCredentialId = cloudCredentialId; return this; } @CustomType.Setter public Builder imported(@Nullable Boolean imported) { + this.imported = imported; return this; } @CustomType.Setter public Builder kmsKey(@Nullable String kmsKey) { + this.kmsKey = kmsKey; return this; } @CustomType.Setter public Builder kubernetesVersion(@Nullable String kubernetesVersion) { + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder loggingTypes(@Nullable List loggingTypes) { + this.loggingTypes = loggingTypes; return this; } @@ -287,11 +295,13 @@ public Builder loggingTypes(String... loggingTypes) { } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodeGroups(@Nullable List nodeGroups) { + this.nodeGroups = nodeGroups; return this; } @@ -300,16 +310,19 @@ public Builder nodeGroups(ClusterEksConfigV2NodeGroup... nodeGroups) { } @CustomType.Setter public Builder privateAccess(@Nullable Boolean privateAccess) { + this.privateAccess = privateAccess; return this; } @CustomType.Setter public Builder publicAccess(@Nullable Boolean publicAccess) { + this.publicAccess = publicAccess; return this; } @CustomType.Setter public Builder publicAccessSources(@Nullable List publicAccessSources) { + this.publicAccessSources = publicAccessSources; return this; } @@ -318,16 +331,19 @@ public Builder publicAccessSources(String... publicAccessSources) { } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretsEncryption(@Nullable Boolean secretsEncryption) { + this.secretsEncryption = secretsEncryption; return this; } @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { + this.securityGroups = securityGroups; return this; } @@ -336,11 +352,13 @@ public Builder securityGroups(String... securityGroups) { } @CustomType.Setter public Builder serviceRole(@Nullable String serviceRole) { + this.serviceRole = serviceRole; return this; } @CustomType.Setter public Builder subnets(@Nullable List subnets) { + this.subnets = subnets; return this; } @@ -349,6 +367,7 @@ public Builder subnets(String... subnets) { } @CustomType.Setter public Builder tags(@Nullable Map tags) { + this.tags = tags; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroup.java index 47f554f39..24d893e53 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterEksConfigV2NodeGroupLaunchTemplate; import java.lang.Boolean; import java.lang.Integer; @@ -302,41 +303,49 @@ public Builder(ClusterEksConfigV2NodeGroup defaults) { @CustomType.Setter public Builder desiredSize(@Nullable Integer desiredSize) { + this.desiredSize = desiredSize; return this; } @CustomType.Setter public Builder diskSize(@Nullable Integer diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder ec2SshKey(@Nullable String ec2SshKey) { + this.ec2SshKey = ec2SshKey; return this; } @CustomType.Setter public Builder gpu(@Nullable Boolean gpu) { + this.gpu = gpu; return this; } @CustomType.Setter public Builder imageId(@Nullable String imageId) { + this.imageId = imageId; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder launchTemplates(@Nullable List launchTemplates) { + this.launchTemplates = launchTemplates; return this; } @@ -345,36 +354,45 @@ public Builder launchTemplates(ClusterEksConfigV2NodeGroupLaunchTemplate... laun } @CustomType.Setter public Builder maxSize(@Nullable Integer maxSize) { + this.maxSize = maxSize; return this; } @CustomType.Setter public Builder minSize(@Nullable Integer minSize) { + this.minSize = minSize; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigV2NodeGroup", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeRole(@Nullable String nodeRole) { + this.nodeRole = nodeRole; return this; } @CustomType.Setter public Builder requestSpotInstances(@Nullable Boolean requestSpotInstances) { + this.requestSpotInstances = requestSpotInstances; return this; } @CustomType.Setter public Builder resourceTags(@Nullable Map resourceTags) { + this.resourceTags = resourceTags; return this; } @CustomType.Setter public Builder spotInstanceTypes(@Nullable List spotInstanceTypes) { + this.spotInstanceTypes = spotInstanceTypes; return this; } @@ -383,6 +401,7 @@ public Builder spotInstanceTypes(String... spotInstanceTypes) { } @CustomType.Setter public Builder subnets(@Nullable List subnets) { + this.subnets = subnets; return this; } @@ -391,16 +410,19 @@ public Builder subnets(String... subnets) { } @CustomType.Setter public Builder tags(@Nullable Map tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder userData(@Nullable String userData) { + this.userData = userData; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroupLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroupLaunchTemplate.java index fa1887640..ab3cd7840 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroupLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterEksConfigV2NodeGroupLaunchTemplate.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,16 +74,21 @@ public Builder(ClusterEksConfigV2NodeGroupLaunchTemplate defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("ClusterEksConfigV2NodeGroupLaunchTemplate", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder version(@Nullable Integer version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomization.java index 3c0285db8..d10139407 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomization.java @@ -75,6 +75,7 @@ public Builder(ClusterFleetAgentDeploymentCustomization defaults) { @CustomType.Setter public Builder appendTolerations(@Nullable List appendTolerations) { + this.appendTolerations = appendTolerations; return this; } @@ -83,11 +84,13 @@ public Builder appendTolerations(ClusterFleetAgentDeploymentCustomizationAppendT } @CustomType.Setter public Builder overrideAffinity(@Nullable String overrideAffinity) { + this.overrideAffinity = overrideAffinity; return this; } @CustomType.Setter public Builder overrideResourceRequirements(@Nullable List overrideResourceRequirements) { + this.overrideResourceRequirements = overrideResourceRequirements; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationAppendToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationAppendToleration.java index bd2a05582..55c6030c2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationAppendToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationAppendToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterFleetAgentDeploymentCustomizationAppendToleration defaults @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterFleetAgentDeploymentCustomizationAppendToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement.java index a8356f71d..1ed1c1f8c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterFleetAgentDeploymentCustomizationOverrideResourceRequirement.java @@ -86,21 +86,25 @@ public Builder(ClusterFleetAgentDeploymentCustomizationOverrideResourceRequireme @CustomType.Setter public Builder cpuLimit(@Nullable String cpuLimit) { + this.cpuLimit = cpuLimit; return this; } @CustomType.Setter public Builder cpuRequest(@Nullable String cpuRequest) { + this.cpuRequest = cpuRequest; return this; } @CustomType.Setter public Builder memoryLimit(@Nullable String memoryLimit) { + this.memoryLimit = memoryLimit; return this; } @CustomType.Setter public Builder memoryRequest(@Nullable String memoryRequest) { + this.memoryRequest = memoryRequest; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfig.java index 0a9d71187..7d9d0abda 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -777,162 +778,216 @@ public Builder(ClusterGkeConfig defaults) { @CustomType.Setter public Builder clusterIpv4Cidr(String clusterIpv4Cidr) { - this.clusterIpv4Cidr = Objects.requireNonNull(clusterIpv4Cidr); + if (clusterIpv4Cidr == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "clusterIpv4Cidr"); + } + this.clusterIpv4Cidr = clusterIpv4Cidr; return this; } @CustomType.Setter public Builder credential(String credential) { - this.credential = Objects.requireNonNull(credential); + if (credential == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "credential"); + } + this.credential = credential; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder diskSizeGb(@Nullable Integer diskSizeGb) { + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder diskType(String diskType) { - this.diskType = Objects.requireNonNull(diskType); + if (diskType == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "diskType"); + } + this.diskType = diskType; return this; } @CustomType.Setter public Builder enableAlphaFeature(@Nullable Boolean enableAlphaFeature) { + this.enableAlphaFeature = enableAlphaFeature; return this; } @CustomType.Setter public Builder enableAutoRepair(@Nullable Boolean enableAutoRepair) { + this.enableAutoRepair = enableAutoRepair; return this; } @CustomType.Setter public Builder enableAutoUpgrade(@Nullable Boolean enableAutoUpgrade) { + this.enableAutoUpgrade = enableAutoUpgrade; return this; } @CustomType.Setter public Builder enableHorizontalPodAutoscaling(@Nullable Boolean enableHorizontalPodAutoscaling) { + this.enableHorizontalPodAutoscaling = enableHorizontalPodAutoscaling; return this; } @CustomType.Setter public Builder enableHttpLoadBalancing(@Nullable Boolean enableHttpLoadBalancing) { + this.enableHttpLoadBalancing = enableHttpLoadBalancing; return this; } @CustomType.Setter public Builder enableKubernetesDashboard(@Nullable Boolean enableKubernetesDashboard) { + this.enableKubernetesDashboard = enableKubernetesDashboard; return this; } @CustomType.Setter public Builder enableLegacyAbac(@Nullable Boolean enableLegacyAbac) { + this.enableLegacyAbac = enableLegacyAbac; return this; } @CustomType.Setter public Builder enableMasterAuthorizedNetwork(@Nullable Boolean enableMasterAuthorizedNetwork) { + this.enableMasterAuthorizedNetwork = enableMasterAuthorizedNetwork; return this; } @CustomType.Setter public Builder enableNetworkPolicyConfig(@Nullable Boolean enableNetworkPolicyConfig) { + this.enableNetworkPolicyConfig = enableNetworkPolicyConfig; return this; } @CustomType.Setter public Builder enableNodepoolAutoscaling(@Nullable Boolean enableNodepoolAutoscaling) { + this.enableNodepoolAutoscaling = enableNodepoolAutoscaling; return this; } @CustomType.Setter public Builder enablePrivateEndpoint(@Nullable Boolean enablePrivateEndpoint) { + this.enablePrivateEndpoint = enablePrivateEndpoint; return this; } @CustomType.Setter public Builder enablePrivateNodes(@Nullable Boolean enablePrivateNodes) { + this.enablePrivateNodes = enablePrivateNodes; return this; } @CustomType.Setter public Builder enableStackdriverLogging(@Nullable Boolean enableStackdriverLogging) { + this.enableStackdriverLogging = enableStackdriverLogging; return this; } @CustomType.Setter public Builder enableStackdriverMonitoring(@Nullable Boolean enableStackdriverMonitoring) { + this.enableStackdriverMonitoring = enableStackdriverMonitoring; return this; } @CustomType.Setter public Builder imageType(String imageType) { - this.imageType = Objects.requireNonNull(imageType); + if (imageType == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "imageType"); + } + this.imageType = imageType; return this; } @CustomType.Setter public Builder ipPolicyClusterIpv4CidrBlock(String ipPolicyClusterIpv4CidrBlock) { - this.ipPolicyClusterIpv4CidrBlock = Objects.requireNonNull(ipPolicyClusterIpv4CidrBlock); + if (ipPolicyClusterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "ipPolicyClusterIpv4CidrBlock"); + } + this.ipPolicyClusterIpv4CidrBlock = ipPolicyClusterIpv4CidrBlock; return this; } @CustomType.Setter public Builder ipPolicyClusterSecondaryRangeName(String ipPolicyClusterSecondaryRangeName) { - this.ipPolicyClusterSecondaryRangeName = Objects.requireNonNull(ipPolicyClusterSecondaryRangeName); + if (ipPolicyClusterSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "ipPolicyClusterSecondaryRangeName"); + } + this.ipPolicyClusterSecondaryRangeName = ipPolicyClusterSecondaryRangeName; return this; } @CustomType.Setter public Builder ipPolicyCreateSubnetwork(@Nullable Boolean ipPolicyCreateSubnetwork) { + this.ipPolicyCreateSubnetwork = ipPolicyCreateSubnetwork; return this; } @CustomType.Setter public Builder ipPolicyNodeIpv4CidrBlock(String ipPolicyNodeIpv4CidrBlock) { - this.ipPolicyNodeIpv4CidrBlock = Objects.requireNonNull(ipPolicyNodeIpv4CidrBlock); + if (ipPolicyNodeIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "ipPolicyNodeIpv4CidrBlock"); + } + this.ipPolicyNodeIpv4CidrBlock = ipPolicyNodeIpv4CidrBlock; return this; } @CustomType.Setter public Builder ipPolicyServicesIpv4CidrBlock(String ipPolicyServicesIpv4CidrBlock) { - this.ipPolicyServicesIpv4CidrBlock = Objects.requireNonNull(ipPolicyServicesIpv4CidrBlock); + if (ipPolicyServicesIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "ipPolicyServicesIpv4CidrBlock"); + } + this.ipPolicyServicesIpv4CidrBlock = ipPolicyServicesIpv4CidrBlock; return this; } @CustomType.Setter public Builder ipPolicyServicesSecondaryRangeName(String ipPolicyServicesSecondaryRangeName) { - this.ipPolicyServicesSecondaryRangeName = Objects.requireNonNull(ipPolicyServicesSecondaryRangeName); + if (ipPolicyServicesSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "ipPolicyServicesSecondaryRangeName"); + } + this.ipPolicyServicesSecondaryRangeName = ipPolicyServicesSecondaryRangeName; return this; } @CustomType.Setter public Builder ipPolicySubnetworkName(String ipPolicySubnetworkName) { - this.ipPolicySubnetworkName = Objects.requireNonNull(ipPolicySubnetworkName); + if (ipPolicySubnetworkName == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "ipPolicySubnetworkName"); + } + this.ipPolicySubnetworkName = ipPolicySubnetworkName; return this; } @CustomType.Setter public Builder issueClientCertificate(@Nullable Boolean issueClientCertificate) { + this.issueClientCertificate = issueClientCertificate; return this; } @CustomType.Setter public Builder kubernetesDashboard(@Nullable Boolean kubernetesDashboard) { + this.kubernetesDashboard = kubernetesDashboard; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder localSsdCount(@Nullable Integer localSsdCount) { + this.localSsdCount = localSsdCount; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "locations"); + } + this.locations = locations; return this; } public Builder locations(String... locations) { @@ -940,16 +995,23 @@ public Builder locations(String... locations) { } @CustomType.Setter public Builder machineType(String machineType) { - this.machineType = Objects.requireNonNull(machineType); + if (machineType == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "machineType"); + } + this.machineType = machineType; return this; } @CustomType.Setter public Builder maintenanceWindow(String maintenanceWindow) { - this.maintenanceWindow = Objects.requireNonNull(maintenanceWindow); + if (maintenanceWindow == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "maintenanceWindow"); + } + this.maintenanceWindow = maintenanceWindow; return this; } @CustomType.Setter public Builder masterAuthorizedNetworkCidrBlocks(@Nullable List masterAuthorizedNetworkCidrBlocks) { + this.masterAuthorizedNetworkCidrBlocks = masterAuthorizedNetworkCidrBlocks; return this; } @@ -958,47 +1020,68 @@ public Builder masterAuthorizedNetworkCidrBlocks(String... masterAuthorizedNetwo } @CustomType.Setter public Builder masterIpv4CidrBlock(String masterIpv4CidrBlock) { - this.masterIpv4CidrBlock = Objects.requireNonNull(masterIpv4CidrBlock); + if (masterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "masterIpv4CidrBlock"); + } + this.masterIpv4CidrBlock = masterIpv4CidrBlock; return this; } @CustomType.Setter public Builder masterVersion(String masterVersion) { - this.masterVersion = Objects.requireNonNull(masterVersion); + if (masterVersion == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "masterVersion"); + } + this.masterVersion = masterVersion; return this; } @CustomType.Setter public Builder maxNodeCount(@Nullable Integer maxNodeCount) { + this.maxNodeCount = maxNodeCount; return this; } @CustomType.Setter public Builder minNodeCount(@Nullable Integer minNodeCount) { + this.minNodeCount = minNodeCount; return this; } @CustomType.Setter public Builder network(String network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } @CustomType.Setter public Builder nodePool(String nodePool) { - this.nodePool = Objects.requireNonNull(nodePool); + if (nodePool == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "nodePool"); + } + this.nodePool = nodePool; return this; } @CustomType.Setter public Builder nodeVersion(String nodeVersion) { - this.nodeVersion = Objects.requireNonNull(nodeVersion); + if (nodeVersion == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "nodeVersion"); + } + this.nodeVersion = nodeVersion; return this; } @CustomType.Setter public Builder oauthScopes(List oauthScopes) { - this.oauthScopes = Objects.requireNonNull(oauthScopes); + if (oauthScopes == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "oauthScopes"); + } + this.oauthScopes = oauthScopes; return this; } public Builder oauthScopes(String... oauthScopes) { @@ -1006,36 +1089,49 @@ public Builder oauthScopes(String... oauthScopes) { } @CustomType.Setter public Builder preemptible(@Nullable Boolean preemptible) { + this.preemptible = preemptible; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder resourceLabels(@Nullable Map resourceLabels) { + this.resourceLabels = resourceLabels; return this; } @CustomType.Setter public Builder serviceAccount(String serviceAccount) { - this.serviceAccount = Objects.requireNonNull(serviceAccount); + if (serviceAccount == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "serviceAccount"); + } + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder subNetwork(String subNetwork) { - this.subNetwork = Objects.requireNonNull(subNetwork); + if (subNetwork == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfig", "subNetwork"); + } + this.subNetwork = subNetwork; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -1044,11 +1140,13 @@ public Builder taints(String... taints) { } @CustomType.Setter public Builder useIpAliases(@Nullable Boolean useIpAliases) { + this.useIpAliases = useIpAliases; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2.java index d330ed2cd..7d4bb123e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2ClusterAddons; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2IpAllocationPolicy; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2MasterAuthorizedNetworksConfig; @@ -361,51 +362,63 @@ public Builder(ClusterGkeConfigV2 defaults) { @CustomType.Setter public Builder clusterAddons(@Nullable ClusterGkeConfigV2ClusterAddons clusterAddons) { + this.clusterAddons = clusterAddons; return this; } @CustomType.Setter public Builder clusterIpv4CidrBlock(@Nullable String clusterIpv4CidrBlock) { + this.clusterIpv4CidrBlock = clusterIpv4CidrBlock; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder enableKubernetesAlpha(@Nullable Boolean enableKubernetesAlpha) { + this.enableKubernetesAlpha = enableKubernetesAlpha; return this; } @CustomType.Setter public Builder googleCredentialSecret(String googleCredentialSecret) { - this.googleCredentialSecret = Objects.requireNonNull(googleCredentialSecret); + if (googleCredentialSecret == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2", "googleCredentialSecret"); + } + this.googleCredentialSecret = googleCredentialSecret; return this; } @CustomType.Setter public Builder imported(@Nullable Boolean imported) { + this.imported = imported; return this; } @CustomType.Setter public Builder ipAllocationPolicy(@Nullable ClusterGkeConfigV2IpAllocationPolicy ipAllocationPolicy) { + this.ipAllocationPolicy = ipAllocationPolicy; return this; } @CustomType.Setter public Builder kubernetesVersion(@Nullable String kubernetesVersion) { + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder locations(@Nullable List locations) { + this.locations = locations; return this; } @@ -414,41 +427,51 @@ public Builder locations(String... locations) { } @CustomType.Setter public Builder loggingService(@Nullable String loggingService) { + this.loggingService = loggingService; return this; } @CustomType.Setter public Builder maintenanceWindow(@Nullable String maintenanceWindow) { + this.maintenanceWindow = maintenanceWindow; return this; } @CustomType.Setter public Builder masterAuthorizedNetworksConfig(@Nullable ClusterGkeConfigV2MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig) { + this.masterAuthorizedNetworksConfig = masterAuthorizedNetworksConfig; return this; } @CustomType.Setter public Builder monitoringService(@Nullable String monitoringService) { + this.monitoringService = monitoringService; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder network(@Nullable String network) { + this.network = network; return this; } @CustomType.Setter public Builder networkPolicyEnabled(@Nullable Boolean networkPolicyEnabled) { + this.networkPolicyEnabled = networkPolicyEnabled; return this; } @CustomType.Setter public Builder nodePools(@Nullable List nodePools) { + this.nodePools = nodePools; return this; } @@ -457,26 +480,33 @@ public Builder nodePools(ClusterGkeConfigV2NodePool... nodePools) { } @CustomType.Setter public Builder privateClusterConfig(@Nullable ClusterGkeConfigV2PrivateClusterConfig privateClusterConfig) { + this.privateClusterConfig = privateClusterConfig; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder subnetwork(@Nullable String subnetwork) { + this.subnetwork = subnetwork; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2ClusterAddons.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2ClusterAddons.java index a60dde449..34c9554f4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2ClusterAddons.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2ClusterAddons.java @@ -72,16 +72,19 @@ public Builder(ClusterGkeConfigV2ClusterAddons defaults) { @CustomType.Setter public Builder horizontalPodAutoscaling(@Nullable Boolean horizontalPodAutoscaling) { + this.horizontalPodAutoscaling = horizontalPodAutoscaling; return this; } @CustomType.Setter public Builder httpLoadBalancing(@Nullable Boolean httpLoadBalancing) { + this.httpLoadBalancing = httpLoadBalancing; return this; } @CustomType.Setter public Builder networkPolicyConfig(@Nullable Boolean networkPolicyConfig) { + this.networkPolicyConfig = networkPolicyConfig; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2IpAllocationPolicy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2IpAllocationPolicy.java index 2ff5e005c..703489112 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2IpAllocationPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2IpAllocationPolicy.java @@ -143,41 +143,49 @@ public Builder(ClusterGkeConfigV2IpAllocationPolicy defaults) { @CustomType.Setter public Builder clusterIpv4CidrBlock(@Nullable String clusterIpv4CidrBlock) { + this.clusterIpv4CidrBlock = clusterIpv4CidrBlock; return this; } @CustomType.Setter public Builder clusterSecondaryRangeName(@Nullable String clusterSecondaryRangeName) { + this.clusterSecondaryRangeName = clusterSecondaryRangeName; return this; } @CustomType.Setter public Builder createSubnetwork(@Nullable Boolean createSubnetwork) { + this.createSubnetwork = createSubnetwork; return this; } @CustomType.Setter public Builder nodeIpv4CidrBlock(@Nullable String nodeIpv4CidrBlock) { + this.nodeIpv4CidrBlock = nodeIpv4CidrBlock; return this; } @CustomType.Setter public Builder servicesIpv4CidrBlock(@Nullable String servicesIpv4CidrBlock) { + this.servicesIpv4CidrBlock = servicesIpv4CidrBlock; return this; } @CustomType.Setter public Builder servicesSecondaryRangeName(@Nullable String servicesSecondaryRangeName) { + this.servicesSecondaryRangeName = servicesSecondaryRangeName; return this; } @CustomType.Setter public Builder subnetworkName(@Nullable String subnetworkName) { + this.subnetworkName = subnetworkName; return this; } @CustomType.Setter public Builder useIpAliases(@Nullable Boolean useIpAliases) { + this.useIpAliases = useIpAliases; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfig.java index 56b926646..c425567de 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock; import java.lang.Boolean; import java.util.List; @@ -60,7 +61,10 @@ public Builder(ClusterGkeConfigV2MasterAuthorizedNetworksConfig defaults) { @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { - this.cidrBlocks = Objects.requireNonNull(cidrBlocks); + if (cidrBlocks == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2MasterAuthorizedNetworksConfig", "cidrBlocks"); + } + this.cidrBlocks = cidrBlocks; return this; } public Builder cidrBlocks(ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock... cidrBlocks) { @@ -68,6 +72,7 @@ public Builder cidrBlocks(ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBl } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java index 73f7a3f2f..674edf225 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,11 +59,15 @@ public Builder(ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock default @CustomType.Setter public Builder cidrBlock(String cidrBlock) { - this.cidrBlock = Objects.requireNonNull(cidrBlock); + if (cidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock", "cidrBlock"); + } + this.cidrBlock = cidrBlock; return this; } @CustomType.Setter public Builder displayName(@Nullable String displayName) { + this.displayName = displayName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePool.java index 52949cadd..0ed3616a2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePool.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2NodePoolAutoscaling; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2NodePoolConfig; import com.pulumi.rancher2.outputs.ClusterGkeConfigV2NodePoolManagement; @@ -132,37 +133,50 @@ public Builder(ClusterGkeConfigV2NodePool defaults) { @CustomType.Setter public Builder autoscaling(@Nullable ClusterGkeConfigV2NodePoolAutoscaling autoscaling) { + this.autoscaling = autoscaling; return this; } @CustomType.Setter public Builder config(@Nullable ClusterGkeConfigV2NodePoolConfig config) { + this.config = config; return this; } @CustomType.Setter public Builder initialNodeCount(Integer initialNodeCount) { - this.initialNodeCount = Objects.requireNonNull(initialNodeCount); + if (initialNodeCount == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePool", "initialNodeCount"); + } + this.initialNodeCount = initialNodeCount; return this; } @CustomType.Setter public Builder management(@Nullable ClusterGkeConfigV2NodePoolManagement management) { + this.management = management; return this; } @CustomType.Setter public Builder maxPodsConstraint(@Nullable Integer maxPodsConstraint) { + this.maxPodsConstraint = maxPodsConstraint; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePool", "version"); + } + this.version = version; return this; } public ClusterGkeConfigV2NodePool build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolAutoscaling.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolAutoscaling.java index c4d9dc2f2..24bf224f1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolAutoscaling.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolAutoscaling.java @@ -73,16 +73,19 @@ public Builder(ClusterGkeConfigV2NodePoolAutoscaling defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder maxNodeCount(@Nullable Integer maxNodeCount) { + this.maxNodeCount = maxNodeCount; return this; } @CustomType.Setter public Builder minNodeCount(@Nullable Integer minNodeCount) { + this.minNodeCount = minNodeCount; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfig.java index 4dbe08e98..0535bca01 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfig.java @@ -176,36 +176,43 @@ public Builder(ClusterGkeConfigV2NodePoolConfig defaults) { @CustomType.Setter public Builder diskSizeGb(@Nullable Integer diskSizeGb) { + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder diskType(@Nullable String diskType) { + this.diskType = diskType; return this; } @CustomType.Setter public Builder imageType(@Nullable String imageType) { + this.imageType = imageType; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder localSsdCount(@Nullable Integer localSsdCount) { + this.localSsdCount = localSsdCount; return this; } @CustomType.Setter public Builder machineType(@Nullable String machineType) { + this.machineType = machineType; return this; } @CustomType.Setter public Builder oauthScopes(@Nullable List oauthScopes) { + this.oauthScopes = oauthScopes; return this; } @@ -214,11 +221,13 @@ public Builder oauthScopes(String... oauthScopes) { } @CustomType.Setter public Builder preemptible(@Nullable Boolean preemptible) { + this.preemptible = preemptible; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -227,6 +236,7 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfigTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfigTaint.java index 694d66ee8..f5f0bc1ee 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfigTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolConfigTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -70,17 +71,26 @@ public Builder(ClusterGkeConfigV2NodePoolConfigTaint defaults) { @CustomType.Setter public Builder effect(String effect) { - this.effect = Objects.requireNonNull(effect); + if (effect == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolConfigTaint", "effect"); + } + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolConfigTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2NodePoolConfigTaint", "value"); + } + this.value = value; return this; } public ClusterGkeConfigV2NodePoolConfigTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolManagement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolManagement.java index 7f3dc6fd6..de7275841 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolManagement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2NodePoolManagement.java @@ -58,11 +58,13 @@ public Builder(ClusterGkeConfigV2NodePoolManagement defaults) { @CustomType.Setter public Builder autoRepair(@Nullable Boolean autoRepair) { + this.autoRepair = autoRepair; return this; } @CustomType.Setter public Builder autoUpgrade(@Nullable Boolean autoUpgrade) { + this.autoUpgrade = autoUpgrade; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2PrivateClusterConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2PrivateClusterConfig.java index 323162afe..5929da1c7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2PrivateClusterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterGkeConfigV2PrivateClusterConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,17 +74,22 @@ public Builder(ClusterGkeConfigV2PrivateClusterConfig defaults) { @CustomType.Setter public Builder enablePrivateEndpoint(@Nullable Boolean enablePrivateEndpoint) { + this.enablePrivateEndpoint = enablePrivateEndpoint; return this; } @CustomType.Setter public Builder enablePrivateNodes(@Nullable Boolean enablePrivateNodes) { + this.enablePrivateNodes = enablePrivateNodes; return this; } @CustomType.Setter public Builder masterIpv4CidrBlock(String masterIpv4CidrBlock) { - this.masterIpv4CidrBlock = Objects.requireNonNull(masterIpv4CidrBlock); + if (masterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("ClusterGkeConfigV2PrivateClusterConfig", "masterIpv4CidrBlock"); + } + this.masterIpv4CidrBlock = masterIpv4CidrBlock; return this; } public ClusterGkeConfigV2PrivateClusterConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfig.java index f7fb000f3..6b2f76384 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfig.java @@ -59,11 +59,13 @@ public Builder(ClusterK3sConfig defaults) { @CustomType.Setter public Builder upgradeStrategy(@Nullable ClusterK3sConfigUpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfigUpgradeStrategy.java index 79383ac1d..aef1dcf48 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterK3sConfigUpgradeStrategy.java @@ -87,21 +87,25 @@ public Builder(ClusterK3sConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder drainServerNodes(@Nullable Boolean drainServerNodes) { + this.drainServerNodes = drainServerNodes; return this; } @CustomType.Setter public Builder drainWorkerNodes(@Nullable Boolean drainWorkerNodes) { + this.drainWorkerNodes = drainWorkerNodes; return this; } @CustomType.Setter public Builder serverConcurrency(@Nullable Integer serverConcurrency) { + this.serverConcurrency = serverConcurrency; return this; } @CustomType.Setter public Builder workerConcurrency(@Nullable Integer workerConcurrency) { + this.workerConcurrency = workerConcurrency; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterOkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterOkeConfig.java index 74702d8a9..71347f31c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterOkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterOkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -480,161 +481,211 @@ public Builder(ClusterOkeConfig defaults) { @CustomType.Setter public Builder compartmentId(String compartmentId) { - this.compartmentId = Objects.requireNonNull(compartmentId); + if (compartmentId == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "compartmentId"); + } + this.compartmentId = compartmentId; return this; } @CustomType.Setter public Builder customBootVolumeSize(@Nullable Integer customBootVolumeSize) { + this.customBootVolumeSize = customBootVolumeSize; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder enableKubernetesDashboard(@Nullable Boolean enableKubernetesDashboard) { + this.enableKubernetesDashboard = enableKubernetesDashboard; return this; } @CustomType.Setter public Builder enablePrivateControlPlane(@Nullable Boolean enablePrivateControlPlane) { + this.enablePrivateControlPlane = enablePrivateControlPlane; return this; } @CustomType.Setter public Builder enablePrivateNodes(@Nullable Boolean enablePrivateNodes) { + this.enablePrivateNodes = enablePrivateNodes; return this; } @CustomType.Setter public Builder fingerprint(String fingerprint) { - this.fingerprint = Objects.requireNonNull(fingerprint); + if (fingerprint == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "fingerprint"); + } + this.fingerprint = fingerprint; return this; } @CustomType.Setter public Builder flexOcpus(@Nullable Integer flexOcpus) { + this.flexOcpus = flexOcpus; return this; } @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { + this.kmsKeyId = kmsKeyId; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder limitNodeCount(@Nullable Integer limitNodeCount) { + this.limitNodeCount = limitNodeCount; return this; } @CustomType.Setter public Builder loadBalancerSubnetName1(@Nullable String loadBalancerSubnetName1) { + this.loadBalancerSubnetName1 = loadBalancerSubnetName1; return this; } @CustomType.Setter public Builder loadBalancerSubnetName2(@Nullable String loadBalancerSubnetName2) { + this.loadBalancerSubnetName2 = loadBalancerSubnetName2; return this; } @CustomType.Setter public Builder nodeImage(String nodeImage) { - this.nodeImage = Objects.requireNonNull(nodeImage); + if (nodeImage == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "nodeImage"); + } + this.nodeImage = nodeImage; return this; } @CustomType.Setter public Builder nodePoolDnsDomainName(@Nullable String nodePoolDnsDomainName) { + this.nodePoolDnsDomainName = nodePoolDnsDomainName; return this; } @CustomType.Setter public Builder nodePoolSubnetName(@Nullable String nodePoolSubnetName) { + this.nodePoolSubnetName = nodePoolSubnetName; return this; } @CustomType.Setter public Builder nodePublicKeyContents(@Nullable String nodePublicKeyContents) { + this.nodePublicKeyContents = nodePublicKeyContents; return this; } @CustomType.Setter public Builder nodeShape(String nodeShape) { - this.nodeShape = Objects.requireNonNull(nodeShape); + if (nodeShape == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "nodeShape"); + } + this.nodeShape = nodeShape; return this; } @CustomType.Setter public Builder podCidr(@Nullable String podCidr) { + this.podCidr = podCidr; return this; } @CustomType.Setter public Builder privateKeyContents(String privateKeyContents) { - this.privateKeyContents = Objects.requireNonNull(privateKeyContents); + if (privateKeyContents == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "privateKeyContents"); + } + this.privateKeyContents = privateKeyContents; return this; } @CustomType.Setter public Builder privateKeyPassphrase(@Nullable String privateKeyPassphrase) { + this.privateKeyPassphrase = privateKeyPassphrase; return this; } @CustomType.Setter public Builder quantityOfNodeSubnets(@Nullable Integer quantityOfNodeSubnets) { + this.quantityOfNodeSubnets = quantityOfNodeSubnets; return this; } @CustomType.Setter public Builder quantityPerSubnet(@Nullable Integer quantityPerSubnet) { + this.quantityPerSubnet = quantityPerSubnet; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder serviceCidr(@Nullable String serviceCidr) { + this.serviceCidr = serviceCidr; return this; } @CustomType.Setter public Builder serviceDnsDomainName(@Nullable String serviceDnsDomainName) { + this.serviceDnsDomainName = serviceDnsDomainName; return this; } @CustomType.Setter public Builder skipVcnDelete(@Nullable Boolean skipVcnDelete) { + this.skipVcnDelete = skipVcnDelete; return this; } @CustomType.Setter public Builder tenancyId(String tenancyId) { - this.tenancyId = Objects.requireNonNull(tenancyId); + if (tenancyId == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "tenancyId"); + } + this.tenancyId = tenancyId; return this; } @CustomType.Setter public Builder userOcid(String userOcid) { - this.userOcid = Objects.requireNonNull(userOcid); + if (userOcid == null) { + throw new MissingRequiredPropertyException("ClusterOkeConfig", "userOcid"); + } + this.userOcid = userOcid; return this; } @CustomType.Setter public Builder vcnCompartmentId(@Nullable String vcnCompartmentId) { + this.vcnCompartmentId = vcnCompartmentId; return this; } @CustomType.Setter public Builder vcnName(@Nullable String vcnName) { + this.vcnName = vcnName; return this; } @CustomType.Setter public Builder workerNodeIngressCidr(@Nullable String workerNodeIngressCidr) { + this.workerNodeIngressCidr = workerNodeIngressCidr; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2Config.java index 639d6d0b7..105a3f084 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2Config.java @@ -59,11 +59,13 @@ public Builder(ClusterRke2Config defaults) { @CustomType.Setter public Builder upgradeStrategy(@Nullable ClusterRke2ConfigUpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2ConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2ConfigUpgradeStrategy.java index 4d7d04a20..8595f540d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2ConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRke2ConfigUpgradeStrategy.java @@ -87,21 +87,25 @@ public Builder(ClusterRke2ConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder drainServerNodes(@Nullable Boolean drainServerNodes) { + this.drainServerNodes = drainServerNodes; return this; } @CustomType.Setter public Builder drainWorkerNodes(@Nullable Boolean drainWorkerNodes) { + this.drainWorkerNodes = drainWorkerNodes; return this; } @CustomType.Setter public Builder serverConcurrency(@Nullable Integer serverConcurrency) { + this.serverConcurrency = serverConcurrency; return this; } @CustomType.Setter public Builder workerConcurrency(@Nullable Integer workerConcurrency) { + this.workerConcurrency = workerConcurrency; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfig.java index 41194db64..ee53b866c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfig.java @@ -367,16 +367,19 @@ public Builder(ClusterRkeConfig defaults) { @CustomType.Setter public Builder addonJobTimeout(@Nullable Integer addonJobTimeout) { + this.addonJobTimeout = addonJobTimeout; return this; } @CustomType.Setter public Builder addons(@Nullable String addons) { + this.addons = addons; return this; } @CustomType.Setter public Builder addonsIncludes(@Nullable List addonsIncludes) { + this.addonsIncludes = addonsIncludes; return this; } @@ -385,61 +388,73 @@ public Builder addonsIncludes(String... addonsIncludes) { } @CustomType.Setter public Builder authentication(@Nullable ClusterRkeConfigAuthentication authentication) { + this.authentication = authentication; return this; } @CustomType.Setter public Builder authorization(@Nullable ClusterRkeConfigAuthorization authorization) { + this.authorization = authorization; return this; } @CustomType.Setter public Builder bastionHost(@Nullable ClusterRkeConfigBastionHost bastionHost) { + this.bastionHost = bastionHost; return this; } @CustomType.Setter public Builder cloudProvider(@Nullable ClusterRkeConfigCloudProvider cloudProvider) { + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder dns(@Nullable ClusterRkeConfigDns dns) { + this.dns = dns; return this; } @CustomType.Setter public Builder enableCriDockerd(@Nullable Boolean enableCriDockerd) { + this.enableCriDockerd = enableCriDockerd; return this; } @CustomType.Setter public Builder ignoreDockerVersion(@Nullable Boolean ignoreDockerVersion) { + this.ignoreDockerVersion = ignoreDockerVersion; return this; } @CustomType.Setter public Builder ingress(@Nullable ClusterRkeConfigIngress ingress) { + this.ingress = ingress; return this; } @CustomType.Setter public Builder kubernetesVersion(@Nullable String kubernetesVersion) { + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder monitoring(@Nullable ClusterRkeConfigMonitoring monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder network(@Nullable ClusterRkeConfigNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder nodes(@Nullable List nodes) { + this.nodes = nodes; return this; } @@ -448,11 +463,13 @@ public Builder nodes(ClusterRkeConfigNode... nodes) { } @CustomType.Setter public Builder prefixPath(@Nullable String prefixPath) { + this.prefixPath = prefixPath; return this; } @CustomType.Setter public Builder privateRegistries(@Nullable List privateRegistries) { + this.privateRegistries = privateRegistries; return this; } @@ -461,31 +478,37 @@ public Builder privateRegistries(ClusterRkeConfigPrivateRegistry... privateRegis } @CustomType.Setter public Builder services(@Nullable ClusterRkeConfigServices services) { + this.services = services; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshCertPath(@Nullable String sshCertPath) { + this.sshCertPath = sshCertPath; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder upgradeStrategy(@Nullable ClusterRkeConfigUpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder winPrefixPath(@Nullable String winPrefixPath) { + this.winPrefixPath = winPrefixPath; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthentication.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthentication.java index 829310e54..5d6dd11dd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthentication.java @@ -59,6 +59,7 @@ public Builder(ClusterRkeConfigAuthentication defaults) { @CustomType.Setter public Builder sans(@Nullable List sans) { + this.sans = sans; return this; } @@ -67,6 +68,7 @@ public Builder sans(String... sans) { } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthorization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthorization.java index ef6165695..aa9bce68b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthorization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigAuthorization.java @@ -60,11 +60,13 @@ public Builder(ClusterRkeConfigAuthorization defaults) { @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigBastionHost.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigBastionHost.java index 42f3a4e9b..2bdeff5c9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigBastionHost.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigBastionHost.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -115,32 +116,42 @@ public Builder(ClusterRkeConfigBastionHost defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigBastionHost", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(@Nullable String sshKey) { + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigBastionHost", "user"); + } + this.user = user; return this; } public ClusterRkeConfigBastionHost build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProvider.java index 0593bfa02..ca40560e5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProvider.java @@ -118,31 +118,37 @@ public Builder(ClusterRkeConfigCloudProvider defaults) { @CustomType.Setter public Builder awsCloudProvider(@Nullable ClusterRkeConfigCloudProviderAwsCloudProvider awsCloudProvider) { + this.awsCloudProvider = awsCloudProvider; return this; } @CustomType.Setter public Builder azureCloudProvider(@Nullable ClusterRkeConfigCloudProviderAzureCloudProvider azureCloudProvider) { + this.azureCloudProvider = azureCloudProvider; return this; } @CustomType.Setter public Builder customCloudProvider(@Nullable String customCloudProvider) { + this.customCloudProvider = customCloudProvider; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder openstackCloudProvider(@Nullable ClusterRkeConfigCloudProviderOpenstackCloudProvider openstackCloudProvider) { + this.openstackCloudProvider = openstackCloudProvider; return this; } @CustomType.Setter public Builder vsphereCloudProvider(@Nullable ClusterRkeConfigCloudProviderVsphereCloudProvider vsphereCloudProvider) { + this.vsphereCloudProvider = vsphereCloudProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProvider.java index 79ad2e113..42648d4b0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProvider.java @@ -60,11 +60,13 @@ public Builder(ClusterRkeConfigCloudProviderAwsCloudProvider defaults) { @CustomType.Setter public Builder global(@Nullable ClusterRkeConfigCloudProviderAwsCloudProviderGlobal global) { + this.global = global; return this; } @CustomType.Setter public Builder serviceOverrides(@Nullable List serviceOverrides) { + this.serviceOverrides = serviceOverrides; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java index 0320b5c08..c13b4345b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java @@ -171,51 +171,61 @@ public Builder(ClusterRkeConfigCloudProviderAwsCloudProviderGlobal defaults) { @CustomType.Setter public Builder disableSecurityGroupIngress(@Nullable Boolean disableSecurityGroupIngress) { + this.disableSecurityGroupIngress = disableSecurityGroupIngress; return this; } @CustomType.Setter public Builder disableStrictZoneCheck(@Nullable Boolean disableStrictZoneCheck) { + this.disableStrictZoneCheck = disableStrictZoneCheck; return this; } @CustomType.Setter public Builder elbSecurityGroup(@Nullable String elbSecurityGroup) { + this.elbSecurityGroup = elbSecurityGroup; return this; } @CustomType.Setter public Builder kubernetesClusterId(@Nullable String kubernetesClusterId) { + this.kubernetesClusterId = kubernetesClusterId; return this; } @CustomType.Setter public Builder kubernetesClusterTag(@Nullable String kubernetesClusterTag) { + this.kubernetesClusterTag = kubernetesClusterTag; return this; } @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder routeTableId(@Nullable String routeTableId) { + this.routeTableId = routeTableId; return this; } @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder vpc(@Nullable String vpc) { + this.vpc = vpc; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java index 1bf3bfb91..eafec3ce4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -114,31 +115,39 @@ public Builder(ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride defa @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder service(String service) { - this.service = Objects.requireNonNull(service); + if (service == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "service"); + } + this.service = service; return this; } @CustomType.Setter public Builder signingMethod(@Nullable String signingMethod) { + this.signingMethod = signingMethod; return this; } @CustomType.Setter public Builder signingName(@Nullable String signingName) { + this.signingName = signingName; return this; } @CustomType.Setter public Builder signingRegion(@Nullable String signingRegion) { + this.signingRegion = signingRegion; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAzureCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAzureCloudProvider.java index c0c5cf904..604444083 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAzureCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderAzureCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -438,146 +439,183 @@ public Builder(ClusterRkeConfigCloudProviderAzureCloudProvider defaults) { @CustomType.Setter public Builder aadClientCertPassword(@Nullable String aadClientCertPassword) { + this.aadClientCertPassword = aadClientCertPassword; return this; } @CustomType.Setter public Builder aadClientCertPath(@Nullable String aadClientCertPath) { + this.aadClientCertPath = aadClientCertPath; return this; } @CustomType.Setter public Builder aadClientId(String aadClientId) { - this.aadClientId = Objects.requireNonNull(aadClientId); + if (aadClientId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProvider", "aadClientId"); + } + this.aadClientId = aadClientId; return this; } @CustomType.Setter public Builder aadClientSecret(String aadClientSecret) { - this.aadClientSecret = Objects.requireNonNull(aadClientSecret); + if (aadClientSecret == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProvider", "aadClientSecret"); + } + this.aadClientSecret = aadClientSecret; return this; } @CustomType.Setter public Builder cloud(@Nullable String cloud) { + this.cloud = cloud; return this; } @CustomType.Setter public Builder cloudProviderBackoff(@Nullable Boolean cloudProviderBackoff) { + this.cloudProviderBackoff = cloudProviderBackoff; return this; } @CustomType.Setter public Builder cloudProviderBackoffDuration(@Nullable Integer cloudProviderBackoffDuration) { + this.cloudProviderBackoffDuration = cloudProviderBackoffDuration; return this; } @CustomType.Setter public Builder cloudProviderBackoffExponent(@Nullable Integer cloudProviderBackoffExponent) { + this.cloudProviderBackoffExponent = cloudProviderBackoffExponent; return this; } @CustomType.Setter public Builder cloudProviderBackoffJitter(@Nullable Integer cloudProviderBackoffJitter) { + this.cloudProviderBackoffJitter = cloudProviderBackoffJitter; return this; } @CustomType.Setter public Builder cloudProviderBackoffRetries(@Nullable Integer cloudProviderBackoffRetries) { + this.cloudProviderBackoffRetries = cloudProviderBackoffRetries; return this; } @CustomType.Setter public Builder cloudProviderRateLimit(@Nullable Boolean cloudProviderRateLimit) { + this.cloudProviderRateLimit = cloudProviderRateLimit; return this; } @CustomType.Setter public Builder cloudProviderRateLimitBucket(@Nullable Integer cloudProviderRateLimitBucket) { + this.cloudProviderRateLimitBucket = cloudProviderRateLimitBucket; return this; } @CustomType.Setter public Builder cloudProviderRateLimitQps(@Nullable Integer cloudProviderRateLimitQps) { + this.cloudProviderRateLimitQps = cloudProviderRateLimitQps; return this; } @CustomType.Setter public Builder loadBalancerSku(@Nullable String loadBalancerSku) { + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; return this; } @CustomType.Setter public Builder maximumLoadBalancerRuleCount(@Nullable Integer maximumLoadBalancerRuleCount) { + this.maximumLoadBalancerRuleCount = maximumLoadBalancerRuleCount; return this; } @CustomType.Setter public Builder primaryAvailabilitySetName(@Nullable String primaryAvailabilitySetName) { + this.primaryAvailabilitySetName = primaryAvailabilitySetName; return this; } @CustomType.Setter public Builder primaryScaleSetName(@Nullable String primaryScaleSetName) { + this.primaryScaleSetName = primaryScaleSetName; return this; } @CustomType.Setter public Builder resourceGroup(@Nullable String resourceGroup) { + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder routeTableName(@Nullable String routeTableName) { + this.routeTableName = routeTableName; return this; } @CustomType.Setter public Builder securityGroupName(@Nullable String securityGroupName) { + this.securityGroupName = securityGroupName; return this; } @CustomType.Setter public Builder subnetName(@Nullable String subnetName) { + this.subnetName = subnetName; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProvider", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderAzureCloudProvider", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder useInstanceMetadata(@Nullable Boolean useInstanceMetadata) { + this.useInstanceMetadata = useInstanceMetadata; return this; } @CustomType.Setter public Builder useManagedIdentityExtension(@Nullable Boolean useManagedIdentityExtension) { + this.useManagedIdentityExtension = useManagedIdentityExtension; return this; } @CustomType.Setter public Builder vmType(@Nullable String vmType) { + this.vmType = vmType; return this; } @CustomType.Setter public Builder vnetName(@Nullable String vnetName) { + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vnetResourceGroup(@Nullable String vnetResourceGroup) { + this.vnetResourceGroup = vnetResourceGroup; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProvider.java index a4a042bcf..654cfa626 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage; import com.pulumi.rancher2.outputs.ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal; import com.pulumi.rancher2.outputs.ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer; @@ -104,26 +105,33 @@ public Builder(ClusterRkeConfigCloudProviderOpenstackCloudProvider defaults) { @CustomType.Setter public Builder blockStorage(@Nullable ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage blockStorage) { + this.blockStorage = blockStorage; return this; } @CustomType.Setter public Builder global(ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder loadBalancer(@Nullable ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer loadBalancer) { + this.loadBalancer = loadBalancer; return this; } @CustomType.Setter public Builder metadata(@Nullable ClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder route(@Nullable ClusterRkeConfigCloudProviderOpenstackCloudProviderRoute route) { + this.route = route; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java index 93b2b2ab9..f46fe9173 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java @@ -73,16 +73,19 @@ public Builder(ClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage d @CustomType.Setter public Builder bsVersion(@Nullable String bsVersion) { + this.bsVersion = bsVersion; return this; } @CustomType.Setter public Builder ignoreVolumeAz(@Nullable Boolean ignoreVolumeAz) { + this.ignoreVolumeAz = ignoreVolumeAz; return this; } @CustomType.Setter public Builder trustDevicePath(@Nullable Boolean trustDevicePath) { + this.trustDevicePath = trustDevicePath; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java index 6f0846235..af6ef983c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -170,52 +171,68 @@ public Builder(ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal default @CustomType.Setter public Builder authUrl(String authUrl) { - this.authUrl = Objects.requireNonNull(authUrl); + if (authUrl == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "authUrl"); + } + this.authUrl = authUrl; return this; } @CustomType.Setter public Builder caFile(@Nullable String caFile) { + this.caFile = caFile; return this; } @CustomType.Setter public Builder domainId(@Nullable String domainId) { + this.domainId = domainId; return this; } @CustomType.Setter public Builder domainName(@Nullable String domainName) { + this.domainName = domainName; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder tenantId(@Nullable String tenantId) { + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder tenantName(@Nullable String tenantName) { + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder trustId(@Nullable String trustId) { + this.trustId = trustId; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "username"); + } + this.username = username; return this; } public ClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java index b669d24c6..87c97b43a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java @@ -186,56 +186,67 @@ public Builder(ClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer d @CustomType.Setter public Builder createMonitor(@Nullable Boolean createMonitor) { + this.createMonitor = createMonitor; return this; } @CustomType.Setter public Builder floatingNetworkId(@Nullable String floatingNetworkId) { + this.floatingNetworkId = floatingNetworkId; return this; } @CustomType.Setter public Builder lbMethod(@Nullable String lbMethod) { + this.lbMethod = lbMethod; return this; } @CustomType.Setter public Builder lbProvider(@Nullable String lbProvider) { + this.lbProvider = lbProvider; return this; } @CustomType.Setter public Builder lbVersion(@Nullable String lbVersion) { + this.lbVersion = lbVersion; return this; } @CustomType.Setter public Builder manageSecurityGroups(@Nullable Boolean manageSecurityGroups) { + this.manageSecurityGroups = manageSecurityGroups; return this; } @CustomType.Setter public Builder monitorDelay(@Nullable String monitorDelay) { + this.monitorDelay = monitorDelay; return this; } @CustomType.Setter public Builder monitorMaxRetries(@Nullable Integer monitorMaxRetries) { + this.monitorMaxRetries = monitorMaxRetries; return this; } @CustomType.Setter public Builder monitorTimeout(@Nullable String monitorTimeout) { + this.monitorTimeout = monitorTimeout; return this; } @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder useOctavia(@Nullable Boolean useOctavia) { + this.useOctavia = useOctavia; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java index 25747c519..57eb4f47e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java @@ -59,11 +59,13 @@ public Builder(ClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata defau @CustomType.Setter public Builder requestTimeout(@Nullable Integer requestTimeout) { + this.requestTimeout = requestTimeout; return this; } @CustomType.Setter public Builder searchOrder(@Nullable String searchOrder) { + this.searchOrder = searchOrder; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java index 7365c6421..c3e4bad19 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigCloudProviderOpenstackCloudProviderRoute defaults @CustomType.Setter public Builder routerId(@Nullable String routerId) { + this.routerId = routerId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProvider.java index f909148ff..fbcf454b1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterRkeConfigCloudProviderVsphereCloudProviderDisk; import com.pulumi.rancher2.outputs.ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal; import com.pulumi.rancher2.outputs.ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork; @@ -105,22 +106,28 @@ public Builder(ClusterRkeConfigCloudProviderVsphereCloudProvider defaults) { @CustomType.Setter public Builder disk(@Nullable ClusterRkeConfigCloudProviderVsphereCloudProviderDisk disk) { + this.disk = disk; return this; } @CustomType.Setter public Builder global(@Nullable ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal global) { + this.global = global; return this; } @CustomType.Setter public Builder network(@Nullable ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder virtualCenters(List virtualCenters) { - this.virtualCenters = Objects.requireNonNull(virtualCenters); + if (virtualCenters == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProvider", "virtualCenters"); + } + this.virtualCenters = virtualCenters; return this; } public Builder virtualCenters(ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter... virtualCenters) { @@ -128,7 +135,10 @@ public Builder virtualCenters(ClusterRkeConfigCloudProviderVsphereCloudProviderV } @CustomType.Setter public Builder workspace(ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace workspace) { - this.workspace = Objects.requireNonNull(workspace); + if (workspace == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProvider", "workspace"); + } + this.workspace = workspace; return this; } public ClusterRkeConfigCloudProviderVsphereCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java index e5217d275..7dd8831d4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigCloudProviderVsphereCloudProviderDisk defaults) { @CustomType.Setter public Builder scsiControllerType(@Nullable String scsiControllerType) { + this.scsiControllerType = scsiControllerType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java index eefd2f65e..5b19d454f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -116,31 +116,37 @@ public Builder(ClusterRkeConfigCloudProviderVsphereCloudProviderGlobal defaults) @CustomType.Setter public Builder datacenters(@Nullable String datacenters) { + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder insecureFlag(@Nullable Boolean insecureFlag) { + this.insecureFlag = insecureFlag; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(@Nullable Integer soapRoundtripCount) { + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java index 3404104be..00968799a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigCloudProviderVsphereCloudProviderNetwork defaults @CustomType.Setter public Builder publicNetwork(@Nullable String publicNetwork) { + this.publicNetwork = publicNetwork; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java index 3474c4686..191bfacf0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -115,32 +116,46 @@ public Builder(ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter de @CustomType.Setter public Builder datacenters(String datacenters) { - this.datacenters = Objects.requireNonNull(datacenters); + if (datacenters == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "datacenters"); + } + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(@Nullable Integer soapRoundtripCount) { + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "user"); + } + this.user = user; return this; } public ClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java index e1c379fea..aa3547592 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -100,27 +101,38 @@ public Builder(ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace defaul @CustomType.Setter public Builder datacenter(String datacenter) { - this.datacenter = Objects.requireNonNull(datacenter); + if (datacenter == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "datacenter"); + } + this.datacenter = datacenter; return this; } @CustomType.Setter public Builder defaultDatastore(@Nullable String defaultDatastore) { + this.defaultDatastore = defaultDatastore; return this; } @CustomType.Setter public Builder folder(String folder) { - this.folder = Objects.requireNonNull(folder); + if (folder == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "folder"); + } + this.folder = folder; return this; } @CustomType.Setter public Builder resourcepoolPath(@Nullable String resourcepoolPath) { + this.resourcepoolPath = resourcepoolPath; return this; } @CustomType.Setter public Builder server(String server) { - this.server = Objects.requireNonNull(server); + if (server == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "server"); + } + this.server = server; return this; } public ClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDns.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDns.java index 8549799d6..7aadd229e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDns.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDns.java @@ -163,31 +163,37 @@ public Builder(ClusterRkeConfigDns defaults) { @CustomType.Setter public Builder linearAutoscalerParams(@Nullable ClusterRkeConfigDnsLinearAutoscalerParams linearAutoscalerParams) { + this.linearAutoscalerParams = linearAutoscalerParams; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder nodelocal(@Nullable ClusterRkeConfigDnsNodelocal nodelocal) { + this.nodelocal = nodelocal; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder reverseCidrs(@Nullable List reverseCidrs) { + this.reverseCidrs = reverseCidrs; return this; } @@ -196,6 +202,7 @@ public Builder reverseCidrs(String... reverseCidrs) { } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -204,11 +211,13 @@ public Builder tolerations(ClusterRkeConfigDnsToleration... tolerations) { } @CustomType.Setter public Builder updateStrategy(@Nullable ClusterRkeConfigDnsUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder upstreamNameservers(@Nullable List upstreamNameservers) { + this.upstreamNameservers = upstreamNameservers; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsLinearAutoscalerParams.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsLinearAutoscalerParams.java index e1c459f26..0c0495129 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsLinearAutoscalerParams.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsLinearAutoscalerParams.java @@ -102,26 +102,31 @@ public Builder(ClusterRkeConfigDnsLinearAutoscalerParams defaults) { @CustomType.Setter public Builder coresPerReplica(@Nullable Double coresPerReplica) { + this.coresPerReplica = coresPerReplica; return this; } @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } @CustomType.Setter public Builder nodesPerReplica(@Nullable Double nodesPerReplica) { + this.nodesPerReplica = nodesPerReplica; return this; } @CustomType.Setter public Builder preventSinglePointFailure(@Nullable Boolean preventSinglePointFailure) { + this.preventSinglePointFailure = preventSinglePointFailure; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsNodelocal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsNodelocal.java index 9fa1eedbd..d8bec0a3d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsNodelocal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsNodelocal.java @@ -60,11 +60,13 @@ public Builder(ClusterRkeConfigDnsNodelocal defaults) { @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsToleration.java index a297180a5..3276a41dc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterRkeConfigDnsToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigDnsToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategy.java index 4bccf5546..16ad5b255 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategy.java @@ -59,11 +59,13 @@ public Builder(ClusterRkeConfigDnsUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterRkeConfigDnsUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategyRollingUpdate.java index 03971ae25..f49e9b47a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigDnsUpdateStrategyRollingUpdate.java @@ -58,11 +58,13 @@ public Builder(ClusterRkeConfigDnsUpdateStrategyRollingUpdate defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngress.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngress.java index 8b92b7132..e194247b2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngress.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngress.java @@ -191,51 +191,61 @@ public Builder(ClusterRkeConfigIngress defaults) { @CustomType.Setter public Builder defaultBackend(@Nullable Boolean defaultBackend) { + this.defaultBackend = defaultBackend; return this; } @CustomType.Setter public Builder dnsPolicy(@Nullable String dnsPolicy) { + this.dnsPolicy = dnsPolicy; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder httpPort(@Nullable Integer httpPort) { + this.httpPort = httpPort; return this; } @CustomType.Setter public Builder httpsPort(@Nullable Integer httpsPort) { + this.httpsPort = httpsPort; return this; } @CustomType.Setter public Builder networkMode(@Nullable String networkMode) { + this.networkMode = networkMode; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -244,6 +254,7 @@ public Builder tolerations(ClusterRkeConfigIngressToleration... tolerations) { } @CustomType.Setter public Builder updateStrategy(@Nullable ClusterRkeConfigIngressUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressToleration.java index 5aa331834..19b3cda2f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterRkeConfigIngressToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigIngressToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategy.java index 47c1486fa..aab74b9c8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategy.java @@ -59,11 +59,13 @@ public Builder(ClusterRkeConfigIngressUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterRkeConfigIngressUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategyRollingUpdate.java index 948b5c0cd..9432e7bf1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigIngressUpdateStrategyRollingUpdate.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigIngressUpdateStrategyRollingUpdate defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoring.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoring.java index 84e1ee942..a383dfbd6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoring.java @@ -120,26 +120,31 @@ public Builder(ClusterRkeConfigMonitoring defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -148,6 +153,7 @@ public Builder tolerations(ClusterRkeConfigMonitoringToleration... tolerations) } @CustomType.Setter public Builder updateStrategy(@Nullable ClusterRkeConfigMonitoringUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringToleration.java index 9e2ac8135..38a1d55d3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterRkeConfigMonitoringToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigMonitoringToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategy.java index 7db9c3ee9..3e20814f6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategy.java @@ -59,11 +59,13 @@ public Builder(ClusterRkeConfigMonitoringUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterRkeConfigMonitoringUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java index 5fd8cc240..67de9816b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java @@ -58,11 +58,13 @@ public Builder(ClusterRkeConfigMonitoringUpdateStrategyRollingUpdate defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetwork.java index d6209c276..76f1712ba 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetwork.java @@ -166,41 +166,49 @@ public Builder(ClusterRkeConfigNetwork defaults) { @CustomType.Setter public Builder aciNetworkProvider(@Nullable ClusterRkeConfigNetworkAciNetworkProvider aciNetworkProvider) { + this.aciNetworkProvider = aciNetworkProvider; return this; } @CustomType.Setter public Builder calicoNetworkProvider(@Nullable ClusterRkeConfigNetworkCalicoNetworkProvider calicoNetworkProvider) { + this.calicoNetworkProvider = calicoNetworkProvider; return this; } @CustomType.Setter public Builder canalNetworkProvider(@Nullable ClusterRkeConfigNetworkCanalNetworkProvider canalNetworkProvider) { + this.canalNetworkProvider = canalNetworkProvider; return this; } @CustomType.Setter public Builder flannelNetworkProvider(@Nullable ClusterRkeConfigNetworkFlannelNetworkProvider flannelNetworkProvider) { + this.flannelNetworkProvider = flannelNetworkProvider; return this; } @CustomType.Setter public Builder mtu(@Nullable Integer mtu) { + this.mtu = mtu; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder plugin(@Nullable String plugin) { + this.plugin = plugin; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -209,6 +217,7 @@ public Builder tolerations(ClusterRkeConfigNetworkToleration... tolerations) { } @CustomType.Setter public Builder weaveNetworkProvider(@Nullable ClusterRkeConfigNetworkWeaveNetworkProvider weaveNetworkProvider) { + this.weaveNetworkProvider = weaveNetworkProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkAciNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkAciNetworkProvider.java index d58210044..5f50fe8ff 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkAciNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkAciNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -1067,12 +1068,18 @@ public Builder(ClusterRkeConfigNetworkAciNetworkProvider defaults) { @CustomType.Setter public Builder aep(String aep) { - this.aep = Objects.requireNonNull(aep); + if (aep == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "aep"); + } + this.aep = aep; return this; } @CustomType.Setter public Builder apicHosts(List apicHosts) { - this.apicHosts = Objects.requireNonNull(apicHosts); + if (apicHosts == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "apicHosts"); + } + this.apicHosts = apicHosts; return this; } public Builder apicHosts(String... apicHosts) { @@ -1080,126 +1087,163 @@ public Builder apicHosts(String... apicHosts) { } @CustomType.Setter public Builder apicRefreshTickerAdjust(@Nullable String apicRefreshTickerAdjust) { + this.apicRefreshTickerAdjust = apicRefreshTickerAdjust; return this; } @CustomType.Setter public Builder apicRefreshTime(@Nullable String apicRefreshTime) { + this.apicRefreshTime = apicRefreshTime; return this; } @CustomType.Setter public Builder apicSubscriptionDelay(@Nullable String apicSubscriptionDelay) { + this.apicSubscriptionDelay = apicSubscriptionDelay; return this; } @CustomType.Setter public Builder apicUserCrt(String apicUserCrt) { - this.apicUserCrt = Objects.requireNonNull(apicUserCrt); + if (apicUserCrt == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "apicUserCrt"); + } + this.apicUserCrt = apicUserCrt; return this; } @CustomType.Setter public Builder apicUserKey(String apicUserKey) { - this.apicUserKey = Objects.requireNonNull(apicUserKey); + if (apicUserKey == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "apicUserKey"); + } + this.apicUserKey = apicUserKey; return this; } @CustomType.Setter public Builder apicUserName(String apicUserName) { - this.apicUserName = Objects.requireNonNull(apicUserName); + if (apicUserName == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "apicUserName"); + } + this.apicUserName = apicUserName; return this; } @CustomType.Setter public Builder capic(@Nullable String capic) { + this.capic = capic; return this; } @CustomType.Setter public Builder controllerLogLevel(@Nullable String controllerLogLevel) { + this.controllerLogLevel = controllerLogLevel; return this; } @CustomType.Setter public Builder disablePeriodicSnatGlobalInfoSync(@Nullable String disablePeriodicSnatGlobalInfoSync) { + this.disablePeriodicSnatGlobalInfoSync = disablePeriodicSnatGlobalInfoSync; return this; } @CustomType.Setter public Builder disableWaitForNetwork(@Nullable String disableWaitForNetwork) { + this.disableWaitForNetwork = disableWaitForNetwork; return this; } @CustomType.Setter public Builder dropLogEnable(@Nullable String dropLogEnable) { + this.dropLogEnable = dropLogEnable; return this; } @CustomType.Setter public Builder durationWaitForNetwork(@Nullable String durationWaitForNetwork) { + this.durationWaitForNetwork = durationWaitForNetwork; return this; } @CustomType.Setter public Builder enableEndpointSlice(@Nullable String enableEndpointSlice) { + this.enableEndpointSlice = enableEndpointSlice; return this; } @CustomType.Setter public Builder encapType(String encapType) { - this.encapType = Objects.requireNonNull(encapType); + if (encapType == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "encapType"); + } + this.encapType = encapType; return this; } @CustomType.Setter public Builder epRegistry(@Nullable String epRegistry) { + this.epRegistry = epRegistry; return this; } @CustomType.Setter public Builder externDynamic(String externDynamic) { - this.externDynamic = Objects.requireNonNull(externDynamic); + if (externDynamic == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "externDynamic"); + } + this.externDynamic = externDynamic; return this; } @CustomType.Setter public Builder externStatic(String externStatic) { - this.externStatic = Objects.requireNonNull(externStatic); + if (externStatic == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "externStatic"); + } + this.externStatic = externStatic; return this; } @CustomType.Setter public Builder gbpPodSubnet(@Nullable String gbpPodSubnet) { + this.gbpPodSubnet = gbpPodSubnet; return this; } @CustomType.Setter public Builder hostAgentLogLevel(@Nullable String hostAgentLogLevel) { + this.hostAgentLogLevel = hostAgentLogLevel; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder imagePullSecret(@Nullable String imagePullSecret) { + this.imagePullSecret = imagePullSecret; return this; } @CustomType.Setter public Builder infraVlan(@Nullable String infraVlan) { + this.infraVlan = infraVlan; return this; } @CustomType.Setter public Builder installIstio(@Nullable String installIstio) { + this.installIstio = installIstio; return this; } @CustomType.Setter public Builder istioProfile(@Nullable String istioProfile) { + this.istioProfile = istioProfile; return this; } @CustomType.Setter public Builder kafkaBrokers(@Nullable List kafkaBrokers) { + this.kafkaBrokers = kafkaBrokers; return this; } @@ -1208,27 +1252,38 @@ public Builder kafkaBrokers(String... kafkaBrokers) { } @CustomType.Setter public Builder kafkaClientCrt(@Nullable String kafkaClientCrt) { + this.kafkaClientCrt = kafkaClientCrt; return this; } @CustomType.Setter public Builder kafkaClientKey(@Nullable String kafkaClientKey) { + this.kafkaClientKey = kafkaClientKey; return this; } @CustomType.Setter public Builder kubeApiVlan(String kubeApiVlan) { - this.kubeApiVlan = Objects.requireNonNull(kubeApiVlan); + if (kubeApiVlan == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "kubeApiVlan"); + } + this.kubeApiVlan = kubeApiVlan; return this; } @CustomType.Setter public Builder l3out(String l3out) { - this.l3out = Objects.requireNonNull(l3out); + if (l3out == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "l3out"); + } + this.l3out = l3out; return this; } @CustomType.Setter public Builder l3outExternalNetworks(List l3outExternalNetworks) { - this.l3outExternalNetworks = Objects.requireNonNull(l3outExternalNetworks); + if (l3outExternalNetworks == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "l3outExternalNetworks"); + } + this.l3outExternalNetworks = l3outExternalNetworks; return this; } public Builder l3outExternalNetworks(String... l3outExternalNetworks) { @@ -1236,212 +1291,272 @@ public Builder l3outExternalNetworks(String... l3outExternalNetworks) { } @CustomType.Setter public Builder maxNodesSvcGraph(@Nullable String maxNodesSvcGraph) { + this.maxNodesSvcGraph = maxNodesSvcGraph; return this; } @CustomType.Setter public Builder mcastRangeEnd(String mcastRangeEnd) { - this.mcastRangeEnd = Objects.requireNonNull(mcastRangeEnd); + if (mcastRangeEnd == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "mcastRangeEnd"); + } + this.mcastRangeEnd = mcastRangeEnd; return this; } @CustomType.Setter public Builder mcastRangeStart(String mcastRangeStart) { - this.mcastRangeStart = Objects.requireNonNull(mcastRangeStart); + if (mcastRangeStart == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "mcastRangeStart"); + } + this.mcastRangeStart = mcastRangeStart; return this; } @CustomType.Setter public Builder mtuHeadRoom(@Nullable String mtuHeadRoom) { + this.mtuHeadRoom = mtuHeadRoom; return this; } @CustomType.Setter public Builder multusDisable(@Nullable String multusDisable) { + this.multusDisable = multusDisable; return this; } @CustomType.Setter public Builder noPriorityClass(@Nullable String noPriorityClass) { + this.noPriorityClass = noPriorityClass; return this; } @CustomType.Setter public Builder nodePodIfEnable(@Nullable String nodePodIfEnable) { + this.nodePodIfEnable = nodePodIfEnable; return this; } @CustomType.Setter public Builder nodeSubnet(String nodeSubnet) { - this.nodeSubnet = Objects.requireNonNull(nodeSubnet); + if (nodeSubnet == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "nodeSubnet"); + } + this.nodeSubnet = nodeSubnet; return this; } @CustomType.Setter public Builder nodeSvcSubnet(String nodeSvcSubnet) { - this.nodeSvcSubnet = Objects.requireNonNull(nodeSvcSubnet); + if (nodeSvcSubnet == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "nodeSvcSubnet"); + } + this.nodeSvcSubnet = nodeSvcSubnet; return this; } @CustomType.Setter public Builder opflexClientSsl(@Nullable String opflexClientSsl) { + this.opflexClientSsl = opflexClientSsl; return this; } @CustomType.Setter public Builder opflexDeviceDeleteTimeout(@Nullable String opflexDeviceDeleteTimeout) { + this.opflexDeviceDeleteTimeout = opflexDeviceDeleteTimeout; return this; } @CustomType.Setter public Builder opflexLogLevel(@Nullable String opflexLogLevel) { + this.opflexLogLevel = opflexLogLevel; return this; } @CustomType.Setter public Builder opflexMode(@Nullable String opflexMode) { + this.opflexMode = opflexMode; return this; } @CustomType.Setter public Builder opflexServerPort(@Nullable String opflexServerPort) { + this.opflexServerPort = opflexServerPort; return this; } @CustomType.Setter public Builder overlayVrfName(@Nullable String overlayVrfName) { + this.overlayVrfName = overlayVrfName; return this; } @CustomType.Setter public Builder ovsMemoryLimit(@Nullable String ovsMemoryLimit) { + this.ovsMemoryLimit = ovsMemoryLimit; return this; } @CustomType.Setter public Builder pbrTrackingNonSnat(@Nullable String pbrTrackingNonSnat) { + this.pbrTrackingNonSnat = pbrTrackingNonSnat; return this; } @CustomType.Setter public Builder podSubnetChunkSize(@Nullable String podSubnetChunkSize) { + this.podSubnetChunkSize = podSubnetChunkSize; return this; } @CustomType.Setter public Builder runGbpContainer(@Nullable String runGbpContainer) { + this.runGbpContainer = runGbpContainer; return this; } @CustomType.Setter public Builder runOpflexServerContainer(@Nullable String runOpflexServerContainer) { + this.runOpflexServerContainer = runOpflexServerContainer; return this; } @CustomType.Setter public Builder serviceMonitorInterval(@Nullable String serviceMonitorInterval) { + this.serviceMonitorInterval = serviceMonitorInterval; return this; } @CustomType.Setter public Builder serviceVlan(String serviceVlan) { - this.serviceVlan = Objects.requireNonNull(serviceVlan); + if (serviceVlan == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "serviceVlan"); + } + this.serviceVlan = serviceVlan; return this; } @CustomType.Setter public Builder snatContractScope(@Nullable String snatContractScope) { + this.snatContractScope = snatContractScope; return this; } @CustomType.Setter public Builder snatNamespace(@Nullable String snatNamespace) { + this.snatNamespace = snatNamespace; return this; } @CustomType.Setter public Builder snatPortRangeEnd(@Nullable String snatPortRangeEnd) { + this.snatPortRangeEnd = snatPortRangeEnd; return this; } @CustomType.Setter public Builder snatPortRangeStart(@Nullable String snatPortRangeStart) { + this.snatPortRangeStart = snatPortRangeStart; return this; } @CustomType.Setter public Builder snatPortsPerNode(@Nullable String snatPortsPerNode) { + this.snatPortsPerNode = snatPortsPerNode; return this; } @CustomType.Setter public Builder sriovEnable(@Nullable String sriovEnable) { + this.sriovEnable = sriovEnable; return this; } @CustomType.Setter public Builder subnetDomainName(@Nullable String subnetDomainName) { + this.subnetDomainName = subnetDomainName; return this; } @CustomType.Setter public Builder systemId(String systemId) { - this.systemId = Objects.requireNonNull(systemId); + if (systemId == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "systemId"); + } + this.systemId = systemId; return this; } @CustomType.Setter public Builder tenant(@Nullable String tenant) { + this.tenant = tenant; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder useAciAnywhereCrd(@Nullable String useAciAnywhereCrd) { + this.useAciAnywhereCrd = useAciAnywhereCrd; return this; } @CustomType.Setter public Builder useAciCniPriorityClass(@Nullable String useAciCniPriorityClass) { + this.useAciCniPriorityClass = useAciCniPriorityClass; return this; } @CustomType.Setter public Builder useClusterRole(@Nullable String useClusterRole) { + this.useClusterRole = useClusterRole; return this; } @CustomType.Setter public Builder useHostNetnsVolume(@Nullable String useHostNetnsVolume) { + this.useHostNetnsVolume = useHostNetnsVolume; return this; } @CustomType.Setter public Builder useOpflexServerVolume(@Nullable String useOpflexServerVolume) { + this.useOpflexServerVolume = useOpflexServerVolume; return this; } @CustomType.Setter public Builder usePrivilegedContainer(@Nullable String usePrivilegedContainer) { + this.usePrivilegedContainer = usePrivilegedContainer; return this; } @CustomType.Setter public Builder vmmController(@Nullable String vmmController) { + this.vmmController = vmmController; return this; } @CustomType.Setter public Builder vmmDomain(@Nullable String vmmDomain) { + this.vmmDomain = vmmDomain; return this; } @CustomType.Setter public Builder vrfName(String vrfName) { - this.vrfName = Objects.requireNonNull(vrfName); + if (vrfName == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "vrfName"); + } + this.vrfName = vrfName; return this; } @CustomType.Setter public Builder vrfTenant(String vrfTenant) { - this.vrfTenant = Objects.requireNonNull(vrfTenant); + if (vrfTenant == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkAciNetworkProvider", "vrfTenant"); + } + this.vrfTenant = vrfTenant; return this; } public ClusterRkeConfigNetworkAciNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCalicoNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCalicoNetworkProvider.java index 4edc9f1bf..4f9039305 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCalicoNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCalicoNetworkProvider.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigNetworkCalicoNetworkProvider defaults) { @CustomType.Setter public Builder cloudProvider(@Nullable String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCanalNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCanalNetworkProvider.java index 9740fe8f2..cad6f5e8b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCanalNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkCanalNetworkProvider.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigNetworkCanalNetworkProvider defaults) { @CustomType.Setter public Builder iface(@Nullable String iface) { + this.iface = iface; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkFlannelNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkFlannelNetworkProvider.java index 201af092e..ee91fd26b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkFlannelNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkFlannelNetworkProvider.java @@ -44,6 +44,7 @@ public Builder(ClusterRkeConfigNetworkFlannelNetworkProvider defaults) { @CustomType.Setter public Builder iface(@Nullable String iface) { + this.iface = iface; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkToleration.java index 8856dd178..db950f3a5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterRkeConfigNetworkToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkWeaveNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkWeaveNetworkProvider.java index 6b225040a..8087cd23e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkWeaveNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNetworkWeaveNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(ClusterRkeConfigNetworkWeaveNetworkProvider defaults) { @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNetworkWeaveNetworkProvider", "password"); + } + this.password = password; return this; } public ClusterRkeConfigNetworkWeaveNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNode.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNode.java index 2f1f4f29e..7ec2381b4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNode.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigNode.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -202,42 +203,54 @@ public Builder(ClusterRkeConfigNode defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNode", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder dockerSocket(@Nullable String dockerSocket) { + this.dockerSocket = dockerSocket; return this; } @CustomType.Setter public Builder hostnameOverride(@Nullable String hostnameOverride) { + this.hostnameOverride = hostnameOverride; return this; } @CustomType.Setter public Builder internalAddress(@Nullable String internalAddress) { + this.internalAddress = internalAddress; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNode", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -245,22 +258,28 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(@Nullable String sshKey) { + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigNode", "user"); + } + this.user = user; return this; } public ClusterRkeConfigNode build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistry.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistry.java index 5ab119963..e7dc6c4eb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistry.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterRkeConfigPrivateRegistryEcrCredentialPlugin; import java.lang.Boolean; import java.lang.String; @@ -102,26 +103,33 @@ public Builder(ClusterRkeConfigPrivateRegistry defaults) { @CustomType.Setter public Builder ecrCredentialPlugin(@Nullable ClusterRkeConfigPrivateRegistryEcrCredentialPlugin ecrCredentialPlugin) { + this.ecrCredentialPlugin = ecrCredentialPlugin; return this; } @CustomType.Setter public Builder isDefault(@Nullable Boolean isDefault) { + this.isDefault = isDefault; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigPrivateRegistry", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java index a23258b27..925e71622 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java @@ -72,16 +72,19 @@ public Builder(ClusterRkeConfigPrivateRegistryEcrCredentialPlugin defaults) { @CustomType.Setter public Builder awsAccessKeyId(@Nullable String awsAccessKeyId) { + this.awsAccessKeyId = awsAccessKeyId; return this; } @CustomType.Setter public Builder awsSecretAccessKey(@Nullable String awsSecretAccessKey) { + this.awsSecretAccessKey = awsSecretAccessKey; return this; } @CustomType.Setter public Builder awsSessionToken(@Nullable String awsSessionToken) { + this.awsSessionToken = awsSessionToken; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServices.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServices.java index b91d589e1..493184e11 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServices.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServices.java @@ -119,31 +119,37 @@ public Builder(ClusterRkeConfigServices defaults) { @CustomType.Setter public Builder etcd(@Nullable ClusterRkeConfigServicesEtcd etcd) { + this.etcd = etcd; return this; } @CustomType.Setter public Builder kubeApi(@Nullable ClusterRkeConfigServicesKubeApi kubeApi) { + this.kubeApi = kubeApi; return this; } @CustomType.Setter public Builder kubeController(@Nullable ClusterRkeConfigServicesKubeController kubeController) { + this.kubeController = kubeController; return this; } @CustomType.Setter public Builder kubelet(@Nullable ClusterRkeConfigServicesKubelet kubelet) { + this.kubelet = kubelet; return this; } @CustomType.Setter public Builder kubeproxy(@Nullable ClusterRkeConfigServicesKubeproxy kubeproxy) { + this.kubeproxy = kubeproxy; return this; } @CustomType.Setter public Builder scheduler(@Nullable ClusterRkeConfigServicesScheduler scheduler) { + this.scheduler = scheduler; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcd.java index 95ed1e933..295a60301 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcd.java @@ -246,26 +246,31 @@ public Builder(ClusterRkeConfigServicesEtcd defaults) { @CustomType.Setter public Builder backupConfig(@Nullable ClusterRkeConfigServicesEtcdBackupConfig backupConfig) { + this.backupConfig = backupConfig; return this; } @CustomType.Setter public Builder caCert(@Nullable String caCert) { + this.caCert = caCert; return this; } @CustomType.Setter public Builder cert(@Nullable String cert) { + this.cert = cert; return this; } @CustomType.Setter public Builder creation(@Nullable String creation) { + this.creation = creation; return this; } @CustomType.Setter public Builder externalUrls(@Nullable List externalUrls) { + this.externalUrls = externalUrls; return this; } @@ -274,11 +279,13 @@ public Builder externalUrls(String... externalUrls) { } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -287,6 +294,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -295,36 +303,43 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder gid(@Nullable Integer gid) { + this.gid = gid; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder retention(@Nullable String retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder snapshot(@Nullable Boolean snapshot) { + this.snapshot = snapshot; return this; } @CustomType.Setter public Builder uid(@Nullable Integer uid) { + this.uid = uid; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfig.java index 382727731..d965e5653 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfig.java @@ -116,31 +116,37 @@ public Builder(ClusterRkeConfigServicesEtcdBackupConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder intervalHours(@Nullable Integer intervalHours) { + this.intervalHours = intervalHours; return this; } @CustomType.Setter public Builder retention(@Nullable Integer retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder s3BackupConfig(@Nullable ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig s3BackupConfig) { + this.s3BackupConfig = s3BackupConfig; return this; } @CustomType.Setter public Builder safeTimestamp(@Nullable Boolean safeTimestamp) { + this.safeTimestamp = safeTimestamp; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java index 9433e86d6..2c92d5bf3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -128,36 +129,47 @@ public Builder(ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig defaults) @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder customCa(@Nullable String customCa) { + this.customCa = customCa; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("ClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApi.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApi.java index 055bba78d..332b07060 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApi.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApi.java @@ -206,31 +206,37 @@ public Builder(ClusterRkeConfigServicesKubeApi defaults) { @CustomType.Setter public Builder admissionConfiguration(@Nullable ClusterRkeConfigServicesKubeApiAdmissionConfiguration admissionConfiguration) { + this.admissionConfiguration = admissionConfiguration; return this; } @CustomType.Setter public Builder alwaysPullImages(@Nullable Boolean alwaysPullImages) { + this.alwaysPullImages = alwaysPullImages; return this; } @CustomType.Setter public Builder auditLog(@Nullable ClusterRkeConfigServicesKubeApiAuditLog auditLog) { + this.auditLog = auditLog; return this; } @CustomType.Setter public Builder eventRateLimit(@Nullable ClusterRkeConfigServicesKubeApiEventRateLimit eventRateLimit) { + this.eventRateLimit = eventRateLimit; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -239,6 +245,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -247,26 +254,31 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder podSecurityPolicy(@Nullable Boolean podSecurityPolicy) { + this.podSecurityPolicy = podSecurityPolicy; return this; } @CustomType.Setter public Builder secretsEncryptionConfig(@Nullable ClusterRkeConfigServicesKubeApiSecretsEncryptionConfig secretsEncryptionConfig) { + this.secretsEncryptionConfig = secretsEncryptionConfig; return this; } @CustomType.Setter public Builder serviceClusterIpRange(@Nullable String serviceClusterIpRange) { + this.serviceClusterIpRange = serviceClusterIpRange; return this; } @CustomType.Setter public Builder serviceNodePortRange(@Nullable String serviceNodePortRange) { + this.serviceNodePortRange = serviceNodePortRange; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfiguration.java index 19928c74c..1c19a8106 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfiguration.java @@ -74,16 +74,19 @@ public Builder(ClusterRkeConfigServicesKubeApiAdmissionConfiguration defaults) { @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder plugins(@Nullable List plugins) { + this.plugins = plugins; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java index 97c6def01..b3501f8ab 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java @@ -72,16 +72,19 @@ public Builder(ClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin defau @CustomType.Setter public Builder configuration(@Nullable String configuration) { + this.configuration = configuration; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLog.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLog.java index b32e4c77e..a7f585f4e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLog.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLog.java @@ -59,11 +59,13 @@ public Builder(ClusterRkeConfigServicesKubeApiAuditLog defaults) { @CustomType.Setter public Builder configuration(@Nullable ClusterRkeConfigServicesKubeApiAuditLogConfiguration configuration) { + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLogConfiguration.java index 12fa2e8a8..d6668517a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiAuditLogConfiguration.java @@ -115,31 +115,37 @@ public Builder(ClusterRkeConfigServicesKubeApiAuditLogConfiguration defaults) { @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder maxAge(@Nullable Integer maxAge) { + this.maxAge = maxAge; return this; } @CustomType.Setter public Builder maxBackup(@Nullable Integer maxBackup) { + this.maxBackup = maxBackup; return this; } @CustomType.Setter public Builder maxSize(@Nullable Integer maxSize) { + this.maxSize = maxSize; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder policy(@Nullable String policy) { + this.policy = policy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiEventRateLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiEventRateLimit.java index d5be9a8c2..ab1851eac 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiEventRateLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiEventRateLimit.java @@ -59,11 +59,13 @@ public Builder(ClusterRkeConfigServicesKubeApiEventRateLimit defaults) { @CustomType.Setter public Builder configuration(@Nullable String configuration) { + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java index c3f6749a4..83cfa1d96 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java @@ -103,11 +103,13 @@ public Builder(ClusterRkeConfigServicesKubeApiSecretsEncryptionConfig defaults) @CustomType.Setter public Builder customConfig(@Nullable String customConfig) { + this.customConfig = customConfig; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeController.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeController.java index 77fbd929c..c59aab28f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeController.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeController.java @@ -117,16 +117,19 @@ public Builder(ClusterRkeConfigServicesKubeController defaults) { @CustomType.Setter public Builder clusterCidr(@Nullable String clusterCidr) { + this.clusterCidr = clusterCidr; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -135,6 +138,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -143,11 +147,13 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder serviceClusterIpRange(@Nullable String serviceClusterIpRange) { + this.serviceClusterIpRange = serviceClusterIpRange; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubelet.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubelet.java index b9be3bd58..44868b9a1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubelet.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubelet.java @@ -160,21 +160,25 @@ public Builder(ClusterRkeConfigServicesKubelet defaults) { @CustomType.Setter public Builder clusterDnsServer(@Nullable String clusterDnsServer) { + this.clusterDnsServer = clusterDnsServer; return this; } @CustomType.Setter public Builder clusterDomain(@Nullable String clusterDomain) { + this.clusterDomain = clusterDomain; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -183,6 +187,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -191,21 +196,25 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder failSwapOn(@Nullable Boolean failSwapOn) { + this.failSwapOn = failSwapOn; return this; } @CustomType.Setter public Builder generateServingCertificate(@Nullable Boolean generateServingCertificate) { + this.generateServingCertificate = generateServingCertificate; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder infraContainerImage(@Nullable String infraContainerImage) { + this.infraContainerImage = infraContainerImage; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeproxy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeproxy.java index ba70c7d38..d850a93a7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeproxy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesKubeproxy.java @@ -89,11 +89,13 @@ public Builder(ClusterRkeConfigServicesKubeproxy defaults) { @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -102,6 +104,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -110,6 +113,7 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesScheduler.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesScheduler.java index 9dc77e40c..b7fa231ee 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesScheduler.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigServicesScheduler.java @@ -89,11 +89,13 @@ public Builder(ClusterRkeConfigServicesScheduler defaults) { @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -102,6 +104,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -110,6 +113,7 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategy.java index 1d470297c..fe58012b2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategy.java @@ -88,21 +88,25 @@ public Builder(ClusterRkeConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder drain(@Nullable Boolean drain) { + this.drain = drain; return this; } @CustomType.Setter public Builder drainInput(@Nullable ClusterRkeConfigUpgradeStrategyDrainInput drainInput) { + this.drainInput = drainInput; return this; } @CustomType.Setter public Builder maxUnavailableControlplane(@Nullable String maxUnavailableControlplane) { + this.maxUnavailableControlplane = maxUnavailableControlplane; return this; } @CustomType.Setter public Builder maxUnavailableWorker(@Nullable String maxUnavailableWorker) { + this.maxUnavailableWorker = maxUnavailableWorker; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategyDrainInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategyDrainInput.java index 5f26bb711..5f9e090de 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategyDrainInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterRkeConfigUpgradeStrategyDrainInput.java @@ -101,26 +101,31 @@ public Builder(ClusterRkeConfigUpgradeStrategyDrainInput defaults) { @CustomType.Setter public Builder deleteLocalData(@Nullable Boolean deleteLocalData) { + this.deleteLocalData = deleteLocalData; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(@Nullable Integer gracePeriod) { + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterSyncNode.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterSyncNode.java index 9fe29afb1..8a108f26f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterSyncNode.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterSyncNode.java @@ -257,71 +257,85 @@ public Builder(ClusterSyncNode defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder capacity(@Nullable Map capacity) { + this.capacity = capacity; return this; } @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder externalIpAddress(@Nullable String externalIpAddress) { + this.externalIpAddress = externalIpAddress; return this; } @CustomType.Setter public Builder hostname(@Nullable String hostname) { + this.hostname = hostname; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodePoolId(@Nullable String nodePoolId) { + this.nodePoolId = nodePoolId; return this; } @CustomType.Setter public Builder nodeTemplateId(@Nullable String nodeTemplateId) { + this.nodeTemplateId = nodeTemplateId; return this; } @CustomType.Setter public Builder providerId(@Nullable String providerId) { + this.providerId = providerId; return this; } @CustomType.Setter public Builder requestedHostname(@Nullable String requestedHostname) { + this.requestedHostname = requestedHostname; return this; } @CustomType.Setter public Builder roles(@Nullable List roles) { + this.roles = roles; return this; } @@ -330,11 +344,13 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder systemInfo(@Nullable Map systemInfo) { + this.systemInfo = systemInfo; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateMember.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateMember.java index 8070f39e4..1bb1a64c2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateMember.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateMember.java @@ -72,16 +72,19 @@ public Builder(ClusterTemplateMember defaults) { @CustomType.Setter public Builder accessType(@Nullable String accessType) { + this.accessType = accessType; return this; } @CustomType.Setter public Builder groupPrincipalId(@Nullable String groupPrincipalId) { + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder userPrincipalId(@Nullable String userPrincipalId) { + this.userPrincipalId = userPrincipalId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevision.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevision.java index 2c3d23114..5a676ed0a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevision.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevision.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfig; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionQuestion; import java.lang.Boolean; @@ -162,46 +163,59 @@ public Builder(ClusterTemplateTemplateRevision defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterConfig(ClusterTemplateTemplateRevisionClusterConfig clusterConfig) { - this.clusterConfig = Objects.requireNonNull(clusterConfig); + if (clusterConfig == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevision", "clusterConfig"); + } + this.clusterConfig = clusterConfig; return this; } @CustomType.Setter public Builder clusterTemplateId(@Nullable String clusterTemplateId) { + this.clusterTemplateId = clusterTemplateId; return this; } @CustomType.Setter("default") public Builder default_(@Nullable Boolean default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevision", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder questions(@Nullable List questions) { + this.questions = questions; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfig.java index a17682e6f..37e4584ec 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfig; import java.lang.Boolean; @@ -193,61 +194,75 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfig defaults) { @CustomType.Setter public Builder clusterAuthEndpoint(@Nullable ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint clusterAuthEndpoint) { + this.clusterAuthEndpoint = clusterAuthEndpoint; return this; } @CustomType.Setter public Builder defaultClusterRoleForProjectMembers(@Nullable String defaultClusterRoleForProjectMembers) { + this.defaultClusterRoleForProjectMembers = defaultClusterRoleForProjectMembers; return this; } @CustomType.Setter public Builder defaultPodSecurityAdmissionConfigurationTemplateName(@Nullable String defaultPodSecurityAdmissionConfigurationTemplateName) { + this.defaultPodSecurityAdmissionConfigurationTemplateName = defaultPodSecurityAdmissionConfigurationTemplateName; return this; } @CustomType.Setter public Builder defaultPodSecurityPolicyTemplateId(@Nullable String defaultPodSecurityPolicyTemplateId) { + this.defaultPodSecurityPolicyTemplateId = defaultPodSecurityPolicyTemplateId; return this; } @CustomType.Setter public Builder desiredAgentImage(@Nullable String desiredAgentImage) { + this.desiredAgentImage = desiredAgentImage; return this; } @CustomType.Setter public Builder desiredAuthImage(@Nullable String desiredAuthImage) { + this.desiredAuthImage = desiredAuthImage; return this; } @CustomType.Setter public Builder dockerRootDir(@Nullable String dockerRootDir) { + this.dockerRootDir = dockerRootDir; return this; } @CustomType.Setter public Builder enableClusterAlerting(@Nullable Boolean enableClusterAlerting) { + this.enableClusterAlerting = enableClusterAlerting; return this; } @CustomType.Setter public Builder enableClusterMonitoring(@Nullable Boolean enableClusterMonitoring) { + this.enableClusterMonitoring = enableClusterMonitoring; return this; } @CustomType.Setter public Builder enableNetworkPolicy(@Nullable Boolean enableNetworkPolicy) { + this.enableNetworkPolicy = enableNetworkPolicy; return this; } @CustomType.Setter public Builder rkeConfig(ClusterTemplateTemplateRevisionClusterConfigRkeConfig rkeConfig) { - this.rkeConfig = Objects.requireNonNull(rkeConfig); + if (rkeConfig == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfig", "rkeConfig"); + } + this.rkeConfig = rkeConfig; return this; } @CustomType.Setter public Builder windowsPreferedCluster(@Nullable Boolean windowsPreferedCluster) { + this.windowsPreferedCluster = windowsPreferedCluster; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java index cfcfd3fe1..4b1eec0cc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java @@ -57,16 +57,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint d @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfig.java index 491667a0a..083b6ade7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfig.java @@ -183,16 +183,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfig defaults) { @CustomType.Setter public Builder addonJobTimeout(@Nullable Integer addonJobTimeout) { + this.addonJobTimeout = addonJobTimeout; return this; } @CustomType.Setter public Builder addons(@Nullable String addons) { + this.addons = addons; return this; } @CustomType.Setter public Builder addonsIncludes(@Nullable List addonsIncludes) { + this.addonsIncludes = addonsIncludes; return this; } @@ -201,61 +204,73 @@ public Builder addonsIncludes(String... addonsIncludes) { } @CustomType.Setter public Builder authentication(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication authentication) { + this.authentication = authentication; return this; } @CustomType.Setter public Builder authorization(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization authorization) { + this.authorization = authorization; return this; } @CustomType.Setter public Builder bastionHost(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost bastionHost) { + this.bastionHost = bastionHost; return this; } @CustomType.Setter public Builder cloudProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider cloudProvider) { + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder dns(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns dns) { + this.dns = dns; return this; } @CustomType.Setter public Builder enableCriDockerd(@Nullable Boolean enableCriDockerd) { + this.enableCriDockerd = enableCriDockerd; return this; } @CustomType.Setter public Builder ignoreDockerVersion(@Nullable Boolean ignoreDockerVersion) { + this.ignoreDockerVersion = ignoreDockerVersion; return this; } @CustomType.Setter public Builder ingress(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress ingress) { + this.ingress = ingress; return this; } @CustomType.Setter public Builder kubernetesVersion(@Nullable String kubernetesVersion) { + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder monitoring(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder network(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder nodes(@Nullable List nodes) { + this.nodes = nodes; return this; } @@ -264,11 +279,13 @@ public Builder nodes(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.. } @CustomType.Setter public Builder prefixPath(@Nullable String prefixPath) { + this.prefixPath = prefixPath; return this; } @CustomType.Setter public Builder privateRegistries(@Nullable List privateRegistries) { + this.privateRegistries = privateRegistries; return this; } @@ -277,31 +294,37 @@ public Builder privateRegistries(ClusterTemplateTemplateRevisionClusterConfigRke } @CustomType.Setter public Builder services(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices services) { + this.services = services; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshCertPath(@Nullable String sshCertPath) { + this.sshCertPath = sshCertPath; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder upgradeStrategy(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder winPrefixPath(@Nullable String winPrefixPath) { + this.winPrefixPath = winPrefixPath; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java index 4c59cad3c..3f1f7c621 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java @@ -43,6 +43,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthenticati @CustomType.Setter public Builder sans(@Nullable List sans) { + this.sans = sans; return this; } @@ -51,6 +52,7 @@ public Builder sans(String... sans) { } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java index 9a2b6f674..a0e52939e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java @@ -44,11 +44,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorizatio @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java index 855cd01f5..762b68838 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -67,32 +68,42 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(@Nullable String sshKey) { + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost", "user"); + } + this.user = user; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java index 7fdaf4c0c..570349cf6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java @@ -78,31 +78,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder awsCloudProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider awsCloudProvider) { + this.awsCloudProvider = awsCloudProvider; return this; } @CustomType.Setter public Builder azureCloudProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider azureCloudProvider) { + this.azureCloudProvider = azureCloudProvider; return this; } @CustomType.Setter public Builder customCloudProvider(@Nullable String customCloudProvider) { + this.customCloudProvider = customCloudProvider; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder openstackCloudProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider openstackCloudProvider) { + this.openstackCloudProvider = openstackCloudProvider; return this; } @CustomType.Setter public Builder vsphereCloudProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider vsphereCloudProvider) { + this.vsphereCloudProvider = vsphereCloudProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java index b8db41656..31d2c8899 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java @@ -44,11 +44,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder global(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal global) { + this.global = global; return this; } @CustomType.Setter public Builder serviceOverrides(@Nullable List serviceOverrides) { + this.serviceOverrides = serviceOverrides; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java index a8b8bff56..f5d93a352 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java @@ -91,51 +91,61 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder disableSecurityGroupIngress(@Nullable Boolean disableSecurityGroupIngress) { + this.disableSecurityGroupIngress = disableSecurityGroupIngress; return this; } @CustomType.Setter public Builder disableStrictZoneCheck(@Nullable Boolean disableStrictZoneCheck) { + this.disableStrictZoneCheck = disableStrictZoneCheck; return this; } @CustomType.Setter public Builder elbSecurityGroup(@Nullable String elbSecurityGroup) { + this.elbSecurityGroup = elbSecurityGroup; return this; } @CustomType.Setter public Builder kubernetesClusterId(@Nullable String kubernetesClusterId) { + this.kubernetesClusterId = kubernetesClusterId; return this; } @CustomType.Setter public Builder kubernetesClusterTag(@Nullable String kubernetesClusterTag) { + this.kubernetesClusterTag = kubernetesClusterTag; return this; } @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder routeTableId(@Nullable String routeTableId) { + this.routeTableId = routeTableId; return this; } @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder vpc(@Nullable String vpc) { + this.vpc = vpc; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java index 1a269dd8f..bf8fd13e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -66,31 +67,39 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder service(String service) { - this.service = Objects.requireNonNull(service); + if (service == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "service"); + } + this.service = service; return this; } @CustomType.Setter public Builder signingMethod(@Nullable String signingMethod) { + this.signingMethod = signingMethod; return this; } @CustomType.Setter public Builder signingName(@Nullable String signingName) { + this.signingName = signingName; return this; } @CustomType.Setter public Builder signingRegion(@Nullable String signingRegion) { + this.signingRegion = signingRegion; return this; } @CustomType.Setter public Builder url(@Nullable String url) { + this.url = url; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java index 5ef4f84e7..0a2c37144 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -206,146 +207,183 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder aadClientCertPassword(@Nullable String aadClientCertPassword) { + this.aadClientCertPassword = aadClientCertPassword; return this; } @CustomType.Setter public Builder aadClientCertPath(@Nullable String aadClientCertPath) { + this.aadClientCertPath = aadClientCertPath; return this; } @CustomType.Setter public Builder aadClientId(String aadClientId) { - this.aadClientId = Objects.requireNonNull(aadClientId); + if (aadClientId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "aadClientId"); + } + this.aadClientId = aadClientId; return this; } @CustomType.Setter public Builder aadClientSecret(String aadClientSecret) { - this.aadClientSecret = Objects.requireNonNull(aadClientSecret); + if (aadClientSecret == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "aadClientSecret"); + } + this.aadClientSecret = aadClientSecret; return this; } @CustomType.Setter public Builder cloud(@Nullable String cloud) { + this.cloud = cloud; return this; } @CustomType.Setter public Builder cloudProviderBackoff(@Nullable Boolean cloudProviderBackoff) { + this.cloudProviderBackoff = cloudProviderBackoff; return this; } @CustomType.Setter public Builder cloudProviderBackoffDuration(@Nullable Integer cloudProviderBackoffDuration) { + this.cloudProviderBackoffDuration = cloudProviderBackoffDuration; return this; } @CustomType.Setter public Builder cloudProviderBackoffExponent(@Nullable Integer cloudProviderBackoffExponent) { + this.cloudProviderBackoffExponent = cloudProviderBackoffExponent; return this; } @CustomType.Setter public Builder cloudProviderBackoffJitter(@Nullable Integer cloudProviderBackoffJitter) { + this.cloudProviderBackoffJitter = cloudProviderBackoffJitter; return this; } @CustomType.Setter public Builder cloudProviderBackoffRetries(@Nullable Integer cloudProviderBackoffRetries) { + this.cloudProviderBackoffRetries = cloudProviderBackoffRetries; return this; } @CustomType.Setter public Builder cloudProviderRateLimit(@Nullable Boolean cloudProviderRateLimit) { + this.cloudProviderRateLimit = cloudProviderRateLimit; return this; } @CustomType.Setter public Builder cloudProviderRateLimitBucket(@Nullable Integer cloudProviderRateLimitBucket) { + this.cloudProviderRateLimitBucket = cloudProviderRateLimitBucket; return this; } @CustomType.Setter public Builder cloudProviderRateLimitQps(@Nullable Integer cloudProviderRateLimitQps) { + this.cloudProviderRateLimitQps = cloudProviderRateLimitQps; return this; } @CustomType.Setter public Builder loadBalancerSku(@Nullable String loadBalancerSku) { + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; return this; } @CustomType.Setter public Builder maximumLoadBalancerRuleCount(@Nullable Integer maximumLoadBalancerRuleCount) { + this.maximumLoadBalancerRuleCount = maximumLoadBalancerRuleCount; return this; } @CustomType.Setter public Builder primaryAvailabilitySetName(@Nullable String primaryAvailabilitySetName) { + this.primaryAvailabilitySetName = primaryAvailabilitySetName; return this; } @CustomType.Setter public Builder primaryScaleSetName(@Nullable String primaryScaleSetName) { + this.primaryScaleSetName = primaryScaleSetName; return this; } @CustomType.Setter public Builder resourceGroup(@Nullable String resourceGroup) { + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder routeTableName(@Nullable String routeTableName) { + this.routeTableName = routeTableName; return this; } @CustomType.Setter public Builder securityGroupName(@Nullable String securityGroupName) { + this.securityGroupName = securityGroupName; return this; } @CustomType.Setter public Builder subnetName(@Nullable String subnetName) { + this.subnetName = subnetName; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder useInstanceMetadata(@Nullable Boolean useInstanceMetadata) { + this.useInstanceMetadata = useInstanceMetadata; return this; } @CustomType.Setter public Builder useManagedIdentityExtension(@Nullable Boolean useManagedIdentityExtension) { + this.useManagedIdentityExtension = useManagedIdentityExtension; return this; } @CustomType.Setter public Builder vmType(@Nullable String vmType) { + this.vmType = vmType; return this; } @CustomType.Setter public Builder vnetName(@Nullable String vnetName) { + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vnetResourceGroup(@Nullable String vnetResourceGroup) { + this.vnetResourceGroup = vnetResourceGroup; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java index 33084d82d..12729dd2a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer; @@ -64,26 +65,33 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder blockStorage(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage blockStorage) { + this.blockStorage = blockStorage; return this; } @CustomType.Setter public Builder global(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder loadBalancer(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer loadBalancer) { + this.loadBalancer = loadBalancer; return this; } @CustomType.Setter public Builder metadata(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata metadata) { + this.metadata = metadata; return this; } @CustomType.Setter public Builder route(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute route) { + this.route = route; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java index 4cf5bdad0..f4a68b301 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java @@ -49,16 +49,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder bsVersion(@Nullable String bsVersion) { + this.bsVersion = bsVersion; return this; } @CustomType.Setter public Builder ignoreVolumeAz(@Nullable Boolean ignoreVolumeAz) { + this.ignoreVolumeAz = ignoreVolumeAz; return this; } @CustomType.Setter public Builder trustDevicePath(@Nullable Boolean trustDevicePath) { + this.trustDevicePath = trustDevicePath; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java index 91d7dc0e1..30380ec56 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -90,52 +91,68 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder authUrl(String authUrl) { - this.authUrl = Objects.requireNonNull(authUrl); + if (authUrl == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "authUrl"); + } + this.authUrl = authUrl; return this; } @CustomType.Setter public Builder caFile(@Nullable String caFile) { + this.caFile = caFile; return this; } @CustomType.Setter public Builder domainId(@Nullable String domainId) { + this.domainId = domainId; return this; } @CustomType.Setter public Builder domainName(@Nullable String domainName) { + this.domainName = domainName; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder tenantId(@Nullable String tenantId) { + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder tenantName(@Nullable String tenantName) { + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder trustId(@Nullable String trustId) { + this.trustId = trustId; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "username"); + } + this.username = username; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java index 3dec6d23c..d97f34968 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java @@ -98,56 +98,67 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder createMonitor(@Nullable Boolean createMonitor) { + this.createMonitor = createMonitor; return this; } @CustomType.Setter public Builder floatingNetworkId(@Nullable String floatingNetworkId) { + this.floatingNetworkId = floatingNetworkId; return this; } @CustomType.Setter public Builder lbMethod(@Nullable String lbMethod) { + this.lbMethod = lbMethod; return this; } @CustomType.Setter public Builder lbProvider(@Nullable String lbProvider) { + this.lbProvider = lbProvider; return this; } @CustomType.Setter public Builder lbVersion(@Nullable String lbVersion) { + this.lbVersion = lbVersion; return this; } @CustomType.Setter public Builder manageSecurityGroups(@Nullable Boolean manageSecurityGroups) { + this.manageSecurityGroups = manageSecurityGroups; return this; } @CustomType.Setter public Builder monitorDelay(@Nullable String monitorDelay) { + this.monitorDelay = monitorDelay; return this; } @CustomType.Setter public Builder monitorMaxRetries(@Nullable Integer monitorMaxRetries) { + this.monitorMaxRetries = monitorMaxRetries; return this; } @CustomType.Setter public Builder monitorTimeout(@Nullable String monitorTimeout) { + this.monitorTimeout = monitorTimeout; return this; } @CustomType.Setter public Builder subnetId(@Nullable String subnetId) { + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder useOctavia(@Nullable Boolean useOctavia) { + this.useOctavia = useOctavia; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java index efa5e4cd0..1fca04d2e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java @@ -43,11 +43,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder requestTimeout(@Nullable Integer requestTimeout) { + this.requestTimeout = requestTimeout; return this; } @CustomType.Setter public Builder searchOrder(@Nullable String searchOrder) { + this.searchOrder = searchOrder; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java index 3cd94b7c7..cc90199a3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder routerId(@Nullable String routerId) { + this.routerId = routerId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java index 276bf0c0c..1e0a75fda 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork; @@ -65,22 +66,28 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder disk(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk disk) { + this.disk = disk; return this; } @CustomType.Setter public Builder global(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal global) { + this.global = global; return this; } @CustomType.Setter public Builder network(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork network) { + this.network = network; return this; } @CustomType.Setter public Builder virtualCenters(List virtualCenters) { - this.virtualCenters = Objects.requireNonNull(virtualCenters); + if (virtualCenters == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "virtualCenters"); + } + this.virtualCenters = virtualCenters; return this; } public Builder virtualCenters(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter... virtualCenters) { @@ -88,7 +95,10 @@ public Builder virtualCenters(ClusterTemplateTemplateRevisionClusterConfigRkeCon } @CustomType.Setter public Builder workspace(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace workspace) { - this.workspace = Objects.requireNonNull(workspace); + if (workspace == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "workspace"); + } + this.workspace = workspace; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java index 92848b9ea..1b50ff7fb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder scsiControllerType(@Nullable String scsiControllerType) { + this.scsiControllerType = scsiControllerType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java index 7bf43eece..4ecd651d4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -68,31 +68,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder datacenters(@Nullable String datacenters) { + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder insecureFlag(@Nullable Boolean insecureFlag) { + this.insecureFlag = insecureFlag; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(@Nullable Integer soapRoundtripCount) { + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java index 40e15ef56..3dd01217a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder publicNetwork(@Nullable String publicNetwork) { + this.publicNetwork = publicNetwork; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java index 7f65a54aa..be79e8472 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -75,32 +76,46 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder datacenters(String datacenters) { - this.datacenters = Objects.requireNonNull(datacenters); + if (datacenters == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "datacenters"); + } + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(@Nullable Integer soapRoundtripCount) { + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "user"); + } + this.user = user; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java index f3ffc37f9..5c5b55a8e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -60,27 +61,38 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvide @CustomType.Setter public Builder datacenter(String datacenter) { - this.datacenter = Objects.requireNonNull(datacenter); + if (datacenter == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "datacenter"); + } + this.datacenter = datacenter; return this; } @CustomType.Setter public Builder defaultDatastore(@Nullable String defaultDatastore) { + this.defaultDatastore = defaultDatastore; return this; } @CustomType.Setter public Builder folder(String folder) { - this.folder = Objects.requireNonNull(folder); + if (folder == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "folder"); + } + this.folder = folder; return this; } @CustomType.Setter public Builder resourcepoolPath(@Nullable String resourcepoolPath) { + this.resourcepoolPath = resourcepoolPath; return this; } @CustomType.Setter public Builder server(String server) { - this.server = Objects.requireNonNull(server); + if (server == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "server"); + } + this.server = server; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java index 67c5a68a1..cfdca4e13 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java @@ -91,31 +91,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDns defaults @CustomType.Setter public Builder linearAutoscalerParams(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams linearAutoscalerParams) { + this.linearAutoscalerParams = linearAutoscalerParams; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder nodelocal(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal nodelocal) { + this.nodelocal = nodelocal; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder reverseCidrs(@Nullable List reverseCidrs) { + this.reverseCidrs = reverseCidrs; return this; } @@ -124,6 +130,7 @@ public Builder reverseCidrs(String... reverseCidrs) { } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -132,11 +139,13 @@ public Builder tolerations(ClusterTemplateTemplateRevisionClusterConfigRkeConfig } @CustomType.Setter public Builder updateStrategy(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder upstreamNameservers(@Nullable List upstreamNameservers) { + this.upstreamNameservers = upstreamNameservers; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java index 69fb2988f..58a8cca59 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java @@ -62,26 +62,31 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAut @CustomType.Setter public Builder coresPerReplica(@Nullable Double coresPerReplica) { + this.coresPerReplica = coresPerReplica; return this; } @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } @CustomType.Setter public Builder nodesPerReplica(@Nullable Double nodesPerReplica) { + this.nodesPerReplica = nodesPerReplica; return this; } @CustomType.Setter public Builder preventSinglePointFailure(@Nullable Boolean preventSinglePointFailure) { + this.preventSinglePointFailure = preventSinglePointFailure; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java index 9ddebc8f0..12e41fe4f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java @@ -44,11 +44,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java index 27ba7f947..afedbbdcd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,33 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleratio @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java index adae8ea1a..d3fdce399 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStr @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java index cfe30982a..d6089c17a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStr @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java index 36a2b7368..e5ac4edc0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java @@ -103,51 +103,61 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress defa @CustomType.Setter public Builder defaultBackend(@Nullable Boolean defaultBackend) { + this.defaultBackend = defaultBackend; return this; } @CustomType.Setter public Builder dnsPolicy(@Nullable String dnsPolicy) { + this.dnsPolicy = dnsPolicy; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder httpPort(@Nullable Integer httpPort) { + this.httpPort = httpPort; return this; } @CustomType.Setter public Builder httpsPort(@Nullable Integer httpsPort) { + this.httpsPort = httpsPort; return this; } @CustomType.Setter public Builder networkMode(@Nullable String networkMode) { + this.networkMode = networkMode; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -156,6 +166,7 @@ public Builder tolerations(ClusterTemplateTemplateRevisionClusterConfigRkeConfig } @CustomType.Setter public Builder updateStrategy(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java index 8f81ee7bb..2ddee8800 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,33 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToler @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java index 16228fc8b..5ad3c2c34 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdat @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java index 42a1ea0f2..504c9285c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdat @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java index ec1373c95..fb5b6be2b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java @@ -72,26 +72,31 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring d @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder replicas(@Nullable Integer replicas) { + this.replicas = replicas; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -100,6 +105,7 @@ public Builder tolerations(ClusterTemplateTemplateRevisionClusterConfigRkeConfig } @CustomType.Setter public Builder updateStrategy(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java index 91b75be4d..2d435d645 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,33 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringTo @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java index bb6e8c7e7..363bde5a6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUp @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java index f57d8bade..197e85b67 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUp @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java index a86f0dc5c..fad581df4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java @@ -94,41 +94,49 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork defa @CustomType.Setter public Builder aciNetworkProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider aciNetworkProvider) { + this.aciNetworkProvider = aciNetworkProvider; return this; } @CustomType.Setter public Builder calicoNetworkProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider calicoNetworkProvider) { + this.calicoNetworkProvider = calicoNetworkProvider; return this; } @CustomType.Setter public Builder canalNetworkProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider canalNetworkProvider) { + this.canalNetworkProvider = canalNetworkProvider; return this; } @CustomType.Setter public Builder flannelNetworkProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider flannelNetworkProvider) { + this.flannelNetworkProvider = flannelNetworkProvider; return this; } @CustomType.Setter public Builder mtu(@Nullable Integer mtu) { + this.mtu = mtu; return this; } @CustomType.Setter public Builder options(@Nullable Map options) { + this.options = options; return this; } @CustomType.Setter public Builder plugin(@Nullable String plugin) { + this.plugin = plugin; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -137,6 +145,7 @@ public Builder tolerations(ClusterTemplateTemplateRevisionClusterConfigRkeConfig } @CustomType.Setter public Builder weaveNetworkProvider(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider weaveNetworkProvider) { + this.weaveNetworkProvider = weaveNetworkProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java index a37bfb23e..f29abaa5d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -475,12 +476,18 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNe @CustomType.Setter public Builder aep(String aep) { - this.aep = Objects.requireNonNull(aep); + if (aep == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "aep"); + } + this.aep = aep; return this; } @CustomType.Setter public Builder apicHosts(List apicHosts) { - this.apicHosts = Objects.requireNonNull(apicHosts); + if (apicHosts == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicHosts"); + } + this.apicHosts = apicHosts; return this; } public Builder apicHosts(String... apicHosts) { @@ -488,126 +495,163 @@ public Builder apicHosts(String... apicHosts) { } @CustomType.Setter public Builder apicRefreshTickerAdjust(@Nullable String apicRefreshTickerAdjust) { + this.apicRefreshTickerAdjust = apicRefreshTickerAdjust; return this; } @CustomType.Setter public Builder apicRefreshTime(@Nullable String apicRefreshTime) { + this.apicRefreshTime = apicRefreshTime; return this; } @CustomType.Setter public Builder apicSubscriptionDelay(@Nullable String apicSubscriptionDelay) { + this.apicSubscriptionDelay = apicSubscriptionDelay; return this; } @CustomType.Setter public Builder apicUserCrt(String apicUserCrt) { - this.apicUserCrt = Objects.requireNonNull(apicUserCrt); + if (apicUserCrt == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicUserCrt"); + } + this.apicUserCrt = apicUserCrt; return this; } @CustomType.Setter public Builder apicUserKey(String apicUserKey) { - this.apicUserKey = Objects.requireNonNull(apicUserKey); + if (apicUserKey == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicUserKey"); + } + this.apicUserKey = apicUserKey; return this; } @CustomType.Setter public Builder apicUserName(String apicUserName) { - this.apicUserName = Objects.requireNonNull(apicUserName); + if (apicUserName == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicUserName"); + } + this.apicUserName = apicUserName; return this; } @CustomType.Setter public Builder capic(@Nullable String capic) { + this.capic = capic; return this; } @CustomType.Setter public Builder controllerLogLevel(@Nullable String controllerLogLevel) { + this.controllerLogLevel = controllerLogLevel; return this; } @CustomType.Setter public Builder disablePeriodicSnatGlobalInfoSync(@Nullable String disablePeriodicSnatGlobalInfoSync) { + this.disablePeriodicSnatGlobalInfoSync = disablePeriodicSnatGlobalInfoSync; return this; } @CustomType.Setter public Builder disableWaitForNetwork(@Nullable String disableWaitForNetwork) { + this.disableWaitForNetwork = disableWaitForNetwork; return this; } @CustomType.Setter public Builder dropLogEnable(@Nullable String dropLogEnable) { + this.dropLogEnable = dropLogEnable; return this; } @CustomType.Setter public Builder durationWaitForNetwork(@Nullable String durationWaitForNetwork) { + this.durationWaitForNetwork = durationWaitForNetwork; return this; } @CustomType.Setter public Builder enableEndpointSlice(@Nullable String enableEndpointSlice) { + this.enableEndpointSlice = enableEndpointSlice; return this; } @CustomType.Setter public Builder encapType(String encapType) { - this.encapType = Objects.requireNonNull(encapType); + if (encapType == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "encapType"); + } + this.encapType = encapType; return this; } @CustomType.Setter public Builder epRegistry(@Nullable String epRegistry) { + this.epRegistry = epRegistry; return this; } @CustomType.Setter public Builder externDynamic(String externDynamic) { - this.externDynamic = Objects.requireNonNull(externDynamic); + if (externDynamic == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "externDynamic"); + } + this.externDynamic = externDynamic; return this; } @CustomType.Setter public Builder externStatic(String externStatic) { - this.externStatic = Objects.requireNonNull(externStatic); + if (externStatic == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "externStatic"); + } + this.externStatic = externStatic; return this; } @CustomType.Setter public Builder gbpPodSubnet(@Nullable String gbpPodSubnet) { + this.gbpPodSubnet = gbpPodSubnet; return this; } @CustomType.Setter public Builder hostAgentLogLevel(@Nullable String hostAgentLogLevel) { + this.hostAgentLogLevel = hostAgentLogLevel; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder imagePullSecret(@Nullable String imagePullSecret) { + this.imagePullSecret = imagePullSecret; return this; } @CustomType.Setter public Builder infraVlan(@Nullable String infraVlan) { + this.infraVlan = infraVlan; return this; } @CustomType.Setter public Builder installIstio(@Nullable String installIstio) { + this.installIstio = installIstio; return this; } @CustomType.Setter public Builder istioProfile(@Nullable String istioProfile) { + this.istioProfile = istioProfile; return this; } @CustomType.Setter public Builder kafkaBrokers(@Nullable List kafkaBrokers) { + this.kafkaBrokers = kafkaBrokers; return this; } @@ -616,27 +660,38 @@ public Builder kafkaBrokers(String... kafkaBrokers) { } @CustomType.Setter public Builder kafkaClientCrt(@Nullable String kafkaClientCrt) { + this.kafkaClientCrt = kafkaClientCrt; return this; } @CustomType.Setter public Builder kafkaClientKey(@Nullable String kafkaClientKey) { + this.kafkaClientKey = kafkaClientKey; return this; } @CustomType.Setter public Builder kubeApiVlan(String kubeApiVlan) { - this.kubeApiVlan = Objects.requireNonNull(kubeApiVlan); + if (kubeApiVlan == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "kubeApiVlan"); + } + this.kubeApiVlan = kubeApiVlan; return this; } @CustomType.Setter public Builder l3out(String l3out) { - this.l3out = Objects.requireNonNull(l3out); + if (l3out == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "l3out"); + } + this.l3out = l3out; return this; } @CustomType.Setter public Builder l3outExternalNetworks(List l3outExternalNetworks) { - this.l3outExternalNetworks = Objects.requireNonNull(l3outExternalNetworks); + if (l3outExternalNetworks == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "l3outExternalNetworks"); + } + this.l3outExternalNetworks = l3outExternalNetworks; return this; } public Builder l3outExternalNetworks(String... l3outExternalNetworks) { @@ -644,212 +699,272 @@ public Builder l3outExternalNetworks(String... l3outExternalNetworks) { } @CustomType.Setter public Builder maxNodesSvcGraph(@Nullable String maxNodesSvcGraph) { + this.maxNodesSvcGraph = maxNodesSvcGraph; return this; } @CustomType.Setter public Builder mcastRangeEnd(String mcastRangeEnd) { - this.mcastRangeEnd = Objects.requireNonNull(mcastRangeEnd); + if (mcastRangeEnd == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "mcastRangeEnd"); + } + this.mcastRangeEnd = mcastRangeEnd; return this; } @CustomType.Setter public Builder mcastRangeStart(String mcastRangeStart) { - this.mcastRangeStart = Objects.requireNonNull(mcastRangeStart); + if (mcastRangeStart == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "mcastRangeStart"); + } + this.mcastRangeStart = mcastRangeStart; return this; } @CustomType.Setter public Builder mtuHeadRoom(@Nullable String mtuHeadRoom) { + this.mtuHeadRoom = mtuHeadRoom; return this; } @CustomType.Setter public Builder multusDisable(@Nullable String multusDisable) { + this.multusDisable = multusDisable; return this; } @CustomType.Setter public Builder noPriorityClass(@Nullable String noPriorityClass) { + this.noPriorityClass = noPriorityClass; return this; } @CustomType.Setter public Builder nodePodIfEnable(@Nullable String nodePodIfEnable) { + this.nodePodIfEnable = nodePodIfEnable; return this; } @CustomType.Setter public Builder nodeSubnet(String nodeSubnet) { - this.nodeSubnet = Objects.requireNonNull(nodeSubnet); + if (nodeSubnet == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "nodeSubnet"); + } + this.nodeSubnet = nodeSubnet; return this; } @CustomType.Setter public Builder nodeSvcSubnet(String nodeSvcSubnet) { - this.nodeSvcSubnet = Objects.requireNonNull(nodeSvcSubnet); + if (nodeSvcSubnet == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "nodeSvcSubnet"); + } + this.nodeSvcSubnet = nodeSvcSubnet; return this; } @CustomType.Setter public Builder opflexClientSsl(@Nullable String opflexClientSsl) { + this.opflexClientSsl = opflexClientSsl; return this; } @CustomType.Setter public Builder opflexDeviceDeleteTimeout(@Nullable String opflexDeviceDeleteTimeout) { + this.opflexDeviceDeleteTimeout = opflexDeviceDeleteTimeout; return this; } @CustomType.Setter public Builder opflexLogLevel(@Nullable String opflexLogLevel) { + this.opflexLogLevel = opflexLogLevel; return this; } @CustomType.Setter public Builder opflexMode(@Nullable String opflexMode) { + this.opflexMode = opflexMode; return this; } @CustomType.Setter public Builder opflexServerPort(@Nullable String opflexServerPort) { + this.opflexServerPort = opflexServerPort; return this; } @CustomType.Setter public Builder overlayVrfName(@Nullable String overlayVrfName) { + this.overlayVrfName = overlayVrfName; return this; } @CustomType.Setter public Builder ovsMemoryLimit(@Nullable String ovsMemoryLimit) { + this.ovsMemoryLimit = ovsMemoryLimit; return this; } @CustomType.Setter public Builder pbrTrackingNonSnat(@Nullable String pbrTrackingNonSnat) { + this.pbrTrackingNonSnat = pbrTrackingNonSnat; return this; } @CustomType.Setter public Builder podSubnetChunkSize(@Nullable String podSubnetChunkSize) { + this.podSubnetChunkSize = podSubnetChunkSize; return this; } @CustomType.Setter public Builder runGbpContainer(@Nullable String runGbpContainer) { + this.runGbpContainer = runGbpContainer; return this; } @CustomType.Setter public Builder runOpflexServerContainer(@Nullable String runOpflexServerContainer) { + this.runOpflexServerContainer = runOpflexServerContainer; return this; } @CustomType.Setter public Builder serviceMonitorInterval(@Nullable String serviceMonitorInterval) { + this.serviceMonitorInterval = serviceMonitorInterval; return this; } @CustomType.Setter public Builder serviceVlan(String serviceVlan) { - this.serviceVlan = Objects.requireNonNull(serviceVlan); + if (serviceVlan == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "serviceVlan"); + } + this.serviceVlan = serviceVlan; return this; } @CustomType.Setter public Builder snatContractScope(@Nullable String snatContractScope) { + this.snatContractScope = snatContractScope; return this; } @CustomType.Setter public Builder snatNamespace(@Nullable String snatNamespace) { + this.snatNamespace = snatNamespace; return this; } @CustomType.Setter public Builder snatPortRangeEnd(@Nullable String snatPortRangeEnd) { + this.snatPortRangeEnd = snatPortRangeEnd; return this; } @CustomType.Setter public Builder snatPortRangeStart(@Nullable String snatPortRangeStart) { + this.snatPortRangeStart = snatPortRangeStart; return this; } @CustomType.Setter public Builder snatPortsPerNode(@Nullable String snatPortsPerNode) { + this.snatPortsPerNode = snatPortsPerNode; return this; } @CustomType.Setter public Builder sriovEnable(@Nullable String sriovEnable) { + this.sriovEnable = sriovEnable; return this; } @CustomType.Setter public Builder subnetDomainName(@Nullable String subnetDomainName) { + this.subnetDomainName = subnetDomainName; return this; } @CustomType.Setter public Builder systemId(String systemId) { - this.systemId = Objects.requireNonNull(systemId); + if (systemId == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "systemId"); + } + this.systemId = systemId; return this; } @CustomType.Setter public Builder tenant(@Nullable String tenant) { + this.tenant = tenant; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder useAciAnywhereCrd(@Nullable String useAciAnywhereCrd) { + this.useAciAnywhereCrd = useAciAnywhereCrd; return this; } @CustomType.Setter public Builder useAciCniPriorityClass(@Nullable String useAciCniPriorityClass) { + this.useAciCniPriorityClass = useAciCniPriorityClass; return this; } @CustomType.Setter public Builder useClusterRole(@Nullable String useClusterRole) { + this.useClusterRole = useClusterRole; return this; } @CustomType.Setter public Builder useHostNetnsVolume(@Nullable String useHostNetnsVolume) { + this.useHostNetnsVolume = useHostNetnsVolume; return this; } @CustomType.Setter public Builder useOpflexServerVolume(@Nullable String useOpflexServerVolume) { + this.useOpflexServerVolume = useOpflexServerVolume; return this; } @CustomType.Setter public Builder usePrivilegedContainer(@Nullable String usePrivilegedContainer) { + this.usePrivilegedContainer = usePrivilegedContainer; return this; } @CustomType.Setter public Builder vmmController(@Nullable String vmmController) { + this.vmmController = vmmController; return this; } @CustomType.Setter public Builder vmmDomain(@Nullable String vmmDomain) { + this.vmmDomain = vmmDomain; return this; } @CustomType.Setter public Builder vrfName(String vrfName) { - this.vrfName = Objects.requireNonNull(vrfName); + if (vrfName == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "vrfName"); + } + this.vrfName = vrfName; return this; } @CustomType.Setter public Builder vrfTenant(String vrfTenant) { - this.vrfTenant = Objects.requireNonNull(vrfTenant); + if (vrfTenant == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "vrfTenant"); + } + this.vrfTenant = vrfTenant; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java index ac059e36c..5a26bf8ed 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalic @CustomType.Setter public Builder cloudProvider(@Nullable String cloudProvider) { + this.cloudProvider = cloudProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java index babd7ce75..353593e70 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanal @CustomType.Setter public Builder iface(@Nullable String iface) { + this.iface = iface; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java index c3261710e..2919c2a14 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java @@ -36,6 +36,7 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlann @CustomType.Setter public Builder iface(@Nullable String iface) { + this.iface = iface; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java index 724941cb3..fad4fa8d2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,33 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToler @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java index 853b0cf5f..d6656a82f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeave @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider", "password"); + } + this.password = password; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java index da352647e..e395763e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -114,42 +115,54 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode default @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder dockerSocket(@Nullable String dockerSocket) { + this.dockerSocket = dockerSocket; return this; } @CustomType.Setter public Builder hostnameOverride(@Nullable String hostnameOverride) { + this.hostnameOverride = hostnameOverride; return this; } @CustomType.Setter public Builder internalAddress(@Nullable String internalAddress) { + this.internalAddress = internalAddress; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -157,22 +170,28 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(@Nullable String sshKey) { + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "user"); + } + this.user = user; return this; } public ClusterTemplateTemplateRevisionClusterConfigRkeConfigNode build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java index 12f25b1fa..69b4ae4f7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin; import java.lang.Boolean; import java.lang.String; @@ -62,26 +63,33 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegis @CustomType.Setter public Builder ecrCredentialPlugin(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin ecrCredentialPlugin) { + this.ecrCredentialPlugin = ecrCredentialPlugin; return this; } @CustomType.Setter public Builder isDefault(@Nullable Boolean isDefault) { + this.isDefault = isDefault; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java index 9cacf0831..8ea32c152 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java @@ -48,16 +48,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegis @CustomType.Setter public Builder awsAccessKeyId(@Nullable String awsAccessKeyId) { + this.awsAccessKeyId = awsAccessKeyId; return this; } @CustomType.Setter public Builder awsSecretAccessKey(@Nullable String awsSecretAccessKey) { + this.awsSecretAccessKey = awsSecretAccessKey; return this; } @CustomType.Setter public Builder awsSessionToken(@Nullable String awsSessionToken) { + this.awsSessionToken = awsSessionToken; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java index 9479f1f62..7ef1a6fc0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java @@ -71,31 +71,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServices def @CustomType.Setter public Builder etcd(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd etcd) { + this.etcd = etcd; return this; } @CustomType.Setter public Builder kubeApi(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi kubeApi) { + this.kubeApi = kubeApi; return this; } @CustomType.Setter public Builder kubeController(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController kubeController) { + this.kubeController = kubeController; return this; } @CustomType.Setter public Builder kubelet(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet kubelet) { + this.kubelet = kubelet; return this; } @CustomType.Setter public Builder kubeproxy(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy kubeproxy) { + this.kubeproxy = kubeproxy; return this; } @CustomType.Setter public Builder scheduler(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler scheduler) { + this.scheduler = scheduler; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java index ef1dbfb2b..e1bbe67aa 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java @@ -126,26 +126,31 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd @CustomType.Setter public Builder backupConfig(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig backupConfig) { + this.backupConfig = backupConfig; return this; } @CustomType.Setter public Builder caCert(@Nullable String caCert) { + this.caCert = caCert; return this; } @CustomType.Setter public Builder cert(@Nullable String cert) { + this.cert = cert; return this; } @CustomType.Setter public Builder creation(@Nullable String creation) { + this.creation = creation; return this; } @CustomType.Setter public Builder externalUrls(@Nullable List externalUrls) { + this.externalUrls = externalUrls; return this; } @@ -154,11 +159,13 @@ public Builder externalUrls(String... externalUrls) { } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -167,6 +174,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -175,36 +183,43 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder gid(@Nullable Integer gid) { + this.gid = gid; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder retention(@Nullable String retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder snapshot(@Nullable Boolean snapshot) { + this.snapshot = snapshot; return this; } @CustomType.Setter public Builder uid(@Nullable Integer uid) { + this.uid = uid; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java index 59d2bc50b..ce01a0615 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java @@ -76,31 +76,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder intervalHours(@Nullable Integer intervalHours) { + this.intervalHours = intervalHours; return this; } @CustomType.Setter public Builder retention(@Nullable Integer retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder s3BackupConfig(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig s3BackupConfig) { + this.s3BackupConfig = s3BackupConfig; return this; } @CustomType.Setter public Builder safeTimestamp(@Nullable Boolean safeTimestamp) { + this.safeTimestamp = safeTimestamp; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java index 5669ae8ef..50eb00a87 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,36 +73,47 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder customCa(@Nullable String customCa) { + this.customCa = customCa; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java index 0b9928083..2bd0de7c7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java @@ -110,31 +110,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder admissionConfiguration(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration admissionConfiguration) { + this.admissionConfiguration = admissionConfiguration; return this; } @CustomType.Setter public Builder alwaysPullImages(@Nullable Boolean alwaysPullImages) { + this.alwaysPullImages = alwaysPullImages; return this; } @CustomType.Setter public Builder auditLog(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog auditLog) { + this.auditLog = auditLog; return this; } @CustomType.Setter public Builder eventRateLimit(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit eventRateLimit) { + this.eventRateLimit = eventRateLimit; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -143,6 +149,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -151,26 +158,31 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder podSecurityPolicy(@Nullable Boolean podSecurityPolicy) { + this.podSecurityPolicy = podSecurityPolicy; return this; } @CustomType.Setter public Builder secretsEncryptionConfig(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig secretsEncryptionConfig) { + this.secretsEncryptionConfig = secretsEncryptionConfig; return this; } @CustomType.Setter public Builder serviceClusterIpRange(@Nullable String serviceClusterIpRange) { + this.serviceClusterIpRange = serviceClusterIpRange; return this; } @CustomType.Setter public Builder serviceNodePortRange(@Nullable String serviceNodePortRange) { + this.serviceNodePortRange = serviceNodePortRange; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java index 196e3cee1..73fc61e8f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java @@ -50,16 +50,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder plugins(@Nullable List plugins) { + this.plugins = plugins; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java index 5b926e15e..f2fe6e522 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java @@ -56,16 +56,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder configuration(@Nullable String configuration) { + this.configuration = configuration; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java index 136451075..c94aaebae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java @@ -51,11 +51,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder configuration(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration configuration) { + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java index 58e867385..72ac3330a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java @@ -67,31 +67,37 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder maxAge(@Nullable Integer maxAge) { + this.maxAge = maxAge; return this; } @CustomType.Setter public Builder maxBackup(@Nullable Integer maxBackup) { + this.maxBackup = maxBackup; return this; } @CustomType.Setter public Builder maxSize(@Nullable Integer maxSize) { + this.maxSize = maxSize; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder policy(@Nullable String policy) { + this.policy = policy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java index 8b1720ecf..ae43d2fa1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java @@ -51,11 +51,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder configuration(@Nullable String configuration) { + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java index 973d15bba..721ecafdd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java @@ -51,11 +51,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder customConfig(@Nullable String customConfig) { + this.customConfig = customConfig; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java index 79307bf43..bad2652a5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java @@ -69,16 +69,19 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder clusterCidr(@Nullable String clusterCidr) { + this.clusterCidr = clusterCidr; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -87,6 +90,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -95,11 +99,13 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder serviceClusterIpRange(@Nullable String serviceClusterIpRange) { + this.serviceClusterIpRange = serviceClusterIpRange; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java index a91e86497..aa70eea93 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java @@ -88,21 +88,25 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder clusterDnsServer(@Nullable String clusterDnsServer) { + this.clusterDnsServer = clusterDnsServer; return this; } @CustomType.Setter public Builder clusterDomain(@Nullable String clusterDomain) { + this.clusterDomain = clusterDomain; return this; } @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -111,6 +115,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -119,21 +124,25 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder failSwapOn(@Nullable Boolean failSwapOn) { + this.failSwapOn = failSwapOn; return this; } @CustomType.Setter public Builder generateServingCertificate(@Nullable Boolean generateServingCertificate) { + this.generateServingCertificate = generateServingCertificate; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder infraContainerImage(@Nullable String infraContainerImage) { + this.infraContainerImage = infraContainerImage; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java index 675b01f11..57f96f3bf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java @@ -57,11 +57,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKube @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -70,6 +72,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -78,6 +81,7 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java index 6d9009c8d..6204a7873 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java @@ -57,11 +57,13 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesSche @CustomType.Setter public Builder extraArgs(@Nullable Map extraArgs) { + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -70,6 +72,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -78,6 +81,7 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java index 69d9626d0..7a0449405 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java @@ -56,21 +56,25 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrat @CustomType.Setter public Builder drain(@Nullable Boolean drain) { + this.drain = drain; return this; } @CustomType.Setter public Builder drainInput(@Nullable ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput drainInput) { + this.drainInput = drainInput; return this; } @CustomType.Setter public Builder maxUnavailableControlplane(@Nullable String maxUnavailableControlplane) { + this.maxUnavailableControlplane = maxUnavailableControlplane; return this; } @CustomType.Setter public Builder maxUnavailableWorker(@Nullable String maxUnavailableWorker) { + this.maxUnavailableWorker = maxUnavailableWorker; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java index 4aec92ce9..f100fc2cf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java @@ -61,26 +61,31 @@ public Builder(ClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrat @CustomType.Setter public Builder deleteLocalData(@Nullable Boolean deleteLocalData) { + this.deleteLocalData = deleteLocalData; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(@Nullable Integer gracePeriod) { + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionQuestion.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionQuestion.java index a3b6189d1..36fafe141 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionQuestion.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterTemplateTemplateRevisionQuestion.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -87,22 +88,30 @@ public Builder(ClusterTemplateTemplateRevisionQuestion defaults) { @CustomType.Setter("default") public Builder default_(String default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionQuestion", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder variable(String variable) { - this.variable = Objects.requireNonNull(variable); + if (variable == null) { + throw new MissingRequiredPropertyException("ClusterTemplateTemplateRevisionQuestion", "variable"); + } + this.variable = variable; return this; } public ClusterTemplateTemplateRevisionQuestion build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java index 4ce5780c5..d83e8f5d1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2AgentEnvVar.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(ClusterV2AgentEnvVar defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterV2AgentEnvVar", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ClusterV2AgentEnvVar", "value"); + } + this.value = value; return this; } public ClusterV2AgentEnvVar build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java index 7b16882d7..8d0d4a1da 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomization.java @@ -75,6 +75,7 @@ public Builder(ClusterV2ClusterAgentDeploymentCustomization defaults) { @CustomType.Setter public Builder appendTolerations(@Nullable List appendTolerations) { + this.appendTolerations = appendTolerations; return this; } @@ -83,11 +84,13 @@ public Builder appendTolerations(ClusterV2ClusterAgentDeploymentCustomizationApp } @CustomType.Setter public Builder overrideAffinity(@Nullable String overrideAffinity) { + this.overrideAffinity = overrideAffinity; return this; } @CustomType.Setter public Builder overrideResourceRequirements(@Nullable List overrideResourceRequirements) { + this.overrideResourceRequirements = overrideResourceRequirements; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java index 65d35ada2..83394c388 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationAppendToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterV2ClusterAgentDeploymentCustomizationAppendToleration defa @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterV2ClusterAgentDeploymentCustomizationAppendToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java index 5dc544aed..23fdab886 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequirement.java @@ -86,21 +86,25 @@ public Builder(ClusterV2ClusterAgentDeploymentCustomizationOverrideResourceRequi @CustomType.Setter public Builder cpuLimit(@Nullable String cpuLimit) { + this.cpuLimit = cpuLimit; return this; } @CustomType.Setter public Builder cpuRequest(@Nullable String cpuRequest) { + this.cpuRequest = cpuRequest; return this; } @CustomType.Setter public Builder memoryLimit(@Nullable String memoryLimit) { + this.memoryLimit = memoryLimit; return this; } @CustomType.Setter public Builder memoryRequest(@Nullable String memoryRequest) { + this.memoryRequest = memoryRequest; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java index b4bfe3409..2dcf5d809 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2ClusterRegistrationToken.java @@ -214,66 +214,79 @@ public Builder(ClusterV2ClusterRegistrationToken defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder command(@Nullable String command) { + this.command = command; return this; } @CustomType.Setter public Builder id(@Nullable String id) { + this.id = id; return this; } @CustomType.Setter public Builder insecureCommand(@Nullable String insecureCommand) { + this.insecureCommand = insecureCommand; return this; } @CustomType.Setter public Builder insecureNodeCommand(@Nullable String insecureNodeCommand) { + this.insecureNodeCommand = insecureNodeCommand; return this; } @CustomType.Setter public Builder insecureWindowsNodeCommand(@Nullable String insecureWindowsNodeCommand) { + this.insecureWindowsNodeCommand = insecureWindowsNodeCommand; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder manifestUrl(@Nullable String manifestUrl) { + this.manifestUrl = manifestUrl; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder nodeCommand(@Nullable String nodeCommand) { + this.nodeCommand = nodeCommand; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } @CustomType.Setter public Builder windowsNodeCommand(@Nullable String windowsNodeCommand) { + this.windowsNodeCommand = windowsNodeCommand; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java index ed7d1bc24..33408a997 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomization.java @@ -75,6 +75,7 @@ public Builder(ClusterV2FleetAgentDeploymentCustomization defaults) { @CustomType.Setter public Builder appendTolerations(@Nullable List appendTolerations) { + this.appendTolerations = appendTolerations; return this; } @@ -83,11 +84,13 @@ public Builder appendTolerations(ClusterV2FleetAgentDeploymentCustomizationAppen } @CustomType.Setter public Builder overrideAffinity(@Nullable String overrideAffinity) { + this.overrideAffinity = overrideAffinity; return this; } @CustomType.Setter public Builder overrideResourceRequirements(@Nullable List overrideResourceRequirements) { + this.overrideResourceRequirements = overrideResourceRequirements; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java index 78f114c6c..e3752d7a4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationAppendToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterV2FleetAgentDeploymentCustomizationAppendToleration defaul @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterV2FleetAgentDeploymentCustomizationAppendToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(@Nullable Integer seconds) { + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java index 149164ad1..153e6d749 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequirement.java @@ -86,21 +86,25 @@ public Builder(ClusterV2FleetAgentDeploymentCustomizationOverrideResourceRequire @CustomType.Setter public Builder cpuLimit(@Nullable String cpuLimit) { + this.cpuLimit = cpuLimit; return this; } @CustomType.Setter public Builder cpuRequest(@Nullable String cpuRequest) { + this.cpuRequest = cpuRequest; return this; } @CustomType.Setter public Builder memoryLimit(@Nullable String memoryLimit) { + this.memoryLimit = memoryLimit; return this; } @CustomType.Setter public Builder memoryRequest(@Nullable String memoryRequest) { + this.memoryRequest = memoryRequest; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java index cf71eb54d..892ee5ffd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2LocalAuthEndpoint.java @@ -73,16 +73,19 @@ public Builder(ClusterV2LocalAuthEndpoint defaults) { @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java index 8504727fc..90a9f2602 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfig.java @@ -223,41 +223,49 @@ public Builder(ClusterV2RkeConfig defaults) { @CustomType.Setter public Builder additionalManifest(@Nullable String additionalManifest) { + this.additionalManifest = additionalManifest; return this; } @CustomType.Setter public Builder chartValues(@Nullable String chartValues) { + this.chartValues = chartValues; return this; } @CustomType.Setter public Builder etcd(@Nullable ClusterV2RkeConfigEtcd etcd) { + this.etcd = etcd; return this; } @CustomType.Setter public Builder etcdSnapshotCreate(@Nullable ClusterV2RkeConfigEtcdSnapshotCreate etcdSnapshotCreate) { + this.etcdSnapshotCreate = etcdSnapshotCreate; return this; } @CustomType.Setter public Builder etcdSnapshotRestore(@Nullable ClusterV2RkeConfigEtcdSnapshotRestore etcdSnapshotRestore) { + this.etcdSnapshotRestore = etcdSnapshotRestore; return this; } @CustomType.Setter public Builder localAuthEndpoint(@Nullable ClusterV2RkeConfigLocalAuthEndpoint localAuthEndpoint) { + this.localAuthEndpoint = localAuthEndpoint; return this; } @CustomType.Setter public Builder machineGlobalConfig(@Nullable String machineGlobalConfig) { + this.machineGlobalConfig = machineGlobalConfig; return this; } @CustomType.Setter public Builder machinePoolDefaults(@Nullable List machinePoolDefaults) { + this.machinePoolDefaults = machinePoolDefaults; return this; } @@ -266,6 +274,7 @@ public Builder machinePoolDefaults(ClusterV2RkeConfigMachinePoolDefault... machi } @CustomType.Setter public Builder machinePools(@Nullable List machinePools) { + this.machinePools = machinePools; return this; } @@ -274,6 +283,7 @@ public Builder machinePools(ClusterV2RkeConfigMachinePool... machinePools) { } @CustomType.Setter public Builder machineSelectorConfigs(@Nullable List machineSelectorConfigs) { + this.machineSelectorConfigs = machineSelectorConfigs; return this; } @@ -282,16 +292,19 @@ public Builder machineSelectorConfigs(ClusterV2RkeConfigMachineSelectorConfig... } @CustomType.Setter public Builder registries(@Nullable ClusterV2RkeConfigRegistries registries) { + this.registries = registries; return this; } @CustomType.Setter public Builder rotateCertificates(@Nullable ClusterV2RkeConfigRotateCertificates rotateCertificates) { + this.rotateCertificates = rotateCertificates; return this; } @CustomType.Setter public Builder upgradeStrategy(@Nullable ClusterV2RkeConfigUpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java index 10453da45..eff536a35 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcd.java @@ -89,21 +89,25 @@ public Builder(ClusterV2RkeConfigEtcd defaults) { @CustomType.Setter public Builder disableSnapshots(@Nullable Boolean disableSnapshots) { + this.disableSnapshots = disableSnapshots; return this; } @CustomType.Setter public Builder s3Config(@Nullable ClusterV2RkeConfigEtcdS3Config s3Config) { + this.s3Config = s3Config; return this; } @CustomType.Setter public Builder snapshotRetention(@Nullable Integer snapshotRetention) { + this.snapshotRetention = snapshotRetention; return this; } @CustomType.Setter public Builder snapshotScheduleCron(@Nullable String snapshotScheduleCron) { + this.snapshotScheduleCron = snapshotScheduleCron; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java index afceceef4..ae7601e35 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdS3Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -129,36 +130,47 @@ public Builder(ClusterV2RkeConfigEtcdS3Config defaults) { @CustomType.Setter public Builder bucket(String bucket) { - this.bucket = Objects.requireNonNull(bucket); + if (bucket == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdS3Config", "bucket"); + } + this.bucket = bucket; return this; } @CustomType.Setter public Builder cloudCredentialName(@Nullable String cloudCredentialName) { + this.cloudCredentialName = cloudCredentialName; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdS3Config", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder endpointCa(@Nullable String endpointCa) { + this.endpointCa = endpointCa; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder skipSslVerify(@Nullable Boolean skipSslVerify) { + this.skipSslVerify = skipSslVerify; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java index 1cd5e203f..8cff64dca 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotCreate.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(ClusterV2RkeConfigEtcdSnapshotCreate defaults) { @CustomType.Setter public Builder generation(Integer generation) { - this.generation = Objects.requireNonNull(generation); + if (generation == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdSnapshotCreate", "generation"); + } + this.generation = generation; return this; } public ClusterV2RkeConfigEtcdSnapshotCreate build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java index 28cdae48c..90ee879e4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigEtcdSnapshotRestore.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,16 +74,23 @@ public Builder(ClusterV2RkeConfigEtcdSnapshotRestore defaults) { @CustomType.Setter public Builder generation(Integer generation) { - this.generation = Objects.requireNonNull(generation); + if (generation == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdSnapshotRestore", "generation"); + } + this.generation = generation; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigEtcdSnapshotRestore", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder restoreRkeConfig(@Nullable String restoreRkeConfig) { + this.restoreRkeConfig = restoreRkeConfig; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java index 46b42f2f3..a082ca2c2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigLocalAuthEndpoint.java @@ -73,16 +73,19 @@ public Builder(ClusterV2RkeConfigLocalAuthEndpoint defaults) { @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java index 6287d9f35..2c2c73372 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePool.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachinePoolMachineConfig; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachinePoolRollingUpdate; import com.pulumi.rancher2.outputs.ClusterV2RkeConfigMachinePoolTaint; @@ -310,86 +311,107 @@ public Builder(ClusterV2RkeConfigMachinePool defaults) { @CustomType.Setter public Builder annotations(@Nullable Map annotations) { + this.annotations = annotations; return this; } @CustomType.Setter public Builder cloudCredentialSecretName(@Nullable String cloudCredentialSecretName) { + this.cloudCredentialSecretName = cloudCredentialSecretName; return this; } @CustomType.Setter public Builder controlPlaneRole(@Nullable Boolean controlPlaneRole) { + this.controlPlaneRole = controlPlaneRole; return this; } @CustomType.Setter public Builder drainBeforeDelete(@Nullable Boolean drainBeforeDelete) { + this.drainBeforeDelete = drainBeforeDelete; return this; } @CustomType.Setter public Builder etcdRole(@Nullable Boolean etcdRole) { + this.etcdRole = etcdRole; return this; } @CustomType.Setter public Builder hostnameLengthLimit(@Nullable Integer hostnameLengthLimit) { + this.hostnameLengthLimit = hostnameLengthLimit; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder machineConfig(ClusterV2RkeConfigMachinePoolMachineConfig machineConfig) { - this.machineConfig = Objects.requireNonNull(machineConfig); + if (machineConfig == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePool", "machineConfig"); + } + this.machineConfig = machineConfig; return this; } @CustomType.Setter public Builder machineLabels(@Nullable Map machineLabels) { + this.machineLabels = machineLabels; return this; } @CustomType.Setter public Builder maxUnhealthy(@Nullable String maxUnhealthy) { + this.maxUnhealthy = maxUnhealthy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeDrainTimeout(@Nullable Integer nodeDrainTimeout) { + this.nodeDrainTimeout = nodeDrainTimeout; return this; } @CustomType.Setter public Builder nodeStartupTimeoutSeconds(@Nullable Integer nodeStartupTimeoutSeconds) { + this.nodeStartupTimeoutSeconds = nodeStartupTimeoutSeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder quantity(@Nullable Integer quantity) { + this.quantity = quantity; return this; } @CustomType.Setter public Builder rollingUpdate(@Nullable ClusterV2RkeConfigMachinePoolRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -398,16 +420,19 @@ public Builder taints(ClusterV2RkeConfigMachinePoolTaint... taints) { } @CustomType.Setter public Builder unhealthyNodeTimeoutSeconds(@Nullable Integer unhealthyNodeTimeoutSeconds) { + this.unhealthyNodeTimeoutSeconds = unhealthyNodeTimeoutSeconds; return this; } @CustomType.Setter public Builder unhealthyRange(@Nullable String unhealthyRange) { + this.unhealthyRange = unhealthyRange; return this; } @CustomType.Setter public Builder workerRole(@Nullable Boolean workerRole) { + this.workerRole = workerRole; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolDefault.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolDefault.java index f434a964f..08a5dce00 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolDefault.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolDefault.java @@ -36,6 +36,7 @@ public Builder(ClusterV2RkeConfigMachinePoolDefault defaults) { @CustomType.Setter public Builder hostnameLengthLimit(@Nullable Integer hostnameLengthLimit) { + this.hostnameLengthLimit = hostnameLengthLimit; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java index 80a62d837..b6ec10d7d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolMachineConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(ClusterV2RkeConfigMachinePoolMachineConfig defaults) { @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolMachineConfig", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolMachineConfig", "name"); + } + this.name = name; return this; } public ClusterV2RkeConfigMachinePoolMachineConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java index db949728e..8bfa9a22c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolRollingUpdate.java @@ -58,11 +58,13 @@ public Builder(ClusterV2RkeConfigMachinePoolRollingUpdate defaults) { @CustomType.Setter public Builder maxSurge(@Nullable String maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable String maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java index 4dd7618d0..089364355 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachinePoolTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,17 +73,24 @@ public Builder(ClusterV2RkeConfigMachinePoolTaint defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigMachinePoolTaint", "value"); + } + this.value = value; return this; } public ClusterV2RkeConfigMachinePoolTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java index 59612a7d9..a9ad86293 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfig.java @@ -59,11 +59,13 @@ public Builder(ClusterV2RkeConfigMachineSelectorConfig defaults) { @CustomType.Setter public Builder config(@Nullable String config) { + this.config = config; return this; } @CustomType.Setter public Builder machineLabelSelector(@Nullable ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector machineLabelSelector) { + this.machineLabelSelector = machineLabelSelector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java index 982bd5282..82e9d61d6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java @@ -61,6 +61,7 @@ public Builder(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector defau @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -69,6 +70,7 @@ public Builder matchExpressions(ClusterV2RkeConfigMachineSelectorConfigMachineLa } @CustomType.Setter public Builder matchLabels(@Nullable Map matchLabels) { + this.matchLabels = matchLabels; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java index e5707e4c8..64c3535e7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java @@ -73,16 +73,19 @@ public Builder(ClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchE @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java index de7a358c2..79ee8b0ce 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistries.java @@ -59,6 +59,7 @@ public Builder(ClusterV2RkeConfigRegistries defaults) { @CustomType.Setter public Builder configs(@Nullable List configs) { + this.configs = configs; return this; } @@ -67,6 +68,7 @@ public Builder configs(ClusterV2RkeConfigRegistriesConfig... configs) { } @CustomType.Setter public Builder mirrors(@Nullable List mirrors) { + this.mirrors = mirrors; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java index 30fb19dbe..179feca23 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -101,26 +102,33 @@ public Builder(ClusterV2RkeConfigRegistriesConfig defaults) { @CustomType.Setter public Builder authConfigSecretName(@Nullable String authConfigSecretName) { + this.authConfigSecretName = authConfigSecretName; return this; } @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigRegistriesConfig", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder insecure(@Nullable Boolean insecure) { + this.insecure = insecure; return this; } @CustomType.Setter public Builder tlsSecretName(@Nullable String tlsSecretName) { + this.tlsSecretName = tlsSecretName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java index 616b0d620..27c7c1b50 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRegistriesMirror.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -74,6 +75,7 @@ public Builder(ClusterV2RkeConfigRegistriesMirror defaults) { @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { + this.endpoints = endpoints; return this; } @@ -82,11 +84,15 @@ public Builder endpoints(String... endpoints) { } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigRegistriesMirror", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder rewrites(@Nullable Map rewrites) { + this.rewrites = rewrites; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java index fbf0186f0..abe907d22 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigRotateCertificates.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -59,11 +60,15 @@ public Builder(ClusterV2RkeConfigRotateCertificates defaults) { @CustomType.Setter public Builder generation(Integer generation) { - this.generation = Objects.requireNonNull(generation); + if (generation == null) { + throw new MissingRequiredPropertyException("ClusterV2RkeConfigRotateCertificates", "generation"); + } + this.generation = generation; return this; } @CustomType.Setter public Builder services(@Nullable List services) { + this.services = services; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java index 0fd757798..d78618717 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategy.java @@ -88,21 +88,25 @@ public Builder(ClusterV2RkeConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder controlPlaneConcurrency(@Nullable String controlPlaneConcurrency) { + this.controlPlaneConcurrency = controlPlaneConcurrency; return this; } @CustomType.Setter public Builder controlPlaneDrainOptions(@Nullable ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions controlPlaneDrainOptions) { + this.controlPlaneDrainOptions = controlPlaneDrainOptions; return this; } @CustomType.Setter public Builder workerConcurrency(@Nullable String workerConcurrency) { + this.workerConcurrency = workerConcurrency; return this; } @CustomType.Setter public Builder workerDrainOptions(@Nullable ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions workerDrainOptions) { + this.workerDrainOptions = workerDrainOptions; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java index e30bc67e1..a98079d79 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java @@ -157,46 +157,55 @@ public Builder(ClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions default @CustomType.Setter public Builder deleteEmptyDirData(@Nullable Boolean deleteEmptyDirData) { + this.deleteEmptyDirData = deleteEmptyDirData; return this; } @CustomType.Setter public Builder disableEviction(@Nullable Boolean disableEviction) { + this.disableEviction = disableEviction; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(@Nullable Integer gracePeriod) { + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder ignoreErrors(@Nullable Boolean ignoreErrors) { + this.ignoreErrors = ignoreErrors; return this; } @CustomType.Setter public Builder skipWaitForDeleteTimeoutSeconds(@Nullable Integer skipWaitForDeleteTimeoutSeconds) { + this.skipWaitForDeleteTimeoutSeconds = skipWaitForDeleteTimeoutSeconds; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java index 6ce29b41b..677457f29 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java @@ -157,46 +157,55 @@ public Builder(ClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions defaults) { @CustomType.Setter public Builder deleteEmptyDirData(@Nullable Boolean deleteEmptyDirData) { + this.deleteEmptyDirData = deleteEmptyDirData; return this; } @CustomType.Setter public Builder disableEviction(@Nullable Boolean disableEviction) { + this.disableEviction = disableEviction; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(@Nullable Integer gracePeriod) { + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder ignoreErrors(@Nullable Boolean ignoreErrors) { + this.ignoreErrors = ignoreErrors; return this; } @CustomType.Setter public Builder skipWaitForDeleteTimeoutSeconds(@Nullable Integer skipWaitForDeleteTimeoutSeconds) { + this.skipWaitForDeleteTimeoutSeconds = skipWaitForDeleteTimeoutSeconds; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfig.java index 5ad68017c..b4154dbfe 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfig.java @@ -100,31 +100,37 @@ public Builder(EtcdBackupBackupConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder intervalHours(@Nullable Integer intervalHours) { + this.intervalHours = intervalHours; return this; } @CustomType.Setter public Builder retention(@Nullable Integer retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder s3BackupConfig(@Nullable EtcdBackupBackupConfigS3BackupConfig s3BackupConfig) { + this.s3BackupConfig = s3BackupConfig; return this; } @CustomType.Setter public Builder safeTimestamp(@Nullable Boolean safeTimestamp) { + this.safeTimestamp = safeTimestamp; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfigS3BackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfigS3BackupConfig.java index 00682c6df..f7db42de2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfigS3BackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/EtcdBackupBackupConfigS3BackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -128,36 +129,47 @@ public Builder(EtcdBackupBackupConfigS3BackupConfig defaults) { @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("EtcdBackupBackupConfigS3BackupConfig", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder customCa(@Nullable String customCa) { + this.customCa = customCa; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("EtcdBackupBackupConfigS3BackupConfig", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetAppResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetAppResult.java index 8ea6dc23f..f53acacb1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetAppResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetAppResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -202,72 +203,114 @@ public Builder(GetAppResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetAppResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder answers(Map answers) { - this.answers = Objects.requireNonNull(answers); + if (answers == null) { + throw new MissingRequiredPropertyException("GetAppResult", "answers"); + } + this.answers = answers; return this; } @CustomType.Setter public Builder catalogName(String catalogName) { - this.catalogName = Objects.requireNonNull(catalogName); + if (catalogName == null) { + throw new MissingRequiredPropertyException("GetAppResult", "catalogName"); + } + this.catalogName = catalogName; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetAppResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder externalId(String externalId) { - this.externalId = Objects.requireNonNull(externalId); + if (externalId == null) { + throw new MissingRequiredPropertyException("GetAppResult", "externalId"); + } + this.externalId = externalId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetAppResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetAppResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetAppResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetAppResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder revisionId(String revisionId) { - this.revisionId = Objects.requireNonNull(revisionId); + if (revisionId == null) { + throw new MissingRequiredPropertyException("GetAppResult", "revisionId"); + } + this.revisionId = revisionId; return this; } @CustomType.Setter public Builder targetNamespace(String targetNamespace) { - this.targetNamespace = Objects.requireNonNull(targetNamespace); + if (targetNamespace == null) { + throw new MissingRequiredPropertyException("GetAppResult", "targetNamespace"); + } + this.targetNamespace = targetNamespace; return this; } @CustomType.Setter public Builder templateName(String templateName) { - this.templateName = Objects.requireNonNull(templateName); + if (templateName == null) { + throw new MissingRequiredPropertyException("GetAppResult", "templateName"); + } + this.templateName = templateName; return this; } @CustomType.Setter public Builder templateVersion(String templateVersion) { - this.templateVersion = Objects.requireNonNull(templateVersion); + if (templateVersion == null) { + throw new MissingRequiredPropertyException("GetAppResult", "templateVersion"); + } + this.templateVersion = templateVersion; return this; } @CustomType.Setter public Builder valuesYaml(String valuesYaml) { - this.valuesYaml = Objects.requireNonNull(valuesYaml); + if (valuesYaml == null) { + throw new MissingRequiredPropertyException("GetAppResult", "valuesYaml"); + } + this.valuesYaml = valuesYaml; return this; } public GetAppResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogResult.java index 07f936550..9054417e1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -212,72 +213,112 @@ public Builder(GetCatalogResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder branch(String branch) { - this.branch = Objects.requireNonNull(branch); + if (branch == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "branch"); + } + this.branch = branch; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder scope(@Nullable String scope) { + this.scope = scope; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "username"); + } + this.username = username; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetCatalogResult", "version"); + } + this.version = version; return this; } public GetCatalogResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogV2Result.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogV2Result.java index 9b132dbd2..24e6607b1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogV2Result.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCatalogV2Result.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -239,82 +240,130 @@ public Builder(GetCatalogV2Result defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder caBundle(String caBundle) { - this.caBundle = Objects.requireNonNull(caBundle); + if (caBundle == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "caBundle"); + } + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder gitBranch(String gitBranch) { - this.gitBranch = Objects.requireNonNull(gitBranch); + if (gitBranch == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "gitBranch"); + } + this.gitBranch = gitBranch; return this; } @CustomType.Setter public Builder gitRepo(String gitRepo) { - this.gitRepo = Objects.requireNonNull(gitRepo); + if (gitRepo == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "gitRepo"); + } + this.gitRepo = gitRepo; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder insecure(Boolean insecure) { - this.insecure = Objects.requireNonNull(insecure); + if (insecure == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "insecure"); + } + this.insecure = insecure; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder resourceVersion(String resourceVersion) { - this.resourceVersion = Objects.requireNonNull(resourceVersion); + if (resourceVersion == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "resourceVersion"); + } + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder secretName(String secretName) { - this.secretName = Objects.requireNonNull(secretName); + if (secretName == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "secretName"); + } + this.secretName = secretName; return this; } @CustomType.Setter public Builder secretNamespace(String secretNamespace) { - this.secretNamespace = Objects.requireNonNull(secretNamespace); + if (secretNamespace == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "secretNamespace"); + } + this.secretNamespace = secretNamespace; return this; } @CustomType.Setter public Builder serviceAccount(String serviceAccount) { - this.serviceAccount = Objects.requireNonNull(serviceAccount); + if (serviceAccount == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "serviceAccount"); + } + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder serviceAccountNamespace(String serviceAccountNamespace) { - this.serviceAccountNamespace = Objects.requireNonNull(serviceAccountNamespace); + if (serviceAccountNamespace == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "serviceAccountNamespace"); + } + this.serviceAccountNamespace = serviceAccountNamespace; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetCatalogV2Result", "url"); + } + this.url = url; return this; } public GetCatalogV2Result build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCertificateResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCertificateResult.java index b66abd03c..a53f0e401 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCertificateResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCertificateResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -120,42 +121,64 @@ public Builder(GetCertificateResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder certs(String certs) { - this.certs = Objects.requireNonNull(certs); + if (certs == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "certs"); + } + this.certs = certs; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(@Nullable String namespaceId) { + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetCertificateResult", "projectId"); + } + this.projectId = projectId; return this; } public GetCertificateResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCloudCredentialResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCloudCredentialResult.java index 1f92ee8ea..858f342ce 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCloudCredentialResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetCloudCredentialResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -78,22 +79,34 @@ public Builder(GetCloudCredentialResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetCloudCredentialResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetCloudCredentialResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetCloudCredentialResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetCloudCredentialResult", "name"); + } + this.name = name; return this; } public GetCloudCredentialResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfig.java index 70b66e6e0..336675a41 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -281,182 +282,242 @@ public Builder(GetClusterAksConfig defaults) { @CustomType.Setter public Builder aadServerAppSecret(@Nullable String aadServerAppSecret) { + this.aadServerAppSecret = aadServerAppSecret; return this; } @CustomType.Setter public Builder aadTenantId(@Nullable String aadTenantId) { + this.aadTenantId = aadTenantId; return this; } @CustomType.Setter public Builder addClientAppId(@Nullable String addClientAppId) { + this.addClientAppId = addClientAppId; return this; } @CustomType.Setter public Builder addServerAppId(@Nullable String addServerAppId) { + this.addServerAppId = addServerAppId; return this; } @CustomType.Setter public Builder adminUsername(@Nullable String adminUsername) { + this.adminUsername = adminUsername; return this; } @CustomType.Setter public Builder agentDnsPrefix(String agentDnsPrefix) { - this.agentDnsPrefix = Objects.requireNonNull(agentDnsPrefix); + if (agentDnsPrefix == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "agentDnsPrefix"); + } + this.agentDnsPrefix = agentDnsPrefix; return this; } @CustomType.Setter public Builder agentOsDiskSize(@Nullable Integer agentOsDiskSize) { + this.agentOsDiskSize = agentOsDiskSize; return this; } @CustomType.Setter public Builder agentPoolName(@Nullable String agentPoolName) { + this.agentPoolName = agentPoolName; return this; } @CustomType.Setter public Builder agentStorageProfile(@Nullable String agentStorageProfile) { + this.agentStorageProfile = agentStorageProfile; return this; } @CustomType.Setter public Builder agentVmSize(@Nullable String agentVmSize) { + this.agentVmSize = agentVmSize; return this; } @CustomType.Setter public Builder authBaseUrl(@Nullable String authBaseUrl) { + this.authBaseUrl = authBaseUrl; return this; } @CustomType.Setter public Builder baseUrl(@Nullable String baseUrl) { + this.baseUrl = baseUrl; return this; } @CustomType.Setter public Builder clientId(String clientId) { - this.clientId = Objects.requireNonNull(clientId); + if (clientId == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "clientId"); + } + this.clientId = clientId; return this; } @CustomType.Setter public Builder clientSecret(String clientSecret) { - this.clientSecret = Objects.requireNonNull(clientSecret); + if (clientSecret == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "clientSecret"); + } + this.clientSecret = clientSecret; return this; } @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder dnsServiceIp(@Nullable String dnsServiceIp) { + this.dnsServiceIp = dnsServiceIp; return this; } @CustomType.Setter public Builder dockerBridgeCidr(@Nullable String dockerBridgeCidr) { + this.dockerBridgeCidr = dockerBridgeCidr; return this; } @CustomType.Setter public Builder enableHttpApplicationRouting(@Nullable Boolean enableHttpApplicationRouting) { + this.enableHttpApplicationRouting = enableHttpApplicationRouting; return this; } @CustomType.Setter public Builder enableMonitoring(@Nullable Boolean enableMonitoring) { + this.enableMonitoring = enableMonitoring; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder loadBalancerSku(String loadBalancerSku) { - this.loadBalancerSku = Objects.requireNonNull(loadBalancerSku); + if (loadBalancerSku == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "loadBalancerSku"); + } + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; return this; } @CustomType.Setter public Builder logAnalyticsWorkspace(@Nullable String logAnalyticsWorkspace) { + this.logAnalyticsWorkspace = logAnalyticsWorkspace; return this; } @CustomType.Setter public Builder logAnalyticsWorkspaceResourceGroup(@Nullable String logAnalyticsWorkspaceResourceGroup) { + this.logAnalyticsWorkspaceResourceGroup = logAnalyticsWorkspaceResourceGroup; return this; } @CustomType.Setter public Builder masterDnsPrefix(String masterDnsPrefix) { - this.masterDnsPrefix = Objects.requireNonNull(masterDnsPrefix); + if (masterDnsPrefix == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "masterDnsPrefix"); + } + this.masterDnsPrefix = masterDnsPrefix; return this; } @CustomType.Setter public Builder maxPods(@Nullable Integer maxPods) { + this.maxPods = maxPods; return this; } @CustomType.Setter public Builder networkPlugin(@Nullable String networkPlugin) { + this.networkPlugin = networkPlugin; return this; } @CustomType.Setter public Builder networkPolicy(@Nullable String networkPolicy) { + this.networkPolicy = networkPolicy; return this; } @CustomType.Setter public Builder podCidr(@Nullable String podCidr) { + this.podCidr = podCidr; return this; } @CustomType.Setter public Builder resourceGroup(String resourceGroup) { - this.resourceGroup = Objects.requireNonNull(resourceGroup); + if (resourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "resourceGroup"); + } + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder serviceCidr(@Nullable String serviceCidr) { + this.serviceCidr = serviceCidr; return this; } @CustomType.Setter public Builder sshPublicKeyContents(String sshPublicKeyContents) { - this.sshPublicKeyContents = Objects.requireNonNull(sshPublicKeyContents); + if (sshPublicKeyContents == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "sshPublicKeyContents"); + } + this.sshPublicKeyContents = sshPublicKeyContents; return this; } @CustomType.Setter public Builder subnet(String subnet) { - this.subnet = Objects.requireNonNull(subnet); + if (subnet == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "subnet"); + } + this.subnet = subnet; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tag(Map tag) { - this.tag = Objects.requireNonNull(tag); + if (tag == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "tag"); + } + this.tag = tag; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -464,17 +525,26 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder virtualNetwork(String virtualNetwork) { - this.virtualNetwork = Objects.requireNonNull(virtualNetwork); + if (virtualNetwork == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "virtualNetwork"); + } + this.virtualNetwork = virtualNetwork; return this; } @CustomType.Setter public Builder virtualNetworkResourceGroup(String virtualNetworkResourceGroup) { - this.virtualNetworkResourceGroup = Objects.requireNonNull(virtualNetworkResourceGroup); + if (virtualNetworkResourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfig", "virtualNetworkResourceGroup"); + } + this.virtualNetworkResourceGroup = virtualNetworkResourceGroup; return this; } public GetClusterAksConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2.java index 41f5d8d4b..1d9e9664d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterAksConfigV2NodePool; import java.lang.Boolean; import java.lang.Object; @@ -217,11 +218,13 @@ public Builder(GetClusterAksConfigV2 defaults) { @CustomType.Setter public Builder authBaseUrl(@Nullable String authBaseUrl) { + this.authBaseUrl = authBaseUrl; return this; } @CustomType.Setter public Builder authorizedIpRanges(@Nullable List authorizedIpRanges) { + this.authorizedIpRanges = authorizedIpRanges; return this; } @@ -230,101 +233,149 @@ public Builder authorizedIpRanges(String... authorizedIpRanges) { } @CustomType.Setter public Builder baseUrl(@Nullable String baseUrl) { + this.baseUrl = baseUrl; return this; } @CustomType.Setter public Builder cloudCredentialId(String cloudCredentialId) { - this.cloudCredentialId = Objects.requireNonNull(cloudCredentialId); + if (cloudCredentialId == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "cloudCredentialId"); + } + this.cloudCredentialId = cloudCredentialId; return this; } @CustomType.Setter public Builder dnsPrefix(@Nullable String dnsPrefix) { + this.dnsPrefix = dnsPrefix; return this; } @CustomType.Setter public Builder httpApplicationRouting(Boolean httpApplicationRouting) { - this.httpApplicationRouting = Objects.requireNonNull(httpApplicationRouting); + if (httpApplicationRouting == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "httpApplicationRouting"); + } + this.httpApplicationRouting = httpApplicationRouting; return this; } @CustomType.Setter public Builder imported(@Nullable Boolean imported) { + this.imported = imported; return this; } @CustomType.Setter public Builder kubernetesVersion(@Nullable String kubernetesVersion) { + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder linuxAdminUsername(String linuxAdminUsername) { - this.linuxAdminUsername = Objects.requireNonNull(linuxAdminUsername); + if (linuxAdminUsername == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "linuxAdminUsername"); + } + this.linuxAdminUsername = linuxAdminUsername; return this; } @CustomType.Setter public Builder linuxSshPublicKey(String linuxSshPublicKey) { - this.linuxSshPublicKey = Objects.requireNonNull(linuxSshPublicKey); + if (linuxSshPublicKey == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "linuxSshPublicKey"); + } + this.linuxSshPublicKey = linuxSshPublicKey; return this; } @CustomType.Setter public Builder loadBalancerSku(String loadBalancerSku) { - this.loadBalancerSku = Objects.requireNonNull(loadBalancerSku); + if (loadBalancerSku == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "loadBalancerSku"); + } + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder logAnalyticsWorkspaceGroup(String logAnalyticsWorkspaceGroup) { - this.logAnalyticsWorkspaceGroup = Objects.requireNonNull(logAnalyticsWorkspaceGroup); + if (logAnalyticsWorkspaceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "logAnalyticsWorkspaceGroup"); + } + this.logAnalyticsWorkspaceGroup = logAnalyticsWorkspaceGroup; return this; } @CustomType.Setter public Builder logAnalyticsWorkspaceName(String logAnalyticsWorkspaceName) { - this.logAnalyticsWorkspaceName = Objects.requireNonNull(logAnalyticsWorkspaceName); + if (logAnalyticsWorkspaceName == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "logAnalyticsWorkspaceName"); + } + this.logAnalyticsWorkspaceName = logAnalyticsWorkspaceName; return this; } @CustomType.Setter public Builder monitoring(Boolean monitoring) { - this.monitoring = Objects.requireNonNull(monitoring); + if (monitoring == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "monitoring"); + } + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder networkDnsServiceIp(String networkDnsServiceIp) { - this.networkDnsServiceIp = Objects.requireNonNull(networkDnsServiceIp); + if (networkDnsServiceIp == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "networkDnsServiceIp"); + } + this.networkDnsServiceIp = networkDnsServiceIp; return this; } @CustomType.Setter public Builder networkDockerBridgeCidr(String networkDockerBridgeCidr) { - this.networkDockerBridgeCidr = Objects.requireNonNull(networkDockerBridgeCidr); + if (networkDockerBridgeCidr == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "networkDockerBridgeCidr"); + } + this.networkDockerBridgeCidr = networkDockerBridgeCidr; return this; } @CustomType.Setter public Builder networkPlugin(@Nullable String networkPlugin) { + this.networkPlugin = networkPlugin; return this; } @CustomType.Setter public Builder networkPodCidr(String networkPodCidr) { - this.networkPodCidr = Objects.requireNonNull(networkPodCidr); + if (networkPodCidr == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "networkPodCidr"); + } + this.networkPodCidr = networkPodCidr; return this; } @CustomType.Setter public Builder networkPolicy(String networkPolicy) { - this.networkPolicy = Objects.requireNonNull(networkPolicy); + if (networkPolicy == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "networkPolicy"); + } + this.networkPolicy = networkPolicy; return this; } @CustomType.Setter public Builder networkServiceCidr(String networkServiceCidr) { - this.networkServiceCidr = Objects.requireNonNull(networkServiceCidr); + if (networkServiceCidr == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "networkServiceCidr"); + } + this.networkServiceCidr = networkServiceCidr; return this; } @CustomType.Setter public Builder nodePools(@Nullable List nodePools) { + this.nodePools = nodePools; return this; } @@ -333,37 +384,58 @@ public Builder nodePools(GetClusterAksConfigV2NodePool... nodePools) { } @CustomType.Setter public Builder privateCluster(Boolean privateCluster) { - this.privateCluster = Objects.requireNonNull(privateCluster); + if (privateCluster == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "privateCluster"); + } + this.privateCluster = privateCluster; return this; } @CustomType.Setter public Builder resourceGroup(String resourceGroup) { - this.resourceGroup = Objects.requireNonNull(resourceGroup); + if (resourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "resourceGroup"); + } + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder resourceLocation(String resourceLocation) { - this.resourceLocation = Objects.requireNonNull(resourceLocation); + if (resourceLocation == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "resourceLocation"); + } + this.resourceLocation = resourceLocation; return this; } @CustomType.Setter public Builder subnet(String subnet) { - this.subnet = Objects.requireNonNull(subnet); + if (subnet == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "subnet"); + } + this.subnet = subnet; return this; } @CustomType.Setter public Builder tags(Map tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "tags"); + } + this.tags = tags; return this; } @CustomType.Setter public Builder virtualNetwork(String virtualNetwork) { - this.virtualNetwork = Objects.requireNonNull(virtualNetwork); + if (virtualNetwork == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "virtualNetwork"); + } + this.virtualNetwork = virtualNetwork; return this; } @CustomType.Setter public Builder virtualNetworkResourceGroup(String virtualNetworkResourceGroup) { - this.virtualNetworkResourceGroup = Objects.requireNonNull(virtualNetworkResourceGroup); + if (virtualNetworkResourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2", "virtualNetworkResourceGroup"); + } + this.virtualNetworkResourceGroup = virtualNetworkResourceGroup; return this; } public GetClusterAksConfigV2 build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2NodePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2NodePool.java index 9defd3ce4..6cd8c4833 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2NodePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAksConfigV2NodePool.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -147,6 +148,7 @@ public Builder(GetClusterAksConfigV2NodePool defaults) { @CustomType.Setter public Builder availabilityZones(@Nullable List availabilityZones) { + this.availabilityZones = availabilityZones; return this; } @@ -155,72 +157,92 @@ public Builder availabilityZones(String... availabilityZones) { } @CustomType.Setter public Builder count(@Nullable Integer count) { + this.count = count; return this; } @CustomType.Setter public Builder enableAutoScaling(@Nullable Boolean enableAutoScaling) { + this.enableAutoScaling = enableAutoScaling; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2NodePool", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder maxCount(@Nullable Integer maxCount) { + this.maxCount = maxCount; return this; } @CustomType.Setter public Builder maxPods(@Nullable Integer maxPods) { + this.maxPods = maxPods; return this; } @CustomType.Setter public Builder maxSurge(@Nullable String maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder minCount(@Nullable Integer minCount) { + this.minCount = minCount; return this; } @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2NodePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder orchestratorVersion(@Nullable String orchestratorVersion) { + this.orchestratorVersion = orchestratorVersion; return this; } @CustomType.Setter public Builder osDiskSizeGb(@Nullable Integer osDiskSizeGb) { + this.osDiskSizeGb = osDiskSizeGb; return this; } @CustomType.Setter public Builder osDiskType(@Nullable String osDiskType) { + this.osDiskType = osDiskType; return this; } @CustomType.Setter public Builder osType(@Nullable String osType) { + this.osType = osType; return this; } @CustomType.Setter public Builder taints(List taints) { - this.taints = Objects.requireNonNull(taints); + if (taints == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2NodePool", "taints"); + } + this.taints = taints; return this; } public Builder taints(String... taints) { @@ -228,7 +250,10 @@ public Builder taints(String... taints) { } @CustomType.Setter public Builder vmSize(String vmSize) { - this.vmSize = Objects.requireNonNull(vmSize); + if (vmSize == null) { + throw new MissingRequiredPropertyException("GetClusterAksConfigV2NodePool", "vmSize"); + } + this.vmSize = vmSize; return this; } public GetClusterAksConfigV2NodePool build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupRecipient.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupRecipient.java index 76594f200..2148f9400 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupRecipient.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupRecipient.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -55,22 +56,32 @@ public Builder(GetClusterAlertGroupRecipient defaults) { @CustomType.Setter public Builder defaultRecipient(@Nullable Boolean defaultRecipient) { + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupRecipient", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder notifierType(String notifierType) { - this.notifierType = Objects.requireNonNull(notifierType); + if (notifierType == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupRecipient", "notifierType"); + } + this.notifierType = notifierType; return this; } @CustomType.Setter public Builder recipient(String recipient) { - this.recipient = Objects.requireNonNull(recipient); + if (recipient == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupRecipient", "recipient"); + } + this.recipient = recipient; return this; } public GetClusterAlertGroupRecipient build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupResult.java index dadcdf933..2d45e7a7a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlertGroupResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterAlertGroupRecipient; import java.lang.Integer; import java.lang.Object; @@ -157,47 +158,74 @@ public Builder(GetClusterAlertGroupResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - this.groupIntervalSeconds = Objects.requireNonNull(groupIntervalSeconds); + if (groupIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "groupIntervalSeconds"); + } + this.groupIntervalSeconds = groupIntervalSeconds; return this; } @CustomType.Setter public Builder groupWaitSeconds(Integer groupWaitSeconds) { - this.groupWaitSeconds = Objects.requireNonNull(groupWaitSeconds); + if (groupWaitSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "groupWaitSeconds"); + } + this.groupWaitSeconds = groupWaitSeconds; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder recipients(List recipients) { - this.recipients = Objects.requireNonNull(recipients); + if (recipients == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "recipients"); + } + this.recipients = recipients; return this; } public Builder recipients(GetClusterAlertGroupRecipient... recipients) { @@ -205,7 +233,10 @@ public Builder recipients(GetClusterAlertGroupRecipient... recipients) { } @CustomType.Setter public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - this.repeatIntervalSeconds = Objects.requireNonNull(repeatIntervalSeconds); + if (repeatIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAlertGroupResult", "repeatIntervalSeconds"); + } + this.repeatIntervalSeconds = repeatIntervalSeconds; return this; } public GetClusterAlertGroupResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java index 084bf582f..0eb3717e9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleEventRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -42,12 +43,16 @@ public Builder(GetClusterAlterRuleEventRule defaults) { @CustomType.Setter public Builder eventType(@Nullable String eventType) { + this.eventType = eventType; return this; } @CustomType.Setter public Builder resourceKind(String resourceKind) { - this.resourceKind = Objects.requireNonNull(resourceKind); + if (resourceKind == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleEventRule", "resourceKind"); + } + this.resourceKind = resourceKind; return this; } public GetClusterAlterRuleEventRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java index 00057b8e7..2f954ac4a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleMetricRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -61,27 +62,38 @@ public Builder(GetClusterAlterRuleMetricRule defaults) { @CustomType.Setter public Builder comparison(@Nullable String comparison) { + this.comparison = comparison; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder duration(String duration) { - this.duration = Objects.requireNonNull(duration); + if (duration == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleMetricRule", "duration"); + } + this.duration = duration; return this; } @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleMetricRule", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder thresholdValue(Double thresholdValue) { - this.thresholdValue = Objects.requireNonNull(thresholdValue); + if (thresholdValue == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleMetricRule", "thresholdValue"); + } + this.thresholdValue = thresholdValue; return this; } public GetClusterAlterRuleMetricRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java index 7bfa197e3..964ecbaaf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleNodeRule.java @@ -63,26 +63,31 @@ public Builder(GetClusterAlterRuleNodeRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } @CustomType.Setter public Builder cpuThreshold(@Nullable Integer cpuThreshold) { + this.cpuThreshold = cpuThreshold; return this; } @CustomType.Setter public Builder memThreshold(@Nullable Integer memThreshold) { + this.memThreshold = memThreshold; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java index db3b1d353..8be5d47c5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterAlterRuleEventRule; import com.pulumi.rancher2.outputs.GetClusterAlterRuleMetricRule; import com.pulumi.rancher2.outputs.GetClusterAlterRuleNodeRule; @@ -231,77 +232,120 @@ public Builder(GetClusterAlterRuleResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder eventRule(GetClusterAlterRuleEventRule eventRule) { - this.eventRule = Objects.requireNonNull(eventRule); + if (eventRule == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "eventRule"); + } + this.eventRule = eventRule; return this; } @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - this.groupIntervalSeconds = Objects.requireNonNull(groupIntervalSeconds); + if (groupIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "groupIntervalSeconds"); + } + this.groupIntervalSeconds = groupIntervalSeconds; return this; } @CustomType.Setter public Builder groupWaitSeconds(Integer groupWaitSeconds) { - this.groupWaitSeconds = Objects.requireNonNull(groupWaitSeconds); + if (groupWaitSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "groupWaitSeconds"); + } + this.groupWaitSeconds = groupWaitSeconds; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder inherited(Boolean inherited) { - this.inherited = Objects.requireNonNull(inherited); + if (inherited == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "inherited"); + } + this.inherited = inherited; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder metricRule(GetClusterAlterRuleMetricRule metricRule) { - this.metricRule = Objects.requireNonNull(metricRule); + if (metricRule == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "metricRule"); + } + this.metricRule = metricRule; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeRule(GetClusterAlterRuleNodeRule nodeRule) { - this.nodeRule = Objects.requireNonNull(nodeRule); + if (nodeRule == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "nodeRule"); + } + this.nodeRule = nodeRule; return this; } @CustomType.Setter public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - this.repeatIntervalSeconds = Objects.requireNonNull(repeatIntervalSeconds); + if (repeatIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "repeatIntervalSeconds"); + } + this.repeatIntervalSeconds = repeatIntervalSeconds; return this; } @CustomType.Setter public Builder severity(String severity) { - this.severity = Objects.requireNonNull(severity); + if (severity == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "severity"); + } + this.severity = severity; return this; } @CustomType.Setter public Builder systemServiceRule(GetClusterAlterRuleSystemServiceRule systemServiceRule) { - this.systemServiceRule = Objects.requireNonNull(systemServiceRule); + if (systemServiceRule == null) { + throw new MissingRequiredPropertyException("GetClusterAlterRuleResult", "systemServiceRule"); + } + this.systemServiceRule = systemServiceRule; return this; } public GetClusterAlterRuleResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java index 63f85efbc..5b9a6c158 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterAlterRuleSystemServiceRule.java @@ -36,6 +36,7 @@ public Builder(GetClusterAlterRuleSystemServiceRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterAuthEndpoint.java index 3e104ab65..7c49925f0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterAuthEndpoint.java @@ -49,16 +49,19 @@ public Builder(GetClusterClusterAuthEndpoint defaults) { @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterMonitoringInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterMonitoringInput.java index d4ec22d92..9c1c8f504 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterMonitoringInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterMonitoringInput.java @@ -44,11 +44,13 @@ public Builder(GetClusterClusterMonitoringInput defaults) { @CustomType.Setter public Builder answers(@Nullable Map answers) { + this.answers = answers; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterRegistrationToken.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterRegistrationToken.java index 0de976273..1780586a2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterRegistrationToken.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterRegistrationToken.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -140,67 +141,106 @@ public Builder(GetClusterClusterRegistrationToken defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder command(String command) { - this.command = Objects.requireNonNull(command); + if (command == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "command"); + } + this.command = command; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder insecureCommand(String insecureCommand) { - this.insecureCommand = Objects.requireNonNull(insecureCommand); + if (insecureCommand == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "insecureCommand"); + } + this.insecureCommand = insecureCommand; return this; } @CustomType.Setter public Builder insecureNodeCommand(String insecureNodeCommand) { - this.insecureNodeCommand = Objects.requireNonNull(insecureNodeCommand); + if (insecureNodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "insecureNodeCommand"); + } + this.insecureNodeCommand = insecureNodeCommand; return this; } @CustomType.Setter public Builder insecureWindowsNodeCommand(String insecureWindowsNodeCommand) { - this.insecureWindowsNodeCommand = Objects.requireNonNull(insecureWindowsNodeCommand); + if (insecureWindowsNodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "insecureWindowsNodeCommand"); + } + this.insecureWindowsNodeCommand = insecureWindowsNodeCommand; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder manifestUrl(String manifestUrl) { - this.manifestUrl = Objects.requireNonNull(manifestUrl); + if (manifestUrl == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "manifestUrl"); + } + this.manifestUrl = manifestUrl; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeCommand(String nodeCommand) { - this.nodeCommand = Objects.requireNonNull(nodeCommand); + if (nodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "nodeCommand"); + } + this.nodeCommand = nodeCommand; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder windowsNodeCommand(String windowsNodeCommand) { - this.windowsNodeCommand = Objects.requireNonNull(windowsNodeCommand); + if (windowsNodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterClusterRegistrationToken", "windowsNodeCommand"); + } + this.windowsNodeCommand = windowsNodeCommand; return this; } public GetClusterClusterRegistrationToken build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateAnswers.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateAnswers.java index 30d02bad1..db466b9cf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateAnswers.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateAnswers.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -48,17 +49,26 @@ public Builder(GetClusterClusterTemplateAnswers defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterClusterTemplateAnswers", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetClusterClusterTemplateAnswers", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder values(Map values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetClusterClusterTemplateAnswers", "values"); + } + this.values = values; return this; } public GetClusterClusterTemplateAnswers build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateQuestion.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateQuestion.java index 892175580..7fabf181d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateQuestion.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterClusterTemplateQuestion.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -55,22 +56,30 @@ public Builder(GetClusterClusterTemplateQuestion defaults) { @CustomType.Setter("default") public Builder default_(String default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("GetClusterClusterTemplateQuestion", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder variable(String variable) { - this.variable = Objects.requireNonNull(variable); + if (variable == null) { + throw new MissingRequiredPropertyException("GetClusterClusterTemplateQuestion", "variable"); + } + this.variable = variable; return this; } public GetClusterClusterTemplateQuestion build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterDriverResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterDriverResult.java index 0826a9d05..55a101837 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterDriverResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterDriverResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -170,57 +171,90 @@ public Builder(GetClusterDriverResult defaults) { @CustomType.Setter public Builder active(Boolean active) { - this.active = Objects.requireNonNull(active); + if (active == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "active"); + } + this.active = active; return this; } @CustomType.Setter public Builder actualUrl(String actualUrl) { - this.actualUrl = Objects.requireNonNull(actualUrl); + if (actualUrl == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "actualUrl"); + } + this.actualUrl = actualUrl; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder builtin(Boolean builtin) { - this.builtin = Objects.requireNonNull(builtin); + if (builtin == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "builtin"); + } + this.builtin = builtin; return this; } @CustomType.Setter public Builder checksum(String checksum) { - this.checksum = Objects.requireNonNull(checksum); + if (checksum == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "checksum"); + } + this.checksum = checksum; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder uiUrl(String uiUrl) { - this.uiUrl = Objects.requireNonNull(uiUrl); + if (uiUrl == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "uiUrl"); + } + this.uiUrl = uiUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder whitelistDomains(List whitelistDomains) { - this.whitelistDomains = Objects.requireNonNull(whitelistDomains); + if (whitelistDomains == null) { + throw new MissingRequiredPropertyException("GetClusterDriverResult", "whitelistDomains"); + } + this.whitelistDomains = whitelistDomains; return this; } public Builder whitelistDomains(String... whitelistDomains) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfig.java index 773f47cec..0262c6e38 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -147,71 +148,91 @@ public Builder(GetClusterEksConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder ami(@Nullable String ami) { + this.ami = ami; return this; } @CustomType.Setter public Builder associateWorkerNodePublicIp(@Nullable Boolean associateWorkerNodePublicIp) { + this.associateWorkerNodePublicIp = associateWorkerNodePublicIp; return this; } @CustomType.Setter public Builder desiredNodes(@Nullable Integer desiredNodes) { + this.desiredNodes = desiredNodes; return this; } @CustomType.Setter public Builder ebsEncryption(@Nullable Boolean ebsEncryption) { + this.ebsEncryption = ebsEncryption; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder keyPairName(@Nullable String keyPairName) { + this.keyPairName = keyPairName; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder maximumNodes(@Nullable Integer maximumNodes) { + this.maximumNodes = maximumNodes; return this; } @CustomType.Setter public Builder minimumNodes(@Nullable Integer minimumNodes) { + this.minimumNodes = minimumNodes; return this; } @CustomType.Setter public Builder nodeVolumeSize(@Nullable Integer nodeVolumeSize) { + this.nodeVolumeSize = nodeVolumeSize; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { + this.securityGroups = securityGroups; return this; } @@ -220,16 +241,19 @@ public Builder securityGroups(String... securityGroups) { } @CustomType.Setter public Builder serviceRole(@Nullable String serviceRole) { + this.serviceRole = serviceRole; return this; } @CustomType.Setter public Builder sessionToken(@Nullable String sessionToken) { + this.sessionToken = sessionToken; return this; } @CustomType.Setter public Builder subnets(@Nullable List subnets) { + this.subnets = subnets; return this; } @@ -238,11 +262,15 @@ public Builder subnets(String... subnets) { } @CustomType.Setter public Builder userData(String userData) { - this.userData = Objects.requireNonNull(userData); + if (userData == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfig", "userData"); + } + this.userData = userData; return this; } @CustomType.Setter public Builder virtualNetwork(@Nullable String virtualNetwork) { + this.virtualNetwork = virtualNetwork; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2.java index 320826c69..0904a65e6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterEksConfigV2NodeGroup; import java.lang.Boolean; import java.lang.Object; @@ -139,26 +140,35 @@ public Builder(GetClusterEksConfigV2 defaults) { @CustomType.Setter public Builder cloudCredentialId(String cloudCredentialId) { - this.cloudCredentialId = Objects.requireNonNull(cloudCredentialId); + if (cloudCredentialId == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "cloudCredentialId"); + } + this.cloudCredentialId = cloudCredentialId; return this; } @CustomType.Setter public Builder imported(@Nullable Boolean imported) { + this.imported = imported; return this; } @CustomType.Setter public Builder kmsKey(@Nullable String kmsKey) { + this.kmsKey = kmsKey; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder loggingTypes(@Nullable List loggingTypes) { + this.loggingTypes = loggingTypes; return this; } @@ -167,12 +177,18 @@ public Builder loggingTypes(String... loggingTypes) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeGroups(List nodeGroups) { - this.nodeGroups = Objects.requireNonNull(nodeGroups); + if (nodeGroups == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "nodeGroups"); + } + this.nodeGroups = nodeGroups; return this; } public Builder nodeGroups(GetClusterEksConfigV2NodeGroup... nodeGroups) { @@ -180,17 +196,26 @@ public Builder nodeGroups(GetClusterEksConfigV2NodeGroup... nodeGroups) { } @CustomType.Setter public Builder privateAccess(Boolean privateAccess) { - this.privateAccess = Objects.requireNonNull(privateAccess); + if (privateAccess == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "privateAccess"); + } + this.privateAccess = privateAccess; return this; } @CustomType.Setter public Builder publicAccess(Boolean publicAccess) { - this.publicAccess = Objects.requireNonNull(publicAccess); + if (publicAccess == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "publicAccess"); + } + this.publicAccess = publicAccess; return this; } @CustomType.Setter public Builder publicAccessSources(List publicAccessSources) { - this.publicAccessSources = Objects.requireNonNull(publicAccessSources); + if (publicAccessSources == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "publicAccessSources"); + } + this.publicAccessSources = publicAccessSources; return this; } public Builder publicAccessSources(String... publicAccessSources) { @@ -198,16 +223,21 @@ public Builder publicAccessSources(String... publicAccessSources) { } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretsEncryption(Boolean secretsEncryption) { - this.secretsEncryption = Objects.requireNonNull(secretsEncryption); + if (secretsEncryption == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2", "secretsEncryption"); + } + this.secretsEncryption = secretsEncryption; return this; } @CustomType.Setter public Builder securityGroups(@Nullable List securityGroups) { + this.securityGroups = securityGroups; return this; } @@ -216,11 +246,13 @@ public Builder securityGroups(String... securityGroups) { } @CustomType.Setter public Builder serviceRole(@Nullable String serviceRole) { + this.serviceRole = serviceRole; return this; } @CustomType.Setter public Builder subnets(@Nullable List subnets) { + this.subnets = subnets; return this; } @@ -229,6 +261,7 @@ public Builder subnets(String... subnets) { } @CustomType.Setter public Builder tags(@Nullable Map tags) { + this.tags = tags; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroup.java index 19f3da3ab..eba815fe4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterEksConfigV2NodeGroupLaunchTemplate; import java.lang.Boolean; import java.lang.Integer; @@ -166,41 +167,49 @@ public Builder(GetClusterEksConfigV2NodeGroup defaults) { @CustomType.Setter public Builder desiredSize(@Nullable Integer desiredSize) { + this.desiredSize = desiredSize; return this; } @CustomType.Setter public Builder diskSize(@Nullable Integer diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder ec2SshKey(@Nullable String ec2SshKey) { + this.ec2SshKey = ec2SshKey; return this; } @CustomType.Setter public Builder gpu(@Nullable Boolean gpu) { + this.gpu = gpu; return this; } @CustomType.Setter public Builder imageId(@Nullable String imageId) { + this.imageId = imageId; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder launchTemplates(@Nullable List launchTemplates) { + this.launchTemplates = launchTemplates; return this; } @@ -209,36 +218,45 @@ public Builder launchTemplates(GetClusterEksConfigV2NodeGroupLaunchTemplate... l } @CustomType.Setter public Builder maxSize(@Nullable Integer maxSize) { + this.maxSize = maxSize; return this; } @CustomType.Setter public Builder minSize(@Nullable Integer minSize) { + this.minSize = minSize; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2NodeGroup", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeRole(@Nullable String nodeRole) { + this.nodeRole = nodeRole; return this; } @CustomType.Setter public Builder requestSpotInstances(@Nullable Boolean requestSpotInstances) { + this.requestSpotInstances = requestSpotInstances; return this; } @CustomType.Setter public Builder resourceTags(@Nullable Map resourceTags) { + this.resourceTags = resourceTags; return this; } @CustomType.Setter public Builder spotInstanceTypes(@Nullable List spotInstanceTypes) { + this.spotInstanceTypes = spotInstanceTypes; return this; } @@ -247,7 +265,10 @@ public Builder spotInstanceTypes(String... spotInstanceTypes) { } @CustomType.Setter public Builder subnets(List subnets) { - this.subnets = Objects.requireNonNull(subnets); + if (subnets == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2NodeGroup", "subnets"); + } + this.subnets = subnets; return this; } public Builder subnets(String... subnets) { @@ -255,17 +276,24 @@ public Builder subnets(String... subnets) { } @CustomType.Setter public Builder tags(@Nullable Map tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder userData(String userData) { - this.userData = Objects.requireNonNull(userData); + if (userData == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2NodeGroup", "userData"); + } + this.userData = userData; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2NodeGroup", "version"); + } + this.version = version; return this; } public GetClusterEksConfigV2NodeGroup build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroupLaunchTemplate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroupLaunchTemplate.java index b16a4b1fc..b259f6e38 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroupLaunchTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterEksConfigV2NodeGroupLaunchTemplate.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -65,16 +66,23 @@ public Builder(GetClusterEksConfigV2NodeGroupLaunchTemplate defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2NodeGroupLaunchTemplate", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterEksConfigV2NodeGroupLaunchTemplate", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder version(@Nullable Integer version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfig.java index 2b4cb21df..b69b65a9a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.Object; @@ -369,162 +370,218 @@ public Builder(GetClusterGkeConfig defaults) { @CustomType.Setter public Builder clusterIpv4Cidr(String clusterIpv4Cidr) { - this.clusterIpv4Cidr = Objects.requireNonNull(clusterIpv4Cidr); + if (clusterIpv4Cidr == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "clusterIpv4Cidr"); + } + this.clusterIpv4Cidr = clusterIpv4Cidr; return this; } @CustomType.Setter public Builder credential(String credential) { - this.credential = Objects.requireNonNull(credential); + if (credential == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "credential"); + } + this.credential = credential; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder diskSizeGb(@Nullable Integer diskSizeGb) { + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder diskType(String diskType) { - this.diskType = Objects.requireNonNull(diskType); + if (diskType == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "diskType"); + } + this.diskType = diskType; return this; } @CustomType.Setter public Builder enableAlphaFeature(@Nullable Boolean enableAlphaFeature) { + this.enableAlphaFeature = enableAlphaFeature; return this; } @CustomType.Setter public Builder enableAutoRepair(@Nullable Boolean enableAutoRepair) { + this.enableAutoRepair = enableAutoRepair; return this; } @CustomType.Setter public Builder enableAutoUpgrade(@Nullable Boolean enableAutoUpgrade) { + this.enableAutoUpgrade = enableAutoUpgrade; return this; } @CustomType.Setter public Builder enableHorizontalPodAutoscaling(@Nullable Boolean enableHorizontalPodAutoscaling) { + this.enableHorizontalPodAutoscaling = enableHorizontalPodAutoscaling; return this; } @CustomType.Setter public Builder enableHttpLoadBalancing(@Nullable Boolean enableHttpLoadBalancing) { + this.enableHttpLoadBalancing = enableHttpLoadBalancing; return this; } @CustomType.Setter public Builder enableKubernetesDashboard(@Nullable Boolean enableKubernetesDashboard) { + this.enableKubernetesDashboard = enableKubernetesDashboard; return this; } @CustomType.Setter public Builder enableLegacyAbac(@Nullable Boolean enableLegacyAbac) { + this.enableLegacyAbac = enableLegacyAbac; return this; } @CustomType.Setter public Builder enableMasterAuthorizedNetwork(@Nullable Boolean enableMasterAuthorizedNetwork) { + this.enableMasterAuthorizedNetwork = enableMasterAuthorizedNetwork; return this; } @CustomType.Setter public Builder enableNetworkPolicyConfig(@Nullable Boolean enableNetworkPolicyConfig) { + this.enableNetworkPolicyConfig = enableNetworkPolicyConfig; return this; } @CustomType.Setter public Builder enableNodepoolAutoscaling(@Nullable Boolean enableNodepoolAutoscaling) { + this.enableNodepoolAutoscaling = enableNodepoolAutoscaling; return this; } @CustomType.Setter public Builder enablePrivateEndpoint(@Nullable Boolean enablePrivateEndpoint) { + this.enablePrivateEndpoint = enablePrivateEndpoint; return this; } @CustomType.Setter public Builder enablePrivateNodes(@Nullable Boolean enablePrivateNodes) { + this.enablePrivateNodes = enablePrivateNodes; return this; } @CustomType.Setter public Builder enableStackdriverLogging(@Nullable Boolean enableStackdriverLogging) { + this.enableStackdriverLogging = enableStackdriverLogging; return this; } @CustomType.Setter public Builder enableStackdriverMonitoring(@Nullable Boolean enableStackdriverMonitoring) { + this.enableStackdriverMonitoring = enableStackdriverMonitoring; return this; } @CustomType.Setter public Builder imageType(String imageType) { - this.imageType = Objects.requireNonNull(imageType); + if (imageType == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "imageType"); + } + this.imageType = imageType; return this; } @CustomType.Setter public Builder ipPolicyClusterIpv4CidrBlock(String ipPolicyClusterIpv4CidrBlock) { - this.ipPolicyClusterIpv4CidrBlock = Objects.requireNonNull(ipPolicyClusterIpv4CidrBlock); + if (ipPolicyClusterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "ipPolicyClusterIpv4CidrBlock"); + } + this.ipPolicyClusterIpv4CidrBlock = ipPolicyClusterIpv4CidrBlock; return this; } @CustomType.Setter public Builder ipPolicyClusterSecondaryRangeName(String ipPolicyClusterSecondaryRangeName) { - this.ipPolicyClusterSecondaryRangeName = Objects.requireNonNull(ipPolicyClusterSecondaryRangeName); + if (ipPolicyClusterSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "ipPolicyClusterSecondaryRangeName"); + } + this.ipPolicyClusterSecondaryRangeName = ipPolicyClusterSecondaryRangeName; return this; } @CustomType.Setter public Builder ipPolicyCreateSubnetwork(@Nullable Boolean ipPolicyCreateSubnetwork) { + this.ipPolicyCreateSubnetwork = ipPolicyCreateSubnetwork; return this; } @CustomType.Setter public Builder ipPolicyNodeIpv4CidrBlock(String ipPolicyNodeIpv4CidrBlock) { - this.ipPolicyNodeIpv4CidrBlock = Objects.requireNonNull(ipPolicyNodeIpv4CidrBlock); + if (ipPolicyNodeIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "ipPolicyNodeIpv4CidrBlock"); + } + this.ipPolicyNodeIpv4CidrBlock = ipPolicyNodeIpv4CidrBlock; return this; } @CustomType.Setter public Builder ipPolicyServicesIpv4CidrBlock(String ipPolicyServicesIpv4CidrBlock) { - this.ipPolicyServicesIpv4CidrBlock = Objects.requireNonNull(ipPolicyServicesIpv4CidrBlock); + if (ipPolicyServicesIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "ipPolicyServicesIpv4CidrBlock"); + } + this.ipPolicyServicesIpv4CidrBlock = ipPolicyServicesIpv4CidrBlock; return this; } @CustomType.Setter public Builder ipPolicyServicesSecondaryRangeName(String ipPolicyServicesSecondaryRangeName) { - this.ipPolicyServicesSecondaryRangeName = Objects.requireNonNull(ipPolicyServicesSecondaryRangeName); + if (ipPolicyServicesSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "ipPolicyServicesSecondaryRangeName"); + } + this.ipPolicyServicesSecondaryRangeName = ipPolicyServicesSecondaryRangeName; return this; } @CustomType.Setter public Builder ipPolicySubnetworkName(String ipPolicySubnetworkName) { - this.ipPolicySubnetworkName = Objects.requireNonNull(ipPolicySubnetworkName); + if (ipPolicySubnetworkName == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "ipPolicySubnetworkName"); + } + this.ipPolicySubnetworkName = ipPolicySubnetworkName; return this; } @CustomType.Setter public Builder issueClientCertificate(@Nullable Boolean issueClientCertificate) { + this.issueClientCertificate = issueClientCertificate; return this; } @CustomType.Setter public Builder kubernetesDashboard(@Nullable Boolean kubernetesDashboard) { + this.kubernetesDashboard = kubernetesDashboard; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder localSsdCount(@Nullable Integer localSsdCount) { + this.localSsdCount = localSsdCount; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "locations"); + } + this.locations = locations; return this; } public Builder locations(String... locations) { @@ -532,16 +589,23 @@ public Builder locations(String... locations) { } @CustomType.Setter public Builder machineType(String machineType) { - this.machineType = Objects.requireNonNull(machineType); + if (machineType == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "machineType"); + } + this.machineType = machineType; return this; } @CustomType.Setter public Builder maintenanceWindow(String maintenanceWindow) { - this.maintenanceWindow = Objects.requireNonNull(maintenanceWindow); + if (maintenanceWindow == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "maintenanceWindow"); + } + this.maintenanceWindow = maintenanceWindow; return this; } @CustomType.Setter public Builder masterAuthorizedNetworkCidrBlocks(@Nullable List masterAuthorizedNetworkCidrBlocks) { + this.masterAuthorizedNetworkCidrBlocks = masterAuthorizedNetworkCidrBlocks; return this; } @@ -550,47 +614,68 @@ public Builder masterAuthorizedNetworkCidrBlocks(String... masterAuthorizedNetwo } @CustomType.Setter public Builder masterIpv4CidrBlock(String masterIpv4CidrBlock) { - this.masterIpv4CidrBlock = Objects.requireNonNull(masterIpv4CidrBlock); + if (masterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "masterIpv4CidrBlock"); + } + this.masterIpv4CidrBlock = masterIpv4CidrBlock; return this; } @CustomType.Setter public Builder masterVersion(String masterVersion) { - this.masterVersion = Objects.requireNonNull(masterVersion); + if (masterVersion == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "masterVersion"); + } + this.masterVersion = masterVersion; return this; } @CustomType.Setter public Builder maxNodeCount(@Nullable Integer maxNodeCount) { + this.maxNodeCount = maxNodeCount; return this; } @CustomType.Setter public Builder minNodeCount(@Nullable Integer minNodeCount) { + this.minNodeCount = minNodeCount; return this; } @CustomType.Setter public Builder network(String network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder nodeCount(@Nullable Integer nodeCount) { + this.nodeCount = nodeCount; return this; } @CustomType.Setter public Builder nodePool(String nodePool) { - this.nodePool = Objects.requireNonNull(nodePool); + if (nodePool == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "nodePool"); + } + this.nodePool = nodePool; return this; } @CustomType.Setter public Builder nodeVersion(String nodeVersion) { - this.nodeVersion = Objects.requireNonNull(nodeVersion); + if (nodeVersion == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "nodeVersion"); + } + this.nodeVersion = nodeVersion; return this; } @CustomType.Setter public Builder oauthScopes(List oauthScopes) { - this.oauthScopes = Objects.requireNonNull(oauthScopes); + if (oauthScopes == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "oauthScopes"); + } + this.oauthScopes = oauthScopes; return this; } public Builder oauthScopes(String... oauthScopes) { @@ -598,36 +683,51 @@ public Builder oauthScopes(String... oauthScopes) { } @CustomType.Setter public Builder preemptible(@Nullable Boolean preemptible) { + this.preemptible = preemptible; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder resourceLabels(Map resourceLabels) { - this.resourceLabels = Objects.requireNonNull(resourceLabels); + if (resourceLabels == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "resourceLabels"); + } + this.resourceLabels = resourceLabels; return this; } @CustomType.Setter public Builder serviceAccount(String serviceAccount) { - this.serviceAccount = Objects.requireNonNull(serviceAccount); + if (serviceAccount == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "serviceAccount"); + } + this.serviceAccount = serviceAccount; return this; } @CustomType.Setter public Builder subNetwork(String subNetwork) { - this.subNetwork = Objects.requireNonNull(subNetwork); + if (subNetwork == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfig", "subNetwork"); + } + this.subNetwork = subNetwork; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -636,11 +736,13 @@ public Builder taints(String... taints) { } @CustomType.Setter public Builder useIpAliases(@Nullable Boolean useIpAliases) { + this.useIpAliases = useIpAliases; return this; } @CustomType.Setter public Builder zone(@Nullable String zone) { + this.zone = zone; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2.java index a18f03e8f..82baaadb7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2ClusterAddons; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2IpAllocationPolicy; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2MasterAuthorizedNetworksConfig; @@ -201,52 +202,80 @@ public Builder(GetClusterGkeConfigV2 defaults) { @CustomType.Setter public Builder clusterAddons(GetClusterGkeConfigV2ClusterAddons clusterAddons) { - this.clusterAddons = Objects.requireNonNull(clusterAddons); + if (clusterAddons == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "clusterAddons"); + } + this.clusterAddons = clusterAddons; return this; } @CustomType.Setter public Builder clusterIpv4CidrBlock(String clusterIpv4CidrBlock) { - this.clusterIpv4CidrBlock = Objects.requireNonNull(clusterIpv4CidrBlock); + if (clusterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "clusterIpv4CidrBlock"); + } + this.clusterIpv4CidrBlock = clusterIpv4CidrBlock; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder enableKubernetesAlpha(Boolean enableKubernetesAlpha) { - this.enableKubernetesAlpha = Objects.requireNonNull(enableKubernetesAlpha); + if (enableKubernetesAlpha == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "enableKubernetesAlpha"); + } + this.enableKubernetesAlpha = enableKubernetesAlpha; return this; } @CustomType.Setter public Builder googleCredentialSecret(String googleCredentialSecret) { - this.googleCredentialSecret = Objects.requireNonNull(googleCredentialSecret); + if (googleCredentialSecret == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "googleCredentialSecret"); + } + this.googleCredentialSecret = googleCredentialSecret; return this; } @CustomType.Setter public Builder imported(@Nullable Boolean imported) { + this.imported = imported; return this; } @CustomType.Setter public Builder ipAllocationPolicy(GetClusterGkeConfigV2IpAllocationPolicy ipAllocationPolicy) { - this.ipAllocationPolicy = Objects.requireNonNull(ipAllocationPolicy); + if (ipAllocationPolicy == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "ipAllocationPolicy"); + } + this.ipAllocationPolicy = ipAllocationPolicy; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder locations(List locations) { - this.locations = Objects.requireNonNull(locations); + if (locations == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "locations"); + } + this.locations = locations; return this; } public Builder locations(String... locations) { @@ -254,42 +283,66 @@ public Builder locations(String... locations) { } @CustomType.Setter public Builder loggingService(String loggingService) { - this.loggingService = Objects.requireNonNull(loggingService); + if (loggingService == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "loggingService"); + } + this.loggingService = loggingService; return this; } @CustomType.Setter public Builder maintenanceWindow(String maintenanceWindow) { - this.maintenanceWindow = Objects.requireNonNull(maintenanceWindow); + if (maintenanceWindow == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "maintenanceWindow"); + } + this.maintenanceWindow = maintenanceWindow; return this; } @CustomType.Setter public Builder masterAuthorizedNetworksConfig(GetClusterGkeConfigV2MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig) { - this.masterAuthorizedNetworksConfig = Objects.requireNonNull(masterAuthorizedNetworksConfig); + if (masterAuthorizedNetworksConfig == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "masterAuthorizedNetworksConfig"); + } + this.masterAuthorizedNetworksConfig = masterAuthorizedNetworksConfig; return this; } @CustomType.Setter public Builder monitoringService(String monitoringService) { - this.monitoringService = Objects.requireNonNull(monitoringService); + if (monitoringService == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "monitoringService"); + } + this.monitoringService = monitoringService; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder network(String network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder networkPolicyEnabled(Boolean networkPolicyEnabled) { - this.networkPolicyEnabled = Objects.requireNonNull(networkPolicyEnabled); + if (networkPolicyEnabled == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "networkPolicyEnabled"); + } + this.networkPolicyEnabled = networkPolicyEnabled; return this; } @CustomType.Setter public Builder nodePools(List nodePools) { - this.nodePools = Objects.requireNonNull(nodePools); + if (nodePools == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "nodePools"); + } + this.nodePools = nodePools; return this; } public Builder nodePools(GetClusterGkeConfigV2NodePool... nodePools) { @@ -297,27 +350,42 @@ public Builder nodePools(GetClusterGkeConfigV2NodePool... nodePools) { } @CustomType.Setter public Builder privateClusterConfig(GetClusterGkeConfigV2PrivateClusterConfig privateClusterConfig) { - this.privateClusterConfig = Objects.requireNonNull(privateClusterConfig); + if (privateClusterConfig == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "privateClusterConfig"); + } + this.privateClusterConfig = privateClusterConfig; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder subnetwork(String subnetwork) { - this.subnetwork = Objects.requireNonNull(subnetwork); + if (subnetwork == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "subnetwork"); + } + this.subnetwork = subnetwork; return this; } @CustomType.Setter public Builder zone(String zone) { - this.zone = Objects.requireNonNull(zone); + if (zone == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2", "zone"); + } + this.zone = zone; return this; } public GetClusterGkeConfigV2 build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2ClusterAddons.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2ClusterAddons.java index 32220afd2..536016e5d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2ClusterAddons.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2ClusterAddons.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.util.Objects; @@ -46,17 +47,26 @@ public Builder(GetClusterGkeConfigV2ClusterAddons defaults) { @CustomType.Setter public Builder horizontalPodAutoscaling(Boolean horizontalPodAutoscaling) { - this.horizontalPodAutoscaling = Objects.requireNonNull(horizontalPodAutoscaling); + if (horizontalPodAutoscaling == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2ClusterAddons", "horizontalPodAutoscaling"); + } + this.horizontalPodAutoscaling = horizontalPodAutoscaling; return this; } @CustomType.Setter public Builder httpLoadBalancing(Boolean httpLoadBalancing) { - this.httpLoadBalancing = Objects.requireNonNull(httpLoadBalancing); + if (httpLoadBalancing == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2ClusterAddons", "httpLoadBalancing"); + } + this.httpLoadBalancing = httpLoadBalancing; return this; } @CustomType.Setter public Builder networkPolicyConfig(Boolean networkPolicyConfig) { - this.networkPolicyConfig = Objects.requireNonNull(networkPolicyConfig); + if (networkPolicyConfig == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2ClusterAddons", "networkPolicyConfig"); + } + this.networkPolicyConfig = networkPolicyConfig; return this; } public GetClusterGkeConfigV2ClusterAddons build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2IpAllocationPolicy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2IpAllocationPolicy.java index 9d3d29963..12958357f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2IpAllocationPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2IpAllocationPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -77,42 +78,66 @@ public Builder(GetClusterGkeConfigV2IpAllocationPolicy defaults) { @CustomType.Setter public Builder clusterIpv4CidrBlock(String clusterIpv4CidrBlock) { - this.clusterIpv4CidrBlock = Objects.requireNonNull(clusterIpv4CidrBlock); + if (clusterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "clusterIpv4CidrBlock"); + } + this.clusterIpv4CidrBlock = clusterIpv4CidrBlock; return this; } @CustomType.Setter public Builder clusterSecondaryRangeName(String clusterSecondaryRangeName) { - this.clusterSecondaryRangeName = Objects.requireNonNull(clusterSecondaryRangeName); + if (clusterSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "clusterSecondaryRangeName"); + } + this.clusterSecondaryRangeName = clusterSecondaryRangeName; return this; } @CustomType.Setter public Builder createSubnetwork(Boolean createSubnetwork) { - this.createSubnetwork = Objects.requireNonNull(createSubnetwork); + if (createSubnetwork == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "createSubnetwork"); + } + this.createSubnetwork = createSubnetwork; return this; } @CustomType.Setter public Builder nodeIpv4CidrBlock(String nodeIpv4CidrBlock) { - this.nodeIpv4CidrBlock = Objects.requireNonNull(nodeIpv4CidrBlock); + if (nodeIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "nodeIpv4CidrBlock"); + } + this.nodeIpv4CidrBlock = nodeIpv4CidrBlock; return this; } @CustomType.Setter public Builder servicesIpv4CidrBlock(String servicesIpv4CidrBlock) { - this.servicesIpv4CidrBlock = Objects.requireNonNull(servicesIpv4CidrBlock); + if (servicesIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "servicesIpv4CidrBlock"); + } + this.servicesIpv4CidrBlock = servicesIpv4CidrBlock; return this; } @CustomType.Setter public Builder servicesSecondaryRangeName(String servicesSecondaryRangeName) { - this.servicesSecondaryRangeName = Objects.requireNonNull(servicesSecondaryRangeName); + if (servicesSecondaryRangeName == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "servicesSecondaryRangeName"); + } + this.servicesSecondaryRangeName = servicesSecondaryRangeName; return this; } @CustomType.Setter public Builder subnetworkName(String subnetworkName) { - this.subnetworkName = Objects.requireNonNull(subnetworkName); + if (subnetworkName == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "subnetworkName"); + } + this.subnetworkName = subnetworkName; return this; } @CustomType.Setter public Builder useIpAliases(Boolean useIpAliases) { - this.useIpAliases = Objects.requireNonNull(useIpAliases); + if (useIpAliases == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2IpAllocationPolicy", "useIpAliases"); + } + this.useIpAliases = useIpAliases; return this; } public GetClusterGkeConfigV2IpAllocationPolicy build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfig.java index b124fec2b..80b6d8988 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock; import java.lang.Boolean; import java.util.List; @@ -44,7 +45,10 @@ public Builder(GetClusterGkeConfigV2MasterAuthorizedNetworksConfig defaults) { @CustomType.Setter public Builder cidrBlocks(List cidrBlocks) { - this.cidrBlocks = Objects.requireNonNull(cidrBlocks); + if (cidrBlocks == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2MasterAuthorizedNetworksConfig", "cidrBlocks"); + } + this.cidrBlocks = cidrBlocks; return this; } public Builder cidrBlocks(GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock... cidrBlocks) { @@ -52,6 +56,7 @@ public Builder cidrBlocks(GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCid } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java index 467081103..3329647a4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -42,11 +43,15 @@ public Builder(GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock defa @CustomType.Setter public Builder cidrBlock(String cidrBlock) { - this.cidrBlock = Objects.requireNonNull(cidrBlock); + if (cidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2MasterAuthorizedNetworksConfigCidrBlock", "cidrBlock"); + } + this.cidrBlock = cidrBlock; return this; } @CustomType.Setter public Builder displayName(@Nullable String displayName) { + this.displayName = displayName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePool.java index 0bb226954..e137994aa 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePool.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2NodePoolAutoscaling; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2NodePoolConfig; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2NodePoolManagement; @@ -82,37 +83,58 @@ public Builder(GetClusterGkeConfigV2NodePool defaults) { @CustomType.Setter public Builder autoscaling(GetClusterGkeConfigV2NodePoolAutoscaling autoscaling) { - this.autoscaling = Objects.requireNonNull(autoscaling); + if (autoscaling == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "autoscaling"); + } + this.autoscaling = autoscaling; return this; } @CustomType.Setter public Builder config(GetClusterGkeConfigV2NodePoolConfig config) { - this.config = Objects.requireNonNull(config); + if (config == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "config"); + } + this.config = config; return this; } @CustomType.Setter public Builder initialNodeCount(Integer initialNodeCount) { - this.initialNodeCount = Objects.requireNonNull(initialNodeCount); + if (initialNodeCount == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "initialNodeCount"); + } + this.initialNodeCount = initialNodeCount; return this; } @CustomType.Setter public Builder management(GetClusterGkeConfigV2NodePoolManagement management) { - this.management = Objects.requireNonNull(management); + if (management == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "management"); + } + this.management = management; return this; } @CustomType.Setter public Builder maxPodsConstraint(Integer maxPodsConstraint) { - this.maxPodsConstraint = Objects.requireNonNull(maxPodsConstraint); + if (maxPodsConstraint == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "maxPodsConstraint"); + } + this.maxPodsConstraint = maxPodsConstraint; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePool", "version"); + } + this.version = version; return this; } public GetClusterGkeConfigV2NodePool build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolAutoscaling.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolAutoscaling.java index b7ac305ed..c2322c06a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolAutoscaling.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolAutoscaling.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.util.Objects; @@ -49,17 +50,24 @@ public Builder(GetClusterGkeConfigV2NodePoolAutoscaling defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder maxNodeCount(Integer maxNodeCount) { - this.maxNodeCount = Objects.requireNonNull(maxNodeCount); + if (maxNodeCount == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolAutoscaling", "maxNodeCount"); + } + this.maxNodeCount = maxNodeCount; return this; } @CustomType.Setter public Builder minNodeCount(Integer minNodeCount) { - this.minNodeCount = Objects.requireNonNull(minNodeCount); + if (minNodeCount == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolAutoscaling", "minNodeCount"); + } + this.minNodeCount = minNodeCount; return this; } public GetClusterGkeConfigV2NodePoolAutoscaling build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfig.java index fefbcc574..1030bfed7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterGkeConfigV2NodePoolConfigTaint; import java.lang.Boolean; import java.lang.Integer; @@ -104,37 +105,48 @@ public Builder(GetClusterGkeConfigV2NodePoolConfig defaults) { @CustomType.Setter public Builder diskSizeGb(@Nullable Integer diskSizeGb) { + this.diskSizeGb = diskSizeGb; return this; } @CustomType.Setter public Builder diskType(@Nullable String diskType) { + this.diskType = diskType; return this; } @CustomType.Setter public Builder imageType(@Nullable String imageType) { + this.imageType = imageType; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolConfig", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder localSsdCount(@Nullable Integer localSsdCount) { + this.localSsdCount = localSsdCount; return this; } @CustomType.Setter public Builder machineType(@Nullable String machineType) { + this.machineType = machineType; return this; } @CustomType.Setter public Builder oauthScopes(List oauthScopes) { - this.oauthScopes = Objects.requireNonNull(oauthScopes); + if (oauthScopes == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolConfig", "oauthScopes"); + } + this.oauthScopes = oauthScopes; return this; } public Builder oauthScopes(String... oauthScopes) { @@ -142,12 +154,16 @@ public Builder oauthScopes(String... oauthScopes) { } @CustomType.Setter public Builder preemptible(@Nullable Boolean preemptible) { + this.preemptible = preemptible; return this; } @CustomType.Setter public Builder tags(List tags) { - this.tags = Objects.requireNonNull(tags); + if (tags == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolConfig", "tags"); + } + this.tags = tags; return this; } public Builder tags(String... tags) { @@ -155,6 +171,7 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfigTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfigTaint.java index 9b6eb2bb8..856fde537 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfigTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolConfigTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -46,17 +47,26 @@ public Builder(GetClusterGkeConfigV2NodePoolConfigTaint defaults) { @CustomType.Setter public Builder effect(String effect) { - this.effect = Objects.requireNonNull(effect); + if (effect == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolConfigTaint", "effect"); + } + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolConfigTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolConfigTaint", "value"); + } + this.value = value; return this; } public GetClusterGkeConfigV2NodePoolConfigTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolManagement.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolManagement.java index 559c3c049..8405a6d2b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolManagement.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2NodePoolManagement.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetClusterGkeConfigV2NodePoolManagement defaults) { @CustomType.Setter public Builder autoRepair(Boolean autoRepair) { - this.autoRepair = Objects.requireNonNull(autoRepair); + if (autoRepair == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolManagement", "autoRepair"); + } + this.autoRepair = autoRepair; return this; } @CustomType.Setter public Builder autoUpgrade(Boolean autoUpgrade) { - this.autoUpgrade = Objects.requireNonNull(autoUpgrade); + if (autoUpgrade == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2NodePoolManagement", "autoUpgrade"); + } + this.autoUpgrade = autoUpgrade; return this; } public GetClusterGkeConfigV2NodePoolManagement build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2PrivateClusterConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2PrivateClusterConfig.java index 0aa8061dd..5372c877e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2PrivateClusterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterGkeConfigV2PrivateClusterConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -49,17 +50,22 @@ public Builder(GetClusterGkeConfigV2PrivateClusterConfig defaults) { @CustomType.Setter public Builder enablePrivateEndpoint(@Nullable Boolean enablePrivateEndpoint) { + this.enablePrivateEndpoint = enablePrivateEndpoint; return this; } @CustomType.Setter public Builder enablePrivateNodes(@Nullable Boolean enablePrivateNodes) { + this.enablePrivateNodes = enablePrivateNodes; return this; } @CustomType.Setter public Builder masterIpv4CidrBlock(String masterIpv4CidrBlock) { - this.masterIpv4CidrBlock = Objects.requireNonNull(masterIpv4CidrBlock); + if (masterIpv4CidrBlock == null) { + throw new MissingRequiredPropertyException("GetClusterGkeConfigV2PrivateClusterConfig", "masterIpv4CidrBlock"); + } + this.masterIpv4CidrBlock = masterIpv4CidrBlock; return this; } public GetClusterGkeConfigV2PrivateClusterConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfig.java index 5699e9ade..3d3bf9028 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterK3sConfigUpgradeStrategy; import java.lang.String; import java.util.Objects; @@ -41,12 +42,18 @@ public Builder(GetClusterK3sConfig defaults) { @CustomType.Setter public Builder upgradeStrategy(GetClusterK3sConfigUpgradeStrategy upgradeStrategy) { - this.upgradeStrategy = Objects.requireNonNull(upgradeStrategy); + if (upgradeStrategy == null) { + throw new MissingRequiredPropertyException("GetClusterK3sConfig", "upgradeStrategy"); + } + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetClusterK3sConfig", "version"); + } + this.version = version; return this; } public GetClusterK3sConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfigUpgradeStrategy.java index 190b14d26..7d7f0efe4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterK3sConfigUpgradeStrategy.java @@ -55,21 +55,25 @@ public Builder(GetClusterK3sConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder drainServerNodes(@Nullable Boolean drainServerNodes) { + this.drainServerNodes = drainServerNodes; return this; } @CustomType.Setter public Builder drainWorkerNodes(@Nullable Boolean drainWorkerNodes) { + this.drainWorkerNodes = drainWorkerNodes; return this; } @CustomType.Setter public Builder serverConcurrency(@Nullable Integer serverConcurrency) { + this.serverConcurrency = serverConcurrency; return this; } @CustomType.Setter public Builder workerConcurrency(@Nullable Integer workerConcurrency) { + this.workerConcurrency = workerConcurrency; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterOkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterOkeConfig.java index 2fa1899b6..3a2a37994 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterOkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterOkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -232,161 +233,211 @@ public Builder(GetClusterOkeConfig defaults) { @CustomType.Setter public Builder compartmentId(String compartmentId) { - this.compartmentId = Objects.requireNonNull(compartmentId); + if (compartmentId == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "compartmentId"); + } + this.compartmentId = compartmentId; return this; } @CustomType.Setter public Builder customBootVolumeSize(@Nullable Integer customBootVolumeSize) { + this.customBootVolumeSize = customBootVolumeSize; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder enableKubernetesDashboard(@Nullable Boolean enableKubernetesDashboard) { + this.enableKubernetesDashboard = enableKubernetesDashboard; return this; } @CustomType.Setter public Builder enablePrivateControlPlane(@Nullable Boolean enablePrivateControlPlane) { + this.enablePrivateControlPlane = enablePrivateControlPlane; return this; } @CustomType.Setter public Builder enablePrivateNodes(@Nullable Boolean enablePrivateNodes) { + this.enablePrivateNodes = enablePrivateNodes; return this; } @CustomType.Setter public Builder fingerprint(String fingerprint) { - this.fingerprint = Objects.requireNonNull(fingerprint); + if (fingerprint == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "fingerprint"); + } + this.fingerprint = fingerprint; return this; } @CustomType.Setter public Builder flexOcpus(@Nullable Integer flexOcpus) { + this.flexOcpus = flexOcpus; return this; } @CustomType.Setter public Builder kmsKeyId(@Nullable String kmsKeyId) { + this.kmsKeyId = kmsKeyId; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder limitNodeCount(@Nullable Integer limitNodeCount) { + this.limitNodeCount = limitNodeCount; return this; } @CustomType.Setter public Builder loadBalancerSubnetName1(@Nullable String loadBalancerSubnetName1) { + this.loadBalancerSubnetName1 = loadBalancerSubnetName1; return this; } @CustomType.Setter public Builder loadBalancerSubnetName2(@Nullable String loadBalancerSubnetName2) { + this.loadBalancerSubnetName2 = loadBalancerSubnetName2; return this; } @CustomType.Setter public Builder nodeImage(String nodeImage) { - this.nodeImage = Objects.requireNonNull(nodeImage); + if (nodeImage == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "nodeImage"); + } + this.nodeImage = nodeImage; return this; } @CustomType.Setter public Builder nodePoolDnsDomainName(@Nullable String nodePoolDnsDomainName) { + this.nodePoolDnsDomainName = nodePoolDnsDomainName; return this; } @CustomType.Setter public Builder nodePoolSubnetName(@Nullable String nodePoolSubnetName) { + this.nodePoolSubnetName = nodePoolSubnetName; return this; } @CustomType.Setter public Builder nodePublicKeyContents(@Nullable String nodePublicKeyContents) { + this.nodePublicKeyContents = nodePublicKeyContents; return this; } @CustomType.Setter public Builder nodeShape(String nodeShape) { - this.nodeShape = Objects.requireNonNull(nodeShape); + if (nodeShape == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "nodeShape"); + } + this.nodeShape = nodeShape; return this; } @CustomType.Setter public Builder podCidr(@Nullable String podCidr) { + this.podCidr = podCidr; return this; } @CustomType.Setter public Builder privateKeyContents(String privateKeyContents) { - this.privateKeyContents = Objects.requireNonNull(privateKeyContents); + if (privateKeyContents == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "privateKeyContents"); + } + this.privateKeyContents = privateKeyContents; return this; } @CustomType.Setter public Builder privateKeyPassphrase(@Nullable String privateKeyPassphrase) { + this.privateKeyPassphrase = privateKeyPassphrase; return this; } @CustomType.Setter public Builder quantityOfNodeSubnets(@Nullable Integer quantityOfNodeSubnets) { + this.quantityOfNodeSubnets = quantityOfNodeSubnets; return this; } @CustomType.Setter public Builder quantityPerSubnet(@Nullable Integer quantityPerSubnet) { + this.quantityPerSubnet = quantityPerSubnet; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder serviceCidr(@Nullable String serviceCidr) { + this.serviceCidr = serviceCidr; return this; } @CustomType.Setter public Builder serviceDnsDomainName(@Nullable String serviceDnsDomainName) { + this.serviceDnsDomainName = serviceDnsDomainName; return this; } @CustomType.Setter public Builder skipVcnDelete(@Nullable Boolean skipVcnDelete) { + this.skipVcnDelete = skipVcnDelete; return this; } @CustomType.Setter public Builder tenancyId(String tenancyId) { - this.tenancyId = Objects.requireNonNull(tenancyId); + if (tenancyId == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "tenancyId"); + } + this.tenancyId = tenancyId; return this; } @CustomType.Setter public Builder userOcid(String userOcid) { - this.userOcid = Objects.requireNonNull(userOcid); + if (userOcid == null) { + throw new MissingRequiredPropertyException("GetClusterOkeConfig", "userOcid"); + } + this.userOcid = userOcid; return this; } @CustomType.Setter public Builder vcnCompartmentId(@Nullable String vcnCompartmentId) { + this.vcnCompartmentId = vcnCompartmentId; return this; } @CustomType.Setter public Builder vcnName(@Nullable String vcnName) { + this.vcnName = vcnName; return this; } @CustomType.Setter public Builder workerNodeIngressCidr(@Nullable String workerNodeIngressCidr) { + this.workerNodeIngressCidr = workerNodeIngressCidr; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterResult.java index a57dc34b7..3556bcbdf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterAksConfig; import com.pulumi.rancher2.outputs.GetClusterAksConfigV2; import com.pulumi.rancher2.outputs.GetClusterClusterAuthEndpoint; @@ -499,7 +500,10 @@ public Builder(GetClusterResult defaults) { @CustomType.Setter public Builder agentEnvVars(List agentEnvVars) { - this.agentEnvVars = Objects.requireNonNull(agentEnvVars); + if (agentEnvVars == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "agentEnvVars"); + } + this.agentEnvVars = agentEnvVars; return this; } public Builder agentEnvVars(String... agentEnvVars) { @@ -507,52 +511,82 @@ public Builder agentEnvVars(String... agentEnvVars) { } @CustomType.Setter public Builder aksConfig(GetClusterAksConfig aksConfig) { - this.aksConfig = Objects.requireNonNull(aksConfig); + if (aksConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "aksConfig"); + } + this.aksConfig = aksConfig; return this; } @CustomType.Setter public Builder aksConfigV2(GetClusterAksConfigV2 aksConfigV2) { - this.aksConfigV2 = Objects.requireNonNull(aksConfigV2); + if (aksConfigV2 == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "aksConfigV2"); + } + this.aksConfigV2 = aksConfigV2; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder caCert(String caCert) { - this.caCert = Objects.requireNonNull(caCert); + if (caCert == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "caCert"); + } + this.caCert = caCert; return this; } @CustomType.Setter public Builder clusterAuthEndpoint(GetClusterClusterAuthEndpoint clusterAuthEndpoint) { - this.clusterAuthEndpoint = Objects.requireNonNull(clusterAuthEndpoint); + if (clusterAuthEndpoint == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterAuthEndpoint"); + } + this.clusterAuthEndpoint = clusterAuthEndpoint; return this; } @CustomType.Setter public Builder clusterMonitoringInput(GetClusterClusterMonitoringInput clusterMonitoringInput) { - this.clusterMonitoringInput = Objects.requireNonNull(clusterMonitoringInput); + if (clusterMonitoringInput == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterMonitoringInput"); + } + this.clusterMonitoringInput = clusterMonitoringInput; return this; } @CustomType.Setter public Builder clusterRegistrationToken(GetClusterClusterRegistrationToken clusterRegistrationToken) { - this.clusterRegistrationToken = Objects.requireNonNull(clusterRegistrationToken); + if (clusterRegistrationToken == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterRegistrationToken"); + } + this.clusterRegistrationToken = clusterRegistrationToken; return this; } @CustomType.Setter public Builder clusterTemplateAnswers(GetClusterClusterTemplateAnswers clusterTemplateAnswers) { - this.clusterTemplateAnswers = Objects.requireNonNull(clusterTemplateAnswers); + if (clusterTemplateAnswers == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterTemplateAnswers"); + } + this.clusterTemplateAnswers = clusterTemplateAnswers; return this; } @CustomType.Setter public Builder clusterTemplateId(String clusterTemplateId) { - this.clusterTemplateId = Objects.requireNonNull(clusterTemplateId); + if (clusterTemplateId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterTemplateId"); + } + this.clusterTemplateId = clusterTemplateId; return this; } @CustomType.Setter public Builder clusterTemplateQuestions(List clusterTemplateQuestions) { - this.clusterTemplateQuestions = Objects.requireNonNull(clusterTemplateQuestions); + if (clusterTemplateQuestions == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterTemplateQuestions"); + } + this.clusterTemplateQuestions = clusterTemplateQuestions; return this; } public Builder clusterTemplateQuestions(GetClusterClusterTemplateQuestion... clusterTemplateQuestions) { @@ -560,117 +594,186 @@ public Builder clusterTemplateQuestions(GetClusterClusterTemplateQuestion... clu } @CustomType.Setter public Builder clusterTemplateRevisionId(String clusterTemplateRevisionId) { - this.clusterTemplateRevisionId = Objects.requireNonNull(clusterTemplateRevisionId); + if (clusterTemplateRevisionId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "clusterTemplateRevisionId"); + } + this.clusterTemplateRevisionId = clusterTemplateRevisionId; return this; } @CustomType.Setter public Builder defaultPodSecurityAdmissionConfigurationTemplateName(String defaultPodSecurityAdmissionConfigurationTemplateName) { - this.defaultPodSecurityAdmissionConfigurationTemplateName = Objects.requireNonNull(defaultPodSecurityAdmissionConfigurationTemplateName); + if (defaultPodSecurityAdmissionConfigurationTemplateName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "defaultPodSecurityAdmissionConfigurationTemplateName"); + } + this.defaultPodSecurityAdmissionConfigurationTemplateName = defaultPodSecurityAdmissionConfigurationTemplateName; return this; } @CustomType.Setter public Builder defaultPodSecurityPolicyTemplateId(String defaultPodSecurityPolicyTemplateId) { - this.defaultPodSecurityPolicyTemplateId = Objects.requireNonNull(defaultPodSecurityPolicyTemplateId); + if (defaultPodSecurityPolicyTemplateId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "defaultPodSecurityPolicyTemplateId"); + } + this.defaultPodSecurityPolicyTemplateId = defaultPodSecurityPolicyTemplateId; return this; } @CustomType.Setter public Builder defaultProjectId(String defaultProjectId) { - this.defaultProjectId = Objects.requireNonNull(defaultProjectId); + if (defaultProjectId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "defaultProjectId"); + } + this.defaultProjectId = defaultProjectId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "driver"); + } + this.driver = driver; return this; } @CustomType.Setter public Builder eksConfig(GetClusterEksConfig eksConfig) { - this.eksConfig = Objects.requireNonNull(eksConfig); + if (eksConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "eksConfig"); + } + this.eksConfig = eksConfig; return this; } @CustomType.Setter public Builder eksConfigV2(GetClusterEksConfigV2 eksConfigV2) { - this.eksConfigV2 = Objects.requireNonNull(eksConfigV2); + if (eksConfigV2 == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "eksConfigV2"); + } + this.eksConfigV2 = eksConfigV2; return this; } @CustomType.Setter public Builder enableClusterAlerting(Boolean enableClusterAlerting) { - this.enableClusterAlerting = Objects.requireNonNull(enableClusterAlerting); + if (enableClusterAlerting == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "enableClusterAlerting"); + } + this.enableClusterAlerting = enableClusterAlerting; return this; } @CustomType.Setter public Builder enableClusterMonitoring(Boolean enableClusterMonitoring) { - this.enableClusterMonitoring = Objects.requireNonNull(enableClusterMonitoring); + if (enableClusterMonitoring == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "enableClusterMonitoring"); + } + this.enableClusterMonitoring = enableClusterMonitoring; return this; } @CustomType.Setter public Builder enableNetworkPolicy(Boolean enableNetworkPolicy) { - this.enableNetworkPolicy = Objects.requireNonNull(enableNetworkPolicy); + if (enableNetworkPolicy == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "enableNetworkPolicy"); + } + this.enableNetworkPolicy = enableNetworkPolicy; return this; } @CustomType.Setter public Builder fleetWorkspaceName(String fleetWorkspaceName) { - this.fleetWorkspaceName = Objects.requireNonNull(fleetWorkspaceName); + if (fleetWorkspaceName == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "fleetWorkspaceName"); + } + this.fleetWorkspaceName = fleetWorkspaceName; return this; } @CustomType.Setter public Builder gkeConfig(GetClusterGkeConfig gkeConfig) { - this.gkeConfig = Objects.requireNonNull(gkeConfig); + if (gkeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "gkeConfig"); + } + this.gkeConfig = gkeConfig; return this; } @CustomType.Setter public Builder gkeConfigV2(GetClusterGkeConfigV2 gkeConfigV2) { - this.gkeConfigV2 = Objects.requireNonNull(gkeConfigV2); + if (gkeConfigV2 == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "gkeConfigV2"); + } + this.gkeConfigV2 = gkeConfigV2; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder k3sConfig(GetClusterK3sConfig k3sConfig) { - this.k3sConfig = Objects.requireNonNull(k3sConfig); + if (k3sConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "k3sConfig"); + } + this.k3sConfig = k3sConfig; return this; } @CustomType.Setter public Builder kubeConfig(String kubeConfig) { - this.kubeConfig = Objects.requireNonNull(kubeConfig); + if (kubeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "kubeConfig"); + } + this.kubeConfig = kubeConfig; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder okeConfig(GetClusterOkeConfig okeConfig) { - this.okeConfig = Objects.requireNonNull(okeConfig); + if (okeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "okeConfig"); + } + this.okeConfig = okeConfig; return this; } @CustomType.Setter public Builder rke2Config(GetClusterRke2Config rke2Config) { - this.rke2Config = Objects.requireNonNull(rke2Config); + if (rke2Config == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "rke2Config"); + } + this.rke2Config = rke2Config; return this; } @CustomType.Setter public Builder rkeConfig(GetClusterRkeConfig rkeConfig) { - this.rkeConfig = Objects.requireNonNull(rkeConfig); + if (rkeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "rkeConfig"); + } + this.rkeConfig = rkeConfig; return this; } @CustomType.Setter public Builder systemProjectId(String systemProjectId) { - this.systemProjectId = Objects.requireNonNull(systemProjectId); + if (systemProjectId == null) { + throw new MissingRequiredPropertyException("GetClusterResult", "systemProjectId"); + } + this.systemProjectId = systemProjectId; return this; } public GetClusterResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2Config.java index b76a4af3f..097bcc704 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRke2ConfigUpgradeStrategy; import java.lang.String; import java.util.Objects; @@ -41,12 +42,18 @@ public Builder(GetClusterRke2Config defaults) { @CustomType.Setter public Builder upgradeStrategy(GetClusterRke2ConfigUpgradeStrategy upgradeStrategy) { - this.upgradeStrategy = Objects.requireNonNull(upgradeStrategy); + if (upgradeStrategy == null) { + throw new MissingRequiredPropertyException("GetClusterRke2Config", "upgradeStrategy"); + } + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder version(String version) { - this.version = Objects.requireNonNull(version); + if (version == null) { + throw new MissingRequiredPropertyException("GetClusterRke2Config", "version"); + } + this.version = version; return this; } public GetClusterRke2Config build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2ConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2ConfigUpgradeStrategy.java index 5fe49c1c9..294c070d3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2ConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRke2ConfigUpgradeStrategy.java @@ -55,21 +55,25 @@ public Builder(GetClusterRke2ConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder drainServerNodes(@Nullable Boolean drainServerNodes) { + this.drainServerNodes = drainServerNodes; return this; } @CustomType.Setter public Builder drainWorkerNodes(@Nullable Boolean drainWorkerNodes) { + this.drainWorkerNodes = drainWorkerNodes; return this; } @CustomType.Setter public Builder serverConcurrency(@Nullable Integer serverConcurrency) { + this.serverConcurrency = serverConcurrency; return this; } @CustomType.Setter public Builder workerConcurrency(@Nullable Integer workerConcurrency) { + this.workerConcurrency = workerConcurrency; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfig.java index de481040a..295b8f836 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigAuthentication; import com.pulumi.rancher2.outputs.GetClusterRkeConfigAuthorization; import com.pulumi.rancher2.outputs.GetClusterRkeConfigBastionHost; @@ -183,16 +184,21 @@ public Builder(GetClusterRkeConfig defaults) { @CustomType.Setter public Builder addonJobTimeout(Integer addonJobTimeout) { - this.addonJobTimeout = Objects.requireNonNull(addonJobTimeout); + if (addonJobTimeout == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "addonJobTimeout"); + } + this.addonJobTimeout = addonJobTimeout; return this; } @CustomType.Setter public Builder addons(@Nullable String addons) { + this.addons = addons; return this; } @CustomType.Setter public Builder addonsIncludes(@Nullable List addonsIncludes) { + this.addonsIncludes = addonsIncludes; return this; } @@ -201,61 +207,91 @@ public Builder addonsIncludes(String... addonsIncludes) { } @CustomType.Setter public Builder authentication(GetClusterRkeConfigAuthentication authentication) { - this.authentication = Objects.requireNonNull(authentication); + if (authentication == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "authentication"); + } + this.authentication = authentication; return this; } @CustomType.Setter public Builder authorization(GetClusterRkeConfigAuthorization authorization) { - this.authorization = Objects.requireNonNull(authorization); + if (authorization == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "authorization"); + } + this.authorization = authorization; return this; } @CustomType.Setter public Builder bastionHost(GetClusterRkeConfigBastionHost bastionHost) { - this.bastionHost = Objects.requireNonNull(bastionHost); + if (bastionHost == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "bastionHost"); + } + this.bastionHost = bastionHost; return this; } @CustomType.Setter public Builder cloudProvider(GetClusterRkeConfigCloudProvider cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder dns(GetClusterRkeConfigDns dns) { - this.dns = Objects.requireNonNull(dns); + if (dns == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "dns"); + } + this.dns = dns; return this; } @CustomType.Setter public Builder enableCriDockerd(@Nullable Boolean enableCriDockerd) { + this.enableCriDockerd = enableCriDockerd; return this; } @CustomType.Setter public Builder ignoreDockerVersion(@Nullable Boolean ignoreDockerVersion) { + this.ignoreDockerVersion = ignoreDockerVersion; return this; } @CustomType.Setter public Builder ingress(GetClusterRkeConfigIngress ingress) { - this.ingress = Objects.requireNonNull(ingress); + if (ingress == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "ingress"); + } + this.ingress = ingress; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder monitoring(GetClusterRkeConfigMonitoring monitoring) { - this.monitoring = Objects.requireNonNull(monitoring); + if (monitoring == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "monitoring"); + } + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder network(GetClusterRkeConfigNetwork network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder nodes(@Nullable List nodes) { + this.nodes = nodes; return this; } @@ -264,11 +300,15 @@ public Builder nodes(GetClusterRkeConfigNode... nodes) { } @CustomType.Setter public Builder prefixPath(String prefixPath) { - this.prefixPath = Objects.requireNonNull(prefixPath); + if (prefixPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "prefixPath"); + } + this.prefixPath = prefixPath; return this; } @CustomType.Setter public Builder privateRegistries(@Nullable List privateRegistries) { + this.privateRegistries = privateRegistries; return this; } @@ -277,32 +317,48 @@ public Builder privateRegistries(GetClusterRkeConfigPrivateRegistry... privateRe } @CustomType.Setter public Builder services(GetClusterRkeConfigServices services) { - this.services = Objects.requireNonNull(services); + if (services == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "services"); + } + this.services = services; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshCertPath(String sshCertPath) { - this.sshCertPath = Objects.requireNonNull(sshCertPath); + if (sshCertPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "sshCertPath"); + } + this.sshCertPath = sshCertPath; return this; } @CustomType.Setter public Builder sshKeyPath(String sshKeyPath) { - this.sshKeyPath = Objects.requireNonNull(sshKeyPath); + if (sshKeyPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "sshKeyPath"); + } + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder upgradeStrategy(GetClusterRkeConfigUpgradeStrategy upgradeStrategy) { - this.upgradeStrategy = Objects.requireNonNull(upgradeStrategy); + if (upgradeStrategy == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "upgradeStrategy"); + } + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder winPrefixPath(String winPrefixPath) { - this.winPrefixPath = Objects.requireNonNull(winPrefixPath); + if (winPrefixPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfig", "winPrefixPath"); + } + this.winPrefixPath = winPrefixPath; return this; } public GetClusterRkeConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthentication.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthentication.java index d41ada61a..e31a63b47 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthentication.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -41,7 +42,10 @@ public Builder(GetClusterRkeConfigAuthentication defaults) { @CustomType.Setter public Builder sans(List sans) { - this.sans = Objects.requireNonNull(sans); + if (sans == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigAuthentication", "sans"); + } + this.sans = sans; return this; } public Builder sans(String... sans) { @@ -49,7 +53,10 @@ public Builder sans(String... sans) { } @CustomType.Setter public Builder strategy(String strategy) { - this.strategy = Objects.requireNonNull(strategy); + if (strategy == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigAuthentication", "strategy"); + } + this.strategy = strategy; return this; } public GetClusterRkeConfigAuthentication build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthorization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthorization.java index b68e20f7b..8da0953da 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthorization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigAuthorization.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -44,12 +45,16 @@ public Builder(GetClusterRkeConfigAuthorization defaults) { @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigAuthorization", "options"); + } + this.options = options; return this; } public GetClusterRkeConfigAuthorization build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigBastionHost.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigBastionHost.java index e1ca9aca3..1812fef18 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigBastionHost.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigBastionHost.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -67,32 +68,46 @@ public Builder(GetClusterRkeConfigBastionHost defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigBastionHost", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(String sshKey) { - this.sshKey = Objects.requireNonNull(sshKey); + if (sshKey == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigBastionHost", "sshKey"); + } + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(String sshKeyPath) { - this.sshKeyPath = Objects.requireNonNull(sshKeyPath); + if (sshKeyPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigBastionHost", "sshKeyPath"); + } + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigBastionHost", "user"); + } + this.user = user; return this; } public GetClusterRkeConfigBastionHost build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProvider.java index 5aa4e2909..a722e5b6d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderAwsCloudProvider; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderAzureCloudProvider; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderOpenstackCloudProvider; @@ -78,31 +79,39 @@ public Builder(GetClusterRkeConfigCloudProvider defaults) { @CustomType.Setter public Builder awsCloudProvider(@Nullable GetClusterRkeConfigCloudProviderAwsCloudProvider awsCloudProvider) { + this.awsCloudProvider = awsCloudProvider; return this; } @CustomType.Setter public Builder azureCloudProvider(@Nullable GetClusterRkeConfigCloudProviderAzureCloudProvider azureCloudProvider) { + this.azureCloudProvider = azureCloudProvider; return this; } @CustomType.Setter public Builder customCloudProvider(String customCloudProvider) { - this.customCloudProvider = Objects.requireNonNull(customCloudProvider); + if (customCloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProvider", "customCloudProvider"); + } + this.customCloudProvider = customCloudProvider; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder openstackCloudProvider(@Nullable GetClusterRkeConfigCloudProviderOpenstackCloudProvider openstackCloudProvider) { + this.openstackCloudProvider = openstackCloudProvider; return this; } @CustomType.Setter public Builder vsphereCloudProvider(@Nullable GetClusterRkeConfigCloudProviderVsphereCloudProvider vsphereCloudProvider) { + this.vsphereCloudProvider = vsphereCloudProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProvider.java index dd96ac63e..9ebdd210a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride; import java.util.List; @@ -43,11 +44,15 @@ public Builder(GetClusterRkeConfigCloudProviderAwsCloudProvider defaults) { @CustomType.Setter public Builder global(GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder serviceOverrides(@Nullable List serviceOverrides) { + this.serviceOverrides = serviceOverrides; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java index 1db9a5bc5..88633c939 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -91,52 +92,78 @@ public Builder(GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal defaults) @CustomType.Setter public Builder disableSecurityGroupIngress(@Nullable Boolean disableSecurityGroupIngress) { + this.disableSecurityGroupIngress = disableSecurityGroupIngress; return this; } @CustomType.Setter public Builder disableStrictZoneCheck(@Nullable Boolean disableStrictZoneCheck) { + this.disableStrictZoneCheck = disableStrictZoneCheck; return this; } @CustomType.Setter public Builder elbSecurityGroup(String elbSecurityGroup) { - this.elbSecurityGroup = Objects.requireNonNull(elbSecurityGroup); + if (elbSecurityGroup == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "elbSecurityGroup"); + } + this.elbSecurityGroup = elbSecurityGroup; return this; } @CustomType.Setter public Builder kubernetesClusterId(String kubernetesClusterId) { - this.kubernetesClusterId = Objects.requireNonNull(kubernetesClusterId); + if (kubernetesClusterId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "kubernetesClusterId"); + } + this.kubernetesClusterId = kubernetesClusterId; return this; } @CustomType.Setter public Builder kubernetesClusterTag(String kubernetesClusterTag) { - this.kubernetesClusterTag = Objects.requireNonNull(kubernetesClusterTag); + if (kubernetesClusterTag == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "kubernetesClusterTag"); + } + this.kubernetesClusterTag = kubernetesClusterTag; return this; } @CustomType.Setter public Builder roleArn(String roleArn) { - this.roleArn = Objects.requireNonNull(roleArn); + if (roleArn == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "roleArn"); + } + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder routeTableId(String routeTableId) { - this.routeTableId = Objects.requireNonNull(routeTableId); + if (routeTableId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "routeTableId"); + } + this.routeTableId = routeTableId; return this; } @CustomType.Setter public Builder subnetId(String subnetId) { - this.subnetId = Objects.requireNonNull(subnetId); + if (subnetId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "subnetId"); + } + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder vpc(String vpc) { - this.vpc = Objects.requireNonNull(vpc); + if (vpc == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "vpc"); + } + this.vpc = vpc; return this; } @CustomType.Setter public Builder zone(String zone) { - this.zone = Objects.requireNonNull(zone); + if (zone == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal", "zone"); + } + this.zone = zone; return this; } public GetClusterRkeConfigCloudProviderAwsCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java index b1f2af730..58e6b8fb0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -64,32 +65,50 @@ public Builder(GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride d @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder service(String service) { - this.service = Objects.requireNonNull(service); + if (service == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "service"); + } + this.service = service; return this; } @CustomType.Setter public Builder signingMethod(String signingMethod) { - this.signingMethod = Objects.requireNonNull(signingMethod); + if (signingMethod == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "signingMethod"); + } + this.signingMethod = signingMethod; return this; } @CustomType.Setter public Builder signingName(String signingName) { - this.signingName = Objects.requireNonNull(signingName); + if (signingName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "signingName"); + } + this.signingName = signingName; return this; } @CustomType.Setter public Builder signingRegion(String signingRegion) { - this.signingRegion = Objects.requireNonNull(signingRegion); + if (signingRegion == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "signingRegion"); + } + this.signingRegion = signingRegion; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride", "url"); + } + this.url = url; return this; } public GetClusterRkeConfigCloudProviderAwsCloudProviderServiceOverride build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAzureCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAzureCloudProvider.java index 8cf91ec20..ef8dc2cfb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAzureCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderAzureCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -206,147 +207,232 @@ public Builder(GetClusterRkeConfigCloudProviderAzureCloudProvider defaults) { @CustomType.Setter public Builder aadClientCertPassword(String aadClientCertPassword) { - this.aadClientCertPassword = Objects.requireNonNull(aadClientCertPassword); + if (aadClientCertPassword == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "aadClientCertPassword"); + } + this.aadClientCertPassword = aadClientCertPassword; return this; } @CustomType.Setter public Builder aadClientCertPath(String aadClientCertPath) { - this.aadClientCertPath = Objects.requireNonNull(aadClientCertPath); + if (aadClientCertPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "aadClientCertPath"); + } + this.aadClientCertPath = aadClientCertPath; return this; } @CustomType.Setter public Builder aadClientId(String aadClientId) { - this.aadClientId = Objects.requireNonNull(aadClientId); + if (aadClientId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "aadClientId"); + } + this.aadClientId = aadClientId; return this; } @CustomType.Setter public Builder aadClientSecret(String aadClientSecret) { - this.aadClientSecret = Objects.requireNonNull(aadClientSecret); + if (aadClientSecret == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "aadClientSecret"); + } + this.aadClientSecret = aadClientSecret; return this; } @CustomType.Setter public Builder cloud(String cloud) { - this.cloud = Objects.requireNonNull(cloud); + if (cloud == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloud"); + } + this.cloud = cloud; return this; } @CustomType.Setter public Builder cloudProviderBackoff(Boolean cloudProviderBackoff) { - this.cloudProviderBackoff = Objects.requireNonNull(cloudProviderBackoff); + if (cloudProviderBackoff == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoff"); + } + this.cloudProviderBackoff = cloudProviderBackoff; return this; } @CustomType.Setter public Builder cloudProviderBackoffDuration(Integer cloudProviderBackoffDuration) { - this.cloudProviderBackoffDuration = Objects.requireNonNull(cloudProviderBackoffDuration); + if (cloudProviderBackoffDuration == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffDuration"); + } + this.cloudProviderBackoffDuration = cloudProviderBackoffDuration; return this; } @CustomType.Setter public Builder cloudProviderBackoffExponent(Integer cloudProviderBackoffExponent) { - this.cloudProviderBackoffExponent = Objects.requireNonNull(cloudProviderBackoffExponent); + if (cloudProviderBackoffExponent == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffExponent"); + } + this.cloudProviderBackoffExponent = cloudProviderBackoffExponent; return this; } @CustomType.Setter public Builder cloudProviderBackoffJitter(Integer cloudProviderBackoffJitter) { - this.cloudProviderBackoffJitter = Objects.requireNonNull(cloudProviderBackoffJitter); + if (cloudProviderBackoffJitter == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffJitter"); + } + this.cloudProviderBackoffJitter = cloudProviderBackoffJitter; return this; } @CustomType.Setter public Builder cloudProviderBackoffRetries(Integer cloudProviderBackoffRetries) { - this.cloudProviderBackoffRetries = Objects.requireNonNull(cloudProviderBackoffRetries); + if (cloudProviderBackoffRetries == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffRetries"); + } + this.cloudProviderBackoffRetries = cloudProviderBackoffRetries; return this; } @CustomType.Setter public Builder cloudProviderRateLimit(Boolean cloudProviderRateLimit) { - this.cloudProviderRateLimit = Objects.requireNonNull(cloudProviderRateLimit); + if (cloudProviderRateLimit == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderRateLimit"); + } + this.cloudProviderRateLimit = cloudProviderRateLimit; return this; } @CustomType.Setter public Builder cloudProviderRateLimitBucket(Integer cloudProviderRateLimitBucket) { - this.cloudProviderRateLimitBucket = Objects.requireNonNull(cloudProviderRateLimitBucket); + if (cloudProviderRateLimitBucket == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderRateLimitBucket"); + } + this.cloudProviderRateLimitBucket = cloudProviderRateLimitBucket; return this; } @CustomType.Setter public Builder cloudProviderRateLimitQps(Integer cloudProviderRateLimitQps) { - this.cloudProviderRateLimitQps = Objects.requireNonNull(cloudProviderRateLimitQps); + if (cloudProviderRateLimitQps == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "cloudProviderRateLimitQps"); + } + this.cloudProviderRateLimitQps = cloudProviderRateLimitQps; return this; } @CustomType.Setter public Builder loadBalancerSku(@Nullable String loadBalancerSku) { + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder location(String location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder maximumLoadBalancerRuleCount(Integer maximumLoadBalancerRuleCount) { - this.maximumLoadBalancerRuleCount = Objects.requireNonNull(maximumLoadBalancerRuleCount); + if (maximumLoadBalancerRuleCount == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "maximumLoadBalancerRuleCount"); + } + this.maximumLoadBalancerRuleCount = maximumLoadBalancerRuleCount; return this; } @CustomType.Setter public Builder primaryAvailabilitySetName(String primaryAvailabilitySetName) { - this.primaryAvailabilitySetName = Objects.requireNonNull(primaryAvailabilitySetName); + if (primaryAvailabilitySetName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "primaryAvailabilitySetName"); + } + this.primaryAvailabilitySetName = primaryAvailabilitySetName; return this; } @CustomType.Setter public Builder primaryScaleSetName(String primaryScaleSetName) { - this.primaryScaleSetName = Objects.requireNonNull(primaryScaleSetName); + if (primaryScaleSetName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "primaryScaleSetName"); + } + this.primaryScaleSetName = primaryScaleSetName; return this; } @CustomType.Setter public Builder resourceGroup(String resourceGroup) { - this.resourceGroup = Objects.requireNonNull(resourceGroup); + if (resourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "resourceGroup"); + } + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder routeTableName(String routeTableName) { - this.routeTableName = Objects.requireNonNull(routeTableName); + if (routeTableName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "routeTableName"); + } + this.routeTableName = routeTableName; return this; } @CustomType.Setter public Builder securityGroupName(String securityGroupName) { - this.securityGroupName = Objects.requireNonNull(securityGroupName); + if (securityGroupName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "securityGroupName"); + } + this.securityGroupName = securityGroupName; return this; } @CustomType.Setter public Builder subnetName(String subnetName) { - this.subnetName = Objects.requireNonNull(subnetName); + if (subnetName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "subnetName"); + } + this.subnetName = subnetName; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder useInstanceMetadata(Boolean useInstanceMetadata) { - this.useInstanceMetadata = Objects.requireNonNull(useInstanceMetadata); + if (useInstanceMetadata == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "useInstanceMetadata"); + } + this.useInstanceMetadata = useInstanceMetadata; return this; } @CustomType.Setter public Builder useManagedIdentityExtension(Boolean useManagedIdentityExtension) { - this.useManagedIdentityExtension = Objects.requireNonNull(useManagedIdentityExtension); + if (useManagedIdentityExtension == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "useManagedIdentityExtension"); + } + this.useManagedIdentityExtension = useManagedIdentityExtension; return this; } @CustomType.Setter public Builder vmType(String vmType) { - this.vmType = Objects.requireNonNull(vmType); + if (vmType == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "vmType"); + } + this.vmType = vmType; return this; } @CustomType.Setter public Builder vnetName(String vnetName) { - this.vnetName = Objects.requireNonNull(vnetName); + if (vnetName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "vnetName"); + } + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vnetResourceGroup(String vnetResourceGroup) { - this.vnetResourceGroup = Objects.requireNonNull(vnetResourceGroup); + if (vnetResourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderAzureCloudProvider", "vnetResourceGroup"); + } + this.vnetResourceGroup = vnetResourceGroup; return this; } public GetClusterRkeConfigCloudProviderAzureCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProvider.java index 199d99bdf..c21cfd942 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer; @@ -62,27 +63,42 @@ public Builder(GetClusterRkeConfigCloudProviderOpenstackCloudProvider defaults) @CustomType.Setter public Builder blockStorage(GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage blockStorage) { - this.blockStorage = Objects.requireNonNull(blockStorage); + if (blockStorage == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProvider", "blockStorage"); + } + this.blockStorage = blockStorage; return this; } @CustomType.Setter public Builder global(GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder loadBalancer(GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer loadBalancer) { - this.loadBalancer = Objects.requireNonNull(loadBalancer); + if (loadBalancer == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProvider", "loadBalancer"); + } + this.loadBalancer = loadBalancer; return this; } @CustomType.Setter public Builder metadata(GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata metadata) { - this.metadata = Objects.requireNonNull(metadata); + if (metadata == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProvider", "metadata"); + } + this.metadata = metadata; return this; } @CustomType.Setter public Builder route(GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute route) { - this.route = Objects.requireNonNull(route); + if (route == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProvider", "route"); + } + this.route = route; return this; } public GetClusterRkeConfigCloudProviderOpenstackCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java index 2c807c58e..277844863 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -47,17 +48,26 @@ public Builder(GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorag @CustomType.Setter public Builder bsVersion(String bsVersion) { - this.bsVersion = Objects.requireNonNull(bsVersion); + if (bsVersion == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage", "bsVersion"); + } + this.bsVersion = bsVersion; return this; } @CustomType.Setter public Builder ignoreVolumeAz(Boolean ignoreVolumeAz) { - this.ignoreVolumeAz = Objects.requireNonNull(ignoreVolumeAz); + if (ignoreVolumeAz == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage", "ignoreVolumeAz"); + } + this.ignoreVolumeAz = ignoreVolumeAz; return this; } @CustomType.Setter public Builder trustDevicePath(Boolean trustDevicePath) { - this.trustDevicePath = Objects.requireNonNull(trustDevicePath); + if (trustDevicePath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage", "trustDevicePath"); + } + this.trustDevicePath = trustDevicePath; return this; } public GetClusterRkeConfigCloudProviderOpenstackCloudProviderBlockStorage build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java index dabe9da72..98c7b4b4f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -88,52 +89,82 @@ public Builder(GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal defa @CustomType.Setter public Builder authUrl(String authUrl) { - this.authUrl = Objects.requireNonNull(authUrl); + if (authUrl == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "authUrl"); + } + this.authUrl = authUrl; return this; } @CustomType.Setter public Builder caFile(String caFile) { - this.caFile = Objects.requireNonNull(caFile); + if (caFile == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "caFile"); + } + this.caFile = caFile; return this; } @CustomType.Setter public Builder domainId(String domainId) { - this.domainId = Objects.requireNonNull(domainId); + if (domainId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "domainId"); + } + this.domainId = domainId; return this; } @CustomType.Setter public Builder domainName(String domainName) { - this.domainName = Objects.requireNonNull(domainName); + if (domainName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "domainName"); + } + this.domainName = domainName; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder tenantName(String tenantName) { - this.tenantName = Objects.requireNonNull(tenantName); + if (tenantName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "tenantName"); + } + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder trustId(String trustId) { - this.trustId = Objects.requireNonNull(trustId); + if (trustId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "trustId"); + } + this.trustId = trustId; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal", "username"); + } + this.username = username; return this; } public GetClusterRkeConfigCloudProviderOpenstackCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java index 6842d398b..8c6e5756c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -98,57 +99,84 @@ public Builder(GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalance @CustomType.Setter public Builder createMonitor(Boolean createMonitor) { - this.createMonitor = Objects.requireNonNull(createMonitor); + if (createMonitor == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "createMonitor"); + } + this.createMonitor = createMonitor; return this; } @CustomType.Setter public Builder floatingNetworkId(String floatingNetworkId) { - this.floatingNetworkId = Objects.requireNonNull(floatingNetworkId); + if (floatingNetworkId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "floatingNetworkId"); + } + this.floatingNetworkId = floatingNetworkId; return this; } @CustomType.Setter public Builder lbMethod(String lbMethod) { - this.lbMethod = Objects.requireNonNull(lbMethod); + if (lbMethod == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "lbMethod"); + } + this.lbMethod = lbMethod; return this; } @CustomType.Setter public Builder lbProvider(String lbProvider) { - this.lbProvider = Objects.requireNonNull(lbProvider); + if (lbProvider == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "lbProvider"); + } + this.lbProvider = lbProvider; return this; } @CustomType.Setter public Builder lbVersion(String lbVersion) { - this.lbVersion = Objects.requireNonNull(lbVersion); + if (lbVersion == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "lbVersion"); + } + this.lbVersion = lbVersion; return this; } @CustomType.Setter public Builder manageSecurityGroups(Boolean manageSecurityGroups) { - this.manageSecurityGroups = Objects.requireNonNull(manageSecurityGroups); + if (manageSecurityGroups == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "manageSecurityGroups"); + } + this.manageSecurityGroups = manageSecurityGroups; return this; } @CustomType.Setter public Builder monitorDelay(@Nullable String monitorDelay) { + this.monitorDelay = monitorDelay; return this; } @CustomType.Setter public Builder monitorMaxRetries(@Nullable Integer monitorMaxRetries) { + this.monitorMaxRetries = monitorMaxRetries; return this; } @CustomType.Setter public Builder monitorTimeout(@Nullable String monitorTimeout) { + this.monitorTimeout = monitorTimeout; return this; } @CustomType.Setter public Builder subnetId(String subnetId) { - this.subnetId = Objects.requireNonNull(subnetId); + if (subnetId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "subnetId"); + } + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder useOctavia(Boolean useOctavia) { - this.useOctavia = Objects.requireNonNull(useOctavia); + if (useOctavia == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "useOctavia"); + } + this.useOctavia = useOctavia; return this; } public GetClusterRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java index 23e028914..6df65e9c0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -41,12 +42,18 @@ public Builder(GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata de @CustomType.Setter public Builder requestTimeout(Integer requestTimeout) { - this.requestTimeout = Objects.requireNonNull(requestTimeout); + if (requestTimeout == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata", "requestTimeout"); + } + this.requestTimeout = requestTimeout; return this; } @CustomType.Setter public Builder searchOrder(String searchOrder) { - this.searchOrder = Objects.requireNonNull(searchOrder); + if (searchOrder == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata", "searchOrder"); + } + this.searchOrder = searchOrder; return this; } public GetClusterRkeConfigCloudProviderOpenstackCloudProviderMetadata build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java index e4a4591ae..0b84ab0f8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute defau @CustomType.Setter public Builder routerId(String routerId) { - this.routerId = Objects.requireNonNull(routerId); + if (routerId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute", "routerId"); + } + this.routerId = routerId; return this; } public GetClusterRkeConfigCloudProviderOpenstackCloudProviderRoute build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProvider.java index 8866632ec..32fffa439 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal; import com.pulumi.rancher2.outputs.GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork; @@ -63,22 +64,34 @@ public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProvider defaults) { @CustomType.Setter public Builder disk(GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk disk) { - this.disk = Objects.requireNonNull(disk); + if (disk == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProvider", "disk"); + } + this.disk = disk; return this; } @CustomType.Setter public Builder global(GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder network(GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProvider", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder virtualCenters(List virtualCenters) { - this.virtualCenters = Objects.requireNonNull(virtualCenters); + if (virtualCenters == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProvider", "virtualCenters"); + } + this.virtualCenters = virtualCenters; return this; } public Builder virtualCenters(GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter... virtualCenters) { @@ -86,7 +99,10 @@ public Builder virtualCenters(GetClusterRkeConfigCloudProviderVsphereCloudProvid } @CustomType.Setter public Builder workspace(GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace workspace) { - this.workspace = Objects.requireNonNull(workspace); + if (workspace == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProvider", "workspace"); + } + this.workspace = workspace; return this; } public GetClusterRkeConfigCloudProviderVsphereCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java index 260438d6f..d6dbf9cc5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk defaults @CustomType.Setter public Builder scsiControllerType(String scsiControllerType) { - this.scsiControllerType = Objects.requireNonNull(scsiControllerType); + if (scsiControllerType == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk", "scsiControllerType"); + } + this.scsiControllerType = scsiControllerType; return this; } public GetClusterRkeConfigCloudProviderVsphereCloudProviderDisk build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java index 9f9a6d5ba..80461d478 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -66,32 +67,50 @@ public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal defaul @CustomType.Setter public Builder datacenters(String datacenters) { - this.datacenters = Objects.requireNonNull(datacenters); + if (datacenters == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "datacenters"); + } + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder insecureFlag(Boolean insecureFlag) { - this.insecureFlag = Objects.requireNonNull(insecureFlag); + if (insecureFlag == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "insecureFlag"); + } + this.insecureFlag = insecureFlag; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(String port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(Integer soapRoundtripCount) { - this.soapRoundtripCount = Objects.requireNonNull(soapRoundtripCount); + if (soapRoundtripCount == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "soapRoundtripCount"); + } + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal", "user"); + } + this.user = user; return this; } public GetClusterRkeConfigCloudProviderVsphereCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java index e634190eb..a361fe27e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork defau @CustomType.Setter public Builder publicNetwork(String publicNetwork) { - this.publicNetwork = Objects.requireNonNull(publicNetwork); + if (publicNetwork == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork", "publicNetwork"); + } + this.publicNetwork = publicNetwork; return this; } public GetClusterRkeConfigCloudProviderVsphereCloudProviderNetwork build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java index a1c60db9b..eca6ff006 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,32 +74,50 @@ public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter @CustomType.Setter public Builder datacenters(String datacenters) { - this.datacenters = Objects.requireNonNull(datacenters); + if (datacenters == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "datacenters"); + } + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(String port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(Integer soapRoundtripCount) { - this.soapRoundtripCount = Objects.requireNonNull(soapRoundtripCount); + if (soapRoundtripCount == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "soapRoundtripCount"); + } + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "user"); + } + this.user = user; return this; } public GetClusterRkeConfigCloudProviderVsphereCloudProviderVirtualCenter build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java index 7c1efcc91..0b2675fdd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -58,27 +59,42 @@ public Builder(GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace def @CustomType.Setter public Builder datacenter(String datacenter) { - this.datacenter = Objects.requireNonNull(datacenter); + if (datacenter == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "datacenter"); + } + this.datacenter = datacenter; return this; } @CustomType.Setter public Builder defaultDatastore(String defaultDatastore) { - this.defaultDatastore = Objects.requireNonNull(defaultDatastore); + if (defaultDatastore == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "defaultDatastore"); + } + this.defaultDatastore = defaultDatastore; return this; } @CustomType.Setter public Builder folder(String folder) { - this.folder = Objects.requireNonNull(folder); + if (folder == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "folder"); + } + this.folder = folder; return this; } @CustomType.Setter public Builder resourcepoolPath(String resourcepoolPath) { - this.resourcepoolPath = Objects.requireNonNull(resourcepoolPath); + if (resourcepoolPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "resourcepoolPath"); + } + this.resourcepoolPath = resourcepoolPath; return this; } @CustomType.Setter public Builder server(String server) { - this.server = Objects.requireNonNull(server); + if (server == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace", "server"); + } + this.server = server; return this; } public GetClusterRkeConfigCloudProviderVsphereCloudProviderWorkspace build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDns.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDns.java index b9890dd31..d1e474737 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDns.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDns.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigDnsLinearAutoscalerParams; import com.pulumi.rancher2.outputs.GetClusterRkeConfigDnsNodelocal; import com.pulumi.rancher2.outputs.GetClusterRkeConfigDnsToleration; @@ -91,32 +92,44 @@ public Builder(GetClusterRkeConfigDns defaults) { @CustomType.Setter public Builder linearAutoscalerParams(@Nullable GetClusterRkeConfigDnsLinearAutoscalerParams linearAutoscalerParams) { + this.linearAutoscalerParams = linearAutoscalerParams; return this; } @CustomType.Setter public Builder nodeSelector(Map nodeSelector) { - this.nodeSelector = Objects.requireNonNull(nodeSelector); + if (nodeSelector == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigDns", "nodeSelector"); + } + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder nodelocal(@Nullable GetClusterRkeConfigDnsNodelocal nodelocal) { + this.nodelocal = nodelocal; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigDns", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder reverseCidrs(List reverseCidrs) { - this.reverseCidrs = Objects.requireNonNull(reverseCidrs); + if (reverseCidrs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigDns", "reverseCidrs"); + } + this.reverseCidrs = reverseCidrs; return this; } public Builder reverseCidrs(String... reverseCidrs) { @@ -124,6 +137,7 @@ public Builder reverseCidrs(String... reverseCidrs) { } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -132,12 +146,16 @@ public Builder tolerations(GetClusterRkeConfigDnsToleration... tolerations) { } @CustomType.Setter public Builder updateStrategy(@Nullable GetClusterRkeConfigDnsUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder upstreamNameservers(List upstreamNameservers) { - this.upstreamNameservers = Objects.requireNonNull(upstreamNameservers); + if (upstreamNameservers == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigDns", "upstreamNameservers"); + } + this.upstreamNameservers = upstreamNameservers; return this; } public Builder upstreamNameservers(String... upstreamNameservers) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsLinearAutoscalerParams.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsLinearAutoscalerParams.java index 5c01d7159..c4f8fe9f4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsLinearAutoscalerParams.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsLinearAutoscalerParams.java @@ -62,26 +62,31 @@ public Builder(GetClusterRkeConfigDnsLinearAutoscalerParams defaults) { @CustomType.Setter public Builder coresPerReplica(@Nullable Double coresPerReplica) { + this.coresPerReplica = coresPerReplica; return this; } @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } @CustomType.Setter public Builder nodesPerReplica(@Nullable Double nodesPerReplica) { + this.nodesPerReplica = nodesPerReplica; return this; } @CustomType.Setter public Builder preventSinglePointFailure(@Nullable Boolean preventSinglePointFailure) { + this.preventSinglePointFailure = preventSinglePointFailure; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsNodelocal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsNodelocal.java index bb63b6c95..cddf2c1ff 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsNodelocal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsNodelocal.java @@ -44,11 +44,13 @@ public Builder(GetClusterRkeConfigDnsNodelocal defaults) { @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsToleration.java index 710b54b8d..0fecf7c01 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterRkeConfigDnsToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigDnsToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigDnsToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategy.java index 4110efeaf..9311968cc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(GetClusterRkeConfigDnsUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterRkeConfigDnsUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategyRollingUpdate.java index 120db741a..79b6df5b4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigDnsUpdateStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(GetClusterRkeConfigDnsUpdateStrategyRollingUpdate defaults) { @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngress.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngress.java index 2ed40664d..017d00e16 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngress.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngress.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigIngressToleration; import com.pulumi.rancher2.outputs.GetClusterRkeConfigIngressUpdateStrategy; import java.lang.Boolean; @@ -103,51 +104,77 @@ public Builder(GetClusterRkeConfigIngress defaults) { @CustomType.Setter public Builder defaultBackend(@Nullable Boolean defaultBackend) { + this.defaultBackend = defaultBackend; return this; } @CustomType.Setter public Builder dnsPolicy(String dnsPolicy) { - this.dnsPolicy = Objects.requireNonNull(dnsPolicy); + if (dnsPolicy == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "dnsPolicy"); + } + this.dnsPolicy = dnsPolicy; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder httpPort(Integer httpPort) { - this.httpPort = Objects.requireNonNull(httpPort); + if (httpPort == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "httpPort"); + } + this.httpPort = httpPort; return this; } @CustomType.Setter public Builder httpsPort(Integer httpsPort) { - this.httpsPort = Objects.requireNonNull(httpsPort); + if (httpsPort == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "httpsPort"); + } + this.httpsPort = httpsPort; return this; } @CustomType.Setter public Builder networkMode(String networkMode) { - this.networkMode = Objects.requireNonNull(networkMode); + if (networkMode == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "networkMode"); + } + this.networkMode = networkMode; return this; } @CustomType.Setter public Builder nodeSelector(Map nodeSelector) { - this.nodeSelector = Objects.requireNonNull(nodeSelector); + if (nodeSelector == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "nodeSelector"); + } + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngress", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -156,6 +183,7 @@ public Builder tolerations(GetClusterRkeConfigIngressToleration... tolerations) } @CustomType.Setter public Builder updateStrategy(@Nullable GetClusterRkeConfigIngressUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressToleration.java index 242e9837a..75a183d7c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterRkeConfigIngressToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngressToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigIngressToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategy.java index 0e5065897..9bfcc1fc4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(GetClusterRkeConfigIngressUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterRkeConfigIngressUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategyRollingUpdate.java index bdef3dd6c..60c997e4a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigIngressUpdateStrategyRollingUpdate.java @@ -36,6 +36,7 @@ public Builder(GetClusterRkeConfigIngressUpdateStrategyRollingUpdate defaults) { @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoring.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoring.java index 6f267e4af..8467b3b35 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoring.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigMonitoringToleration; import com.pulumi.rancher2.outputs.GetClusterRkeConfigMonitoringUpdateStrategy; import java.lang.Integer; @@ -72,26 +73,37 @@ public Builder(GetClusterRkeConfigMonitoring defaults) { @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigMonitoring", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigMonitoring", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigMonitoring", "replicas"); + } + this.replicas = replicas; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -100,6 +112,7 @@ public Builder tolerations(GetClusterRkeConfigMonitoringToleration... toleration } @CustomType.Setter public Builder updateStrategy(@Nullable GetClusterRkeConfigMonitoringUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringToleration.java index c6c4a74fd..6750ecf6f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterRkeConfigMonitoringToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigMonitoringToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigMonitoringToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategy.java index c43146dc0..2dbfe078a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(GetClusterRkeConfigMonitoringUpdateStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterRkeConfigMonitoringUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java index 2cc98c04f..a9deb3200 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigMonitoringUpdateStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(GetClusterRkeConfigMonitoringUpdateStrategyRollingUpdate defaults @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetwork.java index 90079d3eb..608fbfad8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetwork.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigNetworkAciNetworkProvider; import com.pulumi.rancher2.outputs.GetClusterRkeConfigNetworkCalicoNetworkProvider; import com.pulumi.rancher2.outputs.GetClusterRkeConfigNetworkCanalNetworkProvider; @@ -94,41 +95,53 @@ public Builder(GetClusterRkeConfigNetwork defaults) { @CustomType.Setter public Builder aciNetworkProvider(@Nullable GetClusterRkeConfigNetworkAciNetworkProvider aciNetworkProvider) { + this.aciNetworkProvider = aciNetworkProvider; return this; } @CustomType.Setter public Builder calicoNetworkProvider(@Nullable GetClusterRkeConfigNetworkCalicoNetworkProvider calicoNetworkProvider) { + this.calicoNetworkProvider = calicoNetworkProvider; return this; } @CustomType.Setter public Builder canalNetworkProvider(@Nullable GetClusterRkeConfigNetworkCanalNetworkProvider canalNetworkProvider) { + this.canalNetworkProvider = canalNetworkProvider; return this; } @CustomType.Setter public Builder flannelNetworkProvider(@Nullable GetClusterRkeConfigNetworkFlannelNetworkProvider flannelNetworkProvider) { + this.flannelNetworkProvider = flannelNetworkProvider; return this; } @CustomType.Setter public Builder mtu(@Nullable Integer mtu) { + this.mtu = mtu; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetwork", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder plugin(String plugin) { - this.plugin = Objects.requireNonNull(plugin); + if (plugin == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetwork", "plugin"); + } + this.plugin = plugin; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -137,6 +150,7 @@ public Builder tolerations(GetClusterRkeConfigNetworkToleration... tolerations) } @CustomType.Setter public Builder weaveNetworkProvider(@Nullable GetClusterRkeConfigNetworkWeaveNetworkProvider weaveNetworkProvider) { + this.weaveNetworkProvider = weaveNetworkProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkAciNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkAciNetworkProvider.java index 162b708fc..5d0a5db97 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkAciNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkAciNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -475,12 +476,18 @@ public Builder(GetClusterRkeConfigNetworkAciNetworkProvider defaults) { @CustomType.Setter public Builder aep(String aep) { - this.aep = Objects.requireNonNull(aep); + if (aep == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "aep"); + } + this.aep = aep; return this; } @CustomType.Setter public Builder apicHosts(List apicHosts) { - this.apicHosts = Objects.requireNonNull(apicHosts); + if (apicHosts == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "apicHosts"); + } + this.apicHosts = apicHosts; return this; } public Builder apicHosts(String... apicHosts) { @@ -488,126 +495,163 @@ public Builder apicHosts(String... apicHosts) { } @CustomType.Setter public Builder apicRefreshTickerAdjust(@Nullable String apicRefreshTickerAdjust) { + this.apicRefreshTickerAdjust = apicRefreshTickerAdjust; return this; } @CustomType.Setter public Builder apicRefreshTime(@Nullable String apicRefreshTime) { + this.apicRefreshTime = apicRefreshTime; return this; } @CustomType.Setter public Builder apicSubscriptionDelay(@Nullable String apicSubscriptionDelay) { + this.apicSubscriptionDelay = apicSubscriptionDelay; return this; } @CustomType.Setter public Builder apicUserCrt(String apicUserCrt) { - this.apicUserCrt = Objects.requireNonNull(apicUserCrt); + if (apicUserCrt == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "apicUserCrt"); + } + this.apicUserCrt = apicUserCrt; return this; } @CustomType.Setter public Builder apicUserKey(String apicUserKey) { - this.apicUserKey = Objects.requireNonNull(apicUserKey); + if (apicUserKey == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "apicUserKey"); + } + this.apicUserKey = apicUserKey; return this; } @CustomType.Setter public Builder apicUserName(String apicUserName) { - this.apicUserName = Objects.requireNonNull(apicUserName); + if (apicUserName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "apicUserName"); + } + this.apicUserName = apicUserName; return this; } @CustomType.Setter public Builder capic(@Nullable String capic) { + this.capic = capic; return this; } @CustomType.Setter public Builder controllerLogLevel(@Nullable String controllerLogLevel) { + this.controllerLogLevel = controllerLogLevel; return this; } @CustomType.Setter public Builder disablePeriodicSnatGlobalInfoSync(@Nullable String disablePeriodicSnatGlobalInfoSync) { + this.disablePeriodicSnatGlobalInfoSync = disablePeriodicSnatGlobalInfoSync; return this; } @CustomType.Setter public Builder disableWaitForNetwork(@Nullable String disableWaitForNetwork) { + this.disableWaitForNetwork = disableWaitForNetwork; return this; } @CustomType.Setter public Builder dropLogEnable(@Nullable String dropLogEnable) { + this.dropLogEnable = dropLogEnable; return this; } @CustomType.Setter public Builder durationWaitForNetwork(@Nullable String durationWaitForNetwork) { + this.durationWaitForNetwork = durationWaitForNetwork; return this; } @CustomType.Setter public Builder enableEndpointSlice(@Nullable String enableEndpointSlice) { + this.enableEndpointSlice = enableEndpointSlice; return this; } @CustomType.Setter public Builder encapType(String encapType) { - this.encapType = Objects.requireNonNull(encapType); + if (encapType == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "encapType"); + } + this.encapType = encapType; return this; } @CustomType.Setter public Builder epRegistry(@Nullable String epRegistry) { + this.epRegistry = epRegistry; return this; } @CustomType.Setter public Builder externDynamic(String externDynamic) { - this.externDynamic = Objects.requireNonNull(externDynamic); + if (externDynamic == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "externDynamic"); + } + this.externDynamic = externDynamic; return this; } @CustomType.Setter public Builder externStatic(String externStatic) { - this.externStatic = Objects.requireNonNull(externStatic); + if (externStatic == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "externStatic"); + } + this.externStatic = externStatic; return this; } @CustomType.Setter public Builder gbpPodSubnet(@Nullable String gbpPodSubnet) { + this.gbpPodSubnet = gbpPodSubnet; return this; } @CustomType.Setter public Builder hostAgentLogLevel(@Nullable String hostAgentLogLevel) { + this.hostAgentLogLevel = hostAgentLogLevel; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder imagePullSecret(@Nullable String imagePullSecret) { + this.imagePullSecret = imagePullSecret; return this; } @CustomType.Setter public Builder infraVlan(@Nullable String infraVlan) { + this.infraVlan = infraVlan; return this; } @CustomType.Setter public Builder installIstio(@Nullable String installIstio) { + this.installIstio = installIstio; return this; } @CustomType.Setter public Builder istioProfile(@Nullable String istioProfile) { + this.istioProfile = istioProfile; return this; } @CustomType.Setter public Builder kafkaBrokers(@Nullable List kafkaBrokers) { + this.kafkaBrokers = kafkaBrokers; return this; } @@ -616,27 +660,38 @@ public Builder kafkaBrokers(String... kafkaBrokers) { } @CustomType.Setter public Builder kafkaClientCrt(@Nullable String kafkaClientCrt) { + this.kafkaClientCrt = kafkaClientCrt; return this; } @CustomType.Setter public Builder kafkaClientKey(@Nullable String kafkaClientKey) { + this.kafkaClientKey = kafkaClientKey; return this; } @CustomType.Setter public Builder kubeApiVlan(String kubeApiVlan) { - this.kubeApiVlan = Objects.requireNonNull(kubeApiVlan); + if (kubeApiVlan == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "kubeApiVlan"); + } + this.kubeApiVlan = kubeApiVlan; return this; } @CustomType.Setter public Builder l3out(String l3out) { - this.l3out = Objects.requireNonNull(l3out); + if (l3out == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "l3out"); + } + this.l3out = l3out; return this; } @CustomType.Setter public Builder l3outExternalNetworks(List l3outExternalNetworks) { - this.l3outExternalNetworks = Objects.requireNonNull(l3outExternalNetworks); + if (l3outExternalNetworks == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "l3outExternalNetworks"); + } + this.l3outExternalNetworks = l3outExternalNetworks; return this; } public Builder l3outExternalNetworks(String... l3outExternalNetworks) { @@ -644,212 +699,272 @@ public Builder l3outExternalNetworks(String... l3outExternalNetworks) { } @CustomType.Setter public Builder maxNodesSvcGraph(@Nullable String maxNodesSvcGraph) { + this.maxNodesSvcGraph = maxNodesSvcGraph; return this; } @CustomType.Setter public Builder mcastRangeEnd(String mcastRangeEnd) { - this.mcastRangeEnd = Objects.requireNonNull(mcastRangeEnd); + if (mcastRangeEnd == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "mcastRangeEnd"); + } + this.mcastRangeEnd = mcastRangeEnd; return this; } @CustomType.Setter public Builder mcastRangeStart(String mcastRangeStart) { - this.mcastRangeStart = Objects.requireNonNull(mcastRangeStart); + if (mcastRangeStart == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "mcastRangeStart"); + } + this.mcastRangeStart = mcastRangeStart; return this; } @CustomType.Setter public Builder mtuHeadRoom(@Nullable String mtuHeadRoom) { + this.mtuHeadRoom = mtuHeadRoom; return this; } @CustomType.Setter public Builder multusDisable(@Nullable String multusDisable) { + this.multusDisable = multusDisable; return this; } @CustomType.Setter public Builder noPriorityClass(@Nullable String noPriorityClass) { + this.noPriorityClass = noPriorityClass; return this; } @CustomType.Setter public Builder nodePodIfEnable(@Nullable String nodePodIfEnable) { + this.nodePodIfEnable = nodePodIfEnable; return this; } @CustomType.Setter public Builder nodeSubnet(String nodeSubnet) { - this.nodeSubnet = Objects.requireNonNull(nodeSubnet); + if (nodeSubnet == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "nodeSubnet"); + } + this.nodeSubnet = nodeSubnet; return this; } @CustomType.Setter public Builder nodeSvcSubnet(String nodeSvcSubnet) { - this.nodeSvcSubnet = Objects.requireNonNull(nodeSvcSubnet); + if (nodeSvcSubnet == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "nodeSvcSubnet"); + } + this.nodeSvcSubnet = nodeSvcSubnet; return this; } @CustomType.Setter public Builder opflexClientSsl(@Nullable String opflexClientSsl) { + this.opflexClientSsl = opflexClientSsl; return this; } @CustomType.Setter public Builder opflexDeviceDeleteTimeout(@Nullable String opflexDeviceDeleteTimeout) { + this.opflexDeviceDeleteTimeout = opflexDeviceDeleteTimeout; return this; } @CustomType.Setter public Builder opflexLogLevel(@Nullable String opflexLogLevel) { + this.opflexLogLevel = opflexLogLevel; return this; } @CustomType.Setter public Builder opflexMode(@Nullable String opflexMode) { + this.opflexMode = opflexMode; return this; } @CustomType.Setter public Builder opflexServerPort(@Nullable String opflexServerPort) { + this.opflexServerPort = opflexServerPort; return this; } @CustomType.Setter public Builder overlayVrfName(@Nullable String overlayVrfName) { + this.overlayVrfName = overlayVrfName; return this; } @CustomType.Setter public Builder ovsMemoryLimit(@Nullable String ovsMemoryLimit) { + this.ovsMemoryLimit = ovsMemoryLimit; return this; } @CustomType.Setter public Builder pbrTrackingNonSnat(@Nullable String pbrTrackingNonSnat) { + this.pbrTrackingNonSnat = pbrTrackingNonSnat; return this; } @CustomType.Setter public Builder podSubnetChunkSize(@Nullable String podSubnetChunkSize) { + this.podSubnetChunkSize = podSubnetChunkSize; return this; } @CustomType.Setter public Builder runGbpContainer(@Nullable String runGbpContainer) { + this.runGbpContainer = runGbpContainer; return this; } @CustomType.Setter public Builder runOpflexServerContainer(@Nullable String runOpflexServerContainer) { + this.runOpflexServerContainer = runOpflexServerContainer; return this; } @CustomType.Setter public Builder serviceMonitorInterval(@Nullable String serviceMonitorInterval) { + this.serviceMonitorInterval = serviceMonitorInterval; return this; } @CustomType.Setter public Builder serviceVlan(String serviceVlan) { - this.serviceVlan = Objects.requireNonNull(serviceVlan); + if (serviceVlan == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "serviceVlan"); + } + this.serviceVlan = serviceVlan; return this; } @CustomType.Setter public Builder snatContractScope(@Nullable String snatContractScope) { + this.snatContractScope = snatContractScope; return this; } @CustomType.Setter public Builder snatNamespace(@Nullable String snatNamespace) { + this.snatNamespace = snatNamespace; return this; } @CustomType.Setter public Builder snatPortRangeEnd(@Nullable String snatPortRangeEnd) { + this.snatPortRangeEnd = snatPortRangeEnd; return this; } @CustomType.Setter public Builder snatPortRangeStart(@Nullable String snatPortRangeStart) { + this.snatPortRangeStart = snatPortRangeStart; return this; } @CustomType.Setter public Builder snatPortsPerNode(@Nullable String snatPortsPerNode) { + this.snatPortsPerNode = snatPortsPerNode; return this; } @CustomType.Setter public Builder sriovEnable(@Nullable String sriovEnable) { + this.sriovEnable = sriovEnable; return this; } @CustomType.Setter public Builder subnetDomainName(@Nullable String subnetDomainName) { + this.subnetDomainName = subnetDomainName; return this; } @CustomType.Setter public Builder systemId(String systemId) { - this.systemId = Objects.requireNonNull(systemId); + if (systemId == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "systemId"); + } + this.systemId = systemId; return this; } @CustomType.Setter public Builder tenant(@Nullable String tenant) { + this.tenant = tenant; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder useAciAnywhereCrd(@Nullable String useAciAnywhereCrd) { + this.useAciAnywhereCrd = useAciAnywhereCrd; return this; } @CustomType.Setter public Builder useAciCniPriorityClass(@Nullable String useAciCniPriorityClass) { + this.useAciCniPriorityClass = useAciCniPriorityClass; return this; } @CustomType.Setter public Builder useClusterRole(@Nullable String useClusterRole) { + this.useClusterRole = useClusterRole; return this; } @CustomType.Setter public Builder useHostNetnsVolume(@Nullable String useHostNetnsVolume) { + this.useHostNetnsVolume = useHostNetnsVolume; return this; } @CustomType.Setter public Builder useOpflexServerVolume(@Nullable String useOpflexServerVolume) { + this.useOpflexServerVolume = useOpflexServerVolume; return this; } @CustomType.Setter public Builder usePrivilegedContainer(@Nullable String usePrivilegedContainer) { + this.usePrivilegedContainer = usePrivilegedContainer; return this; } @CustomType.Setter public Builder vmmController(@Nullable String vmmController) { + this.vmmController = vmmController; return this; } @CustomType.Setter public Builder vmmDomain(@Nullable String vmmDomain) { + this.vmmDomain = vmmDomain; return this; } @CustomType.Setter public Builder vrfName(String vrfName) { - this.vrfName = Objects.requireNonNull(vrfName); + if (vrfName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "vrfName"); + } + this.vrfName = vrfName; return this; } @CustomType.Setter public Builder vrfTenant(String vrfTenant) { - this.vrfTenant = Objects.requireNonNull(vrfTenant); + if (vrfTenant == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkAciNetworkProvider", "vrfTenant"); + } + this.vrfTenant = vrfTenant; return this; } public GetClusterRkeConfigNetworkAciNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCalicoNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCalicoNetworkProvider.java index 3b811011a..684d387b7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCalicoNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCalicoNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigNetworkCalicoNetworkProvider defaults) { @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkCalicoNetworkProvider", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } public GetClusterRkeConfigNetworkCalicoNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCanalNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCanalNetworkProvider.java index 48582972a..55191689b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCanalNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkCanalNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigNetworkCanalNetworkProvider defaults) { @CustomType.Setter public Builder iface(String iface) { - this.iface = Objects.requireNonNull(iface); + if (iface == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkCanalNetworkProvider", "iface"); + } + this.iface = iface; return this; } public GetClusterRkeConfigNetworkCanalNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkFlannelNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkFlannelNetworkProvider.java index 12242b019..4379e819a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkFlannelNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkFlannelNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigNetworkFlannelNetworkProvider defaults) { @CustomType.Setter public Builder iface(String iface) { - this.iface = Objects.requireNonNull(iface); + if (iface == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkFlannelNetworkProvider", "iface"); + } + this.iface = iface; return this; } public GetClusterRkeConfigNetworkFlannelNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkToleration.java index c669c774e..30b6ddfed 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterRkeConfigNetworkToleration defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkWeaveNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkWeaveNetworkProvider.java index e101e79bc..53722a25d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkWeaveNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNetworkWeaveNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterRkeConfigNetworkWeaveNetworkProvider defaults) { @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNetworkWeaveNetworkProvider", "password"); + } + this.password = password; return this; } public GetClusterRkeConfigNetworkWeaveNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNode.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNode.java index 823bbefd6..211be9085 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNode.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigNode.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -114,42 +115,56 @@ public Builder(GetClusterRkeConfigNode defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNode", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder dockerSocket(String dockerSocket) { - this.dockerSocket = Objects.requireNonNull(dockerSocket); + if (dockerSocket == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNode", "dockerSocket"); + } + this.dockerSocket = dockerSocket; return this; } @CustomType.Setter public Builder hostnameOverride(@Nullable String hostnameOverride) { + this.hostnameOverride = hostnameOverride; return this; } @CustomType.Setter public Builder internalAddress(@Nullable String internalAddress) { + this.internalAddress = internalAddress; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNode", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -157,22 +172,32 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(String sshKey) { - this.sshKey = Objects.requireNonNull(sshKey); + if (sshKey == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNode", "sshKey"); + } + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(String sshKeyPath) { - this.sshKeyPath = Objects.requireNonNull(sshKeyPath); + if (sshKeyPath == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNode", "sshKeyPath"); + } + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigNode", "user"); + } + this.user = user; return this; } public GetClusterRkeConfigNode build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistry.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistry.java index 5f9f02162..986683550 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistry.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin; import java.lang.Boolean; import java.lang.String; @@ -62,26 +63,33 @@ public Builder(GetClusterRkeConfigPrivateRegistry defaults) { @CustomType.Setter public Builder ecrCredentialPlugin(@Nullable GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin ecrCredentialPlugin) { + this.ecrCredentialPlugin = ecrCredentialPlugin; return this; } @CustomType.Setter public Builder isDefault(@Nullable Boolean isDefault) { + this.isDefault = isDefault; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigPrivateRegistry", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java index f6ac96f73..6955f9fe8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin.java @@ -48,16 +48,19 @@ public Builder(GetClusterRkeConfigPrivateRegistryEcrCredentialPlugin defaults) { @CustomType.Setter public Builder awsAccessKeyId(@Nullable String awsAccessKeyId) { + this.awsAccessKeyId = awsAccessKeyId; return this; } @CustomType.Setter public Builder awsSecretAccessKey(@Nullable String awsSecretAccessKey) { + this.awsSecretAccessKey = awsSecretAccessKey; return this; } @CustomType.Setter public Builder awsSessionToken(@Nullable String awsSessionToken) { + this.awsSessionToken = awsSessionToken; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServices.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServices.java index 76da0723e..f42da09b5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServices.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServices.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesEtcd; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeApi; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeController; @@ -69,32 +70,50 @@ public Builder(GetClusterRkeConfigServices defaults) { @CustomType.Setter public Builder etcd(GetClusterRkeConfigServicesEtcd etcd) { - this.etcd = Objects.requireNonNull(etcd); + if (etcd == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServices", "etcd"); + } + this.etcd = etcd; return this; } @CustomType.Setter public Builder kubeApi(GetClusterRkeConfigServicesKubeApi kubeApi) { - this.kubeApi = Objects.requireNonNull(kubeApi); + if (kubeApi == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServices", "kubeApi"); + } + this.kubeApi = kubeApi; return this; } @CustomType.Setter public Builder kubeController(GetClusterRkeConfigServicesKubeController kubeController) { - this.kubeController = Objects.requireNonNull(kubeController); + if (kubeController == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServices", "kubeController"); + } + this.kubeController = kubeController; return this; } @CustomType.Setter public Builder kubelet(GetClusterRkeConfigServicesKubelet kubelet) { - this.kubelet = Objects.requireNonNull(kubelet); + if (kubelet == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServices", "kubelet"); + } + this.kubelet = kubelet; return this; } @CustomType.Setter public Builder kubeproxy(GetClusterRkeConfigServicesKubeproxy kubeproxy) { - this.kubeproxy = Objects.requireNonNull(kubeproxy); + if (kubeproxy == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServices", "kubeproxy"); + } + this.kubeproxy = kubeproxy; return this; } @CustomType.Setter public Builder scheduler(GetClusterRkeConfigServicesScheduler scheduler) { - this.scheduler = Objects.requireNonNull(scheduler); + if (scheduler == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServices", "scheduler"); + } + this.scheduler = scheduler; return this; } public GetClusterRkeConfigServices build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcd.java index f24277c7a..9f3e8d5fd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcd.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesEtcdBackupConfig; import java.lang.Boolean; import java.lang.Integer; @@ -134,26 +135,39 @@ public Builder(GetClusterRkeConfigServicesEtcd defaults) { @CustomType.Setter public Builder backupConfig(GetClusterRkeConfigServicesEtcdBackupConfig backupConfig) { - this.backupConfig = Objects.requireNonNull(backupConfig); + if (backupConfig == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "backupConfig"); + } + this.backupConfig = backupConfig; return this; } @CustomType.Setter public Builder caCert(String caCert) { - this.caCert = Objects.requireNonNull(caCert); + if (caCert == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "caCert"); + } + this.caCert = caCert; return this; } @CustomType.Setter public Builder cert(String cert) { - this.cert = Objects.requireNonNull(cert); + if (cert == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "cert"); + } + this.cert = cert; return this; } @CustomType.Setter public Builder creation(String creation) { - this.creation = Objects.requireNonNull(creation); + if (creation == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "creation"); + } + this.creation = creation; return this; } @CustomType.Setter public Builder externalUrls(@Nullable List externalUrls) { + this.externalUrls = externalUrls; return this; } @@ -162,11 +176,15 @@ public Builder externalUrls(String... externalUrls) { } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -175,6 +193,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -183,36 +202,53 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder gid(@Nullable Integer gid) { + this.gid = gid; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder retention(String retention) { - this.retention = Objects.requireNonNull(retention); + if (retention == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "retention"); + } + this.retention = retention; return this; } @CustomType.Setter public Builder snapshot(Boolean snapshot) { - this.snapshot = Objects.requireNonNull(snapshot); + if (snapshot == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcd", "snapshot"); + } + this.snapshot = snapshot; return this; } @CustomType.Setter public Builder uid(@Nullable Integer uid) { + this.uid = uid; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfig.java index 86e9697e2..7fc825866 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig; import java.lang.Boolean; import java.lang.Integer; @@ -68,32 +69,40 @@ public Builder(GetClusterRkeConfigServicesEtcdBackupConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder intervalHours(@Nullable Integer intervalHours) { + this.intervalHours = intervalHours; return this; } @CustomType.Setter public Builder retention(@Nullable Integer retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder s3BackupConfig(@Nullable GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig s3BackupConfig) { + this.s3BackupConfig = s3BackupConfig; return this; } @CustomType.Setter public Builder safeTimestamp(@Nullable Boolean safeTimestamp) { + this.safeTimestamp = safeTimestamp; return this; } @CustomType.Setter public Builder timeout(Integer timeout) { - this.timeout = Objects.requireNonNull(timeout); + if (timeout == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcdBackupConfig", "timeout"); + } + this.timeout = timeout; return this; } public GetClusterRkeConfigServicesEtcdBackupConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java index dec8ba542..223e5069c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,36 +73,47 @@ public Builder(GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig default @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder customCa(@Nullable String customCa) { + this.customCa = customCa; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesEtcdBackupConfigS3BackupConfig", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApi.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApi.java index 96b449553..e5d7ecb02 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApi.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApi.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeApiAdmissionConfiguration; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeApiAuditLog; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeApiEventRateLimit; @@ -110,31 +111,39 @@ public Builder(GetClusterRkeConfigServicesKubeApi defaults) { @CustomType.Setter public Builder admissionConfiguration(@Nullable GetClusterRkeConfigServicesKubeApiAdmissionConfiguration admissionConfiguration) { + this.admissionConfiguration = admissionConfiguration; return this; } @CustomType.Setter public Builder alwaysPullImages(@Nullable Boolean alwaysPullImages) { + this.alwaysPullImages = alwaysPullImages; return this; } @CustomType.Setter public Builder auditLog(@Nullable GetClusterRkeConfigServicesKubeApiAuditLog auditLog) { + this.auditLog = auditLog; return this; } @CustomType.Setter public Builder eventRateLimit(@Nullable GetClusterRkeConfigServicesKubeApiEventRateLimit eventRateLimit) { + this.eventRateLimit = eventRateLimit; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApi", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -143,6 +152,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -151,27 +161,38 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApi", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder podSecurityPolicy(@Nullable Boolean podSecurityPolicy) { + this.podSecurityPolicy = podSecurityPolicy; return this; } @CustomType.Setter public Builder secretsEncryptionConfig(@Nullable GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig secretsEncryptionConfig) { + this.secretsEncryptionConfig = secretsEncryptionConfig; return this; } @CustomType.Setter public Builder serviceClusterIpRange(String serviceClusterIpRange) { - this.serviceClusterIpRange = Objects.requireNonNull(serviceClusterIpRange); + if (serviceClusterIpRange == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApi", "serviceClusterIpRange"); + } + this.serviceClusterIpRange = serviceClusterIpRange; return this; } @CustomType.Setter public Builder serviceNodePortRange(String serviceNodePortRange) { - this.serviceNodePortRange = Objects.requireNonNull(serviceNodePortRange); + if (serviceNodePortRange == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApi", "serviceNodePortRange"); + } + this.serviceNodePortRange = serviceNodePortRange; return this; } public GetClusterRkeConfigServicesKubeApi build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfiguration.java index aea5eb619..9c1feb8a5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin; import java.lang.String; import java.util.List; @@ -50,17 +51,22 @@ public Builder(GetClusterRkeConfigServicesKubeApiAdmissionConfiguration defaults @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder plugins(List plugins) { - this.plugins = Objects.requireNonNull(plugins); + if (plugins == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiAdmissionConfiguration", "plugins"); + } + this.plugins = plugins; return this; } public Builder plugins(GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin... plugins) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java index 7d6414612..0a370a037 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -56,16 +57,23 @@ public Builder(GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin de @CustomType.Setter public Builder configuration(String configuration) { - this.configuration = Objects.requireNonNull(configuration); + if (configuration == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin", "configuration"); + } + this.configuration = configuration; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiAdmissionConfigurationPlugin", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLog.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLog.java index 1679c5112..dfe646203 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLog.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLog.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigServicesKubeApiAuditLogConfiguration; import java.lang.Boolean; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetClusterRkeConfigServicesKubeApiAuditLog defaults) { @CustomType.Setter public Builder configuration(GetClusterRkeConfigServicesKubeApiAuditLogConfiguration configuration) { - this.configuration = Objects.requireNonNull(configuration); + if (configuration == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiAuditLog", "configuration"); + } + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLogConfiguration.java index d433b76a9..c297669bc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiAuditLogConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -67,32 +68,40 @@ public Builder(GetClusterRkeConfigServicesKubeApiAuditLogConfiguration defaults) @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder maxAge(@Nullable Integer maxAge) { + this.maxAge = maxAge; return this; } @CustomType.Setter public Builder maxBackup(@Nullable Integer maxBackup) { + this.maxBackup = maxBackup; return this; } @CustomType.Setter public Builder maxSize(@Nullable Integer maxSize) { + this.maxSize = maxSize; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder policy(String policy) { - this.policy = Objects.requireNonNull(policy); + if (policy == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiAuditLogConfiguration", "policy"); + } + this.policy = policy; return this; } public GetClusterRkeConfigServicesKubeApiAuditLogConfiguration build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiEventRateLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiEventRateLimit.java index 45c428003..c3265f0e9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiEventRateLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiEventRateLimit.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetClusterRkeConfigServicesKubeApiEventRateLimit defaults) { @CustomType.Setter public Builder configuration(String configuration) { - this.configuration = Objects.requireNonNull(configuration); + if (configuration == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiEventRateLimit", "configuration"); + } + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java index 5b8757210..24d3b62af 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig default @CustomType.Setter public Builder customConfig(String customConfig) { - this.customConfig = Objects.requireNonNull(customConfig); + if (customConfig == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeApiSecretsEncryptionConfig", "customConfig"); + } + this.customConfig = customConfig; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeController.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeController.java index 605ee8452..77414d727 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeController.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeController.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -68,16 +69,23 @@ public Builder(GetClusterRkeConfigServicesKubeController defaults) { @CustomType.Setter public Builder clusterCidr(String clusterCidr) { - this.clusterCidr = Objects.requireNonNull(clusterCidr); + if (clusterCidr == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeController", "clusterCidr"); + } + this.clusterCidr = clusterCidr; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeController", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -86,6 +94,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -94,12 +103,18 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeController", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder serviceClusterIpRange(String serviceClusterIpRange) { - this.serviceClusterIpRange = Objects.requireNonNull(serviceClusterIpRange); + if (serviceClusterIpRange == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeController", "serviceClusterIpRange"); + } + this.serviceClusterIpRange = serviceClusterIpRange; return this; } public GetClusterRkeConfigServicesKubeController build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubelet.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubelet.java index 2d05f6207..5b8b0fe22 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubelet.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubelet.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -88,21 +89,31 @@ public Builder(GetClusterRkeConfigServicesKubelet defaults) { @CustomType.Setter public Builder clusterDnsServer(String clusterDnsServer) { - this.clusterDnsServer = Objects.requireNonNull(clusterDnsServer); + if (clusterDnsServer == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubelet", "clusterDnsServer"); + } + this.clusterDnsServer = clusterDnsServer; return this; } @CustomType.Setter public Builder clusterDomain(String clusterDomain) { - this.clusterDomain = Objects.requireNonNull(clusterDomain); + if (clusterDomain == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubelet", "clusterDomain"); + } + this.clusterDomain = clusterDomain; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubelet", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -111,6 +122,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -119,22 +131,32 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder failSwapOn(Boolean failSwapOn) { - this.failSwapOn = Objects.requireNonNull(failSwapOn); + if (failSwapOn == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubelet", "failSwapOn"); + } + this.failSwapOn = failSwapOn; return this; } @CustomType.Setter public Builder generateServingCertificate(@Nullable Boolean generateServingCertificate) { + this.generateServingCertificate = generateServingCertificate; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubelet", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder infraContainerImage(String infraContainerImage) { - this.infraContainerImage = Objects.requireNonNull(infraContainerImage); + if (infraContainerImage == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubelet", "infraContainerImage"); + } + this.infraContainerImage = infraContainerImage; return this; } public GetClusterRkeConfigServicesKubelet build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeproxy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeproxy.java index ce309d9fa..c77faac34 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeproxy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesKubeproxy.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -56,11 +57,15 @@ public Builder(GetClusterRkeConfigServicesKubeproxy defaults) { @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeproxy", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -69,6 +74,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -77,7 +83,10 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesKubeproxy", "image"); + } + this.image = image; return this; } public GetClusterRkeConfigServicesKubeproxy build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesScheduler.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesScheduler.java index 68a991fe0..9b0996179 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesScheduler.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigServicesScheduler.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -56,11 +57,15 @@ public Builder(GetClusterRkeConfigServicesScheduler defaults) { @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesScheduler", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -69,6 +74,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -77,7 +83,10 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigServicesScheduler", "image"); + } + this.image = image; return this; } public GetClusterRkeConfigServicesScheduler build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategy.java index 5392ec1b3..7884f82a7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategy.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterRkeConfigUpgradeStrategyDrainInput; import java.lang.Boolean; import java.lang.String; @@ -56,21 +57,27 @@ public Builder(GetClusterRkeConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder drain(@Nullable Boolean drain) { + this.drain = drain; return this; } @CustomType.Setter public Builder drainInput(GetClusterRkeConfigUpgradeStrategyDrainInput drainInput) { - this.drainInput = Objects.requireNonNull(drainInput); + if (drainInput == null) { + throw new MissingRequiredPropertyException("GetClusterRkeConfigUpgradeStrategy", "drainInput"); + } + this.drainInput = drainInput; return this; } @CustomType.Setter public Builder maxUnavailableControlplane(@Nullable String maxUnavailableControlplane) { + this.maxUnavailableControlplane = maxUnavailableControlplane; return this; } @CustomType.Setter public Builder maxUnavailableWorker(@Nullable String maxUnavailableWorker) { + this.maxUnavailableWorker = maxUnavailableWorker; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategyDrainInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategyDrainInput.java index 95417580e..80b92c5c7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategyDrainInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRkeConfigUpgradeStrategyDrainInput.java @@ -61,26 +61,31 @@ public Builder(GetClusterRkeConfigUpgradeStrategyDrainInput defaults) { @CustomType.Setter public Builder deleteLocalData(@Nullable Boolean deleteLocalData) { + this.deleteLocalData = deleteLocalData; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(@Nullable Integer gracePeriod) { + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRoleTemplateBindingResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRoleTemplateBindingResult.java index 0dd18bb39..6dbc4ea2e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRoleTemplateBindingResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterRoleTemplateBindingResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -146,52 +147,82 @@ public Builder(GetClusterRoleTemplateBindingResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder groupPrincipalId(String groupPrincipalId) { - this.groupPrincipalId = Objects.requireNonNull(groupPrincipalId); + if (groupPrincipalId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "groupPrincipalId"); + } + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder roleTemplateId(String roleTemplateId) { - this.roleTemplateId = Objects.requireNonNull(roleTemplateId); + if (roleTemplateId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "roleTemplateId"); + } + this.roleTemplateId = roleTemplateId; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "userId"); + } + this.userId = userId; return this; } @CustomType.Setter public Builder userPrincipalId(String userPrincipalId) { - this.userPrincipalId = Objects.requireNonNull(userPrincipalId); + if (userPrincipalId == null) { + throw new MissingRequiredPropertyException("GetClusterRoleTemplateBindingResult", "userPrincipalId"); + } + this.userPrincipalId = userPrincipalId; return this; } public GetClusterRoleTemplateBindingResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateMember.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateMember.java index f0d85b80c..c38560b94 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateMember.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateMember.java @@ -48,16 +48,19 @@ public Builder(GetClusterTemplateMember defaults) { @CustomType.Setter public Builder accessType(@Nullable String accessType) { + this.accessType = accessType; return this; } @CustomType.Setter public Builder groupPrincipalId(@Nullable String groupPrincipalId) { + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder userPrincipalId(@Nullable String userPrincipalId) { + this.userPrincipalId = userPrincipalId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateResult.java index 4d0cafe43..26f1d2f53 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateMember; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevision; import java.lang.Object; @@ -129,32 +130,50 @@ public Builder(GetClusterTemplateResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder defaultRevisionId(String defaultRevisionId) { - this.defaultRevisionId = Objects.requireNonNull(defaultRevisionId); + if (defaultRevisionId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "defaultRevisionId"); + } + this.defaultRevisionId = defaultRevisionId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder members(List members) { - this.members = Objects.requireNonNull(members); + if (members == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "members"); + } + this.members = members; return this; } public Builder members(GetClusterTemplateMember... members) { @@ -162,12 +181,18 @@ public Builder members(GetClusterTemplateMember... members) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder templateRevisions(List templateRevisions) { - this.templateRevisions = Objects.requireNonNull(templateRevisions); + if (templateRevisions == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateResult", "templateRevisions"); + } + this.templateRevisions = templateRevisions; return this; } public Builder templateRevisions(GetClusterTemplateTemplateRevision... templateRevisions) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevision.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevision.java index 844555d6f..3177b99a5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevision.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevision.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfig; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionQuestion; import java.lang.Boolean; @@ -122,46 +123,67 @@ public Builder(GetClusterTemplateTemplateRevision defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevision", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterConfig(GetClusterTemplateTemplateRevisionClusterConfig clusterConfig) { - this.clusterConfig = Objects.requireNonNull(clusterConfig); + if (clusterConfig == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevision", "clusterConfig"); + } + this.clusterConfig = clusterConfig; return this; } @CustomType.Setter public Builder clusterTemplateId(String clusterTemplateId) { - this.clusterTemplateId = Objects.requireNonNull(clusterTemplateId); + if (clusterTemplateId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevision", "clusterTemplateId"); + } + this.clusterTemplateId = clusterTemplateId; return this; } @CustomType.Setter("default") public Builder default_(@Nullable Boolean default_) { + this.default_ = default_; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevision", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevision", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevision", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder questions(@Nullable List questions) { + this.questions = questions; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfig.java index 5f838e842..6279f7bfb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfig; import java.lang.Boolean; @@ -105,61 +106,89 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfig defaults) { @CustomType.Setter public Builder clusterAuthEndpoint(GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint clusterAuthEndpoint) { - this.clusterAuthEndpoint = Objects.requireNonNull(clusterAuthEndpoint); + if (clusterAuthEndpoint == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "clusterAuthEndpoint"); + } + this.clusterAuthEndpoint = clusterAuthEndpoint; return this; } @CustomType.Setter public Builder defaultClusterRoleForProjectMembers(String defaultClusterRoleForProjectMembers) { - this.defaultClusterRoleForProjectMembers = Objects.requireNonNull(defaultClusterRoleForProjectMembers); + if (defaultClusterRoleForProjectMembers == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "defaultClusterRoleForProjectMembers"); + } + this.defaultClusterRoleForProjectMembers = defaultClusterRoleForProjectMembers; return this; } @CustomType.Setter public Builder defaultPodSecurityAdmissionConfigurationTemplateName(String defaultPodSecurityAdmissionConfigurationTemplateName) { - this.defaultPodSecurityAdmissionConfigurationTemplateName = Objects.requireNonNull(defaultPodSecurityAdmissionConfigurationTemplateName); + if (defaultPodSecurityAdmissionConfigurationTemplateName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "defaultPodSecurityAdmissionConfigurationTemplateName"); + } + this.defaultPodSecurityAdmissionConfigurationTemplateName = defaultPodSecurityAdmissionConfigurationTemplateName; return this; } @CustomType.Setter public Builder defaultPodSecurityPolicyTemplateId(String defaultPodSecurityPolicyTemplateId) { - this.defaultPodSecurityPolicyTemplateId = Objects.requireNonNull(defaultPodSecurityPolicyTemplateId); + if (defaultPodSecurityPolicyTemplateId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "defaultPodSecurityPolicyTemplateId"); + } + this.defaultPodSecurityPolicyTemplateId = defaultPodSecurityPolicyTemplateId; return this; } @CustomType.Setter public Builder desiredAgentImage(String desiredAgentImage) { - this.desiredAgentImage = Objects.requireNonNull(desiredAgentImage); + if (desiredAgentImage == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "desiredAgentImage"); + } + this.desiredAgentImage = desiredAgentImage; return this; } @CustomType.Setter public Builder desiredAuthImage(String desiredAuthImage) { - this.desiredAuthImage = Objects.requireNonNull(desiredAuthImage); + if (desiredAuthImage == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "desiredAuthImage"); + } + this.desiredAuthImage = desiredAuthImage; return this; } @CustomType.Setter public Builder dockerRootDir(String dockerRootDir) { - this.dockerRootDir = Objects.requireNonNull(dockerRootDir); + if (dockerRootDir == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "dockerRootDir"); + } + this.dockerRootDir = dockerRootDir; return this; } @CustomType.Setter public Builder enableClusterAlerting(@Nullable Boolean enableClusterAlerting) { + this.enableClusterAlerting = enableClusterAlerting; return this; } @CustomType.Setter public Builder enableClusterMonitoring(@Nullable Boolean enableClusterMonitoring) { + this.enableClusterMonitoring = enableClusterMonitoring; return this; } @CustomType.Setter public Builder enableNetworkPolicy(@Nullable Boolean enableNetworkPolicy) { + this.enableNetworkPolicy = enableNetworkPolicy; return this; } @CustomType.Setter public Builder rkeConfig(GetClusterTemplateTemplateRevisionClusterConfigRkeConfig rkeConfig) { - this.rkeConfig = Objects.requireNonNull(rkeConfig); + if (rkeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfig", "rkeConfig"); + } + this.rkeConfig = rkeConfig; return this; } @CustomType.Setter public Builder windowsPreferedCluster(@Nullable Boolean windowsPreferedCluster) { + this.windowsPreferedCluster = windowsPreferedCluster; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java index 5c12f4846..47d29a65c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoint.java @@ -49,16 +49,19 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigClusterAuthEndpoin @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfig.java index 3b98e6195..f260da303 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost; @@ -183,16 +184,21 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfig defaults @CustomType.Setter public Builder addonJobTimeout(Integer addonJobTimeout) { - this.addonJobTimeout = Objects.requireNonNull(addonJobTimeout); + if (addonJobTimeout == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "addonJobTimeout"); + } + this.addonJobTimeout = addonJobTimeout; return this; } @CustomType.Setter public Builder addons(@Nullable String addons) { + this.addons = addons; return this; } @CustomType.Setter public Builder addonsIncludes(@Nullable List addonsIncludes) { + this.addonsIncludes = addonsIncludes; return this; } @@ -201,61 +207,91 @@ public Builder addonsIncludes(String... addonsIncludes) { } @CustomType.Setter public Builder authentication(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication authentication) { - this.authentication = Objects.requireNonNull(authentication); + if (authentication == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "authentication"); + } + this.authentication = authentication; return this; } @CustomType.Setter public Builder authorization(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization authorization) { - this.authorization = Objects.requireNonNull(authorization); + if (authorization == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "authorization"); + } + this.authorization = authorization; return this; } @CustomType.Setter public Builder bastionHost(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost bastionHost) { - this.bastionHost = Objects.requireNonNull(bastionHost); + if (bastionHost == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "bastionHost"); + } + this.bastionHost = bastionHost; return this; } @CustomType.Setter public Builder cloudProvider(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } @CustomType.Setter public Builder dns(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns dns) { - this.dns = Objects.requireNonNull(dns); + if (dns == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "dns"); + } + this.dns = dns; return this; } @CustomType.Setter public Builder enableCriDockerd(@Nullable Boolean enableCriDockerd) { + this.enableCriDockerd = enableCriDockerd; return this; } @CustomType.Setter public Builder ignoreDockerVersion(@Nullable Boolean ignoreDockerVersion) { + this.ignoreDockerVersion = ignoreDockerVersion; return this; } @CustomType.Setter public Builder ingress(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress ingress) { - this.ingress = Objects.requireNonNull(ingress); + if (ingress == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "ingress"); + } + this.ingress = ingress; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder monitoring(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring monitoring) { - this.monitoring = Objects.requireNonNull(monitoring); + if (monitoring == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "monitoring"); + } + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder network(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder nodes(@Nullable List nodes) { + this.nodes = nodes; return this; } @@ -264,11 +300,15 @@ public Builder nodes(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNod } @CustomType.Setter public Builder prefixPath(String prefixPath) { - this.prefixPath = Objects.requireNonNull(prefixPath); + if (prefixPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "prefixPath"); + } + this.prefixPath = prefixPath; return this; } @CustomType.Setter public Builder privateRegistries(@Nullable List privateRegistries) { + this.privateRegistries = privateRegistries; return this; } @@ -277,32 +317,48 @@ public Builder privateRegistries(GetClusterTemplateTemplateRevisionClusterConfig } @CustomType.Setter public Builder services(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices services) { - this.services = Objects.requireNonNull(services); + if (services == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "services"); + } + this.services = services; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshCertPath(String sshCertPath) { - this.sshCertPath = Objects.requireNonNull(sshCertPath); + if (sshCertPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "sshCertPath"); + } + this.sshCertPath = sshCertPath; return this; } @CustomType.Setter public Builder sshKeyPath(String sshKeyPath) { - this.sshKeyPath = Objects.requireNonNull(sshKeyPath); + if (sshKeyPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "sshKeyPath"); + } + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder upgradeStrategy(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy upgradeStrategy) { - this.upgradeStrategy = Objects.requireNonNull(upgradeStrategy); + if (upgradeStrategy == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "upgradeStrategy"); + } + this.upgradeStrategy = upgradeStrategy; return this; } @CustomType.Setter public Builder winPrefixPath(String winPrefixPath) { - this.winPrefixPath = Objects.requireNonNull(winPrefixPath); + if (winPrefixPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfig", "winPrefixPath"); + } + this.winPrefixPath = winPrefixPath; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java index ccd1d6ce4..244b73a2f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -41,7 +42,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentic @CustomType.Setter public Builder sans(List sans) { - this.sans = Objects.requireNonNull(sans); + if (sans == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication", "sans"); + } + this.sans = sans; return this; } public Builder sans(String... sans) { @@ -49,7 +53,10 @@ public Builder sans(String... sans) { } @CustomType.Setter public Builder strategy(String strategy) { - this.strategy = Objects.requireNonNull(strategy); + if (strategy == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication", "strategy"); + } + this.strategy = strategy; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthentication build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java index c53089c77..096be6142 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -44,12 +45,16 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthoriza @CustomType.Setter public Builder mode(@Nullable String mode) { + this.mode = mode; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization", "options"); + } + this.options = options; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigAuthorization build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java index df2e3870a..dee0f5b35 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -67,32 +68,46 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHo @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(String sshKey) { - this.sshKey = Objects.requireNonNull(sshKey); + if (sshKey == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost", "sshKey"); + } + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(String sshKeyPath) { - this.sshKeyPath = Objects.requireNonNull(sshKeyPath); + if (sshKeyPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost", "sshKeyPath"); + } + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost", "user"); + } + this.user = user; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigBastionHost build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java index bd06d8678..85bae91f1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider; @@ -78,31 +79,39 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder awsCloudProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider awsCloudProvider) { + this.awsCloudProvider = awsCloudProvider; return this; } @CustomType.Setter public Builder azureCloudProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider azureCloudProvider) { + this.azureCloudProvider = azureCloudProvider; return this; } @CustomType.Setter public Builder customCloudProvider(String customCloudProvider) { - this.customCloudProvider = Objects.requireNonNull(customCloudProvider); + if (customCloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProvider", "customCloudProvider"); + } + this.customCloudProvider = customCloudProvider; return this; } @CustomType.Setter public Builder name(@Nullable String name) { + this.name = name; return this; } @CustomType.Setter public Builder openstackCloudProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider openstackCloudProvider) { + this.openstackCloudProvider = openstackCloudProvider; return this; } @CustomType.Setter public Builder vsphereCloudProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider vsphereCloudProvider) { + this.vsphereCloudProvider = vsphereCloudProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java index cd8d54b76..1011246e3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride; import java.util.List; @@ -43,11 +44,15 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder global(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder serviceOverrides(@Nullable List serviceOverrides) { + this.serviceOverrides = serviceOverrides; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java index d36fa1d5c..4a0d0856b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -91,52 +92,78 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder disableSecurityGroupIngress(@Nullable Boolean disableSecurityGroupIngress) { + this.disableSecurityGroupIngress = disableSecurityGroupIngress; return this; } @CustomType.Setter public Builder disableStrictZoneCheck(@Nullable Boolean disableStrictZoneCheck) { + this.disableStrictZoneCheck = disableStrictZoneCheck; return this; } @CustomType.Setter public Builder elbSecurityGroup(String elbSecurityGroup) { - this.elbSecurityGroup = Objects.requireNonNull(elbSecurityGroup); + if (elbSecurityGroup == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "elbSecurityGroup"); + } + this.elbSecurityGroup = elbSecurityGroup; return this; } @CustomType.Setter public Builder kubernetesClusterId(String kubernetesClusterId) { - this.kubernetesClusterId = Objects.requireNonNull(kubernetesClusterId); + if (kubernetesClusterId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "kubernetesClusterId"); + } + this.kubernetesClusterId = kubernetesClusterId; return this; } @CustomType.Setter public Builder kubernetesClusterTag(String kubernetesClusterTag) { - this.kubernetesClusterTag = Objects.requireNonNull(kubernetesClusterTag); + if (kubernetesClusterTag == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "kubernetesClusterTag"); + } + this.kubernetesClusterTag = kubernetesClusterTag; return this; } @CustomType.Setter public Builder roleArn(String roleArn) { - this.roleArn = Objects.requireNonNull(roleArn); + if (roleArn == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "roleArn"); + } + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder routeTableId(String routeTableId) { - this.routeTableId = Objects.requireNonNull(routeTableId); + if (routeTableId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "routeTableId"); + } + this.routeTableId = routeTableId; return this; } @CustomType.Setter public Builder subnetId(String subnetId) { - this.subnetId = Objects.requireNonNull(subnetId); + if (subnetId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "subnetId"); + } + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder vpc(String vpc) { - this.vpc = Objects.requireNonNull(vpc); + if (vpc == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "vpc"); + } + this.vpc = vpc; return this; } @CustomType.Setter public Builder zone(String zone) { - this.zone = Objects.requireNonNull(zone); + if (zone == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal", "zone"); + } + this.zone = zone; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java index feb66cfbe..da3cb70f4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -64,32 +65,50 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder service(String service) { - this.service = Objects.requireNonNull(service); + if (service == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "service"); + } + this.service = service; return this; } @CustomType.Setter public Builder signingMethod(String signingMethod) { - this.signingMethod = Objects.requireNonNull(signingMethod); + if (signingMethod == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "signingMethod"); + } + this.signingMethod = signingMethod; return this; } @CustomType.Setter public Builder signingName(String signingName) { - this.signingName = Objects.requireNonNull(signingName); + if (signingName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "signingName"); + } + this.signingName = signingName; return this; } @CustomType.Setter public Builder signingRegion(String signingRegion) { - this.signingRegion = Objects.requireNonNull(signingRegion); + if (signingRegion == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "signingRegion"); + } + this.signingRegion = signingRegion; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride", "url"); + } + this.url = url; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAwsCloudProviderServiceOverride build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java index 1001957f9..165ea782c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -206,147 +207,232 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder aadClientCertPassword(String aadClientCertPassword) { - this.aadClientCertPassword = Objects.requireNonNull(aadClientCertPassword); + if (aadClientCertPassword == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "aadClientCertPassword"); + } + this.aadClientCertPassword = aadClientCertPassword; return this; } @CustomType.Setter public Builder aadClientCertPath(String aadClientCertPath) { - this.aadClientCertPath = Objects.requireNonNull(aadClientCertPath); + if (aadClientCertPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "aadClientCertPath"); + } + this.aadClientCertPath = aadClientCertPath; return this; } @CustomType.Setter public Builder aadClientId(String aadClientId) { - this.aadClientId = Objects.requireNonNull(aadClientId); + if (aadClientId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "aadClientId"); + } + this.aadClientId = aadClientId; return this; } @CustomType.Setter public Builder aadClientSecret(String aadClientSecret) { - this.aadClientSecret = Objects.requireNonNull(aadClientSecret); + if (aadClientSecret == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "aadClientSecret"); + } + this.aadClientSecret = aadClientSecret; return this; } @CustomType.Setter public Builder cloud(String cloud) { - this.cloud = Objects.requireNonNull(cloud); + if (cloud == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloud"); + } + this.cloud = cloud; return this; } @CustomType.Setter public Builder cloudProviderBackoff(Boolean cloudProviderBackoff) { - this.cloudProviderBackoff = Objects.requireNonNull(cloudProviderBackoff); + if (cloudProviderBackoff == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoff"); + } + this.cloudProviderBackoff = cloudProviderBackoff; return this; } @CustomType.Setter public Builder cloudProviderBackoffDuration(Integer cloudProviderBackoffDuration) { - this.cloudProviderBackoffDuration = Objects.requireNonNull(cloudProviderBackoffDuration); + if (cloudProviderBackoffDuration == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffDuration"); + } + this.cloudProviderBackoffDuration = cloudProviderBackoffDuration; return this; } @CustomType.Setter public Builder cloudProviderBackoffExponent(Integer cloudProviderBackoffExponent) { - this.cloudProviderBackoffExponent = Objects.requireNonNull(cloudProviderBackoffExponent); + if (cloudProviderBackoffExponent == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffExponent"); + } + this.cloudProviderBackoffExponent = cloudProviderBackoffExponent; return this; } @CustomType.Setter public Builder cloudProviderBackoffJitter(Integer cloudProviderBackoffJitter) { - this.cloudProviderBackoffJitter = Objects.requireNonNull(cloudProviderBackoffJitter); + if (cloudProviderBackoffJitter == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffJitter"); + } + this.cloudProviderBackoffJitter = cloudProviderBackoffJitter; return this; } @CustomType.Setter public Builder cloudProviderBackoffRetries(Integer cloudProviderBackoffRetries) { - this.cloudProviderBackoffRetries = Objects.requireNonNull(cloudProviderBackoffRetries); + if (cloudProviderBackoffRetries == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderBackoffRetries"); + } + this.cloudProviderBackoffRetries = cloudProviderBackoffRetries; return this; } @CustomType.Setter public Builder cloudProviderRateLimit(Boolean cloudProviderRateLimit) { - this.cloudProviderRateLimit = Objects.requireNonNull(cloudProviderRateLimit); + if (cloudProviderRateLimit == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderRateLimit"); + } + this.cloudProviderRateLimit = cloudProviderRateLimit; return this; } @CustomType.Setter public Builder cloudProviderRateLimitBucket(Integer cloudProviderRateLimitBucket) { - this.cloudProviderRateLimitBucket = Objects.requireNonNull(cloudProviderRateLimitBucket); + if (cloudProviderRateLimitBucket == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderRateLimitBucket"); + } + this.cloudProviderRateLimitBucket = cloudProviderRateLimitBucket; return this; } @CustomType.Setter public Builder cloudProviderRateLimitQps(Integer cloudProviderRateLimitQps) { - this.cloudProviderRateLimitQps = Objects.requireNonNull(cloudProviderRateLimitQps); + if (cloudProviderRateLimitQps == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "cloudProviderRateLimitQps"); + } + this.cloudProviderRateLimitQps = cloudProviderRateLimitQps; return this; } @CustomType.Setter public Builder loadBalancerSku(@Nullable String loadBalancerSku) { + this.loadBalancerSku = loadBalancerSku; return this; } @CustomType.Setter public Builder location(String location) { - this.location = Objects.requireNonNull(location); + if (location == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "location"); + } + this.location = location; return this; } @CustomType.Setter public Builder maximumLoadBalancerRuleCount(Integer maximumLoadBalancerRuleCount) { - this.maximumLoadBalancerRuleCount = Objects.requireNonNull(maximumLoadBalancerRuleCount); + if (maximumLoadBalancerRuleCount == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "maximumLoadBalancerRuleCount"); + } + this.maximumLoadBalancerRuleCount = maximumLoadBalancerRuleCount; return this; } @CustomType.Setter public Builder primaryAvailabilitySetName(String primaryAvailabilitySetName) { - this.primaryAvailabilitySetName = Objects.requireNonNull(primaryAvailabilitySetName); + if (primaryAvailabilitySetName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "primaryAvailabilitySetName"); + } + this.primaryAvailabilitySetName = primaryAvailabilitySetName; return this; } @CustomType.Setter public Builder primaryScaleSetName(String primaryScaleSetName) { - this.primaryScaleSetName = Objects.requireNonNull(primaryScaleSetName); + if (primaryScaleSetName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "primaryScaleSetName"); + } + this.primaryScaleSetName = primaryScaleSetName; return this; } @CustomType.Setter public Builder resourceGroup(String resourceGroup) { - this.resourceGroup = Objects.requireNonNull(resourceGroup); + if (resourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "resourceGroup"); + } + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder routeTableName(String routeTableName) { - this.routeTableName = Objects.requireNonNull(routeTableName); + if (routeTableName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "routeTableName"); + } + this.routeTableName = routeTableName; return this; } @CustomType.Setter public Builder securityGroupName(String securityGroupName) { - this.securityGroupName = Objects.requireNonNull(securityGroupName); + if (securityGroupName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "securityGroupName"); + } + this.securityGroupName = securityGroupName; return this; } @CustomType.Setter public Builder subnetName(String subnetName) { - this.subnetName = Objects.requireNonNull(subnetName); + if (subnetName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "subnetName"); + } + this.subnetName = subnetName; return this; } @CustomType.Setter public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = Objects.requireNonNull(subscriptionId); + if (subscriptionId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "subscriptionId"); + } + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder useInstanceMetadata(Boolean useInstanceMetadata) { - this.useInstanceMetadata = Objects.requireNonNull(useInstanceMetadata); + if (useInstanceMetadata == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "useInstanceMetadata"); + } + this.useInstanceMetadata = useInstanceMetadata; return this; } @CustomType.Setter public Builder useManagedIdentityExtension(Boolean useManagedIdentityExtension) { - this.useManagedIdentityExtension = Objects.requireNonNull(useManagedIdentityExtension); + if (useManagedIdentityExtension == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "useManagedIdentityExtension"); + } + this.useManagedIdentityExtension = useManagedIdentityExtension; return this; } @CustomType.Setter public Builder vmType(String vmType) { - this.vmType = Objects.requireNonNull(vmType); + if (vmType == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "vmType"); + } + this.vmType = vmType; return this; } @CustomType.Setter public Builder vnetName(String vnetName) { - this.vnetName = Objects.requireNonNull(vnetName); + if (vnetName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "vnetName"); + } + this.vnetName = vnetName; return this; } @CustomType.Setter public Builder vnetResourceGroup(String vnetResourceGroup) { - this.vnetResourceGroup = Objects.requireNonNull(vnetResourceGroup); + if (vnetResourceGroup == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider", "vnetResourceGroup"); + } + this.vnetResourceGroup = vnetResourceGroup; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderAzureCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java index 880fba761..4b2ca2bf2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer; @@ -62,27 +63,42 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder blockStorage(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage blockStorage) { - this.blockStorage = Objects.requireNonNull(blockStorage); + if (blockStorage == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider", "blockStorage"); + } + this.blockStorage = blockStorage; return this; } @CustomType.Setter public Builder global(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder loadBalancer(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer loadBalancer) { - this.loadBalancer = Objects.requireNonNull(loadBalancer); + if (loadBalancer == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider", "loadBalancer"); + } + this.loadBalancer = loadBalancer; return this; } @CustomType.Setter public Builder metadata(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata metadata) { - this.metadata = Objects.requireNonNull(metadata); + if (metadata == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider", "metadata"); + } + this.metadata = metadata; return this; } @CustomType.Setter public Builder route(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute route) { - this.route = Objects.requireNonNull(route); + if (route == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider", "route"); + } + this.route = route; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java index 3da41b29a..0a5cbbeb1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -47,17 +48,26 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder bsVersion(String bsVersion) { - this.bsVersion = Objects.requireNonNull(bsVersion); + if (bsVersion == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage", "bsVersion"); + } + this.bsVersion = bsVersion; return this; } @CustomType.Setter public Builder ignoreVolumeAz(Boolean ignoreVolumeAz) { - this.ignoreVolumeAz = Objects.requireNonNull(ignoreVolumeAz); + if (ignoreVolumeAz == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage", "ignoreVolumeAz"); + } + this.ignoreVolumeAz = ignoreVolumeAz; return this; } @CustomType.Setter public Builder trustDevicePath(Boolean trustDevicePath) { - this.trustDevicePath = Objects.requireNonNull(trustDevicePath); + if (trustDevicePath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage", "trustDevicePath"); + } + this.trustDevicePath = trustDevicePath; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderBlockStorage build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java index ab8154401..bb008f19d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -88,52 +89,82 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder authUrl(String authUrl) { - this.authUrl = Objects.requireNonNull(authUrl); + if (authUrl == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "authUrl"); + } + this.authUrl = authUrl; return this; } @CustomType.Setter public Builder caFile(String caFile) { - this.caFile = Objects.requireNonNull(caFile); + if (caFile == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "caFile"); + } + this.caFile = caFile; return this; } @CustomType.Setter public Builder domainId(String domainId) { - this.domainId = Objects.requireNonNull(domainId); + if (domainId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "domainId"); + } + this.domainId = domainId; return this; } @CustomType.Setter public Builder domainName(String domainName) { - this.domainName = Objects.requireNonNull(domainName); + if (domainName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "domainName"); + } + this.domainName = domainName; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder tenantId(String tenantId) { - this.tenantId = Objects.requireNonNull(tenantId); + if (tenantId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "tenantId"); + } + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder tenantName(String tenantName) { - this.tenantName = Objects.requireNonNull(tenantName); + if (tenantName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "tenantName"); + } + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder trustId(String trustId) { - this.trustId = Objects.requireNonNull(trustId); + if (trustId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "trustId"); + } + this.trustId = trustId; return this; } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal", "username"); + } + this.username = username; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java index ab8b89ed2..6ea924b1b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -98,57 +99,84 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder createMonitor(Boolean createMonitor) { - this.createMonitor = Objects.requireNonNull(createMonitor); + if (createMonitor == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "createMonitor"); + } + this.createMonitor = createMonitor; return this; } @CustomType.Setter public Builder floatingNetworkId(String floatingNetworkId) { - this.floatingNetworkId = Objects.requireNonNull(floatingNetworkId); + if (floatingNetworkId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "floatingNetworkId"); + } + this.floatingNetworkId = floatingNetworkId; return this; } @CustomType.Setter public Builder lbMethod(String lbMethod) { - this.lbMethod = Objects.requireNonNull(lbMethod); + if (lbMethod == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "lbMethod"); + } + this.lbMethod = lbMethod; return this; } @CustomType.Setter public Builder lbProvider(String lbProvider) { - this.lbProvider = Objects.requireNonNull(lbProvider); + if (lbProvider == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "lbProvider"); + } + this.lbProvider = lbProvider; return this; } @CustomType.Setter public Builder lbVersion(String lbVersion) { - this.lbVersion = Objects.requireNonNull(lbVersion); + if (lbVersion == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "lbVersion"); + } + this.lbVersion = lbVersion; return this; } @CustomType.Setter public Builder manageSecurityGroups(Boolean manageSecurityGroups) { - this.manageSecurityGroups = Objects.requireNonNull(manageSecurityGroups); + if (manageSecurityGroups == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "manageSecurityGroups"); + } + this.manageSecurityGroups = manageSecurityGroups; return this; } @CustomType.Setter public Builder monitorDelay(@Nullable String monitorDelay) { + this.monitorDelay = monitorDelay; return this; } @CustomType.Setter public Builder monitorMaxRetries(@Nullable Integer monitorMaxRetries) { + this.monitorMaxRetries = monitorMaxRetries; return this; } @CustomType.Setter public Builder monitorTimeout(@Nullable String monitorTimeout) { + this.monitorTimeout = monitorTimeout; return this; } @CustomType.Setter public Builder subnetId(String subnetId) { - this.subnetId = Objects.requireNonNull(subnetId); + if (subnetId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "subnetId"); + } + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder useOctavia(Boolean useOctavia) { - this.useOctavia = Objects.requireNonNull(useOctavia); + if (useOctavia == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer", "useOctavia"); + } + this.useOctavia = useOctavia; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderLoadBalancer build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java index 49f81240c..10fd741ae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -41,12 +42,18 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder requestTimeout(Integer requestTimeout) { - this.requestTimeout = Objects.requireNonNull(requestTimeout); + if (requestTimeout == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata", "requestTimeout"); + } + this.requestTimeout = requestTimeout; return this; } @CustomType.Setter public Builder searchOrder(String searchOrder) { - this.searchOrder = Objects.requireNonNull(searchOrder); + if (searchOrder == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata", "searchOrder"); + } + this.searchOrder = searchOrder; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderMetadata build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java index f3f4d732c..cb1f75f29 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder routerId(String routerId) { - this.routerId = Objects.requireNonNull(routerId); + if (routerId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute", "routerId"); + } + this.routerId = routerId; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderOpenstackCloudProviderRoute build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java index 8fdd52964..acaae1658 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork; @@ -63,22 +64,34 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder disk(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk disk) { - this.disk = Objects.requireNonNull(disk); + if (disk == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "disk"); + } + this.disk = disk; return this; } @CustomType.Setter public Builder global(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal global) { - this.global = Objects.requireNonNull(global); + if (global == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "global"); + } + this.global = global; return this; } @CustomType.Setter public Builder network(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork network) { - this.network = Objects.requireNonNull(network); + if (network == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "network"); + } + this.network = network; return this; } @CustomType.Setter public Builder virtualCenters(List virtualCenters) { - this.virtualCenters = Objects.requireNonNull(virtualCenters); + if (virtualCenters == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "virtualCenters"); + } + this.virtualCenters = virtualCenters; return this; } public Builder virtualCenters(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter... virtualCenters) { @@ -86,7 +99,10 @@ public Builder virtualCenters(GetClusterTemplateTemplateRevisionClusterConfigRke } @CustomType.Setter public Builder workspace(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace workspace) { - this.workspace = Objects.requireNonNull(workspace); + if (workspace == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider", "workspace"); + } + this.workspace = workspace; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java index 056dafee0..1f6aba2e0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder scsiControllerType(String scsiControllerType) { - this.scsiControllerType = Objects.requireNonNull(scsiControllerType); + if (scsiControllerType == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk", "scsiControllerType"); + } + this.scsiControllerType = scsiControllerType; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderDisk build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java index 816b1f370..fbf8bc02f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -66,32 +67,50 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder datacenters(String datacenters) { - this.datacenters = Objects.requireNonNull(datacenters); + if (datacenters == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "datacenters"); + } + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder insecureFlag(Boolean insecureFlag) { - this.insecureFlag = Objects.requireNonNull(insecureFlag); + if (insecureFlag == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "insecureFlag"); + } + this.insecureFlag = insecureFlag; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(String port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(Integer soapRoundtripCount) { - this.soapRoundtripCount = Objects.requireNonNull(soapRoundtripCount); + if (soapRoundtripCount == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "soapRoundtripCount"); + } + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal", "user"); + } + this.user = user; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderGlobal build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java index ac82ccc7f..18a6fb813 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder publicNetwork(String publicNetwork) { - this.publicNetwork = Objects.requireNonNull(publicNetwork); + if (publicNetwork == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork", "publicNetwork"); + } + this.publicNetwork = publicNetwork; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderNetwork build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java index 086051429..256a5f88e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -73,32 +74,50 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder datacenters(String datacenters) { - this.datacenters = Objects.requireNonNull(datacenters); + if (datacenters == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "datacenters"); + } + this.datacenters = datacenters; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder port(String port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder soapRoundtripCount(Integer soapRoundtripCount) { - this.soapRoundtripCount = Objects.requireNonNull(soapRoundtripCount); + if (soapRoundtripCount == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "soapRoundtripCount"); + } + this.soapRoundtripCount = soapRoundtripCount; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter", "user"); + } + this.user = user; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderVirtualCenter build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java index 7103d961c..9532089e2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -58,27 +59,42 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProv @CustomType.Setter public Builder datacenter(String datacenter) { - this.datacenter = Objects.requireNonNull(datacenter); + if (datacenter == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "datacenter"); + } + this.datacenter = datacenter; return this; } @CustomType.Setter public Builder defaultDatastore(String defaultDatastore) { - this.defaultDatastore = Objects.requireNonNull(defaultDatastore); + if (defaultDatastore == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "defaultDatastore"); + } + this.defaultDatastore = defaultDatastore; return this; } @CustomType.Setter public Builder folder(String folder) { - this.folder = Objects.requireNonNull(folder); + if (folder == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "folder"); + } + this.folder = folder; return this; } @CustomType.Setter public Builder resourcepoolPath(String resourcepoolPath) { - this.resourcepoolPath = Objects.requireNonNull(resourcepoolPath); + if (resourcepoolPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "resourcepoolPath"); + } + this.resourcepoolPath = resourcepoolPath; return this; } @CustomType.Setter public Builder server(String server) { - this.server = Objects.requireNonNull(server); + if (server == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace", "server"); + } + this.server = server; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigCloudProviderVsphereCloudProviderWorkspace build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java index 4298563ea..4bd7ed868 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration; @@ -91,32 +92,44 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns defau @CustomType.Setter public Builder linearAutoscalerParams(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams linearAutoscalerParams) { + this.linearAutoscalerParams = linearAutoscalerParams; return this; } @CustomType.Setter public Builder nodeSelector(Map nodeSelector) { - this.nodeSelector = Objects.requireNonNull(nodeSelector); + if (nodeSelector == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns", "nodeSelector"); + } + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder nodelocal(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal nodelocal) { + this.nodelocal = nodelocal; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder provider(@Nullable String provider) { + this.provider = provider; return this; } @CustomType.Setter public Builder reverseCidrs(List reverseCidrs) { - this.reverseCidrs = Objects.requireNonNull(reverseCidrs); + if (reverseCidrs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns", "reverseCidrs"); + } + this.reverseCidrs = reverseCidrs; return this; } public Builder reverseCidrs(String... reverseCidrs) { @@ -124,6 +137,7 @@ public Builder reverseCidrs(String... reverseCidrs) { } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -132,12 +146,16 @@ public Builder tolerations(GetClusterTemplateTemplateRevisionClusterConfigRkeCon } @CustomType.Setter public Builder updateStrategy(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } @CustomType.Setter public Builder upstreamNameservers(List upstreamNameservers) { - this.upstreamNameservers = Objects.requireNonNull(upstreamNameservers); + if (upstreamNameservers == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDns", "upstreamNameservers"); + } + this.upstreamNameservers = upstreamNameservers; return this; } public Builder upstreamNameservers(String... upstreamNameservers) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java index 6c76c7bf6..ce4167fdd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinearAutoscalerParams.java @@ -62,26 +62,31 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsLinear @CustomType.Setter public Builder coresPerReplica(@Nullable Double coresPerReplica) { + this.coresPerReplica = coresPerReplica; return this; } @CustomType.Setter public Builder max(@Nullable Integer max) { + this.max = max; return this; } @CustomType.Setter public Builder min(@Nullable Integer min) { + this.min = min; return this; } @CustomType.Setter public Builder nodesPerReplica(@Nullable Double nodesPerReplica) { + this.nodesPerReplica = nodesPerReplica; return this; } @CustomType.Setter public Builder preventSinglePointFailure(@Nullable Boolean preventSinglePointFailure) { + this.preventSinglePointFailure = preventSinglePointFailure; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java index ff01ad006..467d859dd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelocal.java @@ -44,11 +44,13 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsNodelo @CustomType.Setter public Builder ipAddress(@Nullable String ipAddress) { + this.ipAddress = ipAddress; return this; } @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java index 6ad00af04..2b26eeb3d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsTolera @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java index f8ae8a3ca..63f6fcc69 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdate @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java index 312f756fa..a4d451ad5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdateStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigDnsUpdate @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java index 3893fd557..724fb4e7b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy; import java.lang.Boolean; @@ -103,51 +104,77 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress d @CustomType.Setter public Builder defaultBackend(@Nullable Boolean defaultBackend) { + this.defaultBackend = defaultBackend; return this; } @CustomType.Setter public Builder dnsPolicy(String dnsPolicy) { - this.dnsPolicy = Objects.requireNonNull(dnsPolicy); + if (dnsPolicy == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "dnsPolicy"); + } + this.dnsPolicy = dnsPolicy; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder httpPort(Integer httpPort) { - this.httpPort = Objects.requireNonNull(httpPort); + if (httpPort == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "httpPort"); + } + this.httpPort = httpPort; return this; } @CustomType.Setter public Builder httpsPort(Integer httpsPort) { - this.httpsPort = Objects.requireNonNull(httpsPort); + if (httpsPort == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "httpsPort"); + } + this.httpsPort = httpsPort; return this; } @CustomType.Setter public Builder networkMode(String networkMode) { - this.networkMode = Objects.requireNonNull(networkMode); + if (networkMode == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "networkMode"); + } + this.networkMode = networkMode; return this; } @CustomType.Setter public Builder nodeSelector(Map nodeSelector) { - this.nodeSelector = Objects.requireNonNull(nodeSelector); + if (nodeSelector == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "nodeSelector"); + } + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngress", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -156,6 +183,7 @@ public Builder tolerations(GetClusterTemplateTemplateRevisionClusterConfigRkeCon } @CustomType.Setter public Builder updateStrategy(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java index 6712a2c9b..321d913f5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressTo @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java index 001406cf9..84c001511 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUp @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java index 81198b56c..d8464fc9c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUpdateStrategyRollingUpdate.java @@ -36,6 +36,7 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigIngressUp @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java index 898d2cc8a..424489fb5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy; import java.lang.Integer; @@ -72,26 +73,37 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitorin @CustomType.Setter public Builder nodeSelector(@Nullable Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder provider(String provider) { - this.provider = Objects.requireNonNull(provider); + if (provider == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring", "provider"); + } + this.provider = provider; return this; } @CustomType.Setter public Builder replicas(Integer replicas) { - this.replicas = Objects.requireNonNull(replicas); + if (replicas == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoring", "replicas"); + } + this.replicas = replicas; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -100,6 +112,7 @@ public Builder tolerations(GetClusterTemplateTemplateRevisionClusterConfigRkeCon } @CustomType.Setter public Builder updateStrategy(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java index 7d6c93f01..c2b274bb7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitorin @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java index 220d8fe6e..230c618fb 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategy.java @@ -43,11 +43,13 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitorin @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder strategy(@Nullable String strategy) { + this.strategy = strategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java index e5b7020be..d09076113 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitorin @CustomType.Setter public Builder maxSurge(@Nullable Integer maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable Integer maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java index 36c6ca028..0bd92f589 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider; @@ -94,41 +95,53 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork d @CustomType.Setter public Builder aciNetworkProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider aciNetworkProvider) { + this.aciNetworkProvider = aciNetworkProvider; return this; } @CustomType.Setter public Builder calicoNetworkProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider calicoNetworkProvider) { + this.calicoNetworkProvider = calicoNetworkProvider; return this; } @CustomType.Setter public Builder canalNetworkProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider canalNetworkProvider) { + this.canalNetworkProvider = canalNetworkProvider; return this; } @CustomType.Setter public Builder flannelNetworkProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider flannelNetworkProvider) { + this.flannelNetworkProvider = flannelNetworkProvider; return this; } @CustomType.Setter public Builder mtu(@Nullable Integer mtu) { + this.mtu = mtu; return this; } @CustomType.Setter public Builder options(Map options) { - this.options = Objects.requireNonNull(options); + if (options == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork", "options"); + } + this.options = options; return this; } @CustomType.Setter public Builder plugin(String plugin) { - this.plugin = Objects.requireNonNull(plugin); + if (plugin == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetwork", "plugin"); + } + this.plugin = plugin; return this; } @CustomType.Setter public Builder tolerations(@Nullable List tolerations) { + this.tolerations = tolerations; return this; } @@ -137,6 +150,7 @@ public Builder tolerations(GetClusterTemplateTemplateRevisionClusterConfigRkeCon } @CustomType.Setter public Builder weaveNetworkProvider(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider weaveNetworkProvider) { + this.weaveNetworkProvider = weaveNetworkProvider; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java index 189e7ee63..7e2b08b90 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -475,12 +476,18 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAc @CustomType.Setter public Builder aep(String aep) { - this.aep = Objects.requireNonNull(aep); + if (aep == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "aep"); + } + this.aep = aep; return this; } @CustomType.Setter public Builder apicHosts(List apicHosts) { - this.apicHosts = Objects.requireNonNull(apicHosts); + if (apicHosts == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicHosts"); + } + this.apicHosts = apicHosts; return this; } public Builder apicHosts(String... apicHosts) { @@ -488,126 +495,163 @@ public Builder apicHosts(String... apicHosts) { } @CustomType.Setter public Builder apicRefreshTickerAdjust(@Nullable String apicRefreshTickerAdjust) { + this.apicRefreshTickerAdjust = apicRefreshTickerAdjust; return this; } @CustomType.Setter public Builder apicRefreshTime(@Nullable String apicRefreshTime) { + this.apicRefreshTime = apicRefreshTime; return this; } @CustomType.Setter public Builder apicSubscriptionDelay(@Nullable String apicSubscriptionDelay) { + this.apicSubscriptionDelay = apicSubscriptionDelay; return this; } @CustomType.Setter public Builder apicUserCrt(String apicUserCrt) { - this.apicUserCrt = Objects.requireNonNull(apicUserCrt); + if (apicUserCrt == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicUserCrt"); + } + this.apicUserCrt = apicUserCrt; return this; } @CustomType.Setter public Builder apicUserKey(String apicUserKey) { - this.apicUserKey = Objects.requireNonNull(apicUserKey); + if (apicUserKey == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicUserKey"); + } + this.apicUserKey = apicUserKey; return this; } @CustomType.Setter public Builder apicUserName(String apicUserName) { - this.apicUserName = Objects.requireNonNull(apicUserName); + if (apicUserName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "apicUserName"); + } + this.apicUserName = apicUserName; return this; } @CustomType.Setter public Builder capic(@Nullable String capic) { + this.capic = capic; return this; } @CustomType.Setter public Builder controllerLogLevel(@Nullable String controllerLogLevel) { + this.controllerLogLevel = controllerLogLevel; return this; } @CustomType.Setter public Builder disablePeriodicSnatGlobalInfoSync(@Nullable String disablePeriodicSnatGlobalInfoSync) { + this.disablePeriodicSnatGlobalInfoSync = disablePeriodicSnatGlobalInfoSync; return this; } @CustomType.Setter public Builder disableWaitForNetwork(@Nullable String disableWaitForNetwork) { + this.disableWaitForNetwork = disableWaitForNetwork; return this; } @CustomType.Setter public Builder dropLogEnable(@Nullable String dropLogEnable) { + this.dropLogEnable = dropLogEnable; return this; } @CustomType.Setter public Builder durationWaitForNetwork(@Nullable String durationWaitForNetwork) { + this.durationWaitForNetwork = durationWaitForNetwork; return this; } @CustomType.Setter public Builder enableEndpointSlice(@Nullable String enableEndpointSlice) { + this.enableEndpointSlice = enableEndpointSlice; return this; } @CustomType.Setter public Builder encapType(String encapType) { - this.encapType = Objects.requireNonNull(encapType); + if (encapType == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "encapType"); + } + this.encapType = encapType; return this; } @CustomType.Setter public Builder epRegistry(@Nullable String epRegistry) { + this.epRegistry = epRegistry; return this; } @CustomType.Setter public Builder externDynamic(String externDynamic) { - this.externDynamic = Objects.requireNonNull(externDynamic); + if (externDynamic == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "externDynamic"); + } + this.externDynamic = externDynamic; return this; } @CustomType.Setter public Builder externStatic(String externStatic) { - this.externStatic = Objects.requireNonNull(externStatic); + if (externStatic == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "externStatic"); + } + this.externStatic = externStatic; return this; } @CustomType.Setter public Builder gbpPodSubnet(@Nullable String gbpPodSubnet) { + this.gbpPodSubnet = gbpPodSubnet; return this; } @CustomType.Setter public Builder hostAgentLogLevel(@Nullable String hostAgentLogLevel) { + this.hostAgentLogLevel = hostAgentLogLevel; return this; } @CustomType.Setter public Builder imagePullPolicy(@Nullable String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @CustomType.Setter public Builder imagePullSecret(@Nullable String imagePullSecret) { + this.imagePullSecret = imagePullSecret; return this; } @CustomType.Setter public Builder infraVlan(@Nullable String infraVlan) { + this.infraVlan = infraVlan; return this; } @CustomType.Setter public Builder installIstio(@Nullable String installIstio) { + this.installIstio = installIstio; return this; } @CustomType.Setter public Builder istioProfile(@Nullable String istioProfile) { + this.istioProfile = istioProfile; return this; } @CustomType.Setter public Builder kafkaBrokers(@Nullable List kafkaBrokers) { + this.kafkaBrokers = kafkaBrokers; return this; } @@ -616,27 +660,38 @@ public Builder kafkaBrokers(String... kafkaBrokers) { } @CustomType.Setter public Builder kafkaClientCrt(@Nullable String kafkaClientCrt) { + this.kafkaClientCrt = kafkaClientCrt; return this; } @CustomType.Setter public Builder kafkaClientKey(@Nullable String kafkaClientKey) { + this.kafkaClientKey = kafkaClientKey; return this; } @CustomType.Setter public Builder kubeApiVlan(String kubeApiVlan) { - this.kubeApiVlan = Objects.requireNonNull(kubeApiVlan); + if (kubeApiVlan == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "kubeApiVlan"); + } + this.kubeApiVlan = kubeApiVlan; return this; } @CustomType.Setter public Builder l3out(String l3out) { - this.l3out = Objects.requireNonNull(l3out); + if (l3out == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "l3out"); + } + this.l3out = l3out; return this; } @CustomType.Setter public Builder l3outExternalNetworks(List l3outExternalNetworks) { - this.l3outExternalNetworks = Objects.requireNonNull(l3outExternalNetworks); + if (l3outExternalNetworks == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "l3outExternalNetworks"); + } + this.l3outExternalNetworks = l3outExternalNetworks; return this; } public Builder l3outExternalNetworks(String... l3outExternalNetworks) { @@ -644,212 +699,272 @@ public Builder l3outExternalNetworks(String... l3outExternalNetworks) { } @CustomType.Setter public Builder maxNodesSvcGraph(@Nullable String maxNodesSvcGraph) { + this.maxNodesSvcGraph = maxNodesSvcGraph; return this; } @CustomType.Setter public Builder mcastRangeEnd(String mcastRangeEnd) { - this.mcastRangeEnd = Objects.requireNonNull(mcastRangeEnd); + if (mcastRangeEnd == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "mcastRangeEnd"); + } + this.mcastRangeEnd = mcastRangeEnd; return this; } @CustomType.Setter public Builder mcastRangeStart(String mcastRangeStart) { - this.mcastRangeStart = Objects.requireNonNull(mcastRangeStart); + if (mcastRangeStart == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "mcastRangeStart"); + } + this.mcastRangeStart = mcastRangeStart; return this; } @CustomType.Setter public Builder mtuHeadRoom(@Nullable String mtuHeadRoom) { + this.mtuHeadRoom = mtuHeadRoom; return this; } @CustomType.Setter public Builder multusDisable(@Nullable String multusDisable) { + this.multusDisable = multusDisable; return this; } @CustomType.Setter public Builder noPriorityClass(@Nullable String noPriorityClass) { + this.noPriorityClass = noPriorityClass; return this; } @CustomType.Setter public Builder nodePodIfEnable(@Nullable String nodePodIfEnable) { + this.nodePodIfEnable = nodePodIfEnable; return this; } @CustomType.Setter public Builder nodeSubnet(String nodeSubnet) { - this.nodeSubnet = Objects.requireNonNull(nodeSubnet); + if (nodeSubnet == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "nodeSubnet"); + } + this.nodeSubnet = nodeSubnet; return this; } @CustomType.Setter public Builder nodeSvcSubnet(String nodeSvcSubnet) { - this.nodeSvcSubnet = Objects.requireNonNull(nodeSvcSubnet); + if (nodeSvcSubnet == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "nodeSvcSubnet"); + } + this.nodeSvcSubnet = nodeSvcSubnet; return this; } @CustomType.Setter public Builder opflexClientSsl(@Nullable String opflexClientSsl) { + this.opflexClientSsl = opflexClientSsl; return this; } @CustomType.Setter public Builder opflexDeviceDeleteTimeout(@Nullable String opflexDeviceDeleteTimeout) { + this.opflexDeviceDeleteTimeout = opflexDeviceDeleteTimeout; return this; } @CustomType.Setter public Builder opflexLogLevel(@Nullable String opflexLogLevel) { + this.opflexLogLevel = opflexLogLevel; return this; } @CustomType.Setter public Builder opflexMode(@Nullable String opflexMode) { + this.opflexMode = opflexMode; return this; } @CustomType.Setter public Builder opflexServerPort(@Nullable String opflexServerPort) { + this.opflexServerPort = opflexServerPort; return this; } @CustomType.Setter public Builder overlayVrfName(@Nullable String overlayVrfName) { + this.overlayVrfName = overlayVrfName; return this; } @CustomType.Setter public Builder ovsMemoryLimit(@Nullable String ovsMemoryLimit) { + this.ovsMemoryLimit = ovsMemoryLimit; return this; } @CustomType.Setter public Builder pbrTrackingNonSnat(@Nullable String pbrTrackingNonSnat) { + this.pbrTrackingNonSnat = pbrTrackingNonSnat; return this; } @CustomType.Setter public Builder podSubnetChunkSize(@Nullable String podSubnetChunkSize) { + this.podSubnetChunkSize = podSubnetChunkSize; return this; } @CustomType.Setter public Builder runGbpContainer(@Nullable String runGbpContainer) { + this.runGbpContainer = runGbpContainer; return this; } @CustomType.Setter public Builder runOpflexServerContainer(@Nullable String runOpflexServerContainer) { + this.runOpflexServerContainer = runOpflexServerContainer; return this; } @CustomType.Setter public Builder serviceMonitorInterval(@Nullable String serviceMonitorInterval) { + this.serviceMonitorInterval = serviceMonitorInterval; return this; } @CustomType.Setter public Builder serviceVlan(String serviceVlan) { - this.serviceVlan = Objects.requireNonNull(serviceVlan); + if (serviceVlan == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "serviceVlan"); + } + this.serviceVlan = serviceVlan; return this; } @CustomType.Setter public Builder snatContractScope(@Nullable String snatContractScope) { + this.snatContractScope = snatContractScope; return this; } @CustomType.Setter public Builder snatNamespace(@Nullable String snatNamespace) { + this.snatNamespace = snatNamespace; return this; } @CustomType.Setter public Builder snatPortRangeEnd(@Nullable String snatPortRangeEnd) { + this.snatPortRangeEnd = snatPortRangeEnd; return this; } @CustomType.Setter public Builder snatPortRangeStart(@Nullable String snatPortRangeStart) { + this.snatPortRangeStart = snatPortRangeStart; return this; } @CustomType.Setter public Builder snatPortsPerNode(@Nullable String snatPortsPerNode) { + this.snatPortsPerNode = snatPortsPerNode; return this; } @CustomType.Setter public Builder sriovEnable(@Nullable String sriovEnable) { + this.sriovEnable = sriovEnable; return this; } @CustomType.Setter public Builder subnetDomainName(@Nullable String subnetDomainName) { + this.subnetDomainName = subnetDomainName; return this; } @CustomType.Setter public Builder systemId(String systemId) { - this.systemId = Objects.requireNonNull(systemId); + if (systemId == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "systemId"); + } + this.systemId = systemId; return this; } @CustomType.Setter public Builder tenant(@Nullable String tenant) { + this.tenant = tenant; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder useAciAnywhereCrd(@Nullable String useAciAnywhereCrd) { + this.useAciAnywhereCrd = useAciAnywhereCrd; return this; } @CustomType.Setter public Builder useAciCniPriorityClass(@Nullable String useAciCniPriorityClass) { + this.useAciCniPriorityClass = useAciCniPriorityClass; return this; } @CustomType.Setter public Builder useClusterRole(@Nullable String useClusterRole) { + this.useClusterRole = useClusterRole; return this; } @CustomType.Setter public Builder useHostNetnsVolume(@Nullable String useHostNetnsVolume) { + this.useHostNetnsVolume = useHostNetnsVolume; return this; } @CustomType.Setter public Builder useOpflexServerVolume(@Nullable String useOpflexServerVolume) { + this.useOpflexServerVolume = useOpflexServerVolume; return this; } @CustomType.Setter public Builder usePrivilegedContainer(@Nullable String usePrivilegedContainer) { + this.usePrivilegedContainer = usePrivilegedContainer; return this; } @CustomType.Setter public Builder vmmController(@Nullable String vmmController) { + this.vmmController = vmmController; return this; } @CustomType.Setter public Builder vmmDomain(@Nullable String vmmDomain) { + this.vmmDomain = vmmDomain; return this; } @CustomType.Setter public Builder vrfName(String vrfName) { - this.vrfName = Objects.requireNonNull(vrfName); + if (vrfName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "vrfName"); + } + this.vrfName = vrfName; return this; } @CustomType.Setter public Builder vrfTenant(String vrfTenant) { - this.vrfTenant = Objects.requireNonNull(vrfTenant); + if (vrfTenant == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider", "vrfTenant"); + } + this.vrfTenant = vrfTenant; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkAciNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java index 2255b95bd..a4fbd642b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCa @CustomType.Setter public Builder cloudProvider(String cloudProvider) { - this.cloudProvider = Objects.requireNonNull(cloudProvider); + if (cloudProvider == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider", "cloudProvider"); + } + this.cloudProvider = cloudProvider; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCalicoNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java index 4fa083e7b..f288ae735 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCa @CustomType.Setter public Builder iface(String iface) { - this.iface = Objects.requireNonNull(iface); + if (iface == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider", "iface"); + } + this.iface = iface; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkCanalNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java index a3a70bd29..bfc95f7b4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFl @CustomType.Setter public Builder iface(String iface) { - this.iface = Objects.requireNonNull(iface); + if (iface == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider", "iface"); + } + this.iface = iface; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkFlannelNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java index 8d64d7cf1..bbe400e61 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -61,26 +62,35 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkTo @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder seconds(Integer seconds) { - this.seconds = Objects.requireNonNull(seconds); + if (seconds == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkToleration", "seconds"); + } + this.seconds = seconds; return this; } @CustomType.Setter public Builder value(@Nullable String value) { + this.value = value; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java index 7a88f6ad5..18e9eeb09 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWe @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider", "password"); + } + this.password = password; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNetworkWeaveNetworkProvider build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java index f7fe1c38a..420d43bd9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -114,42 +115,56 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode defa @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder dockerSocket(String dockerSocket) { - this.dockerSocket = Objects.requireNonNull(dockerSocket); + if (dockerSocket == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "dockerSocket"); + } + this.dockerSocket = dockerSocket; return this; } @CustomType.Setter public Builder hostnameOverride(@Nullable String hostnameOverride) { + this.hostnameOverride = hostnameOverride; return this; } @CustomType.Setter public Builder internalAddress(@Nullable String internalAddress) { + this.internalAddress = internalAddress; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder nodeId(@Nullable String nodeId) { + this.nodeId = nodeId; return this; } @CustomType.Setter public Builder port(@Nullable String port) { + this.port = port; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -157,22 +172,32 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder sshAgentAuth(@Nullable Boolean sshAgentAuth) { + this.sshAgentAuth = sshAgentAuth; return this; } @CustomType.Setter public Builder sshKey(String sshKey) { - this.sshKey = Objects.requireNonNull(sshKey); + if (sshKey == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "sshKey"); + } + this.sshKey = sshKey; return this; } @CustomType.Setter public Builder sshKeyPath(String sshKeyPath) { - this.sshKeyPath = Objects.requireNonNull(sshKeyPath); + if (sshKeyPath == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "sshKeyPath"); + } + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode", "user"); + } + this.user = user; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigNode build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java index 4757fab71..74a2f47e8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin; import java.lang.Boolean; import java.lang.String; @@ -62,26 +63,33 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRe @CustomType.Setter public Builder ecrCredentialPlugin(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin ecrCredentialPlugin) { + this.ecrCredentialPlugin = ecrCredentialPlugin; return this; } @CustomType.Setter public Builder isDefault(@Nullable Boolean isDefault) { + this.isDefault = isDefault; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistry", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java index 9d7e4e8d6..aaa02ff1c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRegistryEcrCredentialPlugin.java @@ -48,16 +48,19 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigPrivateRe @CustomType.Setter public Builder awsAccessKeyId(@Nullable String awsAccessKeyId) { + this.awsAccessKeyId = awsAccessKeyId; return this; } @CustomType.Setter public Builder awsSecretAccessKey(@Nullable String awsSecretAccessKey) { + this.awsSecretAccessKey = awsSecretAccessKey; return this; } @CustomType.Setter public Builder awsSessionToken(@Nullable String awsSessionToken) { + this.awsSessionToken = awsSessionToken; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java index c35195e2e..f31da0804 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController; @@ -69,32 +70,50 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices @CustomType.Setter public Builder etcd(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd etcd) { - this.etcd = Objects.requireNonNull(etcd); + if (etcd == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices", "etcd"); + } + this.etcd = etcd; return this; } @CustomType.Setter public Builder kubeApi(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi kubeApi) { - this.kubeApi = Objects.requireNonNull(kubeApi); + if (kubeApi == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices", "kubeApi"); + } + this.kubeApi = kubeApi; return this; } @CustomType.Setter public Builder kubeController(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController kubeController) { - this.kubeController = Objects.requireNonNull(kubeController); + if (kubeController == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices", "kubeController"); + } + this.kubeController = kubeController; return this; } @CustomType.Setter public Builder kubelet(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet kubelet) { - this.kubelet = Objects.requireNonNull(kubelet); + if (kubelet == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices", "kubelet"); + } + this.kubelet = kubelet; return this; } @CustomType.Setter public Builder kubeproxy(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy kubeproxy) { - this.kubeproxy = Objects.requireNonNull(kubeproxy); + if (kubeproxy == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices", "kubeproxy"); + } + this.kubeproxy = kubeproxy; return this; } @CustomType.Setter public Builder scheduler(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler scheduler) { - this.scheduler = Objects.requireNonNull(scheduler); + if (scheduler == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices", "scheduler"); + } + this.scheduler = scheduler; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServices build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java index 1ed4875a2..432923666 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig; import java.lang.Boolean; import java.lang.Integer; @@ -126,26 +127,39 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesE @CustomType.Setter public Builder backupConfig(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig backupConfig) { - this.backupConfig = Objects.requireNonNull(backupConfig); + if (backupConfig == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "backupConfig"); + } + this.backupConfig = backupConfig; return this; } @CustomType.Setter public Builder caCert(String caCert) { - this.caCert = Objects.requireNonNull(caCert); + if (caCert == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "caCert"); + } + this.caCert = caCert; return this; } @CustomType.Setter public Builder cert(String cert) { - this.cert = Objects.requireNonNull(cert); + if (cert == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "cert"); + } + this.cert = cert; return this; } @CustomType.Setter public Builder creation(String creation) { - this.creation = Objects.requireNonNull(creation); + if (creation == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "creation"); + } + this.creation = creation; return this; } @CustomType.Setter public Builder externalUrls(@Nullable List externalUrls) { + this.externalUrls = externalUrls; return this; } @@ -154,11 +168,15 @@ public Builder externalUrls(String... externalUrls) { } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -167,6 +185,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -175,36 +194,53 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder gid(@Nullable Integer gid) { + this.gid = gid; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder path(String path) { - this.path = Objects.requireNonNull(path); + if (path == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "path"); + } + this.path = path; return this; } @CustomType.Setter public Builder retention(String retention) { - this.retention = Objects.requireNonNull(retention); + if (retention == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "retention"); + } + this.retention = retention; return this; } @CustomType.Setter public Builder snapshot(Boolean snapshot) { - this.snapshot = Objects.requireNonNull(snapshot); + if (snapshot == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcd", "snapshot"); + } + this.snapshot = snapshot; return this; } @CustomType.Setter public Builder uid(@Nullable Integer uid) { + this.uid = uid; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java index e2c634586..6b9fc98d7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig; import java.lang.Boolean; import java.lang.Integer; @@ -68,32 +69,40 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesE @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder intervalHours(@Nullable Integer intervalHours) { + this.intervalHours = intervalHours; return this; } @CustomType.Setter public Builder retention(@Nullable Integer retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder s3BackupConfig(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig s3BackupConfig) { + this.s3BackupConfig = s3BackupConfig; return this; } @CustomType.Setter public Builder safeTimestamp(@Nullable Boolean safeTimestamp) { + this.safeTimestamp = safeTimestamp; return this; } @CustomType.Setter public Builder timeout(Integer timeout) { - this.timeout = Objects.requireNonNull(timeout); + if (timeout == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig", "timeout"); + } + this.timeout = timeout; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java index 702113c69..73820816a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,36 +73,47 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesE @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder customCa(@Nullable String customCa) { + this.customCa = customCa; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesEtcdBackupConfigS3BackupConfig", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java index e9567df8c..cf0263b60 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit; @@ -110,31 +111,39 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder admissionConfiguration(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration admissionConfiguration) { + this.admissionConfiguration = admissionConfiguration; return this; } @CustomType.Setter public Builder alwaysPullImages(@Nullable Boolean alwaysPullImages) { + this.alwaysPullImages = alwaysPullImages; return this; } @CustomType.Setter public Builder auditLog(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog auditLog) { + this.auditLog = auditLog; return this; } @CustomType.Setter public Builder eventRateLimit(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit eventRateLimit) { + this.eventRateLimit = eventRateLimit; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -143,6 +152,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -151,27 +161,38 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder podSecurityPolicy(@Nullable Boolean podSecurityPolicy) { + this.podSecurityPolicy = podSecurityPolicy; return this; } @CustomType.Setter public Builder secretsEncryptionConfig(@Nullable GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig secretsEncryptionConfig) { + this.secretsEncryptionConfig = secretsEncryptionConfig; return this; } @CustomType.Setter public Builder serviceClusterIpRange(String serviceClusterIpRange) { - this.serviceClusterIpRange = Objects.requireNonNull(serviceClusterIpRange); + if (serviceClusterIpRange == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi", "serviceClusterIpRange"); + } + this.serviceClusterIpRange = serviceClusterIpRange; return this; } @CustomType.Setter public Builder serviceNodePortRange(String serviceNodePortRange) { - this.serviceNodePortRange = Objects.requireNonNull(serviceNodePortRange); + if (serviceNodePortRange == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi", "serviceNodePortRange"); + } + this.serviceNodePortRange = serviceNodePortRange; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApi build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java index bef81830d..0d888b0f6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin; import java.lang.String; import java.util.List; @@ -50,17 +51,22 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder apiVersion(@Nullable String apiVersion) { + this.apiVersion = apiVersion; return this; } @CustomType.Setter public Builder kind(@Nullable String kind) { + this.kind = kind; return this; } @CustomType.Setter public Builder plugins(List plugins) { - this.plugins = Objects.requireNonNull(plugins); + if (plugins == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfiguration", "plugins"); + } + this.plugins = plugins; return this; } public Builder plugins(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin... plugins) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java index 6f6b2d31e..0d690a1ee 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -56,16 +57,23 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder configuration(String configuration) { - this.configuration = Objects.requireNonNull(configuration); + if (configuration == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin", "configuration"); + } + this.configuration = configuration; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAdmissionConfigurationPlugin", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java index 6d43ed9fe..101da82e4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration; import java.lang.Boolean; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder configuration(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration configuration) { - this.configuration = Objects.requireNonNull(configuration); + if (configuration == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLog", "configuration"); + } + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java index 746f89e3e..df2ca07b7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -67,32 +68,40 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder format(@Nullable String format) { + this.format = format; return this; } @CustomType.Setter public Builder maxAge(@Nullable Integer maxAge) { + this.maxAge = maxAge; return this; } @CustomType.Setter public Builder maxBackup(@Nullable Integer maxBackup) { + this.maxBackup = maxBackup; return this; } @CustomType.Setter public Builder maxSize(@Nullable Integer maxSize) { + this.maxSize = maxSize; return this; } @CustomType.Setter public Builder path(@Nullable String path) { + this.path = path; return this; } @CustomType.Setter public Builder policy(String policy) { - this.policy = Objects.requireNonNull(policy); + if (policy == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration", "policy"); + } + this.policy = policy; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiAuditLogConfiguration build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java index 1c0f595f5..ff48a86dd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder configuration(String configuration) { - this.configuration = Objects.requireNonNull(configuration); + if (configuration == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiEventRateLimit", "configuration"); + } + this.configuration = configuration; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java index 19ae8fdff..f225d6be3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder customConfig(String customConfig) { - this.customConfig = Objects.requireNonNull(customConfig); + if (customConfig == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeApiSecretsEncryptionConfig", "customConfig"); + } + this.customConfig = customConfig; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java index 2f642102f..f09705b74 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -68,16 +69,23 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder clusterCidr(String clusterCidr) { - this.clusterCidr = Objects.requireNonNull(clusterCidr); + if (clusterCidr == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController", "clusterCidr"); + } + this.clusterCidr = clusterCidr; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -86,6 +94,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -94,12 +103,18 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder serviceClusterIpRange(String serviceClusterIpRange) { - this.serviceClusterIpRange = Objects.requireNonNull(serviceClusterIpRange); + if (serviceClusterIpRange == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController", "serviceClusterIpRange"); + } + this.serviceClusterIpRange = serviceClusterIpRange; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeController build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java index 990f2dd67..b22a4111b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -88,21 +89,31 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder clusterDnsServer(String clusterDnsServer) { - this.clusterDnsServer = Objects.requireNonNull(clusterDnsServer); + if (clusterDnsServer == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet", "clusterDnsServer"); + } + this.clusterDnsServer = clusterDnsServer; return this; } @CustomType.Setter public Builder clusterDomain(String clusterDomain) { - this.clusterDomain = Objects.requireNonNull(clusterDomain); + if (clusterDomain == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet", "clusterDomain"); + } + this.clusterDomain = clusterDomain; return this; } @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -111,6 +122,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -119,22 +131,32 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder failSwapOn(Boolean failSwapOn) { - this.failSwapOn = Objects.requireNonNull(failSwapOn); + if (failSwapOn == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet", "failSwapOn"); + } + this.failSwapOn = failSwapOn; return this; } @CustomType.Setter public Builder generateServingCertificate(@Nullable Boolean generateServingCertificate) { + this.generateServingCertificate = generateServingCertificate; return this; } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet", "image"); + } + this.image = image; return this; } @CustomType.Setter public Builder infraContainerImage(String infraContainerImage) { - this.infraContainerImage = Objects.requireNonNull(infraContainerImage); + if (infraContainerImage == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet", "infraContainerImage"); + } + this.infraContainerImage = infraContainerImage; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubelet build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java index 8de9ac499..4845f965d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -56,11 +57,15 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesK @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -69,6 +74,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -77,7 +83,10 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy", "image"); + } + this.image = image; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesKubeproxy build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java index 4a5e8fb24..996e782e3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -56,11 +57,15 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesS @CustomType.Setter public Builder extraArgs(Map extraArgs) { - this.extraArgs = Objects.requireNonNull(extraArgs); + if (extraArgs == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler", "extraArgs"); + } + this.extraArgs = extraArgs; return this; } @CustomType.Setter public Builder extraBinds(@Nullable List extraBinds) { + this.extraBinds = extraBinds; return this; } @@ -69,6 +74,7 @@ public Builder extraBinds(String... extraBinds) { } @CustomType.Setter public Builder extraEnvs(@Nullable List extraEnvs) { + this.extraEnvs = extraEnvs; return this; } @@ -77,7 +83,10 @@ public Builder extraEnvs(String... extraEnvs) { } @CustomType.Setter public Builder image(String image) { - this.image = Objects.requireNonNull(image); + if (image == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler", "image"); + } + this.image = image; return this; } public GetClusterTemplateTemplateRevisionClusterConfigRkeConfigServicesScheduler build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java index bf92d4485..41efd580b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput; import java.lang.Boolean; import java.lang.String; @@ -56,21 +57,27 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeSt @CustomType.Setter public Builder drain(@Nullable Boolean drain) { + this.drain = drain; return this; } @CustomType.Setter public Builder drainInput(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput drainInput) { - this.drainInput = Objects.requireNonNull(drainInput); + if (drainInput == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategy", "drainInput"); + } + this.drainInput = drainInput; return this; } @CustomType.Setter public Builder maxUnavailableControlplane(@Nullable String maxUnavailableControlplane) { + this.maxUnavailableControlplane = maxUnavailableControlplane; return this; } @CustomType.Setter public Builder maxUnavailableWorker(@Nullable String maxUnavailableWorker) { + this.maxUnavailableWorker = maxUnavailableWorker; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java index 2a9da2116..fe105f531 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeStrategyDrainInput.java @@ -61,26 +61,31 @@ public Builder(GetClusterTemplateTemplateRevisionClusterConfigRkeConfigUpgradeSt @CustomType.Setter public Builder deleteLocalData(@Nullable Boolean deleteLocalData) { + this.deleteLocalData = deleteLocalData; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(@Nullable Integer gracePeriod) { + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder timeout(@Nullable Integer timeout) { + this.timeout = timeout; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionQuestion.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionQuestion.java index 6d4b44764..f4b706301 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionQuestion.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterTemplateTemplateRevisionQuestion.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -55,22 +56,30 @@ public Builder(GetClusterTemplateTemplateRevisionQuestion defaults) { @CustomType.Setter("default") public Builder default_(String default_) { - this.default_ = Objects.requireNonNull(default_); + if (default_ == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionQuestion", "default_"); + } + this.default_ = default_; return this; } @CustomType.Setter public Builder required(@Nullable Boolean required) { + this.required = required; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder variable(String variable) { - this.variable = Objects.requireNonNull(variable); + if (variable == null) { + throw new MissingRequiredPropertyException("GetClusterTemplateTemplateRevisionQuestion", "variable"); + } + this.variable = variable; return this; } public GetClusterTemplateTemplateRevisionQuestion build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2AgentEnvVar.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2AgentEnvVar.java index 78d226af1..b478f1c02 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2AgentEnvVar.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2AgentEnvVar.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -48,12 +49,18 @@ public Builder(GetClusterV2AgentEnvVar defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2AgentEnvVar", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClusterV2AgentEnvVar", "value"); + } + this.value = value; return this; } public GetClusterV2AgentEnvVar build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2ClusterRegistrationToken.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2ClusterRegistrationToken.java index 71c0637c0..af1630134 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2ClusterRegistrationToken.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2ClusterRegistrationToken.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -124,67 +125,106 @@ public Builder(GetClusterV2ClusterRegistrationToken defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder command(String command) { - this.command = Objects.requireNonNull(command); + if (command == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "command"); + } + this.command = command; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder insecureCommand(String insecureCommand) { - this.insecureCommand = Objects.requireNonNull(insecureCommand); + if (insecureCommand == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "insecureCommand"); + } + this.insecureCommand = insecureCommand; return this; } @CustomType.Setter public Builder insecureNodeCommand(String insecureNodeCommand) { - this.insecureNodeCommand = Objects.requireNonNull(insecureNodeCommand); + if (insecureNodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "insecureNodeCommand"); + } + this.insecureNodeCommand = insecureNodeCommand; return this; } @CustomType.Setter public Builder insecureWindowsNodeCommand(String insecureWindowsNodeCommand) { - this.insecureWindowsNodeCommand = Objects.requireNonNull(insecureWindowsNodeCommand); + if (insecureWindowsNodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "insecureWindowsNodeCommand"); + } + this.insecureWindowsNodeCommand = insecureWindowsNodeCommand; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder manifestUrl(String manifestUrl) { - this.manifestUrl = Objects.requireNonNull(manifestUrl); + if (manifestUrl == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "manifestUrl"); + } + this.manifestUrl = manifestUrl; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeCommand(String nodeCommand) { - this.nodeCommand = Objects.requireNonNull(nodeCommand); + if (nodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "nodeCommand"); + } + this.nodeCommand = nodeCommand; return this; } @CustomType.Setter public Builder token(String token) { - this.token = Objects.requireNonNull(token); + if (token == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "token"); + } + this.token = token; return this; } @CustomType.Setter public Builder windowsNodeCommand(String windowsNodeCommand) { - this.windowsNodeCommand = Objects.requireNonNull(windowsNodeCommand); + if (windowsNodeCommand == null) { + throw new MissingRequiredPropertyException("GetClusterV2ClusterRegistrationToken", "windowsNodeCommand"); + } + this.windowsNodeCommand = windowsNodeCommand; return this; } public GetClusterV2ClusterRegistrationToken build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2Result.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2Result.java index 0f52d6ae1..425f9ebaf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2Result.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2Result.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterV2AgentEnvVar; import com.pulumi.rancher2.outputs.GetClusterV2ClusterRegistrationToken; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfig; @@ -243,7 +244,10 @@ public Builder(GetClusterV2Result defaults) { @CustomType.Setter public Builder agentEnvVars(List agentEnvVars) { - this.agentEnvVars = Objects.requireNonNull(agentEnvVars); + if (agentEnvVars == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "agentEnvVars"); + } + this.agentEnvVars = agentEnvVars; return this; } public Builder agentEnvVars(GetClusterV2AgentEnvVar... agentEnvVars) { @@ -251,82 +255,128 @@ public Builder agentEnvVars(GetClusterV2AgentEnvVar... agentEnvVars) { } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder cloudCredentialSecretName(String cloudCredentialSecretName) { - this.cloudCredentialSecretName = Objects.requireNonNull(cloudCredentialSecretName); + if (cloudCredentialSecretName == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "cloudCredentialSecretName"); + } + this.cloudCredentialSecretName = cloudCredentialSecretName; return this; } @CustomType.Setter public Builder clusterRegistrationToken(GetClusterV2ClusterRegistrationToken clusterRegistrationToken) { - this.clusterRegistrationToken = Objects.requireNonNull(clusterRegistrationToken); + if (clusterRegistrationToken == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "clusterRegistrationToken"); + } + this.clusterRegistrationToken = clusterRegistrationToken; return this; } @CustomType.Setter public Builder clusterV1Id(String clusterV1Id) { - this.clusterV1Id = Objects.requireNonNull(clusterV1Id); + if (clusterV1Id == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "clusterV1Id"); + } + this.clusterV1Id = clusterV1Id; return this; } @CustomType.Setter public Builder defaultClusterRoleForProjectMembers(String defaultClusterRoleForProjectMembers) { - this.defaultClusterRoleForProjectMembers = Objects.requireNonNull(defaultClusterRoleForProjectMembers); + if (defaultClusterRoleForProjectMembers == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "defaultClusterRoleForProjectMembers"); + } + this.defaultClusterRoleForProjectMembers = defaultClusterRoleForProjectMembers; return this; } @CustomType.Setter public Builder defaultPodSecurityAdmissionConfigurationTemplateName(String defaultPodSecurityAdmissionConfigurationTemplateName) { - this.defaultPodSecurityAdmissionConfigurationTemplateName = Objects.requireNonNull(defaultPodSecurityAdmissionConfigurationTemplateName); + if (defaultPodSecurityAdmissionConfigurationTemplateName == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "defaultPodSecurityAdmissionConfigurationTemplateName"); + } + this.defaultPodSecurityAdmissionConfigurationTemplateName = defaultPodSecurityAdmissionConfigurationTemplateName; return this; } @CustomType.Setter public Builder defaultPodSecurityPolicyTemplateName(String defaultPodSecurityPolicyTemplateName) { - this.defaultPodSecurityPolicyTemplateName = Objects.requireNonNull(defaultPodSecurityPolicyTemplateName); + if (defaultPodSecurityPolicyTemplateName == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "defaultPodSecurityPolicyTemplateName"); + } + this.defaultPodSecurityPolicyTemplateName = defaultPodSecurityPolicyTemplateName; return this; } @CustomType.Setter public Builder enableNetworkPolicy(Boolean enableNetworkPolicy) { - this.enableNetworkPolicy = Objects.requireNonNull(enableNetworkPolicy); + if (enableNetworkPolicy == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "enableNetworkPolicy"); + } + this.enableNetworkPolicy = enableNetworkPolicy; return this; } @CustomType.Setter public Builder fleetNamespace(@Nullable String fleetNamespace) { + this.fleetNamespace = fleetNamespace; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder kubeConfig(String kubeConfig) { - this.kubeConfig = Objects.requireNonNull(kubeConfig); + if (kubeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "kubeConfig"); + } + this.kubeConfig = kubeConfig; return this; } @CustomType.Setter public Builder kubernetesVersion(String kubernetesVersion) { - this.kubernetesVersion = Objects.requireNonNull(kubernetesVersion); + if (kubernetesVersion == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "kubernetesVersion"); + } + this.kubernetesVersion = kubernetesVersion; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder resourceVersion(String resourceVersion) { - this.resourceVersion = Objects.requireNonNull(resourceVersion); + if (resourceVersion == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "resourceVersion"); + } + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder rkeConfig(GetClusterV2RkeConfig rkeConfig) { - this.rkeConfig = Objects.requireNonNull(rkeConfig); + if (rkeConfig == null) { + throw new MissingRequiredPropertyException("GetClusterV2Result", "rkeConfig"); + } + this.rkeConfig = rkeConfig; return this; } public GetClusterV2Result build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java index 4062f302d..39bf76ced 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigEtcd; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigEtcdSnapshotCreate; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigEtcdSnapshotRestore; @@ -131,42 +132,54 @@ public Builder(GetClusterV2RkeConfig defaults) { @CustomType.Setter public Builder additionalManifest(@Nullable String additionalManifest) { + this.additionalManifest = additionalManifest; return this; } @CustomType.Setter public Builder chartValues(@Nullable String chartValues) { + this.chartValues = chartValues; return this; } @CustomType.Setter public Builder etcd(GetClusterV2RkeConfigEtcd etcd) { - this.etcd = Objects.requireNonNull(etcd); + if (etcd == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfig", "etcd"); + } + this.etcd = etcd; return this; } @CustomType.Setter public Builder etcdSnapshotCreate(@Nullable GetClusterV2RkeConfigEtcdSnapshotCreate etcdSnapshotCreate) { + this.etcdSnapshotCreate = etcdSnapshotCreate; return this; } @CustomType.Setter public Builder etcdSnapshotRestore(@Nullable GetClusterV2RkeConfigEtcdSnapshotRestore etcdSnapshotRestore) { + this.etcdSnapshotRestore = etcdSnapshotRestore; return this; } @CustomType.Setter public Builder localAuthEndpoint(@Nullable GetClusterV2RkeConfigLocalAuthEndpoint localAuthEndpoint) { + this.localAuthEndpoint = localAuthEndpoint; return this; } @CustomType.Setter public Builder machineGlobalConfig(@Nullable String machineGlobalConfig) { + this.machineGlobalConfig = machineGlobalConfig; return this; } @CustomType.Setter public Builder machinePoolDefaults(List machinePoolDefaults) { - this.machinePoolDefaults = Objects.requireNonNull(machinePoolDefaults); + if (machinePoolDefaults == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfig", "machinePoolDefaults"); + } + this.machinePoolDefaults = machinePoolDefaults; return this; } public Builder machinePoolDefaults(GetClusterV2RkeConfigMachinePoolDefault... machinePoolDefaults) { @@ -174,7 +187,10 @@ public Builder machinePoolDefaults(GetClusterV2RkeConfigMachinePoolDefault... ma } @CustomType.Setter public Builder machinePools(List machinePools) { - this.machinePools = Objects.requireNonNull(machinePools); + if (machinePools == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfig", "machinePools"); + } + this.machinePools = machinePools; return this; } public Builder machinePools(GetClusterV2RkeConfigMachinePool... machinePools) { @@ -182,7 +198,10 @@ public Builder machinePools(GetClusterV2RkeConfigMachinePool... machinePools) { } @CustomType.Setter public Builder machineSelectorConfigs(List machineSelectorConfigs) { - this.machineSelectorConfigs = Objects.requireNonNull(machineSelectorConfigs); + if (machineSelectorConfigs == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfig", "machineSelectorConfigs"); + } + this.machineSelectorConfigs = machineSelectorConfigs; return this; } public Builder machineSelectorConfigs(GetClusterV2RkeConfigMachineSelectorConfig... machineSelectorConfigs) { @@ -190,16 +209,19 @@ public Builder machineSelectorConfigs(GetClusterV2RkeConfigMachineSelectorConfig } @CustomType.Setter public Builder registries(@Nullable GetClusterV2RkeConfigRegistries registries) { + this.registries = registries; return this; } @CustomType.Setter public Builder rotateCertificates(@Nullable GetClusterV2RkeConfigRotateCertificates rotateCertificates) { + this.rotateCertificates = rotateCertificates; return this; } @CustomType.Setter public Builder upgradeStrategy(@Nullable GetClusterV2RkeConfigUpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcd.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcd.java index b8344b590..21f8802cd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcd.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcd.java @@ -57,21 +57,25 @@ public Builder(GetClusterV2RkeConfigEtcd defaults) { @CustomType.Setter public Builder disableSnapshots(@Nullable Boolean disableSnapshots) { + this.disableSnapshots = disableSnapshots; return this; } @CustomType.Setter public Builder s3Config(@Nullable GetClusterV2RkeConfigEtcdS3Config s3Config) { + this.s3Config = s3Config; return this; } @CustomType.Setter public Builder snapshotRetention(@Nullable Integer snapshotRetention) { + this.snapshotRetention = snapshotRetention; return this; } @CustomType.Setter public Builder snapshotScheduleCron(@Nullable String snapshotScheduleCron) { + this.snapshotScheduleCron = snapshotScheduleCron; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdS3Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdS3Config.java index 314546042..5fbdc4331 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdS3Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdS3Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,36 +74,47 @@ public Builder(GetClusterV2RkeConfigEtcdS3Config defaults) { @CustomType.Setter public Builder bucket(String bucket) { - this.bucket = Objects.requireNonNull(bucket); + if (bucket == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigEtcdS3Config", "bucket"); + } + this.bucket = bucket; return this; } @CustomType.Setter public Builder cloudCredentialName(@Nullable String cloudCredentialName) { + this.cloudCredentialName = cloudCredentialName; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigEtcdS3Config", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder endpointCa(@Nullable String endpointCa) { + this.endpointCa = endpointCa; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder skipSslVerify(@Nullable Boolean skipSslVerify) { + this.skipSslVerify = skipSslVerify; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotCreate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotCreate.java index f0f7618ac..fdc71c026 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotCreate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotCreate.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetClusterV2RkeConfigEtcdSnapshotCreate defaults) { @CustomType.Setter public Builder generation(Integer generation) { - this.generation = Objects.requireNonNull(generation); + if (generation == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigEtcdSnapshotCreate", "generation"); + } + this.generation = generation; return this; } public GetClusterV2RkeConfigEtcdSnapshotCreate build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotRestore.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotRestore.java index ed20a89e5..d697fa893 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotRestore.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigEtcdSnapshotRestore.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -57,16 +58,23 @@ public Builder(GetClusterV2RkeConfigEtcdSnapshotRestore defaults) { @CustomType.Setter public Builder generation(Integer generation) { - this.generation = Objects.requireNonNull(generation); + if (generation == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigEtcdSnapshotRestore", "generation"); + } + this.generation = generation; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigEtcdSnapshotRestore", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder restoreRkeConfig(@Nullable String restoreRkeConfig) { + this.restoreRkeConfig = restoreRkeConfig; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigLocalAuthEndpoint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigLocalAuthEndpoint.java index 53548ba49..3b0dbf94d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigLocalAuthEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigLocalAuthEndpoint.java @@ -49,16 +49,19 @@ public Builder(GetClusterV2RkeConfigLocalAuthEndpoint defaults) { @CustomType.Setter public Builder caCerts(@Nullable String caCerts) { + this.caCerts = caCerts; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder fqdn(@Nullable String fqdn) { + this.fqdn = fqdn; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePool.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePool.java index 739542c7f..bf436b6f5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePool.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePool.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachinePoolMachineConfig; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachinePoolRollingUpdate; import com.pulumi.rancher2.outputs.GetClusterV2RkeConfigMachinePoolTaint; @@ -174,86 +175,113 @@ public Builder(GetClusterV2RkeConfigMachinePool defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePool", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder cloudCredentialSecretName(@Nullable String cloudCredentialSecretName) { + this.cloudCredentialSecretName = cloudCredentialSecretName; return this; } @CustomType.Setter public Builder controlPlaneRole(@Nullable Boolean controlPlaneRole) { + this.controlPlaneRole = controlPlaneRole; return this; } @CustomType.Setter public Builder drainBeforeDelete(@Nullable Boolean drainBeforeDelete) { + this.drainBeforeDelete = drainBeforeDelete; return this; } @CustomType.Setter public Builder etcdRole(@Nullable Boolean etcdRole) { + this.etcdRole = etcdRole; return this; } @CustomType.Setter public Builder hostnameLengthLimit(@Nullable Integer hostnameLengthLimit) { + this.hostnameLengthLimit = hostnameLengthLimit; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePool", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder machineConfig(GetClusterV2RkeConfigMachinePoolMachineConfig machineConfig) { - this.machineConfig = Objects.requireNonNull(machineConfig); + if (machineConfig == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePool", "machineConfig"); + } + this.machineConfig = machineConfig; return this; } @CustomType.Setter public Builder machineLabels(Map machineLabels) { - this.machineLabels = Objects.requireNonNull(machineLabels); + if (machineLabels == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePool", "machineLabels"); + } + this.machineLabels = machineLabels; return this; } @CustomType.Setter public Builder maxUnhealthy(@Nullable String maxUnhealthy) { + this.maxUnhealthy = maxUnhealthy; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePool", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeDrainTimeout(@Nullable Integer nodeDrainTimeout) { + this.nodeDrainTimeout = nodeDrainTimeout; return this; } @CustomType.Setter public Builder nodeStartupTimeoutSeconds(@Nullable Integer nodeStartupTimeoutSeconds) { + this.nodeStartupTimeoutSeconds = nodeStartupTimeoutSeconds; return this; } @CustomType.Setter public Builder paused(@Nullable Boolean paused) { + this.paused = paused; return this; } @CustomType.Setter public Builder quantity(@Nullable Integer quantity) { + this.quantity = quantity; return this; } @CustomType.Setter public Builder rollingUpdate(@Nullable GetClusterV2RkeConfigMachinePoolRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } @CustomType.Setter public Builder taints(@Nullable List taints) { + this.taints = taints; return this; } @@ -262,16 +290,19 @@ public Builder taints(GetClusterV2RkeConfigMachinePoolTaint... taints) { } @CustomType.Setter public Builder unhealthyNodeTimeoutSeconds(@Nullable Integer unhealthyNodeTimeoutSeconds) { + this.unhealthyNodeTimeoutSeconds = unhealthyNodeTimeoutSeconds; return this; } @CustomType.Setter public Builder unhealthyRange(@Nullable String unhealthyRange) { + this.unhealthyRange = unhealthyRange; return this; } @CustomType.Setter public Builder workerRole(@Nullable Boolean workerRole) { + this.workerRole = workerRole; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolDefault.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolDefault.java index d54473f7d..6ffe8b2ae 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolDefault.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolDefault.java @@ -36,6 +36,7 @@ public Builder(GetClusterV2RkeConfigMachinePoolDefault defaults) { @CustomType.Setter public Builder hostnameLengthLimit(@Nullable Integer hostnameLengthLimit) { + this.hostnameLengthLimit = hostnameLengthLimit; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java index 7b0f03075..24fa8ca9f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolMachineConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -48,12 +49,18 @@ public Builder(GetClusterV2RkeConfigMachinePoolMachineConfig defaults) { @CustomType.Setter public Builder kind(String kind) { - this.kind = Objects.requireNonNull(kind); + if (kind == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePoolMachineConfig", "kind"); + } + this.kind = kind; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePoolMachineConfig", "name"); + } + this.name = name; return this; } public GetClusterV2RkeConfigMachinePoolMachineConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolRollingUpdate.java index 3ec617447..93b2d64fc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(GetClusterV2RkeConfigMachinePoolRollingUpdate defaults) { @CustomType.Setter public Builder maxSurge(@Nullable String maxSurge) { + this.maxSurge = maxSurge; return this; } @CustomType.Setter public Builder maxUnavailable(@Nullable String maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolTaint.java index 88d412053..9b0431fc0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachinePoolTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -48,17 +49,24 @@ public Builder(GetClusterV2RkeConfigMachinePoolTaint defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePoolTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigMachinePoolTaint", "value"); + } + this.value = value; return this; } public GetClusterV2RkeConfigMachinePoolTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfig.java index 86b007bed..85cfcd052 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfig.java @@ -43,11 +43,13 @@ public Builder(GetClusterV2RkeConfigMachineSelectorConfig defaults) { @CustomType.Setter public Builder config(@Nullable String config) { + this.config = config; return this; } @CustomType.Setter public Builder machineLabelSelector(@Nullable GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector machineLabelSelector) { + this.machineLabelSelector = machineLabelSelector; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java index 5879865e7..43f88afa4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector.java @@ -45,6 +45,7 @@ public Builder(GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelector de @CustomType.Setter public Builder matchExpressions(@Nullable List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -53,6 +54,7 @@ public Builder matchExpressions(GetClusterV2RkeConfigMachineSelectorConfigMachin } @CustomType.Setter public Builder matchLabels(@Nullable Map matchLabels) { + this.matchLabels = matchLabels; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java index 5688ad0de..9cc1de25e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMatchExpression.java @@ -49,16 +49,19 @@ public Builder(GetClusterV2RkeConfigMachineSelectorConfigMachineLabelSelectorMat @CustomType.Setter public Builder key(@Nullable String key) { + this.key = key; return this; } @CustomType.Setter public Builder operator(@Nullable String operator) { + this.operator = operator; return this; } @CustomType.Setter public Builder values(@Nullable List values) { + this.values = values; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistries.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistries.java index 7b195e84d..6f2416915 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistries.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistries.java @@ -43,6 +43,7 @@ public Builder(GetClusterV2RkeConfigRegistries defaults) { @CustomType.Setter public Builder configs(@Nullable List configs) { + this.configs = configs; return this; } @@ -51,6 +52,7 @@ public Builder configs(GetClusterV2RkeConfigRegistriesConfig... configs) { } @CustomType.Setter public Builder mirrors(@Nullable List mirrors) { + this.mirrors = mirrors; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesConfig.java index b1f82f96c..f87aeaa74 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -61,26 +62,33 @@ public Builder(GetClusterV2RkeConfigRegistriesConfig defaults) { @CustomType.Setter public Builder authConfigSecretName(@Nullable String authConfigSecretName) { + this.authConfigSecretName = authConfigSecretName; return this; } @CustomType.Setter public Builder caBundle(@Nullable String caBundle) { + this.caBundle = caBundle; return this; } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigRegistriesConfig", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder insecure(@Nullable Boolean insecure) { + this.insecure = insecure; return this; } @CustomType.Setter public Builder tlsSecretName(@Nullable String tlsSecretName) { + this.tlsSecretName = tlsSecretName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesMirror.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesMirror.java index b3c364dbd..8dcdcacd3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesMirror.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRegistriesMirror.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.List; @@ -50,6 +51,7 @@ public Builder(GetClusterV2RkeConfigRegistriesMirror defaults) { @CustomType.Setter public Builder endpoints(@Nullable List endpoints) { + this.endpoints = endpoints; return this; } @@ -58,11 +60,15 @@ public Builder endpoints(String... endpoints) { } @CustomType.Setter public Builder hostname(String hostname) { - this.hostname = Objects.requireNonNull(hostname); + if (hostname == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigRegistriesMirror", "hostname"); + } + this.hostname = hostname; return this; } @CustomType.Setter public Builder rewrites(@Nullable Map rewrites) { + this.rewrites = rewrites; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRotateCertificates.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRotateCertificates.java index 7f87649c6..3eff17612 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRotateCertificates.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigRotateCertificates.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -43,11 +44,15 @@ public Builder(GetClusterV2RkeConfigRotateCertificates defaults) { @CustomType.Setter public Builder generation(Integer generation) { - this.generation = Objects.requireNonNull(generation); + if (generation == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigRotateCertificates", "generation"); + } + this.generation = generation; return this; } @CustomType.Setter public Builder services(@Nullable List services) { + this.services = services; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategy.java index 63671b724..74ebef4f3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategy.java @@ -56,21 +56,25 @@ public Builder(GetClusterV2RkeConfigUpgradeStrategy defaults) { @CustomType.Setter public Builder controlPlaneConcurrency(@Nullable String controlPlaneConcurrency) { + this.controlPlaneConcurrency = controlPlaneConcurrency; return this; } @CustomType.Setter public Builder controlPlaneDrainOptions(@Nullable GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions controlPlaneDrainOptions) { + this.controlPlaneDrainOptions = controlPlaneDrainOptions; return this; } @CustomType.Setter public Builder workerConcurrency(@Nullable String workerConcurrency) { + this.workerConcurrency = workerConcurrency; return this; } @CustomType.Setter public Builder workerDrainOptions(@Nullable GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions workerDrainOptions) { + this.workerDrainOptions = workerDrainOptions; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java index d1c72c63e..8c403232f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.util.Objects; @@ -85,47 +86,62 @@ public Builder(GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions defa @CustomType.Setter public Builder deleteEmptyDirData(@Nullable Boolean deleteEmptyDirData) { + this.deleteEmptyDirData = deleteEmptyDirData; return this; } @CustomType.Setter public Builder disableEviction(@Nullable Boolean disableEviction) { + this.disableEviction = disableEviction; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(Integer gracePeriod) { - this.gracePeriod = Objects.requireNonNull(gracePeriod); + if (gracePeriod == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions", "gracePeriod"); + } + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder ignoreErrors(@Nullable Boolean ignoreErrors) { + this.ignoreErrors = ignoreErrors; return this; } @CustomType.Setter public Builder skipWaitForDeleteTimeoutSeconds(Integer skipWaitForDeleteTimeoutSeconds) { - this.skipWaitForDeleteTimeoutSeconds = Objects.requireNonNull(skipWaitForDeleteTimeoutSeconds); + if (skipWaitForDeleteTimeoutSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions", "skipWaitForDeleteTimeoutSeconds"); + } + this.skipWaitForDeleteTimeoutSeconds = skipWaitForDeleteTimeoutSeconds; return this; } @CustomType.Setter public Builder timeout(Integer timeout) { - this.timeout = Objects.requireNonNull(timeout); + if (timeout == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions", "timeout"); + } + this.timeout = timeout; return this; } public GetClusterV2RkeConfigUpgradeStrategyControlPlaneDrainOptions build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java index bcbe9fcb2..66d79e861 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.util.Objects; @@ -85,47 +86,62 @@ public Builder(GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions defaults) @CustomType.Setter public Builder deleteEmptyDirData(@Nullable Boolean deleteEmptyDirData) { + this.deleteEmptyDirData = deleteEmptyDirData; return this; } @CustomType.Setter public Builder disableEviction(@Nullable Boolean disableEviction) { + this.disableEviction = disableEviction; return this; } @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder force(@Nullable Boolean force) { + this.force = force; return this; } @CustomType.Setter public Builder gracePeriod(Integer gracePeriod) { - this.gracePeriod = Objects.requireNonNull(gracePeriod); + if (gracePeriod == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions", "gracePeriod"); + } + this.gracePeriod = gracePeriod; return this; } @CustomType.Setter public Builder ignoreDaemonSets(@Nullable Boolean ignoreDaemonSets) { + this.ignoreDaemonSets = ignoreDaemonSets; return this; } @CustomType.Setter public Builder ignoreErrors(@Nullable Boolean ignoreErrors) { + this.ignoreErrors = ignoreErrors; return this; } @CustomType.Setter public Builder skipWaitForDeleteTimeoutSeconds(Integer skipWaitForDeleteTimeoutSeconds) { - this.skipWaitForDeleteTimeoutSeconds = Objects.requireNonNull(skipWaitForDeleteTimeoutSeconds); + if (skipWaitForDeleteTimeoutSeconds == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions", "skipWaitForDeleteTimeoutSeconds"); + } + this.skipWaitForDeleteTimeoutSeconds = skipWaitForDeleteTimeoutSeconds; return this; } @CustomType.Setter public Builder timeout(Integer timeout) { - this.timeout = Objects.requireNonNull(timeout); + if (timeout == null) { + throw new MissingRequiredPropertyException("GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions", "timeout"); + } + this.timeout = timeout; return this; } public GetClusterV2RkeConfigUpgradeStrategyWorkerDrainOptions build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetConfigMapV2Result.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetConfigMapV2Result.java index 0b2a98d43..ca510d5f5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetConfigMapV2Result.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetConfigMapV2Result.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -135,47 +136,72 @@ public Builder(GetConfigMapV2Result defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder data(Map data) { - this.data = Objects.requireNonNull(data); + if (data == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "data"); + } + this.data = data; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder immutable(Boolean immutable) { - this.immutable = Objects.requireNonNull(immutable); + if (immutable == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "immutable"); + } + this.immutable = immutable; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resourceVersion(String resourceVersion) { - this.resourceVersion = Objects.requireNonNull(resourceVersion); + if (resourceVersion == null) { + throw new MissingRequiredPropertyException("GetConfigMapV2Result", "resourceVersion"); + } + this.resourceVersion = resourceVersion; return this; } public GetConfigMapV2Result build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfig.java index 1099a47b1..b35cf7b27 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetEtcdBackupBackupConfigS3BackupConfig; import java.lang.Boolean; import java.lang.Integer; @@ -68,32 +69,40 @@ public Builder(GetEtcdBackupBackupConfig defaults) { @CustomType.Setter public Builder enabled(@Nullable Boolean enabled) { + this.enabled = enabled; return this; } @CustomType.Setter public Builder intervalHours(@Nullable Integer intervalHours) { + this.intervalHours = intervalHours; return this; } @CustomType.Setter public Builder retention(@Nullable Integer retention) { + this.retention = retention; return this; } @CustomType.Setter public Builder s3BackupConfig(@Nullable GetEtcdBackupBackupConfigS3BackupConfig s3BackupConfig) { + this.s3BackupConfig = s3BackupConfig; return this; } @CustomType.Setter public Builder safeTimestamp(@Nullable Boolean safeTimestamp) { + this.safeTimestamp = safeTimestamp; return this; } @CustomType.Setter public Builder timeout(Integer timeout) { - this.timeout = Objects.requireNonNull(timeout); + if (timeout == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupBackupConfig", "timeout"); + } + this.timeout = timeout; return this; } public GetEtcdBackupBackupConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfigS3BackupConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfigS3BackupConfig.java index 6478f6117..ee2ccf30f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfigS3BackupConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupBackupConfigS3BackupConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,36 +73,47 @@ public Builder(GetEtcdBackupBackupConfigS3BackupConfig defaults) { @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder bucketName(String bucketName) { - this.bucketName = Objects.requireNonNull(bucketName); + if (bucketName == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupBackupConfigS3BackupConfig", "bucketName"); + } + this.bucketName = bucketName; return this; } @CustomType.Setter public Builder customCa(@Nullable String customCa) { + this.customCa = customCa; return this; } @CustomType.Setter public Builder endpoint(String endpoint) { - this.endpoint = Objects.requireNonNull(endpoint); + if (endpoint == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupBackupConfigS3BackupConfig", "endpoint"); + } + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupResult.java index f4f8f4520..29fe7ffff 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetEtcdBackupResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetEtcdBackupBackupConfig; import java.lang.Boolean; import java.lang.Object; @@ -142,47 +143,74 @@ public Builder(GetEtcdBackupResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder backupConfig(GetEtcdBackupBackupConfig backupConfig) { - this.backupConfig = Objects.requireNonNull(backupConfig); + if (backupConfig == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "backupConfig"); + } + this.backupConfig = backupConfig; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder filename(String filename) { - this.filename = Objects.requireNonNull(filename); + if (filename == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "filename"); + } + this.filename = filename; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder manual(Boolean manual) { - this.manual = Objects.requireNonNull(manual); + if (manual == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "manual"); + } + this.manual = manual; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(String namespaceId) { - this.namespaceId = Objects.requireNonNull(namespaceId); + if (namespaceId == null) { + throw new MissingRequiredPropertyException("GetEtcdBackupResult", "namespaceId"); + } + this.namespaceId = namespaceId; return this; } public GetEtcdBackupResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderAlidnsConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderAlidnsConfig.java index e8215c64f..4e57fe998 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderAlidnsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderAlidnsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetGlobalDnsProviderAlidnsConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderAlidnsConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderAlidnsConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } public GetGlobalDnsProviderAlidnsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderCloudflareConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderCloudflareConfig.java index f031d7a34..23bacd375 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderCloudflareConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderCloudflareConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -49,16 +50,23 @@ public Builder(GetGlobalDnsProviderCloudflareConfig defaults) { @CustomType.Setter public Builder apiEmail(String apiEmail) { - this.apiEmail = Objects.requireNonNull(apiEmail); + if (apiEmail == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderCloudflareConfig", "apiEmail"); + } + this.apiEmail = apiEmail; return this; } @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderCloudflareConfig", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder proxySetting(@Nullable Boolean proxySetting) { + this.proxySetting = proxySetting; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderResult.java index 287fd1a4b..8eb6046fa 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetGlobalDnsProviderAlidnsConfig; import com.pulumi.rancher2.outputs.GetGlobalDnsProviderCloudflareConfig; import com.pulumi.rancher2.outputs.GetGlobalDnsProviderRoute53Config; @@ -119,47 +120,74 @@ public Builder(GetGlobalDnsProviderResult defaults) { @CustomType.Setter public Builder alidnsConfig(GetGlobalDnsProviderAlidnsConfig alidnsConfig) { - this.alidnsConfig = Objects.requireNonNull(alidnsConfig); + if (alidnsConfig == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "alidnsConfig"); + } + this.alidnsConfig = alidnsConfig; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder cloudflareConfig(GetGlobalDnsProviderCloudflareConfig cloudflareConfig) { - this.cloudflareConfig = Objects.requireNonNull(cloudflareConfig); + if (cloudflareConfig == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "cloudflareConfig"); + } + this.cloudflareConfig = cloudflareConfig; return this; } @CustomType.Setter public Builder dnsProvider(String dnsProvider) { - this.dnsProvider = Objects.requireNonNull(dnsProvider); + if (dnsProvider == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "dnsProvider"); + } + this.dnsProvider = dnsProvider; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder rootDomain(String rootDomain) { - this.rootDomain = Objects.requireNonNull(rootDomain); + if (rootDomain == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "rootDomain"); + } + this.rootDomain = rootDomain; return this; } @CustomType.Setter public Builder route53Config(GetGlobalDnsProviderRoute53Config route53Config) { - this.route53Config = Objects.requireNonNull(route53Config); + if (route53Config == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderResult", "route53Config"); + } + this.route53Config = route53Config; return this; } public GetGlobalDnsProviderResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderRoute53Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderRoute53Config.java index 744c6a7b0..88e41be97 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderRoute53Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalDnsProviderRoute53Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -66,31 +67,41 @@ public Builder(GetGlobalDnsProviderRoute53Config defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderRoute53Config", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder credentialsPath(@Nullable String credentialsPath) { + this.credentialsPath = credentialsPath; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("GetGlobalDnsProviderRoute53Config", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder zoneType(@Nullable String zoneType) { + this.zoneType = zoneType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleBindingResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleBindingResult.java index 467004c00..1a585e848 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleBindingResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleBindingResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -112,37 +113,58 @@ public Builder(GetGlobalRoleBindingResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder globalRoleId(String globalRoleId) { - this.globalRoleId = Objects.requireNonNull(globalRoleId); + if (globalRoleId == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "globalRoleId"); + } + this.globalRoleId = globalRoleId; return this; } @CustomType.Setter public Builder groupPrincipalId(String groupPrincipalId) { - this.groupPrincipalId = Objects.requireNonNull(groupPrincipalId); + if (groupPrincipalId == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "groupPrincipalId"); + } + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleBindingResult", "userId"); + } + this.userId = userId; return this; } public GetGlobalRoleBindingResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java index f9b5cf3d2..7e4fef910 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetGlobalRoleRule; import java.lang.Boolean; import java.lang.Object; @@ -137,42 +138,66 @@ public Builder(GetGlobalRoleResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder builtin(Boolean builtin) { - this.builtin = Objects.requireNonNull(builtin); + if (builtin == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "builtin"); + } + this.builtin = builtin; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder newUserDefault(Boolean newUserDefault) { - this.newUserDefault = Objects.requireNonNull(newUserDefault); + if (newUserDefault == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "newUserDefault"); + } + this.newUserDefault = newUserDefault; return this; } @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("GetGlobalRoleResult", "rules"); + } + this.rules = rules; return this; } public Builder rules(GetGlobalRoleRule... rules) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleRule.java index 30cb232a6..38222f286 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetGlobalRoleRule.java @@ -60,6 +60,7 @@ public Builder(GetGlobalRoleRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -68,6 +69,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceUrls(@Nullable List nonResourceUrls) { + this.nonResourceUrls = nonResourceUrls; return this; } @@ -76,6 +78,7 @@ public Builder nonResourceUrls(String... nonResourceUrls) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -84,6 +87,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -92,6 +96,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppAnswer.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppAnswer.java index 442b32680..c77218429 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppAnswer.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppAnswer.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -48,17 +49,26 @@ public Builder(GetMultiClusterAppAnswer defaults) { @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppAnswer", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppAnswer", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder values(Map values) { - this.values = Objects.requireNonNull(values); + if (values == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppAnswer", "values"); + } + this.values = values; return this; } public GetMultiClusterAppAnswer build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppMember.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppMember.java index c5aea7b08..4aa17d51b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppMember.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppMember.java @@ -48,16 +48,19 @@ public Builder(GetMultiClusterAppMember defaults) { @CustomType.Setter public Builder accessType(@Nullable String accessType) { + this.accessType = accessType; return this; } @CustomType.Setter public Builder groupPrincipalId(@Nullable String groupPrincipalId) { + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder userPrincipalId(@Nullable String userPrincipalId) { + this.userPrincipalId = userPrincipalId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppResult.java index 9f93d825a..309389704 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetMultiClusterAppAnswer; import com.pulumi.rancher2.outputs.GetMultiClusterAppMember; import com.pulumi.rancher2.outputs.GetMultiClusterAppTarget; @@ -238,12 +239,18 @@ public Builder(GetMultiClusterAppResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder answers(List answers) { - this.answers = Objects.requireNonNull(answers); + if (answers == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "answers"); + } + this.answers = answers; return this; } public Builder answers(GetMultiClusterAppAnswer... answers) { @@ -251,22 +258,34 @@ public Builder answers(GetMultiClusterAppAnswer... answers) { } @CustomType.Setter public Builder catalogName(String catalogName) { - this.catalogName = Objects.requireNonNull(catalogName); + if (catalogName == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "catalogName"); + } + this.catalogName = catalogName; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder members(List members) { - this.members = Objects.requireNonNull(members); + if (members == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "members"); + } + this.members = members; return this; } public Builder members(GetMultiClusterAppMember... members) { @@ -274,22 +293,34 @@ public Builder members(GetMultiClusterAppMember... members) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder revisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = Objects.requireNonNull(revisionHistoryLimit); + if (revisionHistoryLimit == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "revisionHistoryLimit"); + } + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @CustomType.Setter public Builder revisionId(String revisionId) { - this.revisionId = Objects.requireNonNull(revisionId); + if (revisionId == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "revisionId"); + } + this.revisionId = revisionId; return this; } @CustomType.Setter public Builder roles(List roles) { - this.roles = Objects.requireNonNull(roles); + if (roles == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "roles"); + } + this.roles = roles; return this; } public Builder roles(String... roles) { @@ -297,7 +328,10 @@ public Builder roles(String... roles) { } @CustomType.Setter public Builder targets(List targets) { - this.targets = Objects.requireNonNull(targets); + if (targets == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "targets"); + } + this.targets = targets; return this; } public Builder targets(GetMultiClusterAppTarget... targets) { @@ -305,22 +339,34 @@ public Builder targets(GetMultiClusterAppTarget... targets) { } @CustomType.Setter public Builder templateName(String templateName) { - this.templateName = Objects.requireNonNull(templateName); + if (templateName == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "templateName"); + } + this.templateName = templateName; return this; } @CustomType.Setter public Builder templateVersion(String templateVersion) { - this.templateVersion = Objects.requireNonNull(templateVersion); + if (templateVersion == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "templateVersion"); + } + this.templateVersion = templateVersion; return this; } @CustomType.Setter public Builder templateVersionId(String templateVersionId) { - this.templateVersionId = Objects.requireNonNull(templateVersionId); + if (templateVersionId == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "templateVersionId"); + } + this.templateVersionId = templateVersionId; return this; } @CustomType.Setter public Builder upgradeStrategies(List upgradeStrategies) { - this.upgradeStrategies = Objects.requireNonNull(upgradeStrategies); + if (upgradeStrategies == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppResult", "upgradeStrategies"); + } + this.upgradeStrategies = upgradeStrategies; return this; } public Builder upgradeStrategies(GetMultiClusterAppUpgradeStrategy... upgradeStrategies) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppTarget.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppTarget.java index 5e6e19aec..39954a318 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppTarget.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppTarget.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -52,22 +53,34 @@ public Builder(GetMultiClusterAppTarget defaults) { @CustomType.Setter public Builder appId(String appId) { - this.appId = Objects.requireNonNull(appId); + if (appId == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppTarget", "appId"); + } + this.appId = appId; return this; } @CustomType.Setter public Builder healthState(String healthState) { - this.healthState = Objects.requireNonNull(healthState); + if (healthState == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppTarget", "healthState"); + } + this.healthState = healthState; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppTarget", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder state(String state) { - this.state = Objects.requireNonNull(state); + if (state == null) { + throw new MissingRequiredPropertyException("GetMultiClusterAppTarget", "state"); + } + this.state = state; return this; } public GetMultiClusterAppTarget build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategy.java index 0679a656e..6591c4b81 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategy.java @@ -36,6 +36,7 @@ public Builder(GetMultiClusterAppUpgradeStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable GetMultiClusterAppUpgradeStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategyRollingUpdate.java index eb660a8fe..f19186f0e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetMultiClusterAppUpgradeStrategyRollingUpdate.java @@ -42,11 +42,13 @@ public Builder(GetMultiClusterAppUpgradeStrategyRollingUpdate defaults) { @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { + this.batchSize = batchSize; return this; } @CustomType.Setter public Builder interval(@Nullable Integer interval) { + this.interval = interval; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceContainerResourceLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceContainerResourceLimit.java index a895edf71..d7e146ba8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceContainerResourceLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceContainerResourceLimit.java @@ -54,21 +54,25 @@ public Builder(GetNamespaceContainerResourceLimit defaults) { @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuota.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuota.java index e380b1b52..259ed79ca 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuota.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuota.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetNamespaceResourceQuotaLimit; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetNamespaceResourceQuota defaults) { @CustomType.Setter public Builder limit(GetNamespaceResourceQuotaLimit limit) { - this.limit = Objects.requireNonNull(limit); + if (limit == null) { + throw new MissingRequiredPropertyException("GetNamespaceResourceQuota", "limit"); + } + this.limit = limit; return this; } public GetNamespaceResourceQuota build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuotaLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuotaLimit.java index 39e84a73f..cb68dfb42 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuotaLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResourceQuotaLimit.java @@ -108,66 +108,79 @@ public Builder(GetNamespaceResourceQuotaLimit defaults) { @CustomType.Setter public Builder configMaps(@Nullable String configMaps) { + this.configMaps = configMaps; return this; } @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder persistentVolumeClaims(@Nullable String persistentVolumeClaims) { + this.persistentVolumeClaims = persistentVolumeClaims; return this; } @CustomType.Setter public Builder pods(@Nullable String pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder replicationControllers(@Nullable String replicationControllers) { + this.replicationControllers = replicationControllers; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } @CustomType.Setter public Builder requestsStorage(@Nullable String requestsStorage) { + this.requestsStorage = requestsStorage; return this; } @CustomType.Setter public Builder secrets(@Nullable String secrets) { + this.secrets = secrets; return this; } @CustomType.Setter public Builder services(@Nullable String services) { + this.services = services; return this; } @CustomType.Setter public Builder servicesLoadBalancers(@Nullable String servicesLoadBalancers) { + this.servicesLoadBalancers = servicesLoadBalancers; return this; } @CustomType.Setter public Builder servicesNodePorts(@Nullable String servicesNodePorts) { + this.servicesNodePorts = servicesNodePorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResult.java index e7622420f..86e073c03 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNamespaceResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetNamespaceContainerResourceLimit; import com.pulumi.rancher2.outputs.GetNamespaceResourceQuota; import java.lang.Object; @@ -128,42 +129,66 @@ public Builder(GetNamespaceResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder containerResourceLimit(GetNamespaceContainerResourceLimit containerResourceLimit) { - this.containerResourceLimit = Objects.requireNonNull(containerResourceLimit); + if (containerResourceLimit == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "containerResourceLimit"); + } + this.containerResourceLimit = containerResourceLimit; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder resourceQuota(GetNamespaceResourceQuota resourceQuota) { - this.resourceQuota = Objects.requireNonNull(resourceQuota); + if (resourceQuota == null) { + throw new MissingRequiredPropertyException("GetNamespaceResult", "resourceQuota"); + } + this.resourceQuota = resourceQuota; return this; } public GetNamespaceResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeDriverResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeDriverResult.java index f79be41ab..3e8bf0e63 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeDriverResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeDriverResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -184,62 +185,98 @@ public Builder(GetNodeDriverResult defaults) { @CustomType.Setter public Builder active(Boolean active) { - this.active = Objects.requireNonNull(active); + if (active == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "active"); + } + this.active = active; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder builtin(Boolean builtin) { - this.builtin = Objects.requireNonNull(builtin); + if (builtin == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "builtin"); + } + this.builtin = builtin; return this; } @CustomType.Setter public Builder checksum(String checksum) { - this.checksum = Objects.requireNonNull(checksum); + if (checksum == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "checksum"); + } + this.checksum = checksum; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder externalId(String externalId) { - this.externalId = Objects.requireNonNull(externalId); + if (externalId == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "externalId"); + } + this.externalId = externalId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder uiUrl(String uiUrl) { - this.uiUrl = Objects.requireNonNull(uiUrl); + if (uiUrl == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "uiUrl"); + } + this.uiUrl = uiUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "url"); + } + this.url = url; return this; } @CustomType.Setter public Builder whitelistDomains(List whitelistDomains) { - this.whitelistDomains = Objects.requireNonNull(whitelistDomains); + if (whitelistDomains == null) { + throw new MissingRequiredPropertyException("GetNodeDriverResult", "whitelistDomains"); + } + this.whitelistDomains = whitelistDomains; return this; } public Builder whitelistDomains(String... whitelistDomains) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolNodeTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolNodeTaint.java index 38a671aea..5aa75b050 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolNodeTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolNodeTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -54,22 +55,32 @@ public Builder(GetNodePoolNodeTaint defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetNodePoolNodeTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder timeAdded(String timeAdded) { - this.timeAdded = Objects.requireNonNull(timeAdded); + if (timeAdded == null) { + throw new MissingRequiredPropertyException("GetNodePoolNodeTaint", "timeAdded"); + } + this.timeAdded = timeAdded; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetNodePoolNodeTaint", "value"); + } + this.value = value; return this; } public GetNodePoolNodeTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolResult.java index d009560f3..7ca5841f3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodePoolResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetNodePoolNodeTaint; import java.lang.Boolean; import java.lang.Integer; @@ -192,52 +193,82 @@ public Builder(GetNodePoolResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder controlPlane(Boolean controlPlane) { - this.controlPlane = Objects.requireNonNull(controlPlane); + if (controlPlane == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "controlPlane"); + } + this.controlPlane = controlPlane; return this; } @CustomType.Setter public Builder deleteNotReadyAfterSecs(Integer deleteNotReadyAfterSecs) { - this.deleteNotReadyAfterSecs = Objects.requireNonNull(deleteNotReadyAfterSecs); + if (deleteNotReadyAfterSecs == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "deleteNotReadyAfterSecs"); + } + this.deleteNotReadyAfterSecs = deleteNotReadyAfterSecs; return this; } @CustomType.Setter public Builder etcd(Boolean etcd) { - this.etcd = Objects.requireNonNull(etcd); + if (etcd == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "etcd"); + } + this.etcd = etcd; return this; } @CustomType.Setter public Builder hostnamePrefix(String hostnamePrefix) { - this.hostnamePrefix = Objects.requireNonNull(hostnamePrefix); + if (hostnamePrefix == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "hostnamePrefix"); + } + this.hostnamePrefix = hostnamePrefix; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeTaints(List nodeTaints) { - this.nodeTaints = Objects.requireNonNull(nodeTaints); + if (nodeTaints == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "nodeTaints"); + } + this.nodeTaints = nodeTaints; return this; } public Builder nodeTaints(GetNodePoolNodeTaint... nodeTaints) { @@ -245,17 +276,26 @@ public Builder nodeTaints(GetNodePoolNodeTaint... nodeTaints) { } @CustomType.Setter public Builder nodeTemplateId(String nodeTemplateId) { - this.nodeTemplateId = Objects.requireNonNull(nodeTemplateId); + if (nodeTemplateId == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "nodeTemplateId"); + } + this.nodeTemplateId = nodeTemplateId; return this; } @CustomType.Setter public Builder quantity(Integer quantity) { - this.quantity = Objects.requireNonNull(quantity); + if (quantity == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "quantity"); + } + this.quantity = quantity; return this; } @CustomType.Setter public Builder worker(Boolean worker) { - this.worker = Objects.requireNonNull(worker); + if (worker == null) { + throw new MissingRequiredPropertyException("GetNodePoolResult", "worker"); + } + this.worker = worker; return this; } public GetNodePoolResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateNodeTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateNodeTaint.java index b31b80c03..9d4d51480 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateNodeTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateNodeTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -54,22 +55,32 @@ public Builder(GetNodeTemplateNodeTaint defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateNodeTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder timeAdded(String timeAdded) { - this.timeAdded = Objects.requireNonNull(timeAdded); + if (timeAdded == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateNodeTaint", "timeAdded"); + } + this.timeAdded = timeAdded; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateNodeTaint", "value"); + } + this.value = value; return this; } public GetNodeTemplateNodeTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateResult.java index 030044598..90ead75ec 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNodeTemplateResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetNodeTemplateNodeTaint; import java.lang.Boolean; import java.lang.Object; @@ -251,32 +252,50 @@ public Builder(GetNodeTemplateResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder cloudCredentialId(String cloudCredentialId) { - this.cloudCredentialId = Objects.requireNonNull(cloudCredentialId); + if (cloudCredentialId == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "cloudCredentialId"); + } + this.cloudCredentialId = cloudCredentialId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "driver"); + } + this.driver = driver; return this; } @CustomType.Setter public Builder engineEnv(Map engineEnv) { - this.engineEnv = Objects.requireNonNull(engineEnv); + if (engineEnv == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineEnv"); + } + this.engineEnv = engineEnv; return this; } @CustomType.Setter public Builder engineInsecureRegistries(List engineInsecureRegistries) { - this.engineInsecureRegistries = Objects.requireNonNull(engineInsecureRegistries); + if (engineInsecureRegistries == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineInsecureRegistries"); + } + this.engineInsecureRegistries = engineInsecureRegistries; return this; } public Builder engineInsecureRegistries(String... engineInsecureRegistries) { @@ -284,22 +303,34 @@ public Builder engineInsecureRegistries(String... engineInsecureRegistries) { } @CustomType.Setter public Builder engineInstallUrl(String engineInstallUrl) { - this.engineInstallUrl = Objects.requireNonNull(engineInstallUrl); + if (engineInstallUrl == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineInstallUrl"); + } + this.engineInstallUrl = engineInstallUrl; return this; } @CustomType.Setter public Builder engineLabel(Map engineLabel) { - this.engineLabel = Objects.requireNonNull(engineLabel); + if (engineLabel == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineLabel"); + } + this.engineLabel = engineLabel; return this; } @CustomType.Setter public Builder engineOpt(Map engineOpt) { - this.engineOpt = Objects.requireNonNull(engineOpt); + if (engineOpt == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineOpt"); + } + this.engineOpt = engineOpt; return this; } @CustomType.Setter public Builder engineRegistryMirrors(List engineRegistryMirrors) { - this.engineRegistryMirrors = Objects.requireNonNull(engineRegistryMirrors); + if (engineRegistryMirrors == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineRegistryMirrors"); + } + this.engineRegistryMirrors = engineRegistryMirrors; return this; } public Builder engineRegistryMirrors(String... engineRegistryMirrors) { @@ -307,27 +338,42 @@ public Builder engineRegistryMirrors(String... engineRegistryMirrors) { } @CustomType.Setter public Builder engineStorageDriver(String engineStorageDriver) { - this.engineStorageDriver = Objects.requireNonNull(engineStorageDriver); + if (engineStorageDriver == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "engineStorageDriver"); + } + this.engineStorageDriver = engineStorageDriver; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder nodeTaints(List nodeTaints) { - this.nodeTaints = Objects.requireNonNull(nodeTaints); + if (nodeTaints == null) { + throw new MissingRequiredPropertyException("GetNodeTemplateResult", "nodeTaints"); + } + this.nodeTaints = nodeTaints; return this; } public Builder nodeTaints(GetNodeTemplateNodeTaint... nodeTaints) { @@ -335,6 +381,7 @@ public Builder nodeTaints(GetNodeTemplateNodeTaint... nodeTaints) { } @CustomType.Setter public Builder useInternalIpAddress(@Nullable Boolean useInternalIpAddress) { + this.useInternalIpAddress = useInternalIpAddress; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierDingtalkConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierDingtalkConfig.java index 5e66604d9..1d25e4cc5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierDingtalkConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierDingtalkConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -48,17 +49,22 @@ public Builder(GetNotifierDingtalkConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder secret(@Nullable String secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetNotifierDingtalkConfig", "url"); + } + this.url = url; return this; } public GetNotifierDingtalkConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierMsteamsConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierMsteamsConfig.java index 38947aefc..6fbeb7b2e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierMsteamsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierMsteamsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -42,12 +43,16 @@ public Builder(GetNotifierMsteamsConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetNotifierMsteamsConfig", "url"); + } + this.url = url; return this; } public GetNotifierMsteamsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierPagerdutyConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierPagerdutyConfig.java index 21768afcb..a16c00138 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierPagerdutyConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierPagerdutyConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -42,12 +43,16 @@ public Builder(GetNotifierPagerdutyConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder serviceKey(String serviceKey) { - this.serviceKey = Objects.requireNonNull(serviceKey); + if (serviceKey == null) { + throw new MissingRequiredPropertyException("GetNotifierPagerdutyConfig", "serviceKey"); + } + this.serviceKey = serviceKey; return this; } public GetNotifierPagerdutyConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierResult.java index 4ca86a42e..126ca530c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetNotifierDingtalkConfig; import com.pulumi.rancher2.outputs.GetNotifierMsteamsConfig; import com.pulumi.rancher2.outputs.GetNotifierPagerdutyConfig; @@ -205,67 +206,102 @@ public Builder(GetNotifierResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder dingtalkConfig(@Nullable GetNotifierDingtalkConfig dingtalkConfig) { + this.dingtalkConfig = dingtalkConfig; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder msteamsConfig(@Nullable GetNotifierMsteamsConfig msteamsConfig) { + this.msteamsConfig = msteamsConfig; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder pagerdutyConfig(GetNotifierPagerdutyConfig pagerdutyConfig) { - this.pagerdutyConfig = Objects.requireNonNull(pagerdutyConfig); + if (pagerdutyConfig == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "pagerdutyConfig"); + } + this.pagerdutyConfig = pagerdutyConfig; return this; } @CustomType.Setter public Builder slackConfig(GetNotifierSlackConfig slackConfig) { - this.slackConfig = Objects.requireNonNull(slackConfig); + if (slackConfig == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "slackConfig"); + } + this.slackConfig = slackConfig; return this; } @CustomType.Setter public Builder smtpConfig(GetNotifierSmtpConfig smtpConfig) { - this.smtpConfig = Objects.requireNonNull(smtpConfig); + if (smtpConfig == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "smtpConfig"); + } + this.smtpConfig = smtpConfig; return this; } @CustomType.Setter public Builder webhookConfig(GetNotifierWebhookConfig webhookConfig) { - this.webhookConfig = Objects.requireNonNull(webhookConfig); + if (webhookConfig == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "webhookConfig"); + } + this.webhookConfig = webhookConfig; return this; } @CustomType.Setter public Builder wechatConfig(GetNotifierWechatConfig wechatConfig) { - this.wechatConfig = Objects.requireNonNull(wechatConfig); + if (wechatConfig == null) { + throw new MissingRequiredPropertyException("GetNotifierResult", "wechatConfig"); + } + this.wechatConfig = wechatConfig; return this; } public GetNotifierResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSlackConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSlackConfig.java index 214356970..0ff9c8994 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSlackConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSlackConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -48,17 +49,24 @@ public Builder(GetNotifierSlackConfig defaults) { @CustomType.Setter public Builder defaultRecipient(String defaultRecipient) { - this.defaultRecipient = Objects.requireNonNull(defaultRecipient); + if (defaultRecipient == null) { + throw new MissingRequiredPropertyException("GetNotifierSlackConfig", "defaultRecipient"); + } + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetNotifierSlackConfig", "url"); + } + this.url = url; return this; } public GetNotifierSlackConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSmtpConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSmtpConfig.java index af4ab38f3..9fe7c8701 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSmtpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierSmtpConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -74,36 +75,51 @@ public Builder(GetNotifierSmtpConfig defaults) { @CustomType.Setter public Builder defaultRecipient(String defaultRecipient) { - this.defaultRecipient = Objects.requireNonNull(defaultRecipient); + if (defaultRecipient == null) { + throw new MissingRequiredPropertyException("GetNotifierSmtpConfig", "defaultRecipient"); + } + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("GetNotifierSmtpConfig", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("GetNotifierSmtpConfig", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder sender(String sender) { - this.sender = Objects.requireNonNull(sender); + if (sender == null) { + throw new MissingRequiredPropertyException("GetNotifierSmtpConfig", "sender"); + } + this.sender = sender; return this; } @CustomType.Setter public Builder tls(@Nullable Boolean tls) { + this.tls = tls; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWebhookConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWebhookConfig.java index fb20270b4..bf9b79346 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWebhookConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWebhookConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -42,12 +43,16 @@ public Builder(GetNotifierWebhookConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("GetNotifierWebhookConfig", "url"); + } + this.url = url; return this; } public GetNotifierWebhookConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWechatConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWechatConfig.java index f90d4ed35..4995a77c0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWechatConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetNotifierWechatConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -66,32 +67,46 @@ public Builder(GetNotifierWechatConfig defaults) { @CustomType.Setter public Builder agent(String agent) { - this.agent = Objects.requireNonNull(agent); + if (agent == null) { + throw new MissingRequiredPropertyException("GetNotifierWechatConfig", "agent"); + } + this.agent = agent; return this; } @CustomType.Setter public Builder corp(String corp) { - this.corp = Objects.requireNonNull(corp); + if (corp == null) { + throw new MissingRequiredPropertyException("GetNotifierWechatConfig", "corp"); + } + this.corp = corp; return this; } @CustomType.Setter public Builder defaultRecipient(String defaultRecipient) { - this.defaultRecipient = Objects.requireNonNull(defaultRecipient); + if (defaultRecipient == null) { + throw new MissingRequiredPropertyException("GetNotifierWechatConfig", "defaultRecipient"); + } + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder recipientType(@Nullable String recipientType) { + this.recipientType = recipientType; return this; } @CustomType.Setter public Builder secret(String secret) { - this.secret = Objects.requireNonNull(secret); + if (secret == null) { + throw new MissingRequiredPropertyException("GetNotifierWechatConfig", "secret"); + } + this.secret = secret; return this; } public GetNotifierWechatConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java index 9456835c7..1ffb5d825 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedCsiDriver.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(GetPodSecurityPolicyTemplateAllowedCsiDriver defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedCsiDriver", "name"); + } + this.name = name; return this; } public GetPodSecurityPolicyTemplateAllowedCsiDriver build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java index 8e739b4ab..8a6ef0e6a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedFlexVolume.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(GetPodSecurityPolicyTemplateAllowedFlexVolume defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedFlexVolume", "driver"); + } + this.driver = driver; return this; } public GetPodSecurityPolicyTemplateAllowedFlexVolume build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedHostPath.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedHostPath.java index f26637925..7cd9f6de9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedHostPath.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateAllowedHostPath.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetPodSecurityPolicyTemplateAllowedHostPath defaults) { @CustomType.Setter public Builder pathPrefix(String pathPrefix) { - this.pathPrefix = Objects.requireNonNull(pathPrefix); + if (pathPrefix == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateAllowedHostPath", "pathPrefix"); + } + this.pathPrefix = pathPrefix; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroup.java index 1edc3f155..fc0c7162c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateFsGroupRange; import java.lang.String; import java.util.List; @@ -44,7 +45,10 @@ public Builder(GetPodSecurityPolicyTemplateFsGroup defaults) { @CustomType.Setter public Builder ranges(List ranges) { - this.ranges = Objects.requireNonNull(ranges); + if (ranges == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroup", "ranges"); + } + this.ranges = ranges; return this; } public Builder ranges(GetPodSecurityPolicyTemplateFsGroupRange... ranges) { @@ -52,6 +56,7 @@ public Builder ranges(GetPodSecurityPolicyTemplateFsGroupRange... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroupRange.java index 2373e887b..8c9d6104e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateFsGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetPodSecurityPolicyTemplateFsGroupRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateFsGroupRange", "min"); + } + this.min = min; return this; } public GetPodSecurityPolicyTemplateFsGroupRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateHostPort.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateHostPort.java index aa8df1354..cf7d40fde 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateHostPort.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateHostPort.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetPodSecurityPolicyTemplateHostPort defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateHostPort", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateHostPort", "min"); + } + this.min = min; return this; } public GetPodSecurityPolicyTemplateHostPort build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateResult.java index a638e1459..88ea84c6c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateAllowedCsiDriver; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateAllowedFlexVolume; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateAllowedHostPath; @@ -226,11 +227,15 @@ public Builder(GetPodSecurityPolicyTemplateResult defaults) { @CustomType.Setter public Builder allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { - this.allowPrivilegeEscalation = Objects.requireNonNull(allowPrivilegeEscalation); + if (allowPrivilegeEscalation == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "allowPrivilegeEscalation"); + } + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @CustomType.Setter public Builder allowedCapabilities(@Nullable List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -239,6 +244,7 @@ public Builder allowedCapabilities(String... allowedCapabilities) { } @CustomType.Setter public Builder allowedCsiDrivers(@Nullable List allowedCsiDrivers) { + this.allowedCsiDrivers = allowedCsiDrivers; return this; } @@ -247,6 +253,7 @@ public Builder allowedCsiDrivers(GetPodSecurityPolicyTemplateAllowedCsiDriver... } @CustomType.Setter public Builder allowedFlexVolumes(@Nullable List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -255,6 +262,7 @@ public Builder allowedFlexVolumes(GetPodSecurityPolicyTemplateAllowedFlexVolume. } @CustomType.Setter public Builder allowedHostPaths(@Nullable List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -263,6 +271,7 @@ public Builder allowedHostPaths(GetPodSecurityPolicyTemplateAllowedHostPath... a } @CustomType.Setter public Builder allowedProcMountTypes(@Nullable List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -271,6 +280,7 @@ public Builder allowedProcMountTypes(String... allowedProcMountTypes) { } @CustomType.Setter public Builder allowedUnsafeSysctls(@Nullable List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -279,11 +289,15 @@ public Builder allowedUnsafeSysctls(String... allowedUnsafeSysctls) { } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder defaultAddCapabilities(@Nullable List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -292,16 +306,21 @@ public Builder defaultAddCapabilities(String... defaultAddCapabilities) { } @CustomType.Setter public Builder defaultAllowPrivilegeEscalation(@Nullable Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder forbiddenSysctls(@Nullable List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -310,27 +329,42 @@ public Builder forbiddenSysctls(String... forbiddenSysctls) { } @CustomType.Setter public Builder fsGroup(GetPodSecurityPolicyTemplateFsGroup fsGroup) { - this.fsGroup = Objects.requireNonNull(fsGroup); + if (fsGroup == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "fsGroup"); + } + this.fsGroup = fsGroup; return this; } @CustomType.Setter public Builder hostIpc(Boolean hostIpc) { - this.hostIpc = Objects.requireNonNull(hostIpc); + if (hostIpc == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "hostIpc"); + } + this.hostIpc = hostIpc; return this; } @CustomType.Setter public Builder hostNetwork(Boolean hostNetwork) { - this.hostNetwork = Objects.requireNonNull(hostNetwork); + if (hostNetwork == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "hostNetwork"); + } + this.hostNetwork = hostNetwork; return this; } @CustomType.Setter public Builder hostPid(Boolean hostPid) { - this.hostPid = Objects.requireNonNull(hostPid); + if (hostPid == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "hostPid"); + } + this.hostPid = hostPid; return this; } @CustomType.Setter public Builder hostPorts(List hostPorts) { - this.hostPorts = Objects.requireNonNull(hostPorts); + if (hostPorts == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "hostPorts"); + } + this.hostPorts = hostPorts; return this; } public Builder hostPorts(GetPodSecurityPolicyTemplateHostPort... hostPorts) { @@ -338,31 +372,47 @@ public Builder hostPorts(GetPodSecurityPolicyTemplateHostPort... hostPorts) { } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder privileged(Boolean privileged) { - this.privileged = Objects.requireNonNull(privileged); + if (privileged == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "privileged"); + } + this.privileged = privileged; return this; } @CustomType.Setter public Builder readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { - this.readOnlyRootFilesystem = Objects.requireNonNull(readOnlyRootFilesystem); + if (readOnlyRootFilesystem == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "readOnlyRootFilesystem"); + } + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @CustomType.Setter public Builder requiredDropCapabilities(@Nullable List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -371,32 +421,46 @@ public Builder requiredDropCapabilities(String... requiredDropCapabilities) { } @CustomType.Setter public Builder runAsGroup(@Nullable GetPodSecurityPolicyTemplateRunAsGroup runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @CustomType.Setter public Builder runAsUser(GetPodSecurityPolicyTemplateRunAsUser runAsUser) { - this.runAsUser = Objects.requireNonNull(runAsUser); + if (runAsUser == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "runAsUser"); + } + this.runAsUser = runAsUser; return this; } @CustomType.Setter public Builder runtimeClass(@Nullable GetPodSecurityPolicyTemplateRuntimeClass runtimeClass) { + this.runtimeClass = runtimeClass; return this; } @CustomType.Setter public Builder seLinux(GetPodSecurityPolicyTemplateSeLinux seLinux) { - this.seLinux = Objects.requireNonNull(seLinux); + if (seLinux == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "seLinux"); + } + this.seLinux = seLinux; return this; } @CustomType.Setter public Builder supplementalGroup(GetPodSecurityPolicyTemplateSupplementalGroup supplementalGroup) { - this.supplementalGroup = Objects.requireNonNull(supplementalGroup); + if (supplementalGroup == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "supplementalGroup"); + } + this.supplementalGroup = supplementalGroup; return this; } @CustomType.Setter public Builder volumes(List volumes) { - this.volumes = Objects.requireNonNull(volumes); + if (volumes == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateResult", "volumes"); + } + this.volumes = volumes; return this; } public Builder volumes(String... volumes) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroup.java index 6a936efe4..5f2262f8e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateRunAsGroupRange; import java.lang.String; import java.util.List; @@ -43,6 +44,7 @@ public Builder(GetPodSecurityPolicyTemplateRunAsGroup defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -51,7 +53,10 @@ public Builder ranges(GetPodSecurityPolicyTemplateRunAsGroupRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroup", "rule"); + } + this.rule = rule; return this; } public GetPodSecurityPolicyTemplateRunAsGroup build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java index a33d1573e..c789aba6a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetPodSecurityPolicyTemplateRunAsGroupRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsGroupRange", "min"); + } + this.min = min; return this; } public GetPodSecurityPolicyTemplateRunAsGroupRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUser.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUser.java index 55f41435a..67ce33716 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUser.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUser.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateRunAsUserRange; import java.lang.String; import java.util.List; @@ -43,6 +44,7 @@ public Builder(GetPodSecurityPolicyTemplateRunAsUser defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -51,7 +53,10 @@ public Builder ranges(GetPodSecurityPolicyTemplateRunAsUserRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUser", "rule"); + } + this.rule = rule; return this; } public GetPodSecurityPolicyTemplateRunAsUser build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUserRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUserRange.java index b4b25eedf..03a3b4e7c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUserRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRunAsUserRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetPodSecurityPolicyTemplateRunAsUserRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRunAsUserRange", "min"); + } + this.min = min; return this; } public GetPodSecurityPolicyTemplateRunAsUserRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRuntimeClass.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRuntimeClass.java index ba0d9c8d6..e0286d94e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRuntimeClass.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateRuntimeClass.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -43,7 +44,10 @@ public Builder(GetPodSecurityPolicyTemplateRuntimeClass defaults) { @CustomType.Setter public Builder allowedRuntimeClassNames(List allowedRuntimeClassNames) { - this.allowedRuntimeClassNames = Objects.requireNonNull(allowedRuntimeClassNames); + if (allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateRuntimeClass", "allowedRuntimeClassNames"); + } + this.allowedRuntimeClassNames = allowedRuntimeClassNames; return this; } public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { @@ -51,6 +55,7 @@ public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { } @CustomType.Setter public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinux.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinux.java index cce555977..0ad82a704 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinux.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinux.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption; import java.lang.String; import java.util.Objects; @@ -43,11 +44,15 @@ public Builder(GetPodSecurityPolicyTemplateSeLinux defaults) { @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSeLinux", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder seLinuxOption(@Nullable GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption seLinuxOption) { + this.seLinuxOption = seLinuxOption; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption.java index 161e073a0..564a47779 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption.java @@ -54,21 +54,25 @@ public Builder(GetPodSecurityPolicyTemplateSeLinuxSeLinuxOption defaults) { @CustomType.Setter public Builder level(@Nullable String level) { + this.level = level; return this; } @CustomType.Setter public Builder role(@Nullable String role) { + this.role = role; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroup.java index eeb0aba04..c1426c163 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetPodSecurityPolicyTemplateSupplementalGroupRange; import java.lang.String; import java.util.List; @@ -44,7 +45,10 @@ public Builder(GetPodSecurityPolicyTemplateSupplementalGroup defaults) { @CustomType.Setter public Builder ranges(List ranges) { - this.ranges = Objects.requireNonNull(ranges); + if (ranges == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroup", "ranges"); + } + this.ranges = ranges; return this; } public Builder ranges(GetPodSecurityPolicyTemplateSupplementalGroupRange... ranges) { @@ -52,6 +56,7 @@ public Builder ranges(GetPodSecurityPolicyTemplateSupplementalGroupRange... rang } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java index 3bd17ed53..3eb8c39d1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPodSecurityPolicyTemplateSupplementalGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -40,12 +41,18 @@ public Builder(GetPodSecurityPolicyTemplateSupplementalGroupRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("GetPodSecurityPolicyTemplateSupplementalGroupRange", "min"); + } + this.min = min; return this; } public GetPodSecurityPolicyTemplateSupplementalGroupRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPrincipalResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPrincipalResult.java index 6c11f1f6f..813898286 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPrincipalResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetPrincipalResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -56,16 +57,23 @@ public Builder(GetPrincipalResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetPrincipalResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetPrincipalResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupRecipient.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupRecipient.java index 37dfd67e2..3fc71430a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupRecipient.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupRecipient.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -55,22 +56,32 @@ public Builder(GetProjectAlertGroupRecipient defaults) { @CustomType.Setter public Builder defaultRecipient(@Nullable Boolean defaultRecipient) { + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupRecipient", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder notifierType(String notifierType) { - this.notifierType = Objects.requireNonNull(notifierType); + if (notifierType == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupRecipient", "notifierType"); + } + this.notifierType = notifierType; return this; } @CustomType.Setter public Builder recipient(String recipient) { - this.recipient = Objects.requireNonNull(recipient); + if (recipient == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupRecipient", "recipient"); + } + this.recipient = recipient; return this; } public GetProjectAlertGroupRecipient build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupResult.java index 8ab79e28e..f275ebb6b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertGroupResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetProjectAlertGroupRecipient; import java.lang.Integer; import java.lang.Object; @@ -157,47 +158,74 @@ public Builder(GetProjectAlertGroupResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - this.groupIntervalSeconds = Objects.requireNonNull(groupIntervalSeconds); + if (groupIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "groupIntervalSeconds"); + } + this.groupIntervalSeconds = groupIntervalSeconds; return this; } @CustomType.Setter public Builder groupWaitSeconds(Integer groupWaitSeconds) { - this.groupWaitSeconds = Objects.requireNonNull(groupWaitSeconds); + if (groupWaitSeconds == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "groupWaitSeconds"); + } + this.groupWaitSeconds = groupWaitSeconds; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder recipients(List recipients) { - this.recipients = Objects.requireNonNull(recipients); + if (recipients == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "recipients"); + } + this.recipients = recipients; return this; } public Builder recipients(GetProjectAlertGroupRecipient... recipients) { @@ -205,7 +233,10 @@ public Builder recipients(GetProjectAlertGroupRecipient... recipients) { } @CustomType.Setter public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - this.repeatIntervalSeconds = Objects.requireNonNull(repeatIntervalSeconds); + if (repeatIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetProjectAlertGroupResult", "repeatIntervalSeconds"); + } + this.repeatIntervalSeconds = repeatIntervalSeconds; return this; } public GetProjectAlertGroupResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleMetricRule.java index 96215f5ec..f2a325448 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleMetricRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleMetricRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -61,27 +62,38 @@ public Builder(GetProjectAlertRuleMetricRule defaults) { @CustomType.Setter public Builder comparison(@Nullable String comparison) { + this.comparison = comparison; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder duration(String duration) { - this.duration = Objects.requireNonNull(duration); + if (duration == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleMetricRule", "duration"); + } + this.duration = duration; return this; } @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleMetricRule", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder thresholdValue(Double thresholdValue) { - this.thresholdValue = Objects.requireNonNull(thresholdValue); + if (thresholdValue == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleMetricRule", "thresholdValue"); + } + this.thresholdValue = thresholdValue; return this; } public GetProjectAlertRuleMetricRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRulePodRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRulePodRule.java index 8bbd269d0..8becc7124 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRulePodRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRulePodRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -55,21 +56,27 @@ public Builder(GetProjectAlertRulePodRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } @CustomType.Setter public Builder podId(String podId) { - this.podId = Objects.requireNonNull(podId); + if (podId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRulePodRule", "podId"); + } + this.podId = podId; return this; } @CustomType.Setter public Builder restartIntervalSeconds(@Nullable Integer restartIntervalSeconds) { + this.restartIntervalSeconds = restartIntervalSeconds; return this; } @CustomType.Setter public Builder restartTimes(@Nullable Integer restartTimes) { + this.restartTimes = restartTimes; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleResult.java index 1badb1179..3b713134c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetProjectAlertRuleMetricRule; import com.pulumi.rancher2.outputs.GetProjectAlertRulePodRule; import com.pulumi.rancher2.outputs.GetProjectAlertRuleWorkloadRule; @@ -216,72 +217,112 @@ public Builder(GetProjectAlertRuleResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder groupIntervalSeconds(Integer groupIntervalSeconds) { - this.groupIntervalSeconds = Objects.requireNonNull(groupIntervalSeconds); + if (groupIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "groupIntervalSeconds"); + } + this.groupIntervalSeconds = groupIntervalSeconds; return this; } @CustomType.Setter public Builder groupWaitSeconds(Integer groupWaitSeconds) { - this.groupWaitSeconds = Objects.requireNonNull(groupWaitSeconds); + if (groupWaitSeconds == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "groupWaitSeconds"); + } + this.groupWaitSeconds = groupWaitSeconds; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder inherited(Boolean inherited) { - this.inherited = Objects.requireNonNull(inherited); + if (inherited == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "inherited"); + } + this.inherited = inherited; return this; } @CustomType.Setter public Builder labels(@Nullable Map labels) { + this.labels = labels; return this; } @CustomType.Setter public Builder metricRule(GetProjectAlertRuleMetricRule metricRule) { - this.metricRule = Objects.requireNonNull(metricRule); + if (metricRule == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "metricRule"); + } + this.metricRule = metricRule; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder podRule(GetProjectAlertRulePodRule podRule) { - this.podRule = Objects.requireNonNull(podRule); + if (podRule == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "podRule"); + } + this.podRule = podRule; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder repeatIntervalSeconds(Integer repeatIntervalSeconds) { - this.repeatIntervalSeconds = Objects.requireNonNull(repeatIntervalSeconds); + if (repeatIntervalSeconds == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "repeatIntervalSeconds"); + } + this.repeatIntervalSeconds = repeatIntervalSeconds; return this; } @CustomType.Setter public Builder severity(String severity) { - this.severity = Objects.requireNonNull(severity); + if (severity == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "severity"); + } + this.severity = severity; return this; } @CustomType.Setter public Builder workloadRule(GetProjectAlertRuleWorkloadRule workloadRule) { - this.workloadRule = Objects.requireNonNull(workloadRule); + if (workloadRule == null) { + throw new MissingRequiredPropertyException("GetProjectAlertRuleResult", "workloadRule"); + } + this.workloadRule = workloadRule; return this; } public GetProjectAlertRuleResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleWorkloadRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleWorkloadRule.java index c220d6c9a..e9a411ac6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleWorkloadRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectAlertRuleWorkloadRule.java @@ -51,16 +51,19 @@ public Builder(GetProjectAlertRuleWorkloadRule defaults) { @CustomType.Setter public Builder availablePercentage(@Nullable Integer availablePercentage) { + this.availablePercentage = availablePercentage; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder workloadId(@Nullable String workloadId) { + this.workloadId = workloadId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectContainerResourceLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectContainerResourceLimit.java index 7893d74d6..a34c60135 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectContainerResourceLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectContainerResourceLimit.java @@ -54,21 +54,25 @@ public Builder(GetProjectContainerResourceLimit defaults) { @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuota.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuota.java index b98688132..51043dbc7 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuota.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuota.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetProjectResourceQuotaNamespaceDefaultLimit; import com.pulumi.rancher2.outputs.GetProjectResourceQuotaProjectLimit; import java.util.Objects; @@ -41,12 +42,18 @@ public Builder(GetProjectResourceQuota defaults) { @CustomType.Setter public Builder namespaceDefaultLimit(GetProjectResourceQuotaNamespaceDefaultLimit namespaceDefaultLimit) { - this.namespaceDefaultLimit = Objects.requireNonNull(namespaceDefaultLimit); + if (namespaceDefaultLimit == null) { + throw new MissingRequiredPropertyException("GetProjectResourceQuota", "namespaceDefaultLimit"); + } + this.namespaceDefaultLimit = namespaceDefaultLimit; return this; } @CustomType.Setter public Builder projectLimit(GetProjectResourceQuotaProjectLimit projectLimit) { - this.projectLimit = Objects.requireNonNull(projectLimit); + if (projectLimit == null) { + throw new MissingRequiredPropertyException("GetProjectResourceQuota", "projectLimit"); + } + this.projectLimit = projectLimit; return this; } public GetProjectResourceQuota build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaNamespaceDefaultLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaNamespaceDefaultLimit.java index 5c519a749..b880e98dc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaNamespaceDefaultLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaNamespaceDefaultLimit.java @@ -108,66 +108,79 @@ public Builder(GetProjectResourceQuotaNamespaceDefaultLimit defaults) { @CustomType.Setter public Builder configMaps(@Nullable String configMaps) { + this.configMaps = configMaps; return this; } @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder persistentVolumeClaims(@Nullable String persistentVolumeClaims) { + this.persistentVolumeClaims = persistentVolumeClaims; return this; } @CustomType.Setter public Builder pods(@Nullable String pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder replicationControllers(@Nullable String replicationControllers) { + this.replicationControllers = replicationControllers; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } @CustomType.Setter public Builder requestsStorage(@Nullable String requestsStorage) { + this.requestsStorage = requestsStorage; return this; } @CustomType.Setter public Builder secrets(@Nullable String secrets) { + this.secrets = secrets; return this; } @CustomType.Setter public Builder services(@Nullable String services) { + this.services = services; return this; } @CustomType.Setter public Builder servicesLoadBalancers(@Nullable String servicesLoadBalancers) { + this.servicesLoadBalancers = servicesLoadBalancers; return this; } @CustomType.Setter public Builder servicesNodePorts(@Nullable String servicesNodePorts) { + this.servicesNodePorts = servicesNodePorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaProjectLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaProjectLimit.java index f186b98c9..0347db7c1 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaProjectLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResourceQuotaProjectLimit.java @@ -108,66 +108,79 @@ public Builder(GetProjectResourceQuotaProjectLimit defaults) { @CustomType.Setter public Builder configMaps(@Nullable String configMaps) { + this.configMaps = configMaps; return this; } @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder persistentVolumeClaims(@Nullable String persistentVolumeClaims) { + this.persistentVolumeClaims = persistentVolumeClaims; return this; } @CustomType.Setter public Builder pods(@Nullable String pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder replicationControllers(@Nullable String replicationControllers) { + this.replicationControllers = replicationControllers; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } @CustomType.Setter public Builder requestsStorage(@Nullable String requestsStorage) { + this.requestsStorage = requestsStorage; return this; } @CustomType.Setter public Builder secrets(@Nullable String secrets) { + this.secrets = secrets; return this; } @CustomType.Setter public Builder services(@Nullable String services) { + this.services = services; return this; } @CustomType.Setter public Builder servicesLoadBalancers(@Nullable String servicesLoadBalancers) { + this.servicesLoadBalancers = servicesLoadBalancers; return this; } @CustomType.Setter public Builder servicesNodePorts(@Nullable String servicesNodePorts) { + this.servicesNodePorts = servicesNodePorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResult.java index 105106041..980f18682 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetProjectContainerResourceLimit; import com.pulumi.rancher2.outputs.GetProjectResourceQuota; import java.lang.Boolean; @@ -171,57 +172,90 @@ public Builder(GetProjectResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder containerResourceLimit(GetProjectContainerResourceLimit containerResourceLimit) { - this.containerResourceLimit = Objects.requireNonNull(containerResourceLimit); + if (containerResourceLimit == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "containerResourceLimit"); + } + this.containerResourceLimit = containerResourceLimit; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder enableProjectMonitoring(Boolean enableProjectMonitoring) { - this.enableProjectMonitoring = Objects.requireNonNull(enableProjectMonitoring); + if (enableProjectMonitoring == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "enableProjectMonitoring"); + } + this.enableProjectMonitoring = enableProjectMonitoring; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder podSecurityPolicyTemplateId(String podSecurityPolicyTemplateId) { - this.podSecurityPolicyTemplateId = Objects.requireNonNull(podSecurityPolicyTemplateId); + if (podSecurityPolicyTemplateId == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "podSecurityPolicyTemplateId"); + } + this.podSecurityPolicyTemplateId = podSecurityPolicyTemplateId; return this; } @CustomType.Setter public Builder resourceQuota(GetProjectResourceQuota resourceQuota) { - this.resourceQuota = Objects.requireNonNull(resourceQuota); + if (resourceQuota == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "resourceQuota"); + } + this.resourceQuota = resourceQuota; return this; } @CustomType.Setter public Builder uuid(String uuid) { - this.uuid = Objects.requireNonNull(uuid); + if (uuid == null) { + throw new MissingRequiredPropertyException("GetProjectResult", "uuid"); + } + this.uuid = uuid; return this; } public GetProjectResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectRoleTemplateBindingResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectRoleTemplateBindingResult.java index 710d2f556..f54e80085 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectRoleTemplateBindingResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetProjectRoleTemplateBindingResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -146,52 +147,82 @@ public Builder(GetProjectRoleTemplateBindingResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder groupId(String groupId) { - this.groupId = Objects.requireNonNull(groupId); + if (groupId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "groupId"); + } + this.groupId = groupId; return this; } @CustomType.Setter public Builder groupPrincipalId(String groupPrincipalId) { - this.groupPrincipalId = Objects.requireNonNull(groupPrincipalId); + if (groupPrincipalId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "groupPrincipalId"); + } + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder roleTemplateId(String roleTemplateId) { - this.roleTemplateId = Objects.requireNonNull(roleTemplateId); + if (roleTemplateId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "roleTemplateId"); + } + this.roleTemplateId = roleTemplateId; return this; } @CustomType.Setter public Builder userId(String userId) { - this.userId = Objects.requireNonNull(userId); + if (userId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "userId"); + } + this.userId = userId; return this; } @CustomType.Setter public Builder userPrincipalId(String userPrincipalId) { - this.userPrincipalId = Objects.requireNonNull(userPrincipalId); + if (userPrincipalId == null) { + throw new MissingRequiredPropertyException("GetProjectRoleTemplateBindingResult", "userPrincipalId"); + } + this.userPrincipalId = userPrincipalId; return this; } public GetProjectRoleTemplateBindingResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryRegistry.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryRegistry.java index 335536776..c62258469 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryRegistry.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -48,16 +49,21 @@ public Builder(GetRegistryRegistry defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("GetRegistryRegistry", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryResult.java index bdc7e11d2..1a851da9c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRegistryResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetRegistryRegistry; import java.lang.Object; import java.lang.String; @@ -122,42 +123,64 @@ public Builder(GetRegistryResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(@Nullable String namespaceId) { + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder registries(List registries) { - this.registries = Objects.requireNonNull(registries); + if (registries == null) { + throw new MissingRequiredPropertyException("GetRegistryResult", "registries"); + } + this.registries = registries; return this; } public Builder registries(GetRegistryRegistry... registries) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java index 07e210967..3c41d140e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetRoleTempalteRule; import java.lang.Boolean; import java.lang.Object; @@ -213,67 +214,106 @@ public Builder(GetRoleTempalteResult defaults) { @CustomType.Setter public Builder administrative(Boolean administrative) { - this.administrative = Objects.requireNonNull(administrative); + if (administrative == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "administrative"); + } + this.administrative = administrative; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder builtin(Boolean builtin) { - this.builtin = Objects.requireNonNull(builtin); + if (builtin == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "builtin"); + } + this.builtin = builtin; return this; } @CustomType.Setter public Builder context(String context) { - this.context = Objects.requireNonNull(context); + if (context == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "context"); + } + this.context = context; return this; } @CustomType.Setter public Builder defaultRole(Boolean defaultRole) { - this.defaultRole = Objects.requireNonNull(defaultRole); + if (defaultRole == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "defaultRole"); + } + this.defaultRole = defaultRole; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder external(Boolean external) { - this.external = Objects.requireNonNull(external); + if (external == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "external"); + } + this.external = external; return this; } @CustomType.Setter public Builder hidden(Boolean hidden) { - this.hidden = Objects.requireNonNull(hidden); + if (hidden == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "hidden"); + } + this.hidden = hidden; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder locked(Boolean locked) { - this.locked = Objects.requireNonNull(locked); + if (locked == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "locked"); + } + this.locked = locked; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder roleTemplateIds(List roleTemplateIds) { - this.roleTemplateIds = Objects.requireNonNull(roleTemplateIds); + if (roleTemplateIds == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "roleTemplateIds"); + } + this.roleTemplateIds = roleTemplateIds; return this; } public Builder roleTemplateIds(String... roleTemplateIds) { @@ -281,7 +321,10 @@ public Builder roleTemplateIds(String... roleTemplateIds) { } @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("GetRoleTempalteResult", "rules"); + } + this.rules = rules; return this; } public Builder rules(GetRoleTempalteRule... rules) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java index 83dbde174..46b2b114a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTempalteRule.java @@ -60,6 +60,7 @@ public Builder(GetRoleTempalteRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -68,6 +69,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceUrls(@Nullable List nonResourceUrls) { + this.nonResourceUrls = nonResourceUrls; return this; } @@ -76,6 +78,7 @@ public Builder nonResourceUrls(String... nonResourceUrls) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -84,6 +87,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -92,6 +96,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateResult.java index 1ed41e465..3e218a232 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.GetRoleTemplateRule; import java.lang.Boolean; import java.lang.Object; @@ -213,67 +214,106 @@ public Builder(GetRoleTemplateResult defaults) { @CustomType.Setter public Builder administrative(Boolean administrative) { - this.administrative = Objects.requireNonNull(administrative); + if (administrative == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "administrative"); + } + this.administrative = administrative; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder builtin(Boolean builtin) { - this.builtin = Objects.requireNonNull(builtin); + if (builtin == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "builtin"); + } + this.builtin = builtin; return this; } @CustomType.Setter public Builder context(String context) { - this.context = Objects.requireNonNull(context); + if (context == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "context"); + } + this.context = context; return this; } @CustomType.Setter public Builder defaultRole(Boolean defaultRole) { - this.defaultRole = Objects.requireNonNull(defaultRole); + if (defaultRole == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "defaultRole"); + } + this.defaultRole = defaultRole; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder external(Boolean external) { - this.external = Objects.requireNonNull(external); + if (external == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "external"); + } + this.external = external; return this; } @CustomType.Setter public Builder hidden(Boolean hidden) { - this.hidden = Objects.requireNonNull(hidden); + if (hidden == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "hidden"); + } + this.hidden = hidden; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder locked(Boolean locked) { - this.locked = Objects.requireNonNull(locked); + if (locked == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "locked"); + } + this.locked = locked; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder roleTemplateIds(List roleTemplateIds) { - this.roleTemplateIds = Objects.requireNonNull(roleTemplateIds); + if (roleTemplateIds == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "roleTemplateIds"); + } + this.roleTemplateIds = roleTemplateIds; return this; } public Builder roleTemplateIds(String... roleTemplateIds) { @@ -281,7 +321,10 @@ public Builder roleTemplateIds(String... roleTemplateIds) { } @CustomType.Setter public Builder rules(List rules) { - this.rules = Objects.requireNonNull(rules); + if (rules == null) { + throw new MissingRequiredPropertyException("GetRoleTemplateResult", "rules"); + } + this.rules = rules; return this; } public Builder rules(GetRoleTemplateRule... rules) { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateRule.java index a8d1cf364..f7e926f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetRoleTemplateRule.java @@ -60,6 +60,7 @@ public Builder(GetRoleTemplateRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -68,6 +69,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceUrls(@Nullable List nonResourceUrls) { + this.nonResourceUrls = nonResourceUrls; return this; } @@ -76,6 +78,7 @@ public Builder nonResourceUrls(String... nonResourceUrls) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -84,6 +87,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -92,6 +96,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretResult.java index b6eb171e0..3053662d2 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Object; import java.lang.String; import java.util.Map; @@ -120,42 +121,64 @@ public Builder(GetSecretResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder data(Map data) { - this.data = Objects.requireNonNull(data); + if (data == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "data"); + } + this.data = data; return this; } @CustomType.Setter public Builder description(String description) { - this.description = Objects.requireNonNull(description); + if (description == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "description"); + } + this.description = description; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespaceId(@Nullable String namespaceId) { + this.namespaceId = namespaceId; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("GetSecretResult", "projectId"); + } + this.projectId = projectId; return this; } public GetSecretResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretV2Result.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretV2Result.java index a725249f9..fe5d29c78 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretV2Result.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSecretV2Result.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -149,52 +150,80 @@ public Builder(GetSecretV2Result defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder data(Map data) { - this.data = Objects.requireNonNull(data); + if (data == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "data"); + } + this.data = data; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder immutable(Boolean immutable) { - this.immutable = Objects.requireNonNull(immutable); + if (immutable == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "immutable"); + } + this.immutable = immutable; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder namespace(@Nullable String namespace) { + this.namespace = namespace; return this; } @CustomType.Setter public Builder resourceVersion(String resourceVersion) { - this.resourceVersion = Objects.requireNonNull(resourceVersion); + if (resourceVersion == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "resourceVersion"); + } + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder type(String type) { - this.type = Objects.requireNonNull(type); + if (type == null) { + throw new MissingRequiredPropertyException("GetSecretV2Result", "type"); + } + this.type = type; return this; } public GetSecretV2Result build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSettingResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSettingResult.java index 3f13bc7f0..2e2d962d8 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSettingResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetSettingResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -62,17 +63,26 @@ public Builder(GetSettingResult defaults) { @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetSettingResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetSettingResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("GetSettingResult", "value"); + } + this.value = value; return this; } public GetSettingResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetStorageClassV2Result.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetStorageClassV2Result.java index 4725900d3..26cf2c657 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetStorageClassV2Result.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetStorageClassV2Result.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -184,37 +185,58 @@ public Builder(GetStorageClassV2Result defaults) { @CustomType.Setter public Builder allowVolumeExpansion(Boolean allowVolumeExpansion) { - this.allowVolumeExpansion = Objects.requireNonNull(allowVolumeExpansion); + if (allowVolumeExpansion == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "allowVolumeExpansion"); + } + this.allowVolumeExpansion = allowVolumeExpansion; return this; } @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder clusterId(String clusterId) { - this.clusterId = Objects.requireNonNull(clusterId); + if (clusterId == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "clusterId"); + } + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder k8sProvisioner(String k8sProvisioner) { - this.k8sProvisioner = Objects.requireNonNull(k8sProvisioner); + if (k8sProvisioner == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "k8sProvisioner"); + } + this.k8sProvisioner = k8sProvisioner; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder mountOptions(List mountOptions) { - this.mountOptions = Objects.requireNonNull(mountOptions); + if (mountOptions == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "mountOptions"); + } + this.mountOptions = mountOptions; return this; } public Builder mountOptions(String... mountOptions) { @@ -222,27 +244,42 @@ public Builder mountOptions(String... mountOptions) { } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder parameters(Map parameters) { - this.parameters = Objects.requireNonNull(parameters); + if (parameters == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "parameters"); + } + this.parameters = parameters; return this; } @CustomType.Setter public Builder reclaimPolicy(String reclaimPolicy) { - this.reclaimPolicy = Objects.requireNonNull(reclaimPolicy); + if (reclaimPolicy == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "reclaimPolicy"); + } + this.reclaimPolicy = reclaimPolicy; return this; } @CustomType.Setter public Builder resourceVersion(String resourceVersion) { - this.resourceVersion = Objects.requireNonNull(resourceVersion); + if (resourceVersion == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "resourceVersion"); + } + this.resourceVersion = resourceVersion; return this; } @CustomType.Setter public Builder volumeBindingMode(String volumeBindingMode) { - this.volumeBindingMode = Objects.requireNonNull(volumeBindingMode); + if (volumeBindingMode == null) { + throw new MissingRequiredPropertyException("GetStorageClassV2Result", "volumeBindingMode"); + } + this.volumeBindingMode = volumeBindingMode; return this; } public GetStorageClassV2Result build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetUserResult.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetUserResult.java index 64a952aaf..ebe3f4b0c 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetUserResult.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GetUserResult.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -130,37 +131,56 @@ public Builder(GetUserResult defaults) { @CustomType.Setter public Builder annotations(Map annotations) { - this.annotations = Objects.requireNonNull(annotations); + if (annotations == null) { + throw new MissingRequiredPropertyException("GetUserResult", "annotations"); + } + this.annotations = annotations; return this; } @CustomType.Setter public Builder enabled(Boolean enabled) { - this.enabled = Objects.requireNonNull(enabled); + if (enabled == null) { + throw new MissingRequiredPropertyException("GetUserResult", "enabled"); + } + this.enabled = enabled; return this; } @CustomType.Setter public Builder id(String id) { - this.id = Objects.requireNonNull(id); + if (id == null) { + throw new MissingRequiredPropertyException("GetUserResult", "id"); + } + this.id = id; return this; } @CustomType.Setter public Builder isExternal(@Nullable Boolean isExternal) { + this.isExternal = isExternal; return this; } @CustomType.Setter public Builder labels(Map labels) { - this.labels = Objects.requireNonNull(labels); + if (labels == null) { + throw new MissingRequiredPropertyException("GetUserResult", "labels"); + } + this.labels = labels; return this; } @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("GetUserResult", "name"); + } + this.name = name; return this; } @CustomType.Setter public Builder principalIds(List principalIds) { - this.principalIds = Objects.requireNonNull(principalIds); + if (principalIds == null) { + throw new MissingRequiredPropertyException("GetUserResult", "principalIds"); + } + this.principalIds = principalIds; return this; } public Builder principalIds(String... principalIds) { @@ -168,7 +188,10 @@ public Builder principalIds(String... principalIds) { } @CustomType.Setter public Builder username(String username) { - this.username = Objects.requireNonNull(username); + if (username == null) { + throw new MissingRequiredPropertyException("GetUserResult", "username"); + } + this.username = username; return this; } public GetUserResult build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderAlidnsConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderAlidnsConfig.java index cc32b96a3..4251998ac 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderAlidnsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderAlidnsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(GlobalDnsProviderAlidnsConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderAlidnsConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderAlidnsConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } public GlobalDnsProviderAlidnsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderCloudflareConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderCloudflareConfig.java index dd05fb24a..cdcb0d168 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderCloudflareConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderCloudflareConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -73,16 +74,23 @@ public Builder(GlobalDnsProviderCloudflareConfig defaults) { @CustomType.Setter public Builder apiEmail(String apiEmail) { - this.apiEmail = Objects.requireNonNull(apiEmail); + if (apiEmail == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderCloudflareConfig", "apiEmail"); + } + this.apiEmail = apiEmail; return this; } @CustomType.Setter public Builder apiKey(String apiKey) { - this.apiKey = Objects.requireNonNull(apiKey); + if (apiKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderCloudflareConfig", "apiKey"); + } + this.apiKey = apiKey; return this; } @CustomType.Setter public Builder proxySetting(@Nullable Boolean proxySetting) { + this.proxySetting = proxySetting; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderRoute53Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderRoute53Config.java index f582ee474..0c44e77d4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderRoute53Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalDnsProviderRoute53Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -114,31 +115,41 @@ public Builder(GlobalDnsProviderRoute53Config defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderRoute53Config", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder credentialsPath(@Nullable String credentialsPath) { + this.credentialsPath = credentialsPath; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder roleArn(@Nullable String roleArn) { + this.roleArn = roleArn; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("GlobalDnsProviderRoute53Config", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder zoneType(@Nullable String zoneType) { + this.zoneType = zoneType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalRoleRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalRoleRule.java index 21c5f452d..bd94b8a58 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalRoleRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/GlobalRoleRule.java @@ -100,6 +100,7 @@ public Builder(GlobalRoleRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +109,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceUrls(@Nullable List nonResourceUrls) { + this.nonResourceUrls = nonResourceUrls; return this; } @@ -116,6 +118,7 @@ public Builder nonResourceUrls(String... nonResourceUrls) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +127,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,6 +136,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2Amazonec2Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2Amazonec2Config.java index 35bf8fede..33cd9ca22 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2Amazonec2Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2Amazonec2Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -492,71 +493,87 @@ public Builder(MachineConfigV2Amazonec2Config defaults) { @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder ami(String ami) { - this.ami = Objects.requireNonNull(ami); + if (ami == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2Config", "ami"); + } + this.ami = ami; return this; } @CustomType.Setter public Builder blockDurationMinutes(@Nullable String blockDurationMinutes) { + this.blockDurationMinutes = blockDurationMinutes; return this; } @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { + this.deviceName = deviceName; return this; } @CustomType.Setter public Builder encryptEbsVolume(@Nullable Boolean encryptEbsVolume) { + this.encryptEbsVolume = encryptEbsVolume; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder httpEndpoint(@Nullable String httpEndpoint) { + this.httpEndpoint = httpEndpoint; return this; } @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { + this.httpTokens = httpTokens; return this; } @CustomType.Setter public Builder iamInstanceProfile(@Nullable String iamInstanceProfile) { + this.iamInstanceProfile = iamInstanceProfile; return this; } @CustomType.Setter public Builder insecureTransport(@Nullable Boolean insecureTransport) { + this.insecureTransport = insecureTransport; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder kmsKey(@Nullable String kmsKey) { + this.kmsKey = kmsKey; return this; } @CustomType.Setter public Builder monitoring(@Nullable Boolean monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder openPorts(@Nullable List openPorts) { + this.openPorts = openPorts; return this; } @@ -565,42 +582,54 @@ public Builder openPorts(String... openPorts) { } @CustomType.Setter public Builder privateAddressOnly(@Nullable Boolean privateAddressOnly) { + this.privateAddressOnly = privateAddressOnly; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2Config", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder requestSpotInstance(@Nullable Boolean requestSpotInstance) { + this.requestSpotInstance = requestSpotInstance; return this; } @CustomType.Setter public Builder retries(@Nullable String retries) { + this.retries = retries; return this; } @CustomType.Setter public Builder rootSize(@Nullable String rootSize) { + this.rootSize = rootSize; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder securityGroupReadonly(@Nullable Boolean securityGroupReadonly) { + this.securityGroupReadonly = securityGroupReadonly; return this; } @CustomType.Setter public Builder securityGroups(List securityGroups) { - this.securityGroups = Objects.requireNonNull(securityGroups); + if (securityGroups == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2Config", "securityGroups"); + } + this.securityGroups = securityGroups; return this; } public Builder securityGroups(String... securityGroups) { @@ -608,62 +637,80 @@ public Builder securityGroups(String... securityGroups) { } @CustomType.Setter public Builder sessionToken(@Nullable String sessionToken) { + this.sessionToken = sessionToken; return this; } @CustomType.Setter public Builder spotPrice(@Nullable String spotPrice) { + this.spotPrice = spotPrice; return this; } @CustomType.Setter public Builder sshKeyContents(@Nullable String sshKeyContents) { + this.sshKeyContents = sshKeyContents; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder subnetId(String subnetId) { - this.subnetId = Objects.requireNonNull(subnetId); + if (subnetId == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2Config", "subnetId"); + } + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder useEbsOptimizedInstance(@Nullable Boolean useEbsOptimizedInstance) { + this.useEbsOptimizedInstance = useEbsOptimizedInstance; return this; } @CustomType.Setter public Builder usePrivateAddress(@Nullable Boolean usePrivateAddress) { + this.usePrivateAddress = usePrivateAddress; return this; } @CustomType.Setter public Builder userdata(@Nullable String userdata) { + this.userdata = userdata; return this; } @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { + this.volumeType = volumeType; return this; } @CustomType.Setter public Builder vpcId(String vpcId) { - this.vpcId = Objects.requireNonNull(vpcId); + if (vpcId == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2Config", "vpcId"); + } + this.vpcId = vpcId; return this; } @CustomType.Setter public Builder zone(String zone) { - this.zone = Objects.requireNonNull(zone); + if (zone == null) { + throw new MissingRequiredPropertyException("MachineConfigV2Amazonec2Config", "zone"); + } + this.zone = zone; return this; } public MachineConfigV2Amazonec2Config build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2AzureConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2AzureConfig.java index c93539eef..6f15127e6 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2AzureConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2AzureConfig.java @@ -478,86 +478,103 @@ public Builder(MachineConfigV2AzureConfig defaults) { @CustomType.Setter public Builder acceleratedNetworking(@Nullable Boolean acceleratedNetworking) { + this.acceleratedNetworking = acceleratedNetworking; return this; } @CustomType.Setter public Builder availabilitySet(@Nullable String availabilitySet) { + this.availabilitySet = availabilitySet; return this; } @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { + this.availabilityZone = availabilityZone; return this; } @CustomType.Setter public Builder clientId(@Nullable String clientId) { + this.clientId = clientId; return this; } @CustomType.Setter public Builder clientSecret(@Nullable String clientSecret) { + this.clientSecret = clientSecret; return this; } @CustomType.Setter public Builder customData(@Nullable String customData) { + this.customData = customData; return this; } @CustomType.Setter public Builder diskSize(@Nullable String diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder dns(@Nullable String dns) { + this.dns = dns; return this; } @CustomType.Setter public Builder dockerPort(@Nullable String dockerPort) { + this.dockerPort = dockerPort; return this; } @CustomType.Setter public Builder environment(@Nullable String environment) { + this.environment = environment; return this; } @CustomType.Setter public Builder faultDomainCount(@Nullable String faultDomainCount) { + this.faultDomainCount = faultDomainCount; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; return this; } @CustomType.Setter public Builder managedDisks(@Nullable Boolean managedDisks) { + this.managedDisks = managedDisks; return this; } @CustomType.Setter public Builder noPublicIp(@Nullable Boolean noPublicIp) { + this.noPublicIp = noPublicIp; return this; } @CustomType.Setter public Builder nsg(@Nullable String nsg) { + this.nsg = nsg; return this; } @CustomType.Setter public Builder openPorts(@Nullable List openPorts) { + this.openPorts = openPorts; return this; } @@ -566,81 +583,97 @@ public Builder openPorts(String... openPorts) { } @CustomType.Setter public Builder privateAddressOnly(@Nullable Boolean privateAddressOnly) { + this.privateAddressOnly = privateAddressOnly; return this; } @CustomType.Setter public Builder privateIpAddress(@Nullable String privateIpAddress) { + this.privateIpAddress = privateIpAddress; return this; } @CustomType.Setter public Builder resourceGroup(@Nullable String resourceGroup) { + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder size(@Nullable String size) { + this.size = size; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder staticPublicIp(@Nullable Boolean staticPublicIp) { + this.staticPublicIp = staticPublicIp; return this; } @CustomType.Setter public Builder storageType(@Nullable String storageType) { + this.storageType = storageType; return this; } @CustomType.Setter public Builder subnet(@Nullable String subnet) { + this.subnet = subnet; return this; } @CustomType.Setter public Builder subnetPrefix(@Nullable String subnetPrefix) { + this.subnetPrefix = subnetPrefix; return this; } @CustomType.Setter public Builder subscriptionId(@Nullable String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder tenantId(@Nullable String tenantId) { + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder updateDomainCount(@Nullable String updateDomainCount) { + this.updateDomainCount = updateDomainCount; return this; } @CustomType.Setter public Builder usePrivateIp(@Nullable Boolean usePrivateIp) { + this.usePrivateIp = usePrivateIp; return this; } @CustomType.Setter public Builder usePublicIpStandardSku(@Nullable Boolean usePublicIpStandardSku) { + this.usePublicIpStandardSku = usePublicIpStandardSku; return this; } @CustomType.Setter public Builder vnet(@Nullable String vnet) { + this.vnet = vnet; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2DigitaloceanConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2DigitaloceanConfig.java index 79535f2c5..87996a649 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2DigitaloceanConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2DigitaloceanConfig.java @@ -227,71 +227,85 @@ public Builder(MachineConfigV2DigitaloceanConfig defaults) { @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { + this.accessToken = accessToken; return this; } @CustomType.Setter public Builder backups(@Nullable Boolean backups) { + this.backups = backups; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder ipv6(@Nullable Boolean ipv6) { + this.ipv6 = ipv6; return this; } @CustomType.Setter public Builder monitoring(@Nullable Boolean monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder privateNetworking(@Nullable Boolean privateNetworking) { + this.privateNetworking = privateNetworking; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder size(@Nullable String size) { + this.size = size; return this; } @CustomType.Setter public Builder sshKeyContents(@Nullable String sshKeyContents) { + this.sshKeyContents = sshKeyContents; return this; } @CustomType.Setter public Builder sshKeyFingerprint(@Nullable String sshKeyFingerprint) { + this.sshKeyFingerprint = sshKeyFingerprint; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder userdata(@Nullable String userdata) { + this.userdata = userdata; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2HarvesterConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2HarvesterConfig.java index 1f02112f9..240c7759b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2HarvesterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2HarvesterConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -280,77 +281,96 @@ public Builder(MachineConfigV2HarvesterConfig defaults) { @CustomType.Setter public Builder cpuCount(@Nullable String cpuCount) { + this.cpuCount = cpuCount; return this; } @CustomType.Setter public Builder diskBus(@Nullable String diskBus) { + this.diskBus = diskBus; return this; } @CustomType.Setter public Builder diskInfo(@Nullable String diskInfo) { + this.diskInfo = diskInfo; return this; } @CustomType.Setter public Builder diskSize(@Nullable String diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder imageName(@Nullable String imageName) { + this.imageName = imageName; return this; } @CustomType.Setter public Builder memorySize(@Nullable String memorySize) { + this.memorySize = memorySize; return this; } @CustomType.Setter public Builder networkData(@Nullable String networkData) { + this.networkData = networkData; return this; } @CustomType.Setter public Builder networkInfo(@Nullable String networkInfo) { + this.networkInfo = networkInfo; return this; } @CustomType.Setter public Builder networkModel(@Nullable String networkModel) { + this.networkModel = networkModel; return this; } @CustomType.Setter public Builder networkName(@Nullable String networkName) { + this.networkName = networkName; return this; } @CustomType.Setter public Builder sshPassword(@Nullable String sshPassword) { + this.sshPassword = sshPassword; return this; } @CustomType.Setter public Builder sshUser(String sshUser) { - this.sshUser = Objects.requireNonNull(sshUser); + if (sshUser == null) { + throw new MissingRequiredPropertyException("MachineConfigV2HarvesterConfig", "sshUser"); + } + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder userData(@Nullable String userData) { + this.userData = userData; return this; } @CustomType.Setter public Builder vmAffinity(@Nullable String vmAffinity) { + this.vmAffinity = vmAffinity; return this; } @CustomType.Setter public Builder vmNamespace(String vmNamespace) { - this.vmNamespace = Objects.requireNonNull(vmNamespace); + if (vmNamespace == null) { + throw new MissingRequiredPropertyException("MachineConfigV2HarvesterConfig", "vmNamespace"); + } + this.vmNamespace = vmNamespace; return this; } public MachineConfigV2HarvesterConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2LinodeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2LinodeConfig.java index 336e10b44..7c3a92be4 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2LinodeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2LinodeConfig.java @@ -255,81 +255,97 @@ public Builder(MachineConfigV2LinodeConfig defaults) { @CustomType.Setter public Builder authorizedUsers(@Nullable String authorizedUsers) { + this.authorizedUsers = authorizedUsers; return this; } @CustomType.Setter public Builder createPrivateIp(@Nullable Boolean createPrivateIp) { + this.createPrivateIp = createPrivateIp; return this; } @CustomType.Setter public Builder dockerPort(@Nullable String dockerPort) { + this.dockerPort = dockerPort; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder label(@Nullable String label) { + this.label = label; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder rootPass(@Nullable String rootPass) { + this.rootPass = rootPass; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder stackscript(@Nullable String stackscript) { + this.stackscript = stackscript; return this; } @CustomType.Setter public Builder stackscriptData(@Nullable String stackscriptData) { + this.stackscriptData = stackscriptData; return this; } @CustomType.Setter public Builder swapSize(@Nullable String swapSize) { + this.swapSize = swapSize; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } @CustomType.Setter public Builder uaPrefix(@Nullable String uaPrefix) { + this.uaPrefix = uaPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2OpenstackConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2OpenstackConfig.java index ad99dc984..7aedc9193 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2OpenstackConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2OpenstackConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -625,211 +626,259 @@ public Builder(MachineConfigV2OpenstackConfig defaults) { @CustomType.Setter public Builder activeTimeout(@Nullable String activeTimeout) { + this.activeTimeout = activeTimeout; return this; } @CustomType.Setter public Builder applicationCredentialId(@Nullable String applicationCredentialId) { + this.applicationCredentialId = applicationCredentialId; return this; } @CustomType.Setter public Builder applicationCredentialName(@Nullable String applicationCredentialName) { + this.applicationCredentialName = applicationCredentialName; return this; } @CustomType.Setter public Builder applicationCredentialSecret(@Nullable String applicationCredentialSecret) { + this.applicationCredentialSecret = applicationCredentialSecret; return this; } @CustomType.Setter public Builder authUrl(String authUrl) { - this.authUrl = Objects.requireNonNull(authUrl); + if (authUrl == null) { + throw new MissingRequiredPropertyException("MachineConfigV2OpenstackConfig", "authUrl"); + } + this.authUrl = authUrl; return this; } @CustomType.Setter public Builder availabilityZone(String availabilityZone) { - this.availabilityZone = Objects.requireNonNull(availabilityZone); + if (availabilityZone == null) { + throw new MissingRequiredPropertyException("MachineConfigV2OpenstackConfig", "availabilityZone"); + } + this.availabilityZone = availabilityZone; return this; } @CustomType.Setter public Builder bootFromVolume(@Nullable Boolean bootFromVolume) { + this.bootFromVolume = bootFromVolume; return this; } @CustomType.Setter public Builder cacert(@Nullable String cacert) { + this.cacert = cacert; return this; } @CustomType.Setter public Builder configDrive(@Nullable Boolean configDrive) { + this.configDrive = configDrive; return this; } @CustomType.Setter public Builder domainId(@Nullable String domainId) { + this.domainId = domainId; return this; } @CustomType.Setter public Builder domainName(@Nullable String domainName) { + this.domainName = domainName; return this; } @CustomType.Setter public Builder endpointType(@Nullable String endpointType) { + this.endpointType = endpointType; return this; } @CustomType.Setter public Builder flavorId(@Nullable String flavorId) { + this.flavorId = flavorId; return this; } @CustomType.Setter public Builder flavorName(@Nullable String flavorName) { + this.flavorName = flavorName; return this; } @CustomType.Setter public Builder floatingIpPool(@Nullable String floatingIpPool) { + this.floatingIpPool = floatingIpPool; return this; } @CustomType.Setter public Builder imageId(@Nullable String imageId) { + this.imageId = imageId; return this; } @CustomType.Setter public Builder imageName(@Nullable String imageName) { + this.imageName = imageName; return this; } @CustomType.Setter public Builder insecure(@Nullable Boolean insecure) { + this.insecure = insecure; return this; } @CustomType.Setter public Builder ipVersion(@Nullable String ipVersion) { + this.ipVersion = ipVersion; return this; } @CustomType.Setter public Builder keypairName(@Nullable String keypairName) { + this.keypairName = keypairName; return this; } @CustomType.Setter public Builder netId(@Nullable String netId) { + this.netId = netId; return this; } @CustomType.Setter public Builder netName(@Nullable String netName) { + this.netName = netName; return this; } @CustomType.Setter public Builder novaNetwork(@Nullable Boolean novaNetwork) { + this.novaNetwork = novaNetwork; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder privateKeyFile(@Nullable String privateKeyFile) { + this.privateKeyFile = privateKeyFile; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("MachineConfigV2OpenstackConfig", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder secGroups(@Nullable String secGroups) { + this.secGroups = secGroups; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder tenantDomainId(@Nullable String tenantDomainId) { + this.tenantDomainId = tenantDomainId; return this; } @CustomType.Setter public Builder tenantDomainName(@Nullable String tenantDomainName) { + this.tenantDomainName = tenantDomainName; return this; } @CustomType.Setter public Builder tenantId(@Nullable String tenantId) { + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder tenantName(@Nullable String tenantName) { + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder userDataFile(@Nullable String userDataFile) { + this.userDataFile = userDataFile; return this; } @CustomType.Setter public Builder userDomainId(@Nullable String userDomainId) { + this.userDomainId = userDomainId; return this; } @CustomType.Setter public Builder userDomainName(@Nullable String userDomainName) { + this.userDomainName = userDomainName; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } @CustomType.Setter public Builder volumeDevicePath(@Nullable String volumeDevicePath) { + this.volumeDevicePath = volumeDevicePath; return this; } @CustomType.Setter public Builder volumeId(@Nullable String volumeId) { + this.volumeId = volumeId; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } @CustomType.Setter public Builder volumeSize(@Nullable String volumeSize) { + this.volumeSize = volumeSize; return this; } @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { + this.volumeType = volumeType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java index dca15d4b8..423ed10e5 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MachineConfigV2VsphereConfig.java @@ -465,11 +465,13 @@ public Builder(MachineConfigV2VsphereConfig defaults) { @CustomType.Setter public Builder boot2dockerUrl(@Nullable String boot2dockerUrl) { + this.boot2dockerUrl = boot2dockerUrl; return this; } @CustomType.Setter public Builder cfgparams(@Nullable List cfgparams) { + this.cfgparams = cfgparams; return this; } @@ -478,36 +480,43 @@ public Builder cfgparams(String... cfgparams) { } @CustomType.Setter public Builder cloneFrom(@Nullable String cloneFrom) { + this.cloneFrom = cloneFrom; return this; } @CustomType.Setter public Builder cloudConfig(@Nullable String cloudConfig) { + this.cloudConfig = cloudConfig; return this; } @CustomType.Setter public Builder cloudinit(@Nullable String cloudinit) { + this.cloudinit = cloudinit; return this; } @CustomType.Setter public Builder contentLibrary(@Nullable String contentLibrary) { + this.contentLibrary = contentLibrary; return this; } @CustomType.Setter public Builder cpuCount(@Nullable String cpuCount) { + this.cpuCount = cpuCount; return this; } @CustomType.Setter public Builder creationType(@Nullable String creationType) { + this.creationType = creationType; return this; } @CustomType.Setter public Builder customAttributes(@Nullable List customAttributes) { + this.customAttributes = customAttributes; return this; } @@ -516,41 +525,49 @@ public Builder customAttributes(String... customAttributes) { } @CustomType.Setter public Builder datacenter(@Nullable String datacenter) { + this.datacenter = datacenter; return this; } @CustomType.Setter public Builder datastore(@Nullable String datastore) { + this.datastore = datastore; return this; } @CustomType.Setter public Builder datastoreCluster(@Nullable String datastoreCluster) { + this.datastoreCluster = datastoreCluster; return this; } @CustomType.Setter public Builder diskSize(@Nullable String diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder hostsystem(@Nullable String hostsystem) { + this.hostsystem = hostsystem; return this; } @CustomType.Setter public Builder memorySize(@Nullable String memorySize) { + this.memorySize = memorySize; return this; } @CustomType.Setter public Builder networks(@Nullable List networks) { + this.networks = networks; return this; } @@ -559,36 +576,43 @@ public Builder networks(String... networks) { } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder pool(@Nullable String pool) { + this.pool = pool; return this; } @CustomType.Setter public Builder sshPassword(@Nullable String sshPassword) { + this.sshPassword = sshPassword; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder sshUserGroup(@Nullable String sshUserGroup) { + this.sshUserGroup = sshUserGroup; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -597,21 +621,25 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } @CustomType.Setter public Builder vappIpAllocationPolicy(@Nullable String vappIpAllocationPolicy) { + this.vappIpAllocationPolicy = vappIpAllocationPolicy; return this; } @CustomType.Setter public Builder vappIpProtocol(@Nullable String vappIpProtocol) { + this.vappIpProtocol = vappIpProtocol; return this; } @CustomType.Setter public Builder vappProperties(@Nullable List vappProperties) { + this.vappProperties = vappProperties; return this; } @@ -620,16 +648,19 @@ public Builder vappProperties(String... vappProperties) { } @CustomType.Setter public Builder vappTransport(@Nullable String vappTransport) { + this.vappTransport = vappTransport; return this; } @CustomType.Setter public Builder vcenter(@Nullable String vcenter) { + this.vcenter = vcenter; return this; } @CustomType.Setter public Builder vcenterPort(@Nullable String vcenterPort) { + this.vcenterPort = vcenterPort; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppAnswer.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppAnswer.java index 426fb1eba..d6b9d8591 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppAnswer.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppAnswer.java @@ -74,16 +74,19 @@ public Builder(MultiClusterAppAnswer defaults) { @CustomType.Setter public Builder clusterId(@Nullable String clusterId) { + this.clusterId = clusterId; return this; } @CustomType.Setter public Builder projectId(@Nullable String projectId) { + this.projectId = projectId; return this; } @CustomType.Setter public Builder values(@Nullable Map values) { + this.values = values; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppMember.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppMember.java index 1e96dd27c..740cd0f6e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppMember.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppMember.java @@ -72,16 +72,19 @@ public Builder(MultiClusterAppMember defaults) { @CustomType.Setter public Builder accessType(@Nullable String accessType) { + this.accessType = accessType; return this; } @CustomType.Setter public Builder groupPrincipalId(@Nullable String groupPrincipalId) { + this.groupPrincipalId = groupPrincipalId; return this; } @CustomType.Setter public Builder userPrincipalId(@Nullable String userPrincipalId) { + this.userPrincipalId = userPrincipalId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppTarget.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppTarget.java index 5da27c292..5bad76e24 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppTarget.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppTarget.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,21 +87,27 @@ public Builder(MultiClusterAppTarget defaults) { @CustomType.Setter public Builder appId(@Nullable String appId) { + this.appId = appId; return this; } @CustomType.Setter public Builder healthState(@Nullable String healthState) { + this.healthState = healthState; return this; } @CustomType.Setter public Builder projectId(String projectId) { - this.projectId = Objects.requireNonNull(projectId); + if (projectId == null) { + throw new MissingRequiredPropertyException("MultiClusterAppTarget", "projectId"); + } + this.projectId = projectId; return this; } @CustomType.Setter public Builder state(@Nullable String state) { + this.state = state; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategy.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategy.java index fa38e471b..7e588525a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategy.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategy.java @@ -44,6 +44,7 @@ public Builder(MultiClusterAppUpgradeStrategy defaults) { @CustomType.Setter public Builder rollingUpdate(@Nullable MultiClusterAppUpgradeStrategyRollingUpdate rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategyRollingUpdate.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategyRollingUpdate.java index f48d1d935..2f2bf4ebe 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategyRollingUpdate.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/MultiClusterAppUpgradeStrategyRollingUpdate.java @@ -58,11 +58,13 @@ public Builder(MultiClusterAppUpgradeStrategyRollingUpdate defaults) { @CustomType.Setter public Builder batchSize(@Nullable Integer batchSize) { + this.batchSize = batchSize; return this; } @CustomType.Setter public Builder interval(@Nullable Integer interval) { + this.interval = interval; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceContainerResourceLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceContainerResourceLimit.java index 9d3fc1149..e4239204e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceContainerResourceLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceContainerResourceLimit.java @@ -86,21 +86,25 @@ public Builder(NamespaceContainerResourceLimit defaults) { @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuota.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuota.java index 375919366..376c794be 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuota.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuota.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.NamespaceResourceQuotaLimit; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(NamespaceResourceQuota defaults) { @CustomType.Setter public Builder limit(NamespaceResourceQuotaLimit limit) { - this.limit = Objects.requireNonNull(limit); + if (limit == null) { + throw new MissingRequiredPropertyException("NamespaceResourceQuota", "limit"); + } + this.limit = limit; return this; } public NamespaceResourceQuota build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuotaLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuotaLimit.java index 239d18c79..1634c54e0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuotaLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NamespaceResourceQuotaLimit.java @@ -208,66 +208,79 @@ public Builder(NamespaceResourceQuotaLimit defaults) { @CustomType.Setter public Builder configMaps(@Nullable String configMaps) { + this.configMaps = configMaps; return this; } @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder persistentVolumeClaims(@Nullable String persistentVolumeClaims) { + this.persistentVolumeClaims = persistentVolumeClaims; return this; } @CustomType.Setter public Builder pods(@Nullable String pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder replicationControllers(@Nullable String replicationControllers) { + this.replicationControllers = replicationControllers; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } @CustomType.Setter public Builder requestsStorage(@Nullable String requestsStorage) { + this.requestsStorage = requestsStorage; return this; } @CustomType.Setter public Builder secrets(@Nullable String secrets) { + this.secrets = secrets; return this; } @CustomType.Setter public Builder services(@Nullable String services) { + this.services = services; return this; } @CustomType.Setter public Builder servicesLoadBalancers(@Nullable String servicesLoadBalancers) { + this.servicesLoadBalancers = servicesLoadBalancers; return this; } @CustomType.Setter public Builder servicesNodePorts(@Nullable String servicesNodePorts) { + this.servicesNodePorts = servicesNodePorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodePoolNodeTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodePoolNodeTaint.java index 29443b724..888d07c46 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodePoolNodeTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodePoolNodeTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,22 +87,30 @@ public Builder(NodePoolNodeTaint defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("NodePoolNodeTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder timeAdded(@Nullable String timeAdded) { + this.timeAdded = timeAdded; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("NodePoolNodeTaint", "value"); + } + this.value = value; return this; } public NodePoolNodeTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAmazonec2Config.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAmazonec2Config.java index 32d38532b..422dc9876 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAmazonec2Config.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAmazonec2Config.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -504,71 +505,87 @@ public Builder(NodeTemplateAmazonec2Config defaults) { @CustomType.Setter public Builder accessKey(@Nullable String accessKey) { + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder ami(String ami) { - this.ami = Objects.requireNonNull(ami); + if (ami == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2Config", "ami"); + } + this.ami = ami; return this; } @CustomType.Setter public Builder blockDurationMinutes(@Nullable String blockDurationMinutes) { + this.blockDurationMinutes = blockDurationMinutes; return this; } @CustomType.Setter public Builder deviceName(@Nullable String deviceName) { + this.deviceName = deviceName; return this; } @CustomType.Setter public Builder encryptEbsVolume(@Nullable Boolean encryptEbsVolume) { + this.encryptEbsVolume = encryptEbsVolume; return this; } @CustomType.Setter public Builder endpoint(@Nullable String endpoint) { + this.endpoint = endpoint; return this; } @CustomType.Setter public Builder httpEndpoint(@Nullable String httpEndpoint) { + this.httpEndpoint = httpEndpoint; return this; } @CustomType.Setter public Builder httpTokens(@Nullable String httpTokens) { + this.httpTokens = httpTokens; return this; } @CustomType.Setter public Builder iamInstanceProfile(@Nullable String iamInstanceProfile) { + this.iamInstanceProfile = iamInstanceProfile; return this; } @CustomType.Setter public Builder insecureTransport(@Nullable Boolean insecureTransport) { + this.insecureTransport = insecureTransport; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder kmsKey(@Nullable String kmsKey) { + this.kmsKey = kmsKey; return this; } @CustomType.Setter public Builder monitoring(@Nullable Boolean monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder openPorts(@Nullable List openPorts) { + this.openPorts = openPorts; return this; } @@ -577,42 +594,54 @@ public Builder openPorts(String... openPorts) { } @CustomType.Setter public Builder privateAddressOnly(@Nullable Boolean privateAddressOnly) { + this.privateAddressOnly = privateAddressOnly; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2Config", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder requestSpotInstance(@Nullable Boolean requestSpotInstance) { + this.requestSpotInstance = requestSpotInstance; return this; } @CustomType.Setter public Builder retries(@Nullable String retries) { + this.retries = retries; return this; } @CustomType.Setter public Builder rootSize(@Nullable String rootSize) { + this.rootSize = rootSize; return this; } @CustomType.Setter public Builder secretKey(@Nullable String secretKey) { + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder securityGroupReadonly(@Nullable Boolean securityGroupReadonly) { + this.securityGroupReadonly = securityGroupReadonly; return this; } @CustomType.Setter public Builder securityGroups(List securityGroups) { - this.securityGroups = Objects.requireNonNull(securityGroups); + if (securityGroups == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2Config", "securityGroups"); + } + this.securityGroups = securityGroups; return this; } public Builder securityGroups(String... securityGroups) { @@ -620,62 +649,80 @@ public Builder securityGroups(String... securityGroups) { } @CustomType.Setter public Builder sessionToken(@Nullable String sessionToken) { + this.sessionToken = sessionToken; return this; } @CustomType.Setter public Builder spotPrice(@Nullable String spotPrice) { + this.spotPrice = spotPrice; return this; } @CustomType.Setter public Builder sshKeypath(@Nullable String sshKeypath) { + this.sshKeypath = sshKeypath; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder subnetId(String subnetId) { - this.subnetId = Objects.requireNonNull(subnetId); + if (subnetId == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2Config", "subnetId"); + } + this.subnetId = subnetId; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder useEbsOptimizedInstance(@Nullable Boolean useEbsOptimizedInstance) { + this.useEbsOptimizedInstance = useEbsOptimizedInstance; return this; } @CustomType.Setter public Builder usePrivateAddress(@Nullable Boolean usePrivateAddress) { + this.usePrivateAddress = usePrivateAddress; return this; } @CustomType.Setter public Builder userdata(@Nullable String userdata) { + this.userdata = userdata; return this; } @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { + this.volumeType = volumeType; return this; } @CustomType.Setter public Builder vpcId(String vpcId) { - this.vpcId = Objects.requireNonNull(vpcId); + if (vpcId == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2Config", "vpcId"); + } + this.vpcId = vpcId; return this; } @CustomType.Setter public Builder zone(String zone) { - this.zone = Objects.requireNonNull(zone); + if (zone == null) { + throw new MissingRequiredPropertyException("NodeTemplateAmazonec2Config", "zone"); + } + this.zone = zone; return this; } public NodeTemplateAmazonec2Config build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAzureConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAzureConfig.java index 78b08348a..45fc36405 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAzureConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateAzureConfig.java @@ -464,86 +464,103 @@ public Builder(NodeTemplateAzureConfig defaults) { @CustomType.Setter public Builder acceleratedNetworking(@Nullable Boolean acceleratedNetworking) { + this.acceleratedNetworking = acceleratedNetworking; return this; } @CustomType.Setter public Builder availabilitySet(@Nullable String availabilitySet) { + this.availabilitySet = availabilitySet; return this; } @CustomType.Setter public Builder availabilityZone(@Nullable String availabilityZone) { + this.availabilityZone = availabilityZone; return this; } @CustomType.Setter public Builder clientId(@Nullable String clientId) { + this.clientId = clientId; return this; } @CustomType.Setter public Builder clientSecret(@Nullable String clientSecret) { + this.clientSecret = clientSecret; return this; } @CustomType.Setter public Builder customData(@Nullable String customData) { + this.customData = customData; return this; } @CustomType.Setter public Builder diskSize(@Nullable String diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder dns(@Nullable String dns) { + this.dns = dns; return this; } @CustomType.Setter public Builder dockerPort(@Nullable String dockerPort) { + this.dockerPort = dockerPort; return this; } @CustomType.Setter public Builder environment(@Nullable String environment) { + this.environment = environment; return this; } @CustomType.Setter public Builder faultDomainCount(@Nullable String faultDomainCount) { + this.faultDomainCount = faultDomainCount; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder location(@Nullable String location) { + this.location = location; return this; } @CustomType.Setter public Builder managedDisks(@Nullable Boolean managedDisks) { + this.managedDisks = managedDisks; return this; } @CustomType.Setter public Builder noPublicIp(@Nullable Boolean noPublicIp) { + this.noPublicIp = noPublicIp; return this; } @CustomType.Setter public Builder nsg(@Nullable String nsg) { + this.nsg = nsg; return this; } @CustomType.Setter public Builder openPorts(@Nullable List openPorts) { + this.openPorts = openPorts; return this; } @@ -552,76 +569,91 @@ public Builder openPorts(String... openPorts) { } @CustomType.Setter public Builder plan(@Nullable String plan) { + this.plan = plan; return this; } @CustomType.Setter public Builder privateIpAddress(@Nullable String privateIpAddress) { + this.privateIpAddress = privateIpAddress; return this; } @CustomType.Setter public Builder resourceGroup(@Nullable String resourceGroup) { + this.resourceGroup = resourceGroup; return this; } @CustomType.Setter public Builder size(@Nullable String size) { + this.size = size; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder staticPublicIp(@Nullable Boolean staticPublicIp) { + this.staticPublicIp = staticPublicIp; return this; } @CustomType.Setter public Builder storageType(@Nullable String storageType) { + this.storageType = storageType; return this; } @CustomType.Setter public Builder subnet(@Nullable String subnet) { + this.subnet = subnet; return this; } @CustomType.Setter public Builder subnetPrefix(@Nullable String subnetPrefix) { + this.subnetPrefix = subnetPrefix; return this; } @CustomType.Setter public Builder subscriptionId(@Nullable String subscriptionId) { + this.subscriptionId = subscriptionId; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder updateDomainCount(@Nullable String updateDomainCount) { + this.updateDomainCount = updateDomainCount; return this; } @CustomType.Setter public Builder usePrivateIp(@Nullable Boolean usePrivateIp) { + this.usePrivateIp = usePrivateIp; return this; } @CustomType.Setter public Builder usePublicIpStandardSku(@Nullable Boolean usePublicIpStandardSku) { + this.usePublicIpStandardSku = usePublicIpStandardSku; return this; } @CustomType.Setter public Builder vnet(@Nullable String vnet) { + this.vnet = vnet; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateDigitaloceanConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateDigitaloceanConfig.java index b72e6c338..774c3b973 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateDigitaloceanConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateDigitaloceanConfig.java @@ -231,71 +231,85 @@ public Builder(NodeTemplateDigitaloceanConfig defaults) { @CustomType.Setter public Builder accessToken(@Nullable String accessToken) { + this.accessToken = accessToken; return this; } @CustomType.Setter public Builder backups(@Nullable Boolean backups) { + this.backups = backups; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder ipv6(@Nullable Boolean ipv6) { + this.ipv6 = ipv6; return this; } @CustomType.Setter public Builder monitoring(@Nullable Boolean monitoring) { + this.monitoring = monitoring; return this; } @CustomType.Setter public Builder privateNetworking(@Nullable Boolean privateNetworking) { + this.privateNetworking = privateNetworking; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder size(@Nullable String size) { + this.size = size; return this; } @CustomType.Setter public Builder sshKeyFingerprint(@Nullable String sshKeyFingerprint) { + this.sshKeyFingerprint = sshKeyFingerprint; return this; } @CustomType.Setter public Builder sshKeyPath(@Nullable String sshKeyPath) { + this.sshKeyPath = sshKeyPath; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder userdata(@Nullable String userdata) { + this.userdata = userdata; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHarvesterConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHarvesterConfig.java index f35468906..768df568b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHarvesterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHarvesterConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -280,77 +281,96 @@ public Builder(NodeTemplateHarvesterConfig defaults) { @CustomType.Setter public Builder cpuCount(@Nullable String cpuCount) { + this.cpuCount = cpuCount; return this; } @CustomType.Setter public Builder diskBus(@Nullable String diskBus) { + this.diskBus = diskBus; return this; } @CustomType.Setter public Builder diskInfo(@Nullable String diskInfo) { + this.diskInfo = diskInfo; return this; } @CustomType.Setter public Builder diskSize(@Nullable String diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder imageName(@Nullable String imageName) { + this.imageName = imageName; return this; } @CustomType.Setter public Builder memorySize(@Nullable String memorySize) { + this.memorySize = memorySize; return this; } @CustomType.Setter public Builder networkData(@Nullable String networkData) { + this.networkData = networkData; return this; } @CustomType.Setter public Builder networkInfo(@Nullable String networkInfo) { + this.networkInfo = networkInfo; return this; } @CustomType.Setter public Builder networkModel(@Nullable String networkModel) { + this.networkModel = networkModel; return this; } @CustomType.Setter public Builder networkName(@Nullable String networkName) { + this.networkName = networkName; return this; } @CustomType.Setter public Builder sshPassword(@Nullable String sshPassword) { + this.sshPassword = sshPassword; return this; } @CustomType.Setter public Builder sshUser(String sshUser) { - this.sshUser = Objects.requireNonNull(sshUser); + if (sshUser == null) { + throw new MissingRequiredPropertyException("NodeTemplateHarvesterConfig", "sshUser"); + } + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder userData(@Nullable String userData) { + this.userData = userData; return this; } @CustomType.Setter public Builder vmAffinity(@Nullable String vmAffinity) { + this.vmAffinity = vmAffinity; return this; } @CustomType.Setter public Builder vmNamespace(String vmNamespace) { - this.vmNamespace = Objects.requireNonNull(vmNamespace); + if (vmNamespace == null) { + throw new MissingRequiredPropertyException("NodeTemplateHarvesterConfig", "vmNamespace"); + } + this.vmNamespace = vmNamespace; return this; } public NodeTemplateHarvesterConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHetznerConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHetznerConfig.java index 4ac72af41..d82cf6e3f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHetznerConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateHetznerConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Object; import java.lang.String; @@ -163,46 +164,57 @@ public Builder(NodeTemplateHetznerConfig defaults) { @CustomType.Setter public Builder apiToken(String apiToken) { - this.apiToken = Objects.requireNonNull(apiToken); + if (apiToken == null) { + throw new MissingRequiredPropertyException("NodeTemplateHetznerConfig", "apiToken"); + } + this.apiToken = apiToken; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder networks(@Nullable String networks) { + this.networks = networks; return this; } @CustomType.Setter public Builder serverLabels(@Nullable Map serverLabels) { + this.serverLabels = serverLabels; return this; } @CustomType.Setter public Builder serverLocation(@Nullable String serverLocation) { + this.serverLocation = serverLocation; return this; } @CustomType.Setter public Builder serverType(@Nullable String serverType) { + this.serverType = serverType; return this; } @CustomType.Setter public Builder usePrivateNetwork(@Nullable Boolean usePrivateNetwork) { + this.usePrivateNetwork = usePrivateNetwork; return this; } @CustomType.Setter public Builder userdata(@Nullable String userdata) { + this.userdata = userdata; return this; } @CustomType.Setter public Builder volumes(@Nullable String volumes) { + this.volumes = volumes; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateLinodeConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateLinodeConfig.java index bdca8252a..a824b4c81 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateLinodeConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateLinodeConfig.java @@ -255,81 +255,97 @@ public Builder(NodeTemplateLinodeConfig defaults) { @CustomType.Setter public Builder authorizedUsers(@Nullable String authorizedUsers) { + this.authorizedUsers = authorizedUsers; return this; } @CustomType.Setter public Builder createPrivateIp(@Nullable Boolean createPrivateIp) { + this.createPrivateIp = createPrivateIp; return this; } @CustomType.Setter public Builder dockerPort(@Nullable String dockerPort) { + this.dockerPort = dockerPort; return this; } @CustomType.Setter public Builder image(@Nullable String image) { + this.image = image; return this; } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder label(@Nullable String label) { + this.label = label; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder rootPass(@Nullable String rootPass) { + this.rootPass = rootPass; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder stackscript(@Nullable String stackscript) { + this.stackscript = stackscript; return this; } @CustomType.Setter public Builder stackscriptData(@Nullable String stackscriptData) { + this.stackscriptData = stackscriptData; return this; } @CustomType.Setter public Builder swapSize(@Nullable String swapSize) { + this.swapSize = swapSize; return this; } @CustomType.Setter public Builder tags(@Nullable String tags) { + this.tags = tags; return this; } @CustomType.Setter public Builder token(@Nullable String token) { + this.token = token; return this; } @CustomType.Setter public Builder uaPrefix(@Nullable String uaPrefix) { + this.uaPrefix = uaPrefix; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateNodeTaint.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateNodeTaint.java index adc4a4379..06d2c288f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateNodeTaint.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateNodeTaint.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -86,22 +87,30 @@ public Builder(NodeTemplateNodeTaint defaults) { @CustomType.Setter public Builder effect(@Nullable String effect) { + this.effect = effect; return this; } @CustomType.Setter public Builder key(String key) { - this.key = Objects.requireNonNull(key); + if (key == null) { + throw new MissingRequiredPropertyException("NodeTemplateNodeTaint", "key"); + } + this.key = key; return this; } @CustomType.Setter public Builder timeAdded(@Nullable String timeAdded) { + this.timeAdded = timeAdded; return this; } @CustomType.Setter public Builder value(String value) { - this.value = Objects.requireNonNull(value); + if (value == null) { + throw new MissingRequiredPropertyException("NodeTemplateNodeTaint", "value"); + } + this.value = value; return this; } public NodeTemplateNodeTaint build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpennebulaConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpennebulaConfig.java index 95beb8add..ea563464e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpennebulaConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpennebulaConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -301,97 +302,122 @@ public Builder(NodeTemplateOpennebulaConfig defaults) { @CustomType.Setter public Builder b2dSize(@Nullable String b2dSize) { + this.b2dSize = b2dSize; return this; } @CustomType.Setter public Builder cpu(@Nullable String cpu) { + this.cpu = cpu; return this; } @CustomType.Setter public Builder devPrefix(@Nullable String devPrefix) { + this.devPrefix = devPrefix; return this; } @CustomType.Setter public Builder disableVnc(@Nullable Boolean disableVnc) { + this.disableVnc = disableVnc; return this; } @CustomType.Setter public Builder diskResize(@Nullable String diskResize) { + this.diskResize = diskResize; return this; } @CustomType.Setter public Builder imageId(@Nullable String imageId) { + this.imageId = imageId; return this; } @CustomType.Setter public Builder imageName(@Nullable String imageName) { + this.imageName = imageName; return this; } @CustomType.Setter public Builder imageOwner(@Nullable String imageOwner) { + this.imageOwner = imageOwner; return this; } @CustomType.Setter public Builder memory(@Nullable String memory) { + this.memory = memory; return this; } @CustomType.Setter public Builder networkId(@Nullable String networkId) { + this.networkId = networkId; return this; } @CustomType.Setter public Builder networkName(@Nullable String networkName) { + this.networkName = networkName; return this; } @CustomType.Setter public Builder networkOwner(@Nullable String networkOwner) { + this.networkOwner = networkOwner; return this; } @CustomType.Setter public Builder password(String password) { - this.password = Objects.requireNonNull(password); + if (password == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpennebulaConfig", "password"); + } + this.password = password; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder templateId(@Nullable String templateId) { + this.templateId = templateId; return this; } @CustomType.Setter public Builder templateName(@Nullable String templateName) { + this.templateName = templateName; return this; } @CustomType.Setter public Builder user(String user) { - this.user = Objects.requireNonNull(user); + if (user == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpennebulaConfig", "user"); + } + this.user = user; return this; } @CustomType.Setter public Builder vcpu(@Nullable String vcpu) { + this.vcpu = vcpu; return this; } @CustomType.Setter public Builder xmlRpcUrl(String xmlRpcUrl) { - this.xmlRpcUrl = Objects.requireNonNull(xmlRpcUrl); + if (xmlRpcUrl == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpennebulaConfig", "xmlRpcUrl"); + } + this.xmlRpcUrl = xmlRpcUrl; return this; } public NodeTemplateOpennebulaConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpenstackConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpenstackConfig.java index 116874303..56eb30774 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpenstackConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOpenstackConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -575,191 +576,235 @@ public Builder(NodeTemplateOpenstackConfig defaults) { @CustomType.Setter public Builder activeTimeout(@Nullable String activeTimeout) { + this.activeTimeout = activeTimeout; return this; } @CustomType.Setter public Builder applicationCredentialId(@Nullable String applicationCredentialId) { + this.applicationCredentialId = applicationCredentialId; return this; } @CustomType.Setter public Builder applicationCredentialName(@Nullable String applicationCredentialName) { + this.applicationCredentialName = applicationCredentialName; return this; } @CustomType.Setter public Builder applicationCredentialSecret(@Nullable String applicationCredentialSecret) { + this.applicationCredentialSecret = applicationCredentialSecret; return this; } @CustomType.Setter public Builder authUrl(String authUrl) { - this.authUrl = Objects.requireNonNull(authUrl); + if (authUrl == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpenstackConfig", "authUrl"); + } + this.authUrl = authUrl; return this; } @CustomType.Setter public Builder availabilityZone(String availabilityZone) { - this.availabilityZone = Objects.requireNonNull(availabilityZone); + if (availabilityZone == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpenstackConfig", "availabilityZone"); + } + this.availabilityZone = availabilityZone; return this; } @CustomType.Setter public Builder bootFromVolume(@Nullable Boolean bootFromVolume) { + this.bootFromVolume = bootFromVolume; return this; } @CustomType.Setter public Builder cacert(@Nullable String cacert) { + this.cacert = cacert; return this; } @CustomType.Setter public Builder configDrive(@Nullable Boolean configDrive) { + this.configDrive = configDrive; return this; } @CustomType.Setter public Builder domainId(@Nullable String domainId) { + this.domainId = domainId; return this; } @CustomType.Setter public Builder domainName(@Nullable String domainName) { + this.domainName = domainName; return this; } @CustomType.Setter public Builder endpointType(@Nullable String endpointType) { + this.endpointType = endpointType; return this; } @CustomType.Setter public Builder flavorId(@Nullable String flavorId) { + this.flavorId = flavorId; return this; } @CustomType.Setter public Builder flavorName(@Nullable String flavorName) { + this.flavorName = flavorName; return this; } @CustomType.Setter public Builder floatingIpPool(@Nullable String floatingIpPool) { + this.floatingIpPool = floatingIpPool; return this; } @CustomType.Setter public Builder imageId(@Nullable String imageId) { + this.imageId = imageId; return this; } @CustomType.Setter public Builder imageName(@Nullable String imageName) { + this.imageName = imageName; return this; } @CustomType.Setter public Builder insecure(@Nullable Boolean insecure) { + this.insecure = insecure; return this; } @CustomType.Setter public Builder ipVersion(@Nullable String ipVersion) { + this.ipVersion = ipVersion; return this; } @CustomType.Setter public Builder keypairName(@Nullable String keypairName) { + this.keypairName = keypairName; return this; } @CustomType.Setter public Builder netId(@Nullable String netId) { + this.netId = netId; return this; } @CustomType.Setter public Builder netName(@Nullable String netName) { + this.netName = netName; return this; } @CustomType.Setter public Builder novaNetwork(@Nullable Boolean novaNetwork) { + this.novaNetwork = novaNetwork; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder privateKeyFile(@Nullable String privateKeyFile) { + this.privateKeyFile = privateKeyFile; return this; } @CustomType.Setter public Builder region(String region) { - this.region = Objects.requireNonNull(region); + if (region == null) { + throw new MissingRequiredPropertyException("NodeTemplateOpenstackConfig", "region"); + } + this.region = region; return this; } @CustomType.Setter public Builder secGroups(@Nullable String secGroups) { + this.secGroups = secGroups; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder tenantId(@Nullable String tenantId) { + this.tenantId = tenantId; return this; } @CustomType.Setter public Builder tenantName(@Nullable String tenantName) { + this.tenantName = tenantName; return this; } @CustomType.Setter public Builder userDataFile(@Nullable String userDataFile) { + this.userDataFile = userDataFile; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } @CustomType.Setter public Builder volumeDevicePath(@Nullable String volumeDevicePath) { + this.volumeDevicePath = volumeDevicePath; return this; } @CustomType.Setter public Builder volumeId(@Nullable String volumeId) { + this.volumeId = volumeId; return this; } @CustomType.Setter public Builder volumeName(@Nullable String volumeName) { + this.volumeName = volumeName; return this; } @CustomType.Setter public Builder volumeSize(@Nullable String volumeSize) { + this.volumeSize = volumeSize; return this; } @CustomType.Setter public Builder volumeType(@Nullable String volumeType) { + this.volumeType = volumeType; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOutscaleConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOutscaleConfig.java index 49a7ed776..2d49cf2dd 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOutscaleConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateOutscaleConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.List; @@ -186,11 +187,15 @@ public Builder(NodeTemplateOutscaleConfig defaults) { @CustomType.Setter public Builder accessKey(String accessKey) { - this.accessKey = Objects.requireNonNull(accessKey); + if (accessKey == null) { + throw new MissingRequiredPropertyException("NodeTemplateOutscaleConfig", "accessKey"); + } + this.accessKey = accessKey; return this; } @CustomType.Setter public Builder extraTagsAlls(@Nullable List extraTagsAlls) { + this.extraTagsAlls = extraTagsAlls; return this; } @@ -199,6 +204,7 @@ public Builder extraTagsAlls(String... extraTagsAlls) { } @CustomType.Setter public Builder extraTagsInstances(@Nullable List extraTagsInstances) { + this.extraTagsInstances = extraTagsInstances; return this; } @@ -207,36 +213,45 @@ public Builder extraTagsInstances(String... extraTagsInstances) { } @CustomType.Setter public Builder instanceType(@Nullable String instanceType) { + this.instanceType = instanceType; return this; } @CustomType.Setter public Builder region(@Nullable String region) { + this.region = region; return this; } @CustomType.Setter public Builder rootDiskIops(@Nullable Integer rootDiskIops) { + this.rootDiskIops = rootDiskIops; return this; } @CustomType.Setter public Builder rootDiskSize(@Nullable Integer rootDiskSize) { + this.rootDiskSize = rootDiskSize; return this; } @CustomType.Setter public Builder rootDiskType(@Nullable String rootDiskType) { + this.rootDiskType = rootDiskType; return this; } @CustomType.Setter public Builder secretKey(String secretKey) { - this.secretKey = Objects.requireNonNull(secretKey); + if (secretKey == null) { + throw new MissingRequiredPropertyException("NodeTemplateOutscaleConfig", "secretKey"); + } + this.secretKey = secretKey; return this; } @CustomType.Setter public Builder securityGroupIds(@Nullable List securityGroupIds) { + this.securityGroupIds = securityGroupIds; return this; } @@ -245,6 +260,7 @@ public Builder securityGroupIds(String... securityGroupIds) { } @CustomType.Setter public Builder sourceOmi(@Nullable String sourceOmi) { + this.sourceOmi = sourceOmi; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java index d8dc263d8..643d810db 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NodeTemplateVsphereConfig.java @@ -465,11 +465,13 @@ public Builder(NodeTemplateVsphereConfig defaults) { @CustomType.Setter public Builder boot2dockerUrl(@Nullable String boot2dockerUrl) { + this.boot2dockerUrl = boot2dockerUrl; return this; } @CustomType.Setter public Builder cfgparams(@Nullable List cfgparams) { + this.cfgparams = cfgparams; return this; } @@ -478,36 +480,43 @@ public Builder cfgparams(String... cfgparams) { } @CustomType.Setter public Builder cloneFrom(@Nullable String cloneFrom) { + this.cloneFrom = cloneFrom; return this; } @CustomType.Setter public Builder cloudConfig(@Nullable String cloudConfig) { + this.cloudConfig = cloudConfig; return this; } @CustomType.Setter public Builder cloudinit(@Nullable String cloudinit) { + this.cloudinit = cloudinit; return this; } @CustomType.Setter public Builder contentLibrary(@Nullable String contentLibrary) { + this.contentLibrary = contentLibrary; return this; } @CustomType.Setter public Builder cpuCount(@Nullable String cpuCount) { + this.cpuCount = cpuCount; return this; } @CustomType.Setter public Builder creationType(@Nullable String creationType) { + this.creationType = creationType; return this; } @CustomType.Setter public Builder customAttributes(@Nullable List customAttributes) { + this.customAttributes = customAttributes; return this; } @@ -516,41 +525,49 @@ public Builder customAttributes(String... customAttributes) { } @CustomType.Setter public Builder datacenter(@Nullable String datacenter) { + this.datacenter = datacenter; return this; } @CustomType.Setter public Builder datastore(@Nullable String datastore) { + this.datastore = datastore; return this; } @CustomType.Setter public Builder datastoreCluster(@Nullable String datastoreCluster) { + this.datastoreCluster = datastoreCluster; return this; } @CustomType.Setter public Builder diskSize(@Nullable String diskSize) { + this.diskSize = diskSize; return this; } @CustomType.Setter public Builder folder(@Nullable String folder) { + this.folder = folder; return this; } @CustomType.Setter public Builder hostsystem(@Nullable String hostsystem) { + this.hostsystem = hostsystem; return this; } @CustomType.Setter public Builder memorySize(@Nullable String memorySize) { + this.memorySize = memorySize; return this; } @CustomType.Setter public Builder networks(@Nullable List networks) { + this.networks = networks; return this; } @@ -559,36 +576,43 @@ public Builder networks(String... networks) { } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder pool(@Nullable String pool) { + this.pool = pool; return this; } @CustomType.Setter public Builder sshPassword(@Nullable String sshPassword) { + this.sshPassword = sshPassword; return this; } @CustomType.Setter public Builder sshPort(@Nullable String sshPort) { + this.sshPort = sshPort; return this; } @CustomType.Setter public Builder sshUser(@Nullable String sshUser) { + this.sshUser = sshUser; return this; } @CustomType.Setter public Builder sshUserGroup(@Nullable String sshUserGroup) { + this.sshUserGroup = sshUserGroup; return this; } @CustomType.Setter public Builder tags(@Nullable List tags) { + this.tags = tags; return this; } @@ -597,21 +621,25 @@ public Builder tags(String... tags) { } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } @CustomType.Setter public Builder vappIpAllocationPolicy(@Nullable String vappIpAllocationPolicy) { + this.vappIpAllocationPolicy = vappIpAllocationPolicy; return this; } @CustomType.Setter public Builder vappIpProtocol(@Nullable String vappIpProtocol) { + this.vappIpProtocol = vappIpProtocol; return this; } @CustomType.Setter public Builder vappProperties(@Nullable List vappProperties) { + this.vappProperties = vappProperties; return this; } @@ -620,16 +648,19 @@ public Builder vappProperties(String... vappProperties) { } @CustomType.Setter public Builder vappTransport(@Nullable String vappTransport) { + this.vappTransport = vappTransport; return this; } @CustomType.Setter public Builder vcenter(@Nullable String vcenter) { + this.vcenter = vcenter; return this; } @CustomType.Setter public Builder vcenterPort(@Nullable String vcenterPort) { + this.vcenterPort = vcenterPort; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierDingtalkConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierDingtalkConfig.java index a2d09e41b..1af2e6192 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierDingtalkConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierDingtalkConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,17 +73,22 @@ public Builder(NotifierDingtalkConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder secret(@Nullable String secret) { + this.secret = secret; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("NotifierDingtalkConfig", "url"); + } + this.url = url; return this; } public NotifierDingtalkConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierMsteamsConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierMsteamsConfig.java index 5053211cc..809a1b39a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierMsteamsConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierMsteamsConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(NotifierMsteamsConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("NotifierMsteamsConfig", "url"); + } + this.url = url; return this; } public NotifierMsteamsConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierPagerdutyConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierPagerdutyConfig.java index e8a83fcec..3064b3c8e 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierPagerdutyConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierPagerdutyConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(NotifierPagerdutyConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder serviceKey(String serviceKey) { - this.serviceKey = Objects.requireNonNull(serviceKey); + if (serviceKey == null) { + throw new MissingRequiredPropertyException("NotifierPagerdutyConfig", "serviceKey"); + } + this.serviceKey = serviceKey; return this; } public NotifierPagerdutyConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSlackConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSlackConfig.java index 441a82123..81ec80b41 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSlackConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSlackConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,17 +73,24 @@ public Builder(NotifierSlackConfig defaults) { @CustomType.Setter public Builder defaultRecipient(String defaultRecipient) { - this.defaultRecipient = Objects.requireNonNull(defaultRecipient); + if (defaultRecipient == null) { + throw new MissingRequiredPropertyException("NotifierSlackConfig", "defaultRecipient"); + } + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("NotifierSlackConfig", "url"); + } + this.url = url; return this; } public NotifierSlackConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSmtpConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSmtpConfig.java index 6ec0c6083..4f2085645 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSmtpConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierSmtpConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.Integer; import java.lang.String; @@ -130,36 +131,51 @@ public Builder(NotifierSmtpConfig defaults) { @CustomType.Setter public Builder defaultRecipient(String defaultRecipient) { - this.defaultRecipient = Objects.requireNonNull(defaultRecipient); + if (defaultRecipient == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfig", "defaultRecipient"); + } + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder host(String host) { - this.host = Objects.requireNonNull(host); + if (host == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfig", "host"); + } + this.host = host; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder port(Integer port) { - this.port = Objects.requireNonNull(port); + if (port == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfig", "port"); + } + this.port = port; return this; } @CustomType.Setter public Builder sender(String sender) { - this.sender = Objects.requireNonNull(sender); + if (sender == null) { + throw new MissingRequiredPropertyException("NotifierSmtpConfig", "sender"); + } + this.sender = sender; return this; } @CustomType.Setter public Builder tls(@Nullable Boolean tls) { + this.tls = tls; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWebhookConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWebhookConfig.java index 9571b0965..cdbbedbd3 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWebhookConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWebhookConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -58,12 +59,16 @@ public Builder(NotifierWebhookConfig defaults) { @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder url(String url) { - this.url = Objects.requireNonNull(url); + if (url == null) { + throw new MissingRequiredPropertyException("NotifierWebhookConfig", "url"); + } + this.url = url; return this; } public NotifierWebhookConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWechatConfig.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWechatConfig.java index 1e457101f..71979c5a0 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWechatConfig.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/NotifierWechatConfig.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -114,32 +115,46 @@ public Builder(NotifierWechatConfig defaults) { @CustomType.Setter public Builder agent(String agent) { - this.agent = Objects.requireNonNull(agent); + if (agent == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfig", "agent"); + } + this.agent = agent; return this; } @CustomType.Setter public Builder corp(String corp) { - this.corp = Objects.requireNonNull(corp); + if (corp == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfig", "corp"); + } + this.corp = corp; return this; } @CustomType.Setter public Builder defaultRecipient(String defaultRecipient) { - this.defaultRecipient = Objects.requireNonNull(defaultRecipient); + if (defaultRecipient == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfig", "defaultRecipient"); + } + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder proxyUrl(@Nullable String proxyUrl) { + this.proxyUrl = proxyUrl; return this; } @CustomType.Setter public Builder recipientType(@Nullable String recipientType) { + this.recipientType = recipientType; return this; } @CustomType.Setter public Builder secret(String secret) { - this.secret = Objects.requireNonNull(secret); + if (secret == null) { + throw new MissingRequiredPropertyException("NotifierWechatConfig", "secret"); + } + this.secret = secret; return this; } public NotifierWechatConfig build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedCsiDriver.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedCsiDriver.java index ddb25c0b5..55d8ae1f9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedCsiDriver.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedCsiDriver.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -42,7 +43,10 @@ public Builder(PodSecurityPolicyTemplateAllowedCsiDriver defaults) { @CustomType.Setter public Builder name(String name) { - this.name = Objects.requireNonNull(name); + if (name == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateAllowedCsiDriver", "name"); + } + this.name = name; return this; } public PodSecurityPolicyTemplateAllowedCsiDriver build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedFlexVolume.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedFlexVolume.java index 6ed8955cf..f530f33b9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedFlexVolume.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedFlexVolume.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; @@ -34,7 +35,10 @@ public Builder(PodSecurityPolicyTemplateAllowedFlexVolume defaults) { @CustomType.Setter public Builder driver(String driver) { - this.driver = Objects.requireNonNull(driver); + if (driver == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateAllowedFlexVolume", "driver"); + } + this.driver = driver; return this; } public PodSecurityPolicyTemplateAllowedFlexVolume build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedHostPath.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedHostPath.java index cb11d8c71..669f70326 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedHostPath.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateAllowedHostPath.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -59,11 +60,15 @@ public Builder(PodSecurityPolicyTemplateAllowedHostPath defaults) { @CustomType.Setter public Builder pathPrefix(String pathPrefix) { - this.pathPrefix = Objects.requireNonNull(pathPrefix); + if (pathPrefix == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateAllowedHostPath", "pathPrefix"); + } + this.pathPrefix = pathPrefix; return this; } @CustomType.Setter public Builder readOnly(@Nullable Boolean readOnly) { + this.readOnly = readOnly; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroup.java index 13d041a31..1f72d12f9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroup.java @@ -60,6 +60,7 @@ public Builder(PodSecurityPolicyTemplateFsGroup defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,6 +69,7 @@ public Builder ranges(PodSecurityPolicyTemplateFsGroupRange... ranges) { } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroupRange.java index 51758cc20..9ed08f70d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateFsGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(PodSecurityPolicyTemplateFsGroupRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateFsGroupRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateFsGroupRange", "min"); + } + this.min = min; return this; } public PodSecurityPolicyTemplateFsGroupRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateHostPort.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateHostPort.java index 90f17a538..7849ca89d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateHostPort.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateHostPort.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(PodSecurityPolicyTemplateHostPort defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateHostPort", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateHostPort", "min"); + } + this.min = min; return this; } public PodSecurityPolicyTemplateHostPort build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroup.java index 81387a48a..997501eda 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroup.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.PodSecurityPolicyTemplateRunAsGroupRange; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(PodSecurityPolicyTemplateRunAsGroup defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -67,7 +69,10 @@ public Builder ranges(PodSecurityPolicyTemplateRunAsGroupRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsGroup", "rule"); + } + this.rule = rule; return this; } public PodSecurityPolicyTemplateRunAsGroup build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroupRange.java index b10e83848..88e80effc 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(PodSecurityPolicyTemplateRunAsGroupRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsGroupRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsGroupRange", "min"); + } + this.min = min; return this; } public PodSecurityPolicyTemplateRunAsGroupRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUser.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUser.java index 3e269eb35..c40e266e9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUser.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUser.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.PodSecurityPolicyTemplateRunAsUserRange; import java.lang.String; import java.util.List; @@ -59,6 +60,7 @@ public Builder(PodSecurityPolicyTemplateRunAsUser defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -67,7 +69,10 @@ public Builder ranges(PodSecurityPolicyTemplateRunAsUserRange... ranges) { } @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsUser", "rule"); + } + this.rule = rule; return this; } public PodSecurityPolicyTemplateRunAsUser build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUserRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUserRange.java index 07a20ca78..23b829b80 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUserRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRunAsUserRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(PodSecurityPolicyTemplateRunAsUserRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsUserRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRunAsUserRange", "min"); + } + this.min = min; return this; } public PodSecurityPolicyTemplateRunAsUserRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRuntimeClass.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRuntimeClass.java index 4dbe01846..dafeee209 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRuntimeClass.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateRuntimeClass.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.List; import java.util.Objects; @@ -59,7 +60,10 @@ public Builder(PodSecurityPolicyTemplateRuntimeClass defaults) { @CustomType.Setter public Builder allowedRuntimeClassNames(List allowedRuntimeClassNames) { - this.allowedRuntimeClassNames = Objects.requireNonNull(allowedRuntimeClassNames); + if (allowedRuntimeClassNames == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateRuntimeClass", "allowedRuntimeClassNames"); + } + this.allowedRuntimeClassNames = allowedRuntimeClassNames; return this; } public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { @@ -67,6 +71,7 @@ public Builder allowedRuntimeClassNames(String... allowedRuntimeClassNames) { } @CustomType.Setter public Builder defaultRuntimeClassName(@Nullable String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinux.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinux.java index 12dd7fb92..f75ce322f 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinux.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinux.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.PodSecurityPolicyTemplateSeLinuxSeLinuxOption; import java.lang.String; import java.util.Objects; @@ -59,11 +60,15 @@ public Builder(PodSecurityPolicyTemplateSeLinux defaults) { @CustomType.Setter public Builder rule(String rule) { - this.rule = Objects.requireNonNull(rule); + if (rule == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateSeLinux", "rule"); + } + this.rule = rule; return this; } @CustomType.Setter public Builder seLinuxOption(@Nullable PodSecurityPolicyTemplateSeLinuxSeLinuxOption seLinuxOption) { + this.seLinuxOption = seLinuxOption; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinuxSeLinuxOption.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinuxSeLinuxOption.java index 1030c5de4..ebdaf6464 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinuxSeLinuxOption.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSeLinuxSeLinuxOption.java @@ -86,21 +86,25 @@ public Builder(PodSecurityPolicyTemplateSeLinuxSeLinuxOption defaults) { @CustomType.Setter public Builder level(@Nullable String level) { + this.level = level; return this; } @CustomType.Setter public Builder role(@Nullable String role) { + this.role = role; return this; } @CustomType.Setter public Builder type(@Nullable String type) { + this.type = type; return this; } @CustomType.Setter public Builder user(@Nullable String user) { + this.user = user; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroup.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroup.java index 0f44120eb..0d5705197 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroup.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroup.java @@ -60,6 +60,7 @@ public Builder(PodSecurityPolicyTemplateSupplementalGroup defaults) { @CustomType.Setter public Builder ranges(@Nullable List ranges) { + this.ranges = ranges; return this; } @@ -68,6 +69,7 @@ public Builder ranges(PodSecurityPolicyTemplateSupplementalGroupRange... ranges) } @CustomType.Setter public Builder rule(@Nullable String rule) { + this.rule = rule; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroupRange.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroupRange.java index 10a76cf26..9c0d29569 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroupRange.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/PodSecurityPolicyTemplateSupplementalGroupRange.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.util.Objects; @@ -56,12 +57,18 @@ public Builder(PodSecurityPolicyTemplateSupplementalGroupRange defaults) { @CustomType.Setter public Builder max(Integer max) { - this.max = Objects.requireNonNull(max); + if (max == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateSupplementalGroupRange", "max"); + } + this.max = max; return this; } @CustomType.Setter public Builder min(Integer min) { - this.min = Objects.requireNonNull(min); + if (min == null) { + throw new MissingRequiredPropertyException("PodSecurityPolicyTemplateSupplementalGroupRange", "min"); + } + this.min = min; return this; } public PodSecurityPolicyTemplateSupplementalGroupRange build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertGroupRecipient.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertGroupRecipient.java index eaad4ad2c..ee4035b8d 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertGroupRecipient.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertGroupRecipient.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Boolean; import java.lang.String; import java.util.Objects; @@ -79,21 +80,27 @@ public Builder(ProjectAlertGroupRecipient defaults) { @CustomType.Setter public Builder defaultRecipient(@Nullable Boolean defaultRecipient) { + this.defaultRecipient = defaultRecipient; return this; } @CustomType.Setter public Builder notifierId(String notifierId) { - this.notifierId = Objects.requireNonNull(notifierId); + if (notifierId == null) { + throw new MissingRequiredPropertyException("ProjectAlertGroupRecipient", "notifierId"); + } + this.notifierId = notifierId; return this; } @CustomType.Setter public Builder notifierType(@Nullable String notifierType) { + this.notifierType = notifierType; return this; } @CustomType.Setter public Builder recipient(@Nullable String recipient) { + this.recipient = recipient; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleMetricRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleMetricRule.java index f8ae159d4..f15b7fee9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleMetricRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleMetricRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.String; import java.util.Objects; @@ -101,27 +102,38 @@ public Builder(ProjectAlertRuleMetricRule defaults) { @CustomType.Setter public Builder comparison(@Nullable String comparison) { + this.comparison = comparison; return this; } @CustomType.Setter public Builder description(@Nullable String description) { + this.description = description; return this; } @CustomType.Setter public Builder duration(String duration) { - this.duration = Objects.requireNonNull(duration); + if (duration == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleMetricRule", "duration"); + } + this.duration = duration; return this; } @CustomType.Setter public Builder expression(String expression) { - this.expression = Objects.requireNonNull(expression); + if (expression == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleMetricRule", "expression"); + } + this.expression = expression; return this; } @CustomType.Setter public Builder thresholdValue(Double thresholdValue) { - this.thresholdValue = Objects.requireNonNull(thresholdValue); + if (thresholdValue == null) { + throw new MissingRequiredPropertyException("ProjectAlertRuleMetricRule", "thresholdValue"); + } + this.thresholdValue = thresholdValue; return this; } public ProjectAlertRuleMetricRule build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRulePodRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRulePodRule.java index bbc41a18c..1ce8f24d9 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRulePodRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRulePodRule.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -87,21 +88,27 @@ public Builder(ProjectAlertRulePodRule defaults) { @CustomType.Setter public Builder condition(@Nullable String condition) { + this.condition = condition; return this; } @CustomType.Setter public Builder podId(String podId) { - this.podId = Objects.requireNonNull(podId); + if (podId == null) { + throw new MissingRequiredPropertyException("ProjectAlertRulePodRule", "podId"); + } + this.podId = podId; return this; } @CustomType.Setter public Builder restartIntervalSeconds(@Nullable Integer restartIntervalSeconds) { + this.restartIntervalSeconds = restartIntervalSeconds; return this; } @CustomType.Setter public Builder restartTimes(@Nullable Integer restartTimes) { + this.restartTimes = restartTimes; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleWorkloadRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleWorkloadRule.java index 6f1c98380..7d31ae604 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleWorkloadRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectAlertRuleWorkloadRule.java @@ -75,16 +75,19 @@ public Builder(ProjectAlertRuleWorkloadRule defaults) { @CustomType.Setter public Builder availablePercentage(@Nullable Integer availablePercentage) { + this.availablePercentage = availablePercentage; return this; } @CustomType.Setter public Builder selector(@Nullable Map selector) { + this.selector = selector; return this; } @CustomType.Setter public Builder workloadId(@Nullable String workloadId) { + this.workloadId = workloadId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectContainerResourceLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectContainerResourceLimit.java index 3e7620044..2521e7890 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectContainerResourceLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectContainerResourceLimit.java @@ -86,21 +86,25 @@ public Builder(ProjectContainerResourceLimit defaults) { @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectProjectMonitoringInput.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectProjectMonitoringInput.java index 2a914f84f..6388eb7bf 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectProjectMonitoringInput.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectProjectMonitoringInput.java @@ -60,11 +60,13 @@ public Builder(ProjectProjectMonitoringInput defaults) { @CustomType.Setter public Builder answers(@Nullable Map answers) { + this.answers = answers; return this; } @CustomType.Setter public Builder version(@Nullable String version) { + this.version = version; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuota.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuota.java index f5feac622..57183b6ea 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuota.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuota.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import com.pulumi.rancher2.outputs.ProjectResourceQuotaNamespaceDefaultLimit; import com.pulumi.rancher2.outputs.ProjectResourceQuotaProjectLimit; import java.util.Objects; @@ -57,12 +58,18 @@ public Builder(ProjectResourceQuota defaults) { @CustomType.Setter public Builder namespaceDefaultLimit(ProjectResourceQuotaNamespaceDefaultLimit namespaceDefaultLimit) { - this.namespaceDefaultLimit = Objects.requireNonNull(namespaceDefaultLimit); + if (namespaceDefaultLimit == null) { + throw new MissingRequiredPropertyException("ProjectResourceQuota", "namespaceDefaultLimit"); + } + this.namespaceDefaultLimit = namespaceDefaultLimit; return this; } @CustomType.Setter public Builder projectLimit(ProjectResourceQuotaProjectLimit projectLimit) { - this.projectLimit = Objects.requireNonNull(projectLimit); + if (projectLimit == null) { + throw new MissingRequiredPropertyException("ProjectResourceQuota", "projectLimit"); + } + this.projectLimit = projectLimit; return this; } public ProjectResourceQuota build() { diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaNamespaceDefaultLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaNamespaceDefaultLimit.java index 41c46c79f..d09d35381 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaNamespaceDefaultLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaNamespaceDefaultLimit.java @@ -208,66 +208,79 @@ public Builder(ProjectResourceQuotaNamespaceDefaultLimit defaults) { @CustomType.Setter public Builder configMaps(@Nullable String configMaps) { + this.configMaps = configMaps; return this; } @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder persistentVolumeClaims(@Nullable String persistentVolumeClaims) { + this.persistentVolumeClaims = persistentVolumeClaims; return this; } @CustomType.Setter public Builder pods(@Nullable String pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder replicationControllers(@Nullable String replicationControllers) { + this.replicationControllers = replicationControllers; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } @CustomType.Setter public Builder requestsStorage(@Nullable String requestsStorage) { + this.requestsStorage = requestsStorage; return this; } @CustomType.Setter public Builder secrets(@Nullable String secrets) { + this.secrets = secrets; return this; } @CustomType.Setter public Builder services(@Nullable String services) { + this.services = services; return this; } @CustomType.Setter public Builder servicesLoadBalancers(@Nullable String servicesLoadBalancers) { + this.servicesLoadBalancers = servicesLoadBalancers; return this; } @CustomType.Setter public Builder servicesNodePorts(@Nullable String servicesNodePorts) { + this.servicesNodePorts = servicesNodePorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaProjectLimit.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaProjectLimit.java index 4ea2998fb..751dcae3b 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaProjectLimit.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/ProjectResourceQuotaProjectLimit.java @@ -208,66 +208,79 @@ public Builder(ProjectResourceQuotaProjectLimit defaults) { @CustomType.Setter public Builder configMaps(@Nullable String configMaps) { + this.configMaps = configMaps; return this; } @CustomType.Setter public Builder limitsCpu(@Nullable String limitsCpu) { + this.limitsCpu = limitsCpu; return this; } @CustomType.Setter public Builder limitsMemory(@Nullable String limitsMemory) { + this.limitsMemory = limitsMemory; return this; } @CustomType.Setter public Builder persistentVolumeClaims(@Nullable String persistentVolumeClaims) { + this.persistentVolumeClaims = persistentVolumeClaims; return this; } @CustomType.Setter public Builder pods(@Nullable String pods) { + this.pods = pods; return this; } @CustomType.Setter public Builder replicationControllers(@Nullable String replicationControllers) { + this.replicationControllers = replicationControllers; return this; } @CustomType.Setter public Builder requestsCpu(@Nullable String requestsCpu) { + this.requestsCpu = requestsCpu; return this; } @CustomType.Setter public Builder requestsMemory(@Nullable String requestsMemory) { + this.requestsMemory = requestsMemory; return this; } @CustomType.Setter public Builder requestsStorage(@Nullable String requestsStorage) { + this.requestsStorage = requestsStorage; return this; } @CustomType.Setter public Builder secrets(@Nullable String secrets) { + this.secrets = secrets; return this; } @CustomType.Setter public Builder services(@Nullable String services) { + this.services = services; return this; } @CustomType.Setter public Builder servicesLoadBalancers(@Nullable String servicesLoadBalancers) { + this.servicesLoadBalancers = servicesLoadBalancers; return this; } @CustomType.Setter public Builder servicesNodePorts(@Nullable String servicesNodePorts) { + this.servicesNodePorts = servicesNodePorts; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RegistryRegistry.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RegistryRegistry.java index f1c7e42c1..9f3df09ea 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RegistryRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RegistryRegistry.java @@ -4,6 +4,7 @@ package com.pulumi.rancher2.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; import java.util.Optional; @@ -72,16 +73,21 @@ public Builder(RegistryRegistry defaults) { @CustomType.Setter public Builder address(String address) { - this.address = Objects.requireNonNull(address); + if (address == null) { + throw new MissingRequiredPropertyException("RegistryRegistry", "address"); + } + this.address = address; return this; } @CustomType.Setter public Builder password(@Nullable String password) { + this.password = password; return this; } @CustomType.Setter public Builder username(@Nullable String username) { + this.username = username; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java index 7d0131c56..05c6393df 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTempalteRule.java @@ -100,6 +100,7 @@ public Builder(RoleTempalteRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +109,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceUrls(@Nullable List nonResourceUrls) { + this.nonResourceUrls = nonResourceUrls; return this; } @@ -116,6 +118,7 @@ public Builder nonResourceUrls(String... nonResourceUrls) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +127,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,6 +136,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTemplateRule.java b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTemplateRule.java index ef062b696..333700c7a 100644 --- a/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTemplateRule.java +++ b/sdk/java/src/main/java/com/pulumi/rancher2/outputs/RoleTemplateRule.java @@ -100,6 +100,7 @@ public Builder(RoleTemplateRule defaults) { @CustomType.Setter public Builder apiGroups(@Nullable List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -108,6 +109,7 @@ public Builder apiGroups(String... apiGroups) { } @CustomType.Setter public Builder nonResourceUrls(@Nullable List nonResourceUrls) { + this.nonResourceUrls = nonResourceUrls; return this; } @@ -116,6 +118,7 @@ public Builder nonResourceUrls(String... nonResourceUrls) { } @CustomType.Setter public Builder resourceNames(@Nullable List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -124,6 +127,7 @@ public Builder resourceNames(String... resourceNames) { } @CustomType.Setter public Builder resources(@Nullable List resources) { + this.resources = resources; return this; } @@ -132,6 +136,7 @@ public Builder resources(String... resources) { } @CustomType.Setter public Builder verbs(@Nullable List verbs) { + this.verbs = verbs; return this; }